getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
[gnulib.git] / ChangeLog
1 2012-07-22  Bruno Haible  <bruno@clisp.org>
2
3         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
4         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
5         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
6         Remove exemption for getpass.h.
7         Suggested by Eric Blake.
8
9 2012-07-20  Eric Blake  <eblake@redhat.com>
10
11         verify: document conflict with -Wnested-externs
12         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
13
14         maint.mk: forbid exit(-1)
15         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
16
17 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
18
19         fsusage: port back to Solaris
20         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
21         error (fsd not declared) on Solaris 10.  Reported privately by
22         Andrew Borodin.
23
24 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
25
26         gnu-web-doc-update: fix error messages
27         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
28
29         gnu-web-doc-update: check the requirements.
30         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
31         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
32         * build-aux/bootstrap (find_tool): Comment change.
33
34 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
35
36         maint.mk: minor simplication.
37         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
38         for default values.
39
40 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
41
42         gitlog-to-changelog: VPATH build issues
43         If builddir is not a subdirectory of srcdir, running git from it will
44         fail.
45         * build-aux/gitlog-to-changelog (--srcdir): New option.
46
47 2012-07-15  Bruno Haible  <bruno@clisp.org>
48
49         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
50         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
51         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
52         Remove exemption for fpending.h.
53         Suggested by Eric Blake.
54
55 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56
57         pthread_sigmask: fix bug on FreeBSD 9
58         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
59         Include string.h.
60         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
61         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
62         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
63         but pthread_sigmask (1729, NULL, NULL) returns zero.
64         See <http://bugs.gnu.org/11884>.
65         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
66         by inspecting whether the main call changed the old mask.
67
68 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
69
70         README-release: make it more legible
71         * top/README-release: Improve typography slightly.
72
73 2012-07-15  Jim Meyering  <meyering@redhat.com>
74
75         maint: require that each sc_... command start with "@"
76         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
77         "make sc_maint" helps us avoid this nit.
78
79 2012-07-15  Jim Meyering  <meyering@redhat.com>
80
81         maint.mk: add leading "@" to quiet new "make syntax-check" rule
82         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
83
84 2012-07-13  Eric Blake  <eblake@redhat.com>
85
86         maint.mk: new syntax check for HAVE_DECL checks
87         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
88         * cfg.mk
89         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
90         Exempt some false positives.
91         Based on a report by Karel Zak.
92
93         argp: make HAVE_DECL usage consistent
94         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
95         macros, not whether they are defined.
96         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
97         convention with other declaration checks.
98         Reported by Karel Zak, with suggestions from Paul Eggert.
99
100         stat-time: relax license to LGPLv2+
101         * modules/stat-time (License): Relax, with consent of all authors.
102
103         strndup: fix m4 usage error
104         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
105         defined, to either 0 or 1.
106         Reported by Karel Zak.
107
108 2012-07-11  Jim Meyering  <meyering@redhat.com>
109
110         maint: enable the sc_avoid_if_before_free syntax-check rule
111         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
112         (if_before_free_offenders_): Define.
113         (if_before_free_basename_re_): Define.
114         Exempt current files with useless if-before-free.
115
116 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
117
118         gettext: do not assume '#define ... defined ...' behavior
119         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
120         Do not use '#define FOO ... defined BAR ...', as the C standard says
121         it's not portable to expect that this works after macro expansion.
122         Problem reported for gzip by Steven M. Schweda in
123         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
124
125 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
126
127         getloadavg: clean out old Emacs and Autoconf cruft
128         See Glenn Morris in <http://bugs.gnu.org/11905>.
129         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
130         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
131         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
132         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
133
134 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
135
136         bootstrap: let warn be like tests/init.sh's warn_
137         Reported by Jim Meyering.
138         * build-aux/bootstrap (warn): Remove, replaced by...
139         (warnf_, warn_): these.
140         Adjust callers.
141         Shorten messages that no longer fit in 80 columns.
142
143 2012-07-09  Bruno Haible  <bruno@clisp.org>
144
145         getopt: Simplify after Emacs changed.
146         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
147         (gl_GETOPT_IFELSE): Remove macro.
148
149 2012-07-09  Jim Meyering  <meyering@redhat.com>
150
151         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
152         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
153
154         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
155         Bugs in both of those conspired to make the
156         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
157         _sc_search_regexp's handling of non-empty $in_files would filter
158         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
159         choice of in_files value meant there would be no match in most
160         projects, due to the presence of two or more Makefile.in files.
161         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
162         Fix a bug in how a non-empty $$in_files was processed:
163         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
164         in spite of the name, it's a regexp, not a list of file names.
165
166 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
167
168         getloadavg, getopt: fix commentary re configure.in
169         Autoconf is deprecating the name 'configure.in', so change it to
170         to the new name 'configure.ac' in a couple of places.
171         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
172         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
173         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
174         Emacs has renamed it to configure.ac, and it no longer refers
175         to these macros anyway.
176
177         timespec: mark functions with const attributes
178         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
179         Mark with _GL_ATTRIBUTE_CONST.
180
181 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
182
183         canonicalize[-lgpl]: handle "guessing" values when cross-building
184         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
185         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
186         matches "*yes" instead of just "yes".  Regression introduced in commit
187         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
188
189 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
190             Bruno Haible  <bruno@clisp.org>
191
192         canonicalize: make the right guess when cross-compiling to GNU
193         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
194         determine whether cross-compiling to glibc systems, so as to
195         include GNU/Hurd.
196
197 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
198
199         timespec-sub: avoid duplicate include
200         * lib/timespec-sub.c: Do not include <config.h> twice.
201         Reported by Juanma Barranquero.
202
203 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
204
205         bootstrap: use a more consistent error reporting scheme
206         * build-aux/bootstrap (warn, die): New.
207         Use them.
208
209 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
210
211         sys_time: allow too-wide tv_sec
212         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
213         timeval even if tv_sec is wider than time_t.  This allows
214         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
215         as without this patch gnulib replaces struct timeval
216         and OpenBSD futimes therefore has a type mismatch.
217         * doc/posix-headers/sys_time.texi: Mention this.
218
219         pthread: check for both pthread_create and pthread_join
220         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
221         alter the check so that it tests for both pthread_create and
222         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
223         Suggested by Bruno Haible and Richard Yao in
224         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
225
226         parse-datetime: doc tuneup
227         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
228         spacing issues.
229
230 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
231
232         do-release-commit-and-tag: fix the previous commit
233         * build-aux/do-release-commit-and-tag: Actually the test was right,
234         but the comment and the error message were misleading.
235         Fix comment, and improve error message.
236         Perform check first, so that NEWS is not modified uselessly.
237
238         do-release-commit-and-tag: fix typo
239         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
240         _not_ start with a stub.
241
242 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
243
244         pthread: check for pthread_create, not pthread_join
245         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
246         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
247         pthread_join in libc.  I hope this removes the need for all the
248         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
249         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
250
251 2012-07-04  Jim Meyering  <meyering@redhat.com>
252
253         parse-datetime: fix failure to diagnose invalid input
254         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
255         rather than diagnosing the invalid input.  Now it reports this:
256         date: invalid date '\260'
257         * lib/parse-datetime.y (to_uchar): Define.
258         (yylex): Don't sign-extend "other" bytes.
259         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
260         Thanks to Bruno Haible for the patch to this file.
261         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
262         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
263
264 2012-07-03  Jim Meyering  <meyering@redhat.com>
265
266         bootstrap: do not require now-removed build-aux/missing
267         Now that build-aux/missing is, er, missing, bootstrap would
268         silently fail.
269         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
270         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
271         no longer part of gnulib.
272         Diagnose the failure.
273
274 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
275
276         alloca: add support for HP NonStop TNS/E native
277         * lib/alloca.in.h (alloca): Support the new host.
278         From a suggestion by Joachim Schmitz in
279         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
280
281 2012-07-02  Pádraig Brady  <P@draigBrady.com>
282
283         fsusage: remove code not needed on non GNU/Linux systems.
284
285         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
286         Don't include headers no longer needed in this case.
287         * lib/fsusage.c [STAT_STATVFS &&
288         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
289         STAT_STATFS2_FRSIZE to exclude code not used in this case.
290
291 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
292
293         fsusage: include files needed for glibc 2.6 fallback
294         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
295         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
296         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
297         Problem reported by Ludovic Courtès in
298         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
299
300         fsusage: avoid needless check on GNU/Linux
301         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
302         on GNU/Linux systems, since it can't possibly work.
303
304 2012-07-01  Bruno Haible  <bruno@clisp.org>
305
306         log: Fix an autoconf >= 2.64 warning.
307         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
308         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
309
310 2012-06-28  Bruno Haible  <bruno@clisp.org>
311
312         log10f: Fix possible configuration problem.
313         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
314         $LOGF_LIBM.
315         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
316
317 2012-06-28  Bruno Haible  <bruno@clisp.org>
318
319         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
320         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
321         not gl_cv_func_unlink_works.
322         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
323
324 2012-06-27  Eric Blake  <eblake@redhat.com>
325
326         config: drop scripts that automake says are not independent
327         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
328         * build-aux/elisp-comp: Delete.
329         * build-aux/missing: Likewise.
330         * build-aux/ylwrap: Likewise.
331         * modules/elisp-comp: Likewise.
332         * MODULES.html.sh: Drop mention of elisp-comp.
333         * NEWS: Mention this.
334
335 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
336
337         root-uid: new module
338         This is for portability to Tandem's NonStop Kernel.
339         * lib/root-uid.h, modules/root-uid: New files.
340         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
341         * lib/write-any-file.c, tests/test-sethostname2.c:
342         Include "root-uid.h".
343         * lib/euidaccess.c (euidaccess):
344         * lib/pt_chown.c (main):
345         * lib/unlinkdir.c (cannot_unlink_dir):
346         * lib/write-any-file.c (can_write_any_file):
347         * m4/mknod.m4 (gl_FUNC_MKNOD):
348         * tests/test-sethostname2.c (geteuid, main):
349         Don't assume ROOT_UID == 0.
350         * modules/euidaccess (Depends-on):
351         * modules/pt_chown (Depends-on):
352         * modules/sethostname-tests (Depends-on):
353         * modules/unlinkdir (Depends-on):
354         * modules/write-any-file (Depends-on):
355         Add root-uid.
356
357         regex: use locale-independent comparison for codeset name
358         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
359         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
360         for codeset name.
361         * lib/regex_internal.h: Do not include <strings.h>, since we
362         no longer use strcasecmp.
363         * modules/regex (Depends-on): Remove strcase.
364
365 2012-06-23  Bruno Haible  <bruno@clisp.org>
366
367         getopt-posix: No longer guarantee that option processing is resettable.
368         * doc/posix-functions/getopt.texi: Drop description of problem with
369         internal state. Fix info about mingw and msvc9.
370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
371         option processing by getopt(). Run three test programs instead of one.
372         Simplify cross-compilation guess.
373         * NEWS: Mention the change.
374         Reported by Rich Felker <dalias@aerifal.cx>.
375
376 2012-06-26  Bruno Haible  <bruno@clisp.org>
377
378         argp, regex: Ensure strcasecmp gets declared.
379         * lib/argp-help.c: Include <strings.h>.
380         * lib/regex_internal.h: Likewise.
381         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
382
383 2012-06-24  Bruno Haible  <bruno@clisp.org>
384
385         ptsname_r: Make it consistent with ptsname on AIX.
386         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
387         implementation as for OSF/1.
388         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
389         a pty master.
390
391         ptsname_r: Make it consistent with ptsname on OSF/1.
392         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
393         OSF/1.
394
395 2012-06-24  Bruno Haible  <bruno@clisp.org>
396
397         ttyname_r: Fix result on OSF/1, Solaris.
398         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
399
400 2012-06-24  Bruno Haible  <bruno@clisp.org>
401
402         ptsname_r: Add support for Solaris.
403         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
404         Solaris.
405
406         ptsname_r: Fix test failure on native Windows.
407         * modules/ptsname_r (Depends-on): Add isatty.
408
409         ptsname_r: Fix test failures on IRIX, Solaris.
410         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
411         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
412         accordingly.
413         * lib/ptsname_r.c: Include <fcntl.h>.
414         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
415         set errno if fd is invalid.
416         * tests/test-isatty.c (main): Update comments.
417
418 2012-06-24  Bruno Haible  <bruno@clisp.org>
419
420         ptsname test: Extend test.
421         * tests/test-ptsname.c: Include <errno.h>.
422         (main): Test behaviour with invalid file descriptor.
423
424 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
425
426         time: fix obsolete comment
427         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
428         reference to HAVE_STRUCT_TIMESPEC in comment.
429
430 2012-06-23  Bruno Haible  <bruno@clisp.org>
431
432         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
434         does not handle abbreviated long options with equivalent
435         disambiguations, set gl_replace_getopt to yes.
436         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
437
438 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
439
440         time_r: fix typo that always overrode localtime_r decl
441         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
442         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
443         not in a standard include.
444
445 2012-06-22  Bruno Haible  <bruno@clisp.org>
446
447         Write "Mac OS X" instead of "MacOS X".
448         * README: Write "Mac OS X" instead of "MacOS X".
449         * build-aux/bootstrap: Likewise.
450         * build-aux/install-reloc: Likewise.
451         * lib/acl-internal.h: Likewise.
452         * lib/acl_entries.c: Likewise.
453         * lib/argp-ba.c: Likewise.
454         * lib/argp-pv.c: Likewise.
455         * lib/config.charset: Likewise.
456         * lib/copy-acl.c: Likewise.
457         * lib/csharpexec.c: Likewise.
458         * lib/euidaccess.c: Likewise.
459         * lib/fbufmode.c: Likewise.
460         * lib/fflush.c: Likewise.
461         * lib/file-has-acl.c: Likewise.
462         * lib/filemode.h: Likewise.
463         * lib/fpurge.c: Likewise.
464         * lib/freadable.c: Likewise.
465         * lib/freadahead.c: Likewise.
466         * lib/freading.c: Likewise.
467         * lib/freadptr.c: Likewise.
468         * lib/freadseek.c: Likewise.
469         * lib/fseeko.c: Likewise.
470         * lib/fseterr.c: Likewise.
471         * lib/fsusage.c: Likewise.
472         * lib/fwritable.c: Likewise.
473         * lib/fwriting.c: Likewise.
474         * lib/get-rusage-as.c: Likewise.
475         * lib/get-rusage-data.c: Likewise.
476         * lib/getdomainname.c: Likewise.
477         * lib/idpriv-drop.c: Likewise.
478         * lib/idpriv-droptemp.c: Likewise.
479         * lib/localcharset.c: Likewise.
480         * lib/locale.in.h: Likewise.
481         * lib/localename.c: Likewise.
482         * lib/mbsrtowcs-state.c: Likewise.
483         * lib/nproc.c: Likewise.
484         * lib/passfd.c: Likewise.
485         * lib/posix_openpt.c: Likewise.
486         * lib/printf-parse.c: Likewise.
487         * lib/progreloc.c: Likewise.
488         * lib/safe-read.h: Likewise.
489         * lib/safe-write.h: Likewise.
490         * lib/sched.in.h: Likewise.
491         * lib/set-mode-acl.c: Likewise.
492         * lib/signal.in.h: Likewise.
493         * lib/stdint.in.h: Likewise.
494         * lib/stdio-impl.h: Likewise.
495         * lib/stdlib.in.h: Likewise.
496         * lib/strtod.c: Likewise.
497         * lib/sys_select.in.h: Likewise.
498         * lib/tcgetsid.c: Likewise.
499         * lib/unistd.in.h: Likewise.
500         * lib/unlockpt.c: Likewise.
501         * lib/vasnprintf.c: Likewise.
502         * lib/vma-iter.c: Likewise.
503         * lib/wcsrtombs-state.c: Likewise.
504         * m4/acl.m4: Likewise.
505         * m4/acosl.m4: Likewise.
506         * m4/asinl.m4: Likewise.
507         * m4/atanl.m4: Likewise.
508         * m4/c-stack.m4: Likewise.
509         * m4/cosl.m4: Likewise.
510         * m4/expl.m4: Likewise.
511         * m4/extensions.m4: Likewise.
512         * m4/fdatasync.m4: Likewise.
513         * m4/fmal.m4: Likewise.
514         * m4/frexp.m4: Likewise.
515         * m4/frexpf.m4: Likewise.
516         * m4/frexpl.m4: Likewise.
517         * m4/fsusage.m4: Likewise.
518         * m4/getdomainname.m4: Likewise.
519         * m4/getloadavg.m4: Likewise.
520         * m4/getopt.m4: Likewise.
521         * m4/gettext.m4: Likewise.
522         * m4/gnulib-common.m4: Likewise.
523         * m4/intdiv0.m4: Likewise.
524         * m4/intlmacosx.m4: Likewise.
525         * m4/largefile.m4: Likewise.
526         * m4/ldexpl.m4: Likewise.
527         * m4/link-follow.m4: Likewise.
528         * m4/locale-ar.m4: Likewise.
529         * m4/locale-fr.m4: Likewise.
530         * m4/locale-ja.m4: Likewise.
531         * m4/locale-tr.m4: Likewise.
532         * m4/locale-zh.m4: Likewise.
533         * m4/locale_h.m4: Likewise.
534         * m4/lock.m4: Likewise.
535         * m4/logl.m4: Likewise.
536         * m4/mathfunc.m4: Likewise.
537         * m4/minus-zero.m4: Likewise.
538         * m4/mktime.m4: Likewise.
539         * m4/mmap-anon.m4: Likewise.
540         * m4/multiarch.m4: Likewise.
541         * m4/nanosleep.m4: Likewise.
542         * m4/nocrash.m4: Likewise.
543         * m4/poll.m4: Likewise.
544         * m4/printf-frexpl.m4: Likewise.
545         * m4/printf.m4: Likewise.
546         * m4/signbit.m4: Likewise.
547         * m4/sinl.m4: Likewise.
548         * m4/sqrtl.m4: Likewise.
549         * m4/strerror_r.m4: Likewise.
550         * m4/tanl.m4: Likewise.
551         * m4/threadlib.m4: Likewise.
552         * m4/ttyname_r.m4: Likewise.
553         * m4/unlink.m4: Likewise.
554         * m4/visibility.m4: Likewise.
555         * m4/wcwidth.m4: Likewise.
556         * tests/minus-zero.h: Likewise.
557         * tests/test-alloca-opt.c: Likewise.
558         * tests/test-copy-acl.sh: Likewise.
559         * tests/test-copy-file.sh: Likewise.
560         * tests/test-fdatasync.c: Likewise.
561         * tests/test-file-has-acl.sh: Likewise.
562         * tests/test-flock.c: Likewise.
563         * tests/test-fsync.c: Likewise.
564         * tests/test-localename.c: Likewise.
565         * tests/test-malloca.c: Likewise.
566         * tests/test-nonblocking-pipe.h: Likewise.
567         * tests/test-nonblocking-socket.h: Likewise.
568         * tests/test-openpty.c: Likewise.
569         * tests/test-posix_openpt.c: Likewise.
570         * tests/test-ptsname.c: Likewise.
571         * tests/test-ptsname_r.c: Likewise.
572         * tests/test-sameacls.c: Likewise.
573         * tests/test-select.h: Likewise.
574         * tests/test-set-mode-acl.sh: Likewise.
575         * tests/test-snprintf-posix.h: Likewise.
576         * tests/test-sprintf-posix.h: Likewise.
577         * tests/test-strtod.c: Likewise.
578         * tests/test-time.c: Likewise.
579         * tests/test-vasnprintf-posix.c: Likewise.
580         * tests/test-vasprintf-posix.c: Likewise.
581         * doc/acl-resources.txt: Likewise.
582         * doc/**/*.texi: Likewise.
583         Reported by Max Horn <max@quendi.de>.
584
585 2012-06-22  Bruno Haible  <bruno@clisp.org>
586
587         grantpt: Relax requirement regarding invalid file descriptors.
588         * lib/grantpt.c: Don't include <fcntl.h>.
589         (grantpt): Don't verify the validity of the file descriptor.
590         * modules/grantpt (Depends-on): Remove fcntl-h.
591         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
592         file descriptors.
593         * doc/posix-functions/grantpt.texi: Document more platforms on which
594         grantpt succeeds for invalid file descriptors.
595         Reported by Rich Felker <dalias@aerifal.cx>.
596
597 2012-06-22  Bruno Haible  <bruno@clisp.org>
598
599         fbufmode test: Don't test unportable behaviour.
600         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
601         (main): Invoke it three times.
602         Reported by Szabolcs Nagy <nsz@port70.net>
603         and Rich Felker <dalias@aerifal.cx>.
604
605 2012-06-21  Bruno Haible  <bruno@clisp.org>
606
607         gnulib-tool: Refactor inctests variable.
608         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
609         (func_modules_transitive_closure,
610         func_modules_transitive_closure_separately,
611         func_import, func_create_testdir): Update.
612
613         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
614         * gnulib-tool: Accept option --without-tests.
615         (func_usage): Document --without-tests option. Rearrange.
616         (inctests): Normalize according to the mode.
617         * NEWS: Mention the change.
618         Suggested by Simon Josefsson.
619
620 2012-06-21  Bruce Korb  <bkorb@gnu.org>
621
622         parse-duration test: Avoid spurious output.
623         * tests/test-parse-duration.sh: Reindent with leading tabs.
624
625 2012-06-21  Jim Meyering  <meyering@redhat.com>
626
627         maint: disable the strncpy prohibition
628         * cfg.mk: Do not prohibit strncpy here.
629
630 2012-06-21  Bruno Haible  <bruno@clisp.org>
631
632         nonblocking: Avoid compilation error on mingw64.
633         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
634         fscanf.
635         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
636         * modules/vfscanf (configure.ac): Likewise.
637         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
638         definition only if stdio.h has prepared it.
639         Reported by Daniel P. Berrange <berrange@redhat.com>.
640
641 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
642
643         gnulib-tool: Use readlink if it is available.
644         * gnulib-tool (func_readlink): Choose function more appropriately.
645
646 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
647
648         posixtm-tests: port to buggy compiler
649         Problem reported by Simon Josefsson in
650         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
651         * modules/posixtm-tests (Depends-on): Add stdint.
652         * tests/test-posixtm.c (struct posixtm_test.t_expected):
653         Now of type int_least64_t, not int64_t, both because that's
654         what INT64_C returns and because int_least64_t works even
655         on 72-bit hosts.
656         (T): Use INT64_C on constants outside the traditional int range,
657         to work around compiler bug noted by Simon.
658
659         mktime: fix integer overflow in 'configure'-time test
660         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
661         after integer overflow.  Problem reported by Rich Felker in
662         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
663         Also, don't look for further instances of a bug if we've already
664         found one instance; this helps 'configure' run faster.
665
666 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
667
668         tmpfile, clean-temp: Fix invocation of GetVersionEx.
669         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
670         GetVersionEx correctly.
671         * lib/clean-temp.c (supports_delete_on_close): Likewise.
672
673 2012-06-20  Bruno Haible  <bruno@clisp.org>
674
675         fdopen: Allow implementations that don't reject invalid fd arguments.
676         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
677         succeeds.
678         Reported by Rich Felker <dalias@aerifal.cx>.
679
680 2012-06-20  Simon Josefsson  <simon@josefsson.org>
681
682         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
683         bring in LIBINTL.
684
685 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
686
687         init.sh: do not rely on autoupated PWD
688         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
689         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
690         Although Nelson's bug was not necessarily fixed by this patch,
691         it seems wise to make the change for safety.
692         * tests/init.sh (path_prepend_): Do not rely on PWD updating
693         automagically after 'cd'; this is not reliable on older shells.
694         (setup_): Fail if we cannot cd to temporary directory.
695
696 2012-06-19  Bruno Haible  <bruno@clisp.org>
697
698         stat, fstat: Avoid warnings on mingw64.
699         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
700         redefining.
701         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
702         Reported by Daniel P. Berrange <berrange@redhat.com>.
703
704 2012-06-19  Bruno Haible  <bruno@clisp.org>
705
706         stdioext: Add support for musl libc.
707
708         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
709         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
710
711         * m4/fseterr.m4: New file.
712         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
713         function exists.
714         * modules/fseterr (Files): Add m4/fseterr.m4.
715         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
716         __fseterr does not exist.
717         (Makefile.am): Remove fseterr.c from lib_SOURCES.
718
719         * lib/freadable.h: Update comment.
720
721         * lib/fwritable.h: Update comment.
722
723         * lib/freading.h: Update comment.
724
725         * lib/fwriting.h: Update comment.
726
727         * m4/freadahead.m4: New file.
728         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
729         that function exists.
730         * modules/freadahead (Files): Add m4/freadahead.m4.
731         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
732         __freadahead does not exist.
733         (Makefile.am): Remove freadahead.c from lib_SOURCES.
734
735         * m4/freadptr.m4: New file.
736         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
737         function exists.
738         * modules/freadptr (Files): Add m4/freadptr.m4.
739         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
740         __freadptr does not exist.
741         (Makefile.am): Remove freadptr.c from lib_SOURCES.
742
743         * m4/freadseek.m4: New file.
744         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
745         exists.
746         * modules/freadseek (Files): Add m4/freadseek.m4.
747         (configure.ac): Invoke gl_FUNC_FREADSEEK.
748
749         * lib/fpurge.c (fpurge): Update comment.
750
751         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
752
753 2012-06-19  Bruno Haible  <bruno@clisp.org>
754
755         *printf-posix: Put more info into config.log.
756         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
757         exit code into config.log.
758
759 2012-06-19  Bruno Haible  <bruno@clisp.org>
760
761         getopt-gnu: Fix exit code overflow in autoconf test.
762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
763         to keep them below < 128.
764
765 2012-06-17  Jim Meyering  <meyering@redhat.com>
766
767         maint.mk: fix typo in code to derive GPG key at release time
768         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
769
770 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
771
772         regex: avoid warning when pointers are not long
773         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
774         and uintptr_t, not long, for portability to hosts where pointers and
775         long have different sizes.  Issue noted by Daniel P. Berrange in
776         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
777         and fix suggested by Bruno Haible in
778         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
779
780 2012-06-17  Bruno Haible  <bruno@clisp.org>
781
782         dummy: Relicense into the public domain.
783         * modules/dummy (License): Set to "public domain".
784         Suggested by Reuben Thomas.
785
786 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
787
788         announce-gen: VPATH issues
789         * build-aux/announce-gen (--srcdir): New option, used to trim the
790         $srcdir part of the path from $builddir to NEWS.
791         * top/maint.mk (announcement): Adjust.
792
793 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
794
795         gnu-web-doc-update: VPATH builds
796         * build-aux/gnu-web-doc-update (--builddir): New option.
797         Revamp the handling of options.
798         Prefer $(...) to `...`.
799         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
800         the template, and it is GNU mktemp specific.
801         Prefer set -e to long series of &&.
802         Restore the initial git branch, not "master".
803         Properly initialize submodules (don't rely only on bootstrap).
804         Do not reconfigure blindly, use config.status.
805         * top/README-release: Update instructions for gnu-web-doc-update.
806
807 2012-06-11  Jim Meyering  <meyering@redhat.com>
808
809         maint.mk: revert most of the previous change re "all these"
810         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
811         For rationale, see the discussion at
812         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
813
814 2012-06-10  Karl Berry  <karl@gnu.org>
815
816         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
817
818         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
819
820 2012-06-10  Bruce Korb  <bkorb@gnu.org>
821
822         parse-duration: Relicense under LGPLv2+.
823         * modules/parse-duration (License): Change to LGPLv2+.
824
825 2012-06-10  Jim Meyering  <meyering@redhat.com>
826
827         maint.mk: prohibit common grammar error: "all these"
828         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
829         the list of prohibited word sequences.  It should be "all of these".
830         * lib/tempname.c (__gen_tempname): Fix one of them.
831
832 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
833
834         do-release-commit-and-tag: support VPATH builds
835         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
836         (noteworthy): Defined earlier to factor its value.
837         (noteworthy_stub): New.
838         Use it to factor.
839         (help_version): Split into...
840         (help, version): these.
841         Adjust the option processing part.
842         Support "--option=value" in addition to "--option value".
843         (builddir): New.
844         (--builddir): New option.
845         * top/README-release: Document this.
846         Reword slightly so that the reader cannot understand that he
847         has to do these steps before calling do-release-commit-and-tag.
848
849 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
850
851         readme-release: also require announce-gen and maintainer-makefile
852         * modules/readme-release (Depends-on): here.
853         * modules/announce-gen, modules/do-release-commit-and-tag,
854         modules/gnu-web-doc-update, modules/maintainer-makefile
855         (Description): Point to readme-release.
856
857 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
858
859         maint.mk: fix VPATH issues.
860         * top/maint.mk (news-check): GNU Make understand $< very well.
861         (release-prep): NEWS is in $(srcdir).
862
863 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
864
865         readme-release: require the promoted modules.
866         * modules/readme-release (Depends-on): Add
867         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
868         in this text.
869
870 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
871             Bruno Haible  <bruno@clisp.org>
872
873         error, strerror-override: Support mingw64 from Fedora 17.
874         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
875         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
876         EINPROGRESS.
877         * lib/strerror-override.h (strerror_override): Test it.
878         * lib/strerror-override.c (strerror_override): Likewise.
879         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
880
881 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
882             Bruno Haible  <bruno@clisp.org>
883
884         error, strerror-override: Support mingw64 from Fedora 17.
885         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
886         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
887         * lib/strerror-override.h (strerror_override): Test it.
888         * lib/strerror-override.c (strerror_override): Likewise.
889
890 2012-06-03  Bruno Haible  <bruno@clisp.org>
891
892         error, strerror-override: Support new errno values from POSIX:2008.
893         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
894         ENOTRECOVERABLE.
895         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
896         platforms.
897         * lib/strerror-override.c (strerror_override): Conditionalize the
898         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
899         * lib/strerror-override.h (strerror_override): Declare also if
900         GNULIB_defined_EOWNERDEAD is defined.
901         * tests/test-errno.c (e130, e131): New variables.
902         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
903         ENOTRECOVERABLE.
904         Reported by Paolo Bonzini.
905
906 2012-05-31  Jim Meyering  <meyering@redhat.com>
907
908         savewd: add missing dependency on sys_wait module
909         * modules/savewd (Depends-on): Add sys_wait, needed at least
910         for MSVC.  Report and suggested change by Michael Goffioul.
911
912 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
913
914         system-quote-tests: port to CentOS 5
915         Problem reported by Tom G. Christensen in
916         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
917         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
918
919 2012-05-29  Jim Meyering  <meyering@redhat.com>
920
921         maint: fix typos in comments and ChangeLog
922         Culprits identified and fixed mostly automatically using these commands:
923         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
924         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
925         using http://github.com/lyda/misspell-check
926         * ChangeLog: Fix typos.
927         * doc/solaris-versions: Likewise.
928         * lib/regexec.c (re_search_stub): Likewise.
929         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
930
931 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
932
933         manywarnings: remove duplicate -Wmultichar entry
934         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
935         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
936         so keep the entry marked as documented.
937
938 2012-05-27  Karl Berry  <karl@gnu.org>
939
940         * config/srclist.txt (mktime.c): remove last libc sync,
941         perhaps just temporarily.
942
943 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
944
945         regex: don't assume uint64_t or uint32_t
946         * lib/regcomp.c (init_word_char): Don't assume that the types
947         uint64_t and uint32_t exist.  The C standard doesn't guarantee
948         them, and on some 32-bit compilers there is no uint64_t.
949         Problem reported by Gianluigi Tiesi in
950         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
951
952 2012-05-25  Jim Meyering  <meyering@redhat.com>
953
954         maint.mk: add strncpy-prohibiting syntax-check rule
955         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
956
957 2012-05-24  Jim Meyering  <meyering@redhat.com>
958
959         maint.mk: compute $(gpg_key_ID) more portably
960         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
961         That use of sed is not portable to some fringe systems.
962         Reported by Paul Eggert in
963         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
964
965 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
966
967         mktime: sync from glibc
968         * config/srclist.txt: Uncomment mktime.c.
969         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
970         First, indent with tabs, since glibc uses tabs and doesn't want to
971         change and we'd rather be identical to glibc.  Also, two small
972         coding changes:
973         (isdst_differ): Use &&, not &, as && is the usual style.
974         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
975         for clarity.
976
977 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
978
979         announce-gen: du -h is more portable than du --human
980         * build-aux/announce-gen (sizes): Invoke du with -h instead
981         of --human.  Accept leading white space in its output.
982
983 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
984
985         announce-gen: Improve diagnostics.
986         * build-aux/announce-gen: When parsing command line options,
987         prefer "announce-gen: option --release-type requires an argument"
988         to "Option release-type requires an argument".
989
990 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
991
992         maint.mk: gpg_key_ID: use sed more portably
993         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
994         the closing brace.
995         (refresh-po): Fuse two sed invocations into one.
996
997 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
998
999         gitlog-to-changelog: support the log message format used in Bison.
1000         * build-aux/gitlog-to-changelog: Support --strip-tab and
1001         --strip-cherry-picked.
1002
1003 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1004
1005         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
1006         the rest of the current time slice to another thread in the current
1007         process. So if the thread that feeds the file decscriptor we're
1008         polling is not in the current process, we get busy-waiting.
1009         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
1010         Patch from Theodore Leblond.
1011         * lib/select.c: Split polling out of the loop that sets the output
1012         fd_sets.  Check for zero result and loop if the wait timeout is
1013         infinite.
1014
1015 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1016
1017         select: Fix build error on IRIX 6.5.
1018         * lib/select.c: Include stddef.h for NULL.
1019
1020 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1021
1022         gc: fix libgcrypt detection on older machines.
1023         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
1024         copyright years because the file has been distributed every year
1025         since it was created.
1026
1027 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1028
1029         crypto: fix bug in large buffer handling
1030         Problem reported by Serge Belyshev for glibc in
1031         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
1032         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
1033         * lib/md4.c (md4_process_block):
1034         * lib/md5.c (md5_process_block):
1035         * lib/sha1.c (sha1_process_block):
1036         * lib/sha256.c (sha256_process_block):
1037         Don't assume the buffer length is less than 2**32.
1038         * lib/sha512.c (sha512_process_block): Likewise.
1039         Here, the bug is present only in the rare case where the host does
1040         not support uint64_t or where size_t is wider than 64 bits.
1041         Use u64size to work around the problems.
1042         * lib/u64.h (u64size): New macro.
1043
1044 2012-05-15  Pádraig Brady  <P@draigBrady.com>
1045
1046         fsusage: fix block size returned on older Linux 2.6
1047
1048         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
1049         which is available since Linux 2.6.
1050         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
1051         when the member is available so it can be used as a fallback.
1052         * doc/posix-functions/statvfs.texi: Mention the hang issue
1053         on Linux < 2.6.36.
1054
1055 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1056
1057         bootstrap: suppress stderr chatter
1058         * build-aux/bootstrap (insert_sorted_if_absent, main program):
1059         Omit unnecessary chatter to stderr.  The main program chatter
1060         was there only inadvertantly.
1061
1062         bootstrap: .gitignore files created by autopoint, libtool
1063         I ran into this problem when bootstrapping the latest diffutils.
1064         After './bootstrap', 'git status' reported lots of untracked files
1065         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
1066         autopoint and do not need to be version-controlled.
1067         * build-aux/bootstrap: Put into .gitignore the files that
1068         autopoint and libtool create, by keeping track of files that exist
1069         after but not before these programs are run.
1070         (version_controlled_file): Move up.  2nd arg is now full file
1071         name, not base name; this is more convenient.  Put CVS at the end,
1072         as it's now somewhat deprecated.
1073
1074 2012-05-14  Jim Meyering  <meyering@redhat.com>
1075
1076         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
1077         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
1078         definition.  Reported by Bruno Haible.
1079
1080 2012-05-13  Bruno Haible  <bruno@clisp.org>
1081             Paul Eggert  <eggert@cs.ucla.edu>
1082
1083         binary-io: Define set_binary_mode function.
1084         * lib/binary-io.h (set_binary_mode): New function.
1085         (SET_BINARY): Define in terms of set_binary_mode.
1086         * modules/binary-io (configure.ac): Require AC_C_INLINE.
1087         * tests/test-binary-io.c (main): Accept an argument, and test either
1088         set_binary_mode or SET_BINARY depending on the argument.
1089         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
1090         argument. Clean up also t-bin-out0.tmp.
1091
1092 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1093
1094         bootstrap: take advantage of POSIX shell features
1095
1096         The 'bootstrap' script offered by Gnulib script already uses POSIX
1097         shell features (like $((...)) arithmetic expansions) that are not
1098         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
1099         means that bootstrap must already be run using a proper POSIX shell,
1100         which will thus provide more features, like ${var#pattern} parameter
1101         expansion or inversion of a command exit status with '!'.  We can
1102         thus use these features to improve the clarity and the performances
1103         of the bootstrap script.
1104
1105         Suggested by Eric Blake.
1106
1107         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
1108         of sed/expr plus command substitutions, to save some forks.  While
1109         we are at it, prefer the POSIX $(...) form of command substitution,
1110         rather than the legacy form `...` (since the former is visually
1111         clearer and interacts better with quoting), and prefer the idiom:
1112           "if ! CMD; then ACTION ..."
1113         over the idiom:
1114           "if CMD; then :; else ACTION ..."
1115         which was required by legacy Bourne shells not supporting '!'.
1116
1117 2012-05-12  Bruno Haible  <bruno@clisp.org>
1118
1119         system-quote: Add more comments.
1120         * lib/system-quote.h: Add more comments about wilcards and limitations.
1121         Suggested by Eli Zaretskii <eliz@gnu.org>.
1122
1123         sh-quote, system-quote: Add comments about wildcards.
1124         * lib/sh-quote.h: Clarify what happens with wildcard characters.
1125         * lib/system-quote.h: Likewise.
1126         Reported by Eli Zaretskii <eliz@gnu.org>.
1127
1128 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1129
1130         fsusage: check for GNU/Linux statvfs problem dynamically
1131         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
1132         Define STAT_STATFS2_BSIZE too, since in this case the code now
1133         checks dynamically whether statvfs is reliable, falling back on
1134         Linux-style statfs otherwise.
1135         (statvfs_works): New function, for dynamically testing statvfs.
1136         (get_fs_usage) [STAT_STATVFS]: Use it.
1137         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1138         statvfs on GNU/Linux hosts, since it's now done dynamically.
1139
1140 2012-05-10  Bruno Haible  <bruno@clisp.org>
1141
1142         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1143         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1144         '?' character.
1145         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1146         * tests/test-system-quote-main.c (check_all): Check also strings like
1147         "??????????".
1148         Reported by Eli Zaretskii <eliz@gnu.org>.
1149
1150 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1151
1152         _Noreturn: port config.h to gcc -Wundef
1153         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1154         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1155         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1156
1157 2012-05-10  Bruno Haible  <bruno@clisp.org>
1158
1159         system-quote: Refactor.
1160         * lib/system-quote.h (system_quote_copy): Fix comment.
1161         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1162         New functions, extracted from system_quote_copy.
1163         (system_quote_length, system_quote_copy): Use these functions.
1164         Reported by Paul Eggert.
1165
1166 2012-05-08  Bruno Haible  <bruno@clisp.org>
1167
1168         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1169         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1170
1171 2012-05-08  Bruno Haible  <bruno@clisp.org>
1172
1173         Tests for module 'system-quote'.
1174         * modules/system-quote-tests: New file.
1175         * tests/test-system-quote.sh: New file.
1176         * tests/test-system-quote-main.c: New file.
1177         * tests/test-system-quote-child.c: New file.
1178
1179         New module 'system-quote'.
1180         * lib/system-quote.h: New file.
1181         * lib/system-quote.c: New file.
1182         * modules/system-quote: New file.
1183
1184 2012-05-08  Bruno Haible  <bruno@clisp.org>
1185
1186         sh-quote: Make C++ safe and allow multiple inclusion.
1187         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1188         declarations in extern "C".
1189
1190 2012-05-08  Bruno Haible  <bruno@clisp.org>
1191
1192         sh-quote tests: Make tests stricter.
1193         * tests/test-sh-quote.c (check_one): Check the return value of
1194         shell_quote_copy.
1195         (main): Check a string with a CR character. Check a string that
1196         contains UCHAR_MAX.
1197
1198 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1199
1200         warnings.m4: provide a means to specify the program to compile.
1201         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1202         (gl_WARN_ADD): here.
1203         Use gl_AS_VAR_APPEND.
1204         Support an argument to specify the program to compile.
1205         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1206         AC_SUBST the WARN_CFLAGS when they are used.
1207         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1208         leave this to gl_WARN_ADD.
1209
1210 2012-05-08  Eric Blake  <eblake@redhat.com>
1211
1212         doc: recommendations on gettext version
1213         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1214         choice between versions.
1215         * DEPENDENCIES (gettext): Cover both approaches.
1216
1217 2012-05-08  Jim Meyering  <meyering@redhat.com>
1218
1219         init.sh: explain why EXEEXT support uses aliases rather than functions
1220         * tests/init.sh: Add a comment.
1221
1222         init.sh: don't let bash aliases interfere with tests
1223         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1224         is bash.  This avoids problems for those who alias standard commands to
1225         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1226         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1227
1228 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1229
1230         stdint: be more consistent with glibc, SunOS libc
1231         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1232         (gl_int_fast16_t, gl_uint_fast16_t)
1233         (gl_int_fast32_t, gl_uint_fast32_t)
1234         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1235         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1236         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1237         Be consistent with glibc by default, and with SunOS 5.10 and later
1238         if __sun is defined.  This lessens the likelihood of clashes if
1239         code compiled for older hosts is combined with code compiled for
1240         newer ones.  Problem reported by Niels Möller in
1241         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1242
1243 2012-05-07  Eric Blake  <eblake@redhat.com>
1244
1245         isatty: relax license to LGPLv2+
1246         * modules/isatty (License): Relax license.
1247
1248 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1249
1250         stat-size: comment fix
1251         * lib/stat-size.h: Remove obsolete comment about indenting.
1252
1253 2012-05-06  Bruno Haible  <bruno@clisp.org>
1254
1255         Tests for module 'sh-quote'.
1256         * modules/sh-quote-tests: New file.
1257         * tests/test-sh-quote.c: New file.
1258
1259 2012-05-06  Bruno Haible  <bruno@clisp.org>
1260
1261         sh-quote: Improve shell_quote_argv's signature.
1262         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1263         * lib/sh-quote.c (shell_quote_argv): Likewise.
1264
1265 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1266
1267         stdint: document issues with int_fast8_t etc.
1268         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1269         stdint.h substitutes may define these types differently.  See
1270         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1271
1272 2012-05-05  Bruno Haible  <bruno@clisp.org>
1273
1274         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1275         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1276         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1277         or 'guessing no (mishandles large arguments)'.
1278
1279 2012-05-05  Bruno Haible  <bruno@clisp.org>
1280
1281         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1282         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1283         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1284         set gl_cv_func_link_follows_symlink to "guessing no".
1285
1286 2012-05-05  Bruno Haible  <bruno@clisp.org>
1287
1288         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1289         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1290         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1291         "guessing no".
1292         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1293
1294 2012-05-05  Bruno Haible  <bruno@clisp.org>
1295
1296         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1297         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1298         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1299         set gl_cv_struct_dirent_d_ino to "guessing yes".
1300
1301 2012-05-05  Bruno Haible  <bruno@clisp.org>
1302
1303         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1304         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1305         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1306         "guessing yes".
1307
1308 2012-05-05  Bruno Haible  <bruno@clisp.org>
1309
1310         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1311         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1312         compiling to a glibc system, set gl_cv_func_signbit and
1313         gl_cv_func_signbit_gcc to "guessing yes".
1314
1315 2012-05-05  Bruno Haible  <bruno@clisp.org>
1316
1317         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1318         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1319         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1320         to "guessing yes".
1321         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1322         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1323
1324 2012-05-05  Bruno Haible  <bruno@clisp.org>
1325
1326         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1327         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1328         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1329         gl_cv_func_realpath_works to "guessing yes".
1330
1331 2012-05-05  Bruno Haible  <bruno@clisp.org>
1332
1333         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1334         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1335         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1336
1337 2012-05-04  Bruno Haible  <bruno@clisp.org>
1338
1339         Tweak last commit.
1340         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1341         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1342
1343 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1344
1345         unistd_h: make it easier to avoid sys_types_h
1346         This is useful for Emacs, which has its own method of porting to
1347         Windows, and which therefore does not need the sys_types_h module.
1348         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1349         code moved here from gl_SYS_TYPES_H.
1350         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1351         using the code directly.
1352         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1353         gl_SYS_TYPES_H.
1354         * modules/sys_types (Files):
1355         * modules/unistd (Files): Add m4/off_t.m4.
1356
1357 2012-05-03  Bruno Haible  <bruno@clisp.org>
1358
1359         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1360         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1361         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1362         "guessing yes" or "guessing no".
1363         (gl_FUNC_LSTAT): Update.
1364         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1365         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1366         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1367
1368 2012-05-03  Bruno Haible  <bruno@clisp.org>
1369
1370         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1371         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1372         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1373         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1374         cross-compiling, choose the first alternative on glibc systems.
1375         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1376
1377 2012-05-03  Bruno Haible  <bruno@clisp.org>
1378
1379         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1380         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1381         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1382
1383 2012-05-03  Bruno Haible  <bruno@clisp.org>
1384
1385         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1386         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1387
1388 2012-05-03  Bruno Haible  <bruno@clisp.org>
1389
1390         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1391         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1392         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1393         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1394         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1395         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1396         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1397         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1398         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1399         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1400         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1401         gl_cv_func_chown_ctime_works to "guessing yes".
1402         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1403         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1404         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1405         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1406         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1407         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1408         compiling to glibc systems, set gl_cv_func_open_directory_works to
1409         "guessing yes".
1410         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1411         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1412         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1413         "guessing yes".
1414         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1415         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1416         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1417         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1418         "guessing yes".
1419         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1420         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1421         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1422         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1423         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1424         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1425         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1426         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1427         "guessing yes".
1428         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1429         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1430         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1431         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1432         "guessing yes".
1433         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1434         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1435         "guessing yes".
1436         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1437         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1438         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1439         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1440         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1441         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1442         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1443         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1444         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1445         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1446         "guessing yes".
1447         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1448         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1449         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1450         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1451         "guessing yes".
1452         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1453         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1454         "guessing yes".
1455         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1456         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1457         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1458         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1459         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1460         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1461         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1462         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1463         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1464         "guessing yes".
1465         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1466         compiling to glibc systems, set gl_cv_func_mknod_works to
1467         "guessing yes".
1468         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1469         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1470         "guessing yes".
1471         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1472         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1473         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1474         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1475         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1476         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1477         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1478         compiling to glibc systems, set gl_cv_func_svid_putenv to
1479         "guessing yes".
1480         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1481         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1482         "guessing yes".
1483         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1484         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1485         "guessing yes".
1486         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1487         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1488         to "guessing yes".
1489         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1490         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1491         to "guessing yes".
1492         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1493         compiling to glibc systems, set gl_cv_func_rmdir_works to
1494         "guessing yes".
1495         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1496         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1497         gl_cv_func_unlink_parent_fails to "guessing yes".
1498         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1499         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1500         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1501         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1502         gl_cv_func_rename_dest_works to "guessing yes".
1503         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1504         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1505         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1506         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1507         "guessing yes".
1508         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1509         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1510         "guessing yes".
1511         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1512         compiling to glibc systems, set gl_cv_func_setenv_works to
1513         "guessing yes".
1514         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1515         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1516         "guessing yes".
1517         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1518         compiling to glibc systems, set gl_cv_func_sleep_works to
1519         "guessing yes".
1520         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1521         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1522         "guessing yes".
1523         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1524         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1525         "guessing yes".
1526         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1527         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1528         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1529         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1530         "guessing yes".
1531         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1532         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1533         "guessing yes".
1534         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1535         compiling to glibc systems, set gl_cv_func_usleep_works to
1536         "guessing yes".
1537         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1538         compiling to glibc systems, set gl_cv_func_futimesat_works to
1539         "guessing yes".
1540
1541 2012-05-03  Bruno Haible  <bruno@clisp.org>
1542
1543         Say "guessing yes" or "guessing no" when cross-compiling.
1544         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1545         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1546         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1547         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1548         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1549         am_cv_func_working_getline to "guessing yes" or "guessing no".
1550         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1551         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1552         (gl_FUNC_MEMMEM): When cross-compiling, set
1553         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1554         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1555         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1557         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1558         "guessing no".
1559         (gl_FUNC_STRCASESTR): When cross-compiling, set
1560         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1561         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1562         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1563         (gl_FUNC_STRSTR): When cross-compiling, set
1564         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1565         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1566         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1567         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1568         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1569
1570 2012-05-01  Bruno Haible  <bruno@clisp.org>
1571
1572         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1573         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1574         * build-aux/reloc-ldflags: Likewise.
1575         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1576
1577 2012-05-01  Bruno Haible  <bruno@clisp.org>
1578
1579         gnulib-tool: Remove transitional code.
1580         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1581         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1582
1583 2012-05-01  Bruno Haible  <bruno@clisp.org>
1584
1585         getcwd: Fix misindentation.
1586         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1587
1588 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1589
1590         exclude: process exclude and include directives in order
1591         This restores the pre-2009 behavior, and is part of a fix of a
1592         grep bug reported by Quentin Arce in
1593         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1594         * lib/exclude.c (struct exclude): Remove 'tail' member.
1595         (new_exclude_segment): Prepend the new segment instead of appending.
1596         Return void, since that's now more convenient.
1597         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1598         (file_name_matches): Renamed from excluded_file_name_p.
1599         (file_pattern_matches, file_name_matches):
1600         Return true if the pattern matches, not if it excludes.
1601         All callers changed.
1602         (excluded_file_name): Process the list in reverse order;
1603         since the list is now reversed this restores the pre-2009 behavior.
1604         (add_exclude): Adjust to new reversed-order list.  Use local var
1605         rather than macro, for clarity.
1606         * tests/test-exclude7.sh: Adjust to corrected behavior.
1607
1608         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1609         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1610         it's not possible here.  Handle the case of \ at end of pattern
1611         without dumping core.
1612         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1613
1614         _Noreturn: future-proof non-GNU and non-MSVC compilers
1615         * build-aux/snippet/_Noreturn.h (_Noreturn):
1616         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1617         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1618         C11 or later.  This is more likely to work with random future C
1619         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1620         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1621
1622         exclude: handle wildcards with FNM_EXTMATCH
1623         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1624         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1625         comment that "has wildcards" really means "has or may have
1626         wildcards".  Simplify by avoiding the need to call strcspn.
1627
1628 2012-04-29  Bruno Haible  <bruno@clisp.org>
1629
1630         gnulib-tool: Fix list of authors.
1631         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1632
1633 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1634
1635         bootstrap: support Automake-NG in $buildreq
1636         * bootstrap (check_versions): Handle automake and aclocal from
1637         Automake-NG specially.  They can be specified as respectively
1638         the "automake-ng" and "aclocal-ng" requirements.
1639
1640 2012-04-25  Eric Blake  <eblake@redhat.com>
1641
1642         bootstrap: only force latest Makefile.in.in for gettext module
1643         * build-aux/bootstrap (with_gettext): Only install latest
1644         Makefile.in.in for projects requesting bleeding edge gettext.
1645
1646 2012-04-22  Bruno Haible  <bruno@clisp.org>
1647
1648         doc: Mention reason for replacement on glibc/Linux systems.
1649         * doc/posix-functions/dprintf.texi: Mention the problem with special
1650         'long double' values.
1651         * doc/posix-functions/fprintf.texi: Likewise.
1652         * doc/posix-functions/printf.texi: Likewise.
1653         * doc/posix-functions/snprintf.texi: Likewise.
1654         * doc/posix-functions/sprintf.texi: Likewise.
1655         * doc/posix-functions/vdprintf.texi: Likewise.
1656         * doc/posix-functions/vfprintf.texi: Likewise.
1657         * doc/posix-functions/vprintf.texi: Likewise.
1658         * doc/posix-functions/vsnprintf.texi: Likewise.
1659         * doc/posix-functions/vsprintf.texi: Likewise.
1660         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1661         platforms with F_DUPFD_CLOEXEC problems.
1662         * doc/posix-functions/glob.texi: Mention which platforms are affected
1663         by the problem with symbolic links.
1664         * doc/posix-functions/linkat.texi: Mention the problem with
1665         AT_SYMLINK_FOLLOW on Linux.
1666
1667 2012-04-22  Bruno Haible  <bruno@clisp.org>
1668
1669         pwrite: Don't replace on all platforms.
1670         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1671
1672 2012-04-22  Bruno Haible  <bruno@clisp.org>
1673
1674         rint* tests: Avoid gcc warnings.
1675         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1676         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1677         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1678
1679 2012-04-21  Bruno Haible  <bruno@clisp.org>
1680
1681         users.txt: Update.
1682         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1683         switched from CVS to git, bzr, or svn.
1684
1685 2012-04-21  Bruno Haible  <bruno@clisp.org>
1686
1687         Large File Support for native Windows platforms.
1688
1689         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1690         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1691
1692         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1693         type.
1694         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1695         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1696         * doc/posix-headers/sys_types.texi: Mention the effect of the
1697         'largefile' module.
1698
1699         * lib/fcntl.in.h: Add comments about off_t.
1700         * modules/fcntl-h (Depends-on): Add sys_types.
1701
1702         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1703         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1704         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1705         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1706         * modules/unistd (Depends-on): Add sys_types.
1707         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1708
1709         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1710         instead of lseek.
1711         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1712         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1713         * modules/lseek (Depends-on): Add sys_types.
1714
1715         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1716         msvc-nothrow.h.
1717         (SetFileSize): New function.
1718         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1719         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1720         if Large File Support is requested.
1721         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1722         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1723
1724         * lib/stdio.in.h: Add comments about off_t.
1725         * modules/stdio (Depends-on): Add sys_types.
1726
1727         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1728         instead of ftello.
1729         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1730         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1731         (gl_PREREQ_FTELLO): New macro.
1732         * modules/ftello (Depends-on): Add sys_types.
1733         (configure.ac): Incoke gl_PREREQ_FTELLO.
1734
1735         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1736         instead of fseeko.
1737         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1738         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1739         (gl_PREREQ_FSEEKO): New macro.
1740         * modules/fseeko (Depends-on): Add sys_types.
1741         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1742
1743         * lib/sys_stat.in.h: Add comments about off_t.
1744         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1745         64-bit integer for st_size in 'struct stat'.
1746         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1747         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1748         * modules/sys_stat (Depends-on): Add sys_types.
1749         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1750
1751         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1752         instead of stat or _stat.
1753
1754         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1755         'struct _stati64' instead of fstat and 'struct stat'.
1756         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1757         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1758
1759         Reported by Ray Satiro <raysatiro@yahoo.com>.
1760
1761 2012-04-19  Eric Blake  <eblake@redhat.com>
1762
1763         bootstrap: accommodate older libtool
1764         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1765         Reported by Daniel P. Berrange.
1766
1767 2012-04-19  Jim Meyering  <meyering@redhat.com>
1768
1769         announce-gen: avoid failure due to lack of Digest::SHA1
1770         Even with the preferred Digest::SHA available, this script
1771         would fail when the backup module, Digest::SHA1, was not installed.
1772         * build-aux/announce-gen: Quote the conditional use of "use".
1773         Reported by Reuben Thomas in:
1774         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1775
1776         bootstrap: don't let a user's CDPATH setting affect this script
1777         When CDPATH is set, cd will sometimes generate output.
1778         When "cd" is run in a subshell whose output matters, that
1779         surprising-to-some output can cause malfunction.
1780         Unsetting CDPATH turns off this shell "feature."
1781         * build-aux/bootstrap (CDPATH): Unset.
1782         Reported by Reuben Thomas in:
1783         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1784         and inspired by his patch here:
1785         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1786
1787 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1788         and Jim Meyering  <meyering@redhat.com>
1789
1790         maint.mk: catch "see @xref{}" and similar
1791         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1792         prohibit "See also @xref{", "Also see @pxref{", and similar.
1793
1794 2012-04-16  Jim Meyering  <meyering@redhat.com>
1795
1796         bootstrap: really use gnulib's po/Makefile.in.in
1797         * build-aux/bootstrap: Correct the source file name in previous change.
1798         Reported by Akim Demaille.
1799
1800         configmake: correct minor inconsistency in Makefile rule
1801         * modules/configmake (Makefile.am): All other rules like this one
1802         run the final "mv -f ..." in the same backslash-continued command
1803         as the one that does everything else.  This one put the mv -f ...
1804         command on a separate, non-backslash-continued line.
1805         Make it like the others.
1806
1807         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1808         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1809         the one from gettext.  Reported by Akim Demaille.
1810
1811 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1812
1813         Fix recursion of install-* into po directories.
1814         Bison's install-pdf bug reported by Hans Aberg at
1815         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1816         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1817         (install-info, install-pdf, install-ps): New targets.
1818
1819 2012-04-16  Jim Meyering  <meyering@redhat.com>
1820
1821         maint: avoid spurious "make sc_maint" failure
1822         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1823         exempt all *.class file names, for lib/javaversion.class.
1824
1825 2012-04-15  Bruno Haible  <bruno@clisp.org>
1826
1827         lseek: Make configure test independent of environment.
1828         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1829         Windows, we know that lseek() on pipes is broken; skip the runtime
1830         test.
1831
1832 2012-04-14  Bruno Haible  <bruno@clisp.org>
1833
1834         stat: Bypass buggy override in mingw64.
1835         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1836         * lib/stat.c (stat) [mingw64]: Define to _stat.
1837         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1838
1839 2012-04-14  Bruno Haible  <bruno@clisp.org>
1840
1841         pathmax: Fix compilation error on MSVC 9.
1842         * modules/pathmax (Depends-on): Add unistd.
1843
1844 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1845
1846         README: document pointer comparison assumption
1847         * README (Portability guidelines): Document assumption about
1848         pointer comparisons, in response to a recent bug-gnulib comment by
1849         Jeffrey Kegler.
1850
1851 2012-04-12  Bruno Haible  <bruno@clisp.org>
1852
1853         Tests for module 'getrusage'.
1854         * modules/getrusage-tests: New file.
1855         * tests/test-getrusage.c: New file.
1856
1857         New module 'getrusage'.
1858         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1859         warn-on-use.h.
1860         (getrusage): New declaration.
1861         * lib/getrusage.c: New file.
1862         * m4/getrusage.m4: New file.
1863         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1864         is declared.
1865         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1866         HAVE_GETRUSAGE.
1867         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1868         snippet/c++defs, snippet/warn-on-use.
1869         (Makefile.am): Update generation of sys/resource.h. Substitute
1870         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1871         * modules/getrusage: New file.
1872         * doc/posix-functions/getrusage.texi: Mention the new module.
1873
1874 2012-04-12  Bruno Haible  <bruno@clisp.org>
1875
1876         Tests for module 'sys_resource'.
1877         * modules/sys_resource-tests: New file.
1878         * tests/test-sys_resource.c: New file.
1879
1880         New module 'sys_resource'.
1881         * lib/sys_resource.in.h: New file.
1882         * m4/sys_resource_h.m4: New file.
1883         * modules/sys_resource: New file.
1884         * doc/posix-headers/sys_resource.texi: Mention the new module.
1885
1886 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1887
1888         ioctl: Fix compilation error on mingw.
1889         * lib/ioctl.c: Include <windows.h>.
1890         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1891
1892 2012-04-04  Jim Meyering  <meyering@redhat.com>
1893
1894         regex: correct #pragma guard expression
1895         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1896         not 4.3.  Correct its cpp guard expression.
1897
1898 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1899
1900         regex: remove unnecessary type punning
1901         Problem reported by Vladimir Serbinenko in
1902         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1903         * lib/regex.h (struct re_pattern_buffer): Change the type of
1904         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1905         Fix comment to match code.
1906         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1907         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1908         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1909         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1910         (set_regs):
1911         Omit no-longer-necessary casts.
1912
1913 2012-04-03  Bruno Haible  <bruno@clisp.org>
1914
1915         Tests for module 'ilogbl'.
1916         * modules/ilogbl-tests: New file.
1917         * tests/test-ilogbl.c: New file.
1918
1919         New module 'ilogbl'.
1920         * lib/math.in.h (ilogbl): New declaration.
1921         * lib/ilogbl.c: New file.
1922         * m4/ilogbl.m4: New file.
1923         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1925         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1926         Split sed invocation, to avoid the limit of 100 substitutions of
1927         HP-UX 'sed'.
1928         * modules/ilogbl: New file.
1929         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1930         * doc/posix-functions/ilogbl.texi: Mention the new module.
1931
1932 2012-04-03  Bruno Haible  <bruno@clisp.org>
1933
1934         Tests for module 'ilogbf'.
1935         * modules/ilogbf-tests: New file.
1936         * tests/test-ilogbf.c: New file.
1937
1938         New module 'ilogbf'.
1939         * lib/math.in.h (ilogbf): New declaration.
1940         * lib/ilogbf.c: New file.
1941         * m4/ilogbf.m4: New file.
1942         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1944         REPLACE_ILOGBF.
1945         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1946         REPLACE_ILOGBF.
1947         * modules/ilogbf: New file.
1948         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1949         * doc/posix-functions/ilogbf.texi: Mention the new module.
1950
1951 2012-04-03  Bruno Haible  <bruno@clisp.org>
1952
1953         Tests for module 'ilogb'.
1954         * modules/ilogb-tests: New file.
1955         * tests/test-ilogb.c: New file.
1956         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1957         tests/test-logb-ieee.h.
1958
1959         New module 'ilogb'.
1960         * lib/math.in.h (ilogb): New declaration.
1961         * lib/ilogb.c: New file.
1962         * m4/ilogb.m4: New file.
1963         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1965         REPLACE_ILOGB.
1966         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1967         REPLACE_ILOGB.
1968         * modules/ilogb: New file.
1969         * tests/test-math-c++.cc: Check the declaration of ilogb.
1970         * doc/posix-functions/ilogb.texi: Mention the new module.
1971
1972 2012-04-03  Bruno Haible  <bruno@clisp.org>
1973
1974         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1975         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1976         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1977         (main): Check their values.
1978         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1979         problem.
1980
1981 2012-04-03  Bruno Haible  <bruno@clisp.org>
1982
1983         Tests for module 'logbl-ieee'.
1984         * modules/logbl-ieee-tests: New file.
1985         * tests/test-logbl-ieee.c: New file.
1986
1987         New module 'logbl-ieee'.
1988         * modules/logbl-ieee: New file.
1989
1990         Tests for module 'logb-ieee'.
1991         * modules/logb-ieee-tests: New file.
1992         * tests/test-logb-ieee.c: New file.
1993
1994         New module 'logb-ieee'.
1995         * modules/logb-ieee: New file.
1996
1997         Tests for module 'logbf-ieee'.
1998         * modules/logbf-ieee-tests: New file.
1999         * tests/test-logbf-ieee.c: New file.
2000         * tests/test-logb-ieee.h: New file.
2001
2002         New module 'logbf-ieee'.
2003         * modules/logbf-ieee: New file.
2004
2005 2012-04-03  Bruno Haible  <bruno@clisp.org>
2006
2007         Tests for module 'logbl'.
2008         * modules/logbl-tests: New file.
2009         * tests/test-logbl.c: New file.
2010
2011         New module 'logbl'.
2012         * lib/math.in.h (logbl): New declaration.
2013         * lib/logbl.c: New file.
2014         * m4/logbl.m4: New file.
2015         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
2016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
2017         REPLACE_LOGBL.
2018         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
2019         REPLACE_LOGBL.
2020         * modules/logbl: New file.
2021         * tests/test-math-c++.cc: Check the declaration of logbl.
2022         * doc/posix-functions/logbl.texi: Mention the new module.
2023
2024 2012-04-02  Bruno Haible  <bruno@clisp.org>
2025
2026         Tests for module 'logbf'.
2027         * modules/logbf-tests: New file.
2028         * tests/test-logbf.c: New file.
2029
2030         New module 'logbf'.
2031         * lib/math.in.h (logbf): New declaration.
2032         * lib/logbf.c: New file.
2033         * m4/logbf.m4: New file.
2034         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
2035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
2036         REPLACE_LOGBF.
2037         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
2038         REPLACE_LOGBF.
2039         * modules/logbf: New file.
2040         * tests/test-math-c++.cc: Check the declaration of logbf.
2041         * doc/posix-functions/logbf.texi: Mention the new module.
2042
2043 2012-04-02  Bruno Haible  <bruno@clisp.org>
2044
2045         logb tests: More tests.
2046         * tests/test-logb.h: New file, based on tests/test-logb.c and
2047         tests/test-frexp.h.
2048         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
2049         (main): Just invoke test_function.
2050         * modules/logb-tests (Files): Add tests/test-logb.h,
2051         tests/minus-zero.h, tests/randomd.c.
2052         (Makefile.am): Add randomd.c to test_logb_SOURCES.
2053
2054         logb: Provide replacement and workarounds.
2055         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
2056         is 1.
2057         * lib/logb.c: New file.
2058         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
2059         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
2060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
2061         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
2062         * modules/logb (Files): Add lib/logb.c.
2063         (Depends-on): Add isfinite, frexp, isnand.
2064         (configure.ac): Compile the replacement code logb.c if needed.
2065         * tests/test-math-c++.cc: Check the declaration of logb.
2066         * doc/posix-functions/logb.texi: Mention the replacement and the bug
2067         with subnormal numbers.
2068
2069 2012-04-02  Bruno Haible  <bruno@clisp.org>
2070
2071         log10* tests: Speed up.
2072         * tests/test-log10.h (test_function): Reduce amount of random numbers
2073         to test.
2074
2075 2012-04-01  Bruno Haible  <bruno@clisp.org>
2076
2077         logf-ieee: Fix test whether logf works.
2078         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
2079
2080 2012-04-01  Bruno Haible  <bruno@clisp.org>
2081
2082         log10l: Work around log10l-ieee test failure on IRIX 6.5.
2083         * lib/log10l.c: Include <float.h>
2084         (log10l): On IRIX, normalize the +Infinity value.
2085         * modules/log10l (Depends-on): Add 'float'.
2086         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
2087         +Infinity.
2088
2089         log10f-ieee: Work around test failure on NetBSD 5.1.
2090         * m4/log10f-ieee.m4: New file.
2091         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
2092         test whether log10f works with a negative argument. Replace it if not.
2093         * lib/log10f.c (log10f): For negative arguments, return NaN.
2094         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
2095         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
2096         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
2097
2098         log10f-ieee: Work around test failure on Solaris 9.
2099         * modules/log10f-ieee (Depends-on): Add log10-ieee.
2100         (configure.ac): Require gl_FUNC_LOG10F.
2101
2102         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2103         * m4/log10-ieee.m4: New file.
2104         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
2105         whether log10 works with a negative argument. Replace it if not.
2106         * lib/log10.c (log10): For negative arguments, return NaN.
2107         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
2108         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
2109         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
2110
2111         Tests for module 'log10l-ieee'.
2112         * modules/log10l-ieee-tests: New file.
2113         * tests/test-log10l-ieee.c: New file.
2114
2115         New module 'log10l-ieee'.
2116         * modules/log10l-ieee: New file.
2117
2118         Tests for module 'log10-ieee'.
2119         * modules/log10-ieee-tests: New file.
2120         * tests/test-log10-ieee.c: New file.
2121
2122         New module 'log10-ieee'.
2123         * modules/log10-ieee: New file.
2124
2125         Tests for module 'log10f-ieee'.
2126         * modules/log10f-ieee-tests: New file.
2127         * tests/test-log10f-ieee.c: New file.
2128         * tests/test-log10-ieee.h: New file.
2129
2130         New module 'log10f-ieee'.
2131         * modules/log10f-ieee: New file.
2132
2133 2012-04-01  Bruno Haible  <bruno@clisp.org>
2134
2135         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2136         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2137         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2138         workaround.
2139         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2140         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2142         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2143         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2144         (Depends-on): Update conditions.
2145         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2146         IRIX 6.5, OSF/1 5.1 problems.
2147
2148 2012-04-01  Bruno Haible  <bruno@clisp.org>
2149
2150         log10f: Work around OSF/1 5.1 bug.
2151         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2152         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2153         workaround.
2154         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2155         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2157         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2158         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2159         (Depends-on): Update conditions.
2160         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2161
2162 2012-04-01  Bruno Haible  <bruno@clisp.org>
2163
2164         log10: Work around OSF/1 5.1 bug.
2165         * lib/math.in.h (log10): New declaration.
2166         * lib/log10.c: New file.
2167         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2168         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2169         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2171         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2172         * modules/log10 (Files): Add lib/log10.c.
2173         (Depends-on): Add math.
2174         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2175         * tests/test-math-c++.cc: Check the declaration of log10.
2176         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2177
2178 2012-03-31  Bruno Haible  <bruno@clisp.org>
2179
2180         log10l tests: More tests.
2181         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2182         tests/minus-zero.h, tests/randoml.c.
2183         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2184         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2185         (main): Invoke test_function.
2186
2187         log10f tests: More tests.
2188         * modules/log10f-tests (Files): Add tests/test-log10.h,
2189         tests/minus-zero.h, tests/randomf.c.
2190         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2191         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2192         (main): Invoke test_function.
2193
2194         log10 tests: More tests.
2195         * tests/test-log10.h: New file.
2196         * modules/log10-tests (Files): Add tests/test-log10.h,
2197         tests/minus-zero.h, tests/randomd.c.
2198         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2199         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2200         (main): Invoke test_function.
2201
2202 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2203
2204         fflush: Fix syntax error.
2205         * lib/fflush.c: Include unused-parameter.h, needed for
2206         _GL_UNUSED_PARAMETER.
2207         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2208
2209 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2210
2211         regex: pacify GCC when compiling GRUB
2212         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2213         a diagnostic.  Reported by Vladimir Serbinenko in
2214         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2215
2216 2012-03-29  Eric Blake  <eblake@redhat.com>
2217
2218         stdio: don't assume gets any more
2219         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2220         support.
2221         * modules/stdio (Makefile.am): Likewise.
2222         * lib/stdio-read.c (gets): Likewise.
2223         * tests/test-stdio-c++.cc: Likewise.
2224         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2225         * lib/stdio.in.h (gets): Make warning occur in more places.
2226         * doc/posix-functions/gets.texi (gets): Update documentation.
2227         Reported by Christer Solskogen.
2228
2229         maint.mk: fix syntax checks without exclusions
2230         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2231         Reported by Daniel P. Berrange.
2232
2233         strerror_r: avoid compiler warning
2234         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2235         level.
2236
2237         fflush: avoid compiler warning
2238         * lib/fflush.c (update_fpos_cache): Mark variables that are
2239         potentially unused.
2240
2241 2012-03-25  Bruno Haible  <bruno@clisp.org>
2242
2243         Tests for module 'localeconv'.
2244         * modules/localeconv-tests: New file.
2245         * tests/test-localeconv.c: New file.
2246
2247         New module 'localeconv'.
2248         * lib/locale.in.h (localeconv): New declaration.
2249         * lib/localeconv.c: New file.
2250         * m4/localeconv.m4: New file.
2251         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2252         REPLACE_LOCALECONV.
2253         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2254         REPLACE_LOCALECONV.
2255         * modules/localeconv: New file.
2256         * modules/nl_langinfo (Depends-on): Add localeconv.
2257         * modules/human (Depends-on): Likewise.
2258         * doc/posix-functions/localeconv.texi: Mention the new module.
2259
2260 2012-03-25  Bruno Haible  <bruno@clisp.org>
2261
2262         locale: Provide a complete 'struct lconv'.
2263         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2264         'struct lconv' does not contain int_p_cs_precedes.
2265         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2266         * doc/posix-headers/locale.texi: Update.
2267
2268         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2269         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2270         * doc/posix-headers/locale.texi: Update.
2271
2272         locale: Provide a working 'struct lconv'.
2273         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2274         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2275         'struct lconv' does not even contain decimal_point.
2276         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2277         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2278         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2279         * doc/posix-headers/locale.texi: Mention the problems with
2280         'struct lconv'.
2281         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2282
2283 2012-03-24  Bruno Haible  <bruno@clisp.org>
2284
2285         Enable common subexpression optimization in GCC.
2286         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2287         macros.
2288         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2289         GCC attribute 'const'.
2290         (uc_locale_language): Declare with GCC attribute 'pure'.
2291         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2292         with GCC attribute 'const'.
2293         * lib/unictype.in.h (uc_is_general_category_withtable,
2294         uc_combining_class, uc_combining_class_name,
2295         uc_combining_class_long_name, uc_bidi_class_name,
2296         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2297         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2298         uc_decimal_value, uc_digit_value, uc_numeric_value,
2299         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2300         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2301         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2302         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2303         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2304         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2305         Declare with GCC attribute 'const'.
2306         (uc_general_category_name, uc_general_category_long_name,
2307         uc_general_category_byname, uc_general_category,
2308         uc_is_general_category, uc_combining_class_byname,
2309         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2310         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2311         Declare with GCC attribute 'pure'.
2312         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2313         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2314         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2315         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2316         with GCC attribute 'pure'.
2317         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2318         'const'.
2319         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2320         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2321         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2322         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2323         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2324         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2325         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2326         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2327         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2328         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2329         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2330         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2331         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2332         GCC attribute 'pure'.
2333         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2334         'const'.
2335         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2336         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2337         u32_strwidth): Declare with GCC attribute 'pure'.
2338
2339         Enable common subexpression optimization in GCC.
2340         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2341         (alphasort): Declare with GCC attribute 'pure'.
2342         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2343         (atoll): Declare with GCC attribute 'pure'.
2344         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2345         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2346         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2347         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2348         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2349         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2350         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2351
2352 2012-03-24  Bruno Haible  <bruno@clisp.org>
2353
2354         gnulib-tool: Avoid unintended error output from 'cmp'.
2355         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2356         "cmp -s", not "cmp > /dev/null".
2357
2358 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2359
2360         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2361
2362         It's not just Automake versions < 1.9b that creates an empty
2363         pkgdatadir at installation time if pkgdata_DATA is specified
2364         to empty; modern automake versions do this as well, at least
2365         until automake 1.11.4 (not yet released at the moment of writing,
2366         but soon to appear).  That behaviour was generally considered a
2367         feature rather than a bug, at least until this discussion:
2368         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2369
2370         See also automake bugs #10997 and #11030.
2371
2372         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2373         reference to relevant automake bug numbers.
2374         (func_emit_tests_Makefile_am): Likewise.
2375
2376 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2377
2378         announce-gen: use Digest::SHA when possible
2379         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2380         back to Digest::SHA1 if necessary.
2381
2382 2012-03-20  Jim Meyering  <meyering@redhat.com>
2383
2384         tests: avoid gcc warnings about argv vs. const initializers
2385         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2386         warnings about discarding 'const' qualifier from pointer target type.
2387         * tests/test-posix_spawn2.c (main): Likewise.
2388
2389 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2390
2391         README-release: simplify slightly
2392         * top/README-release: Run "git checkout master" only once.
2393
2394 2012-03-15  Mark Wielaard  <mark@klomp.org>
2395
2396         git-merge-changelog: add specific example on how to use with hg.
2397         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2398
2399 2012-03-18  Mark Wielaard  <mark@klomp.org>
2400
2401         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2402
2403 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2404
2405         git-version-gen: don't let "prefix" envvar cause trouble
2406         * build-aux/git-version-gen (prefix): Initialize properly,
2407         so as not to use a value specified via the environment.
2408         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2409
2410 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2411
2412         regex: diagnose too-large repeat counts in EREs
2413         Previously, the code did not diagnose the too-large repeat count
2414         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2415         as if it were 'b\{1000000000}', which is unexpected.
2416         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2417         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2418         is a reasonable one for this problem.  Another option would be to
2419         create a new REG_OVERFLOW error for repeat counts that are too large.
2420         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2421         count is too large, so that the caller can distinguish the two cases.
2422         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2423         "Too large" return code, and that repeat counts are one example of this.
2424
2425 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2426
2427         doc: some glibc x32 integer width issues
2428         * doc/posix-headers/sys_types.texi (sys/types.h):
2429         * doc/posix-headers/time.texi (time.h):
2430         Mention that glibc x32 does not conform to POSIX in a couple of
2431         areas related to integer widths.
2432
2433 2012-03-15  Bruno Haible  <bruno@clisp.org>
2434
2435         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2436         * lib/fma.c (VOLATILE): New macro.
2437         (FUNC): Use it to work around a GCC compiler bug.
2438
2439 2012-03-13  Bruno Haible  <bruno@clisp.org>
2440
2441         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2442         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2443         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2444         REPLACE_HYPOTL to 1.
2445         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2446
2447 2012-03-13  Bruno Haible  <bruno@clisp.org>
2448
2449         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2450         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2451         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2452         REPLACE_REMAINDERL to 1.
2453         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2454         bug.
2455
2456 2012-03-13  Bruno Haible  <bruno@clisp.org>
2457
2458         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2459         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2460         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2461         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2462         too big rounding errors.
2463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2464         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2465         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2466         (Depends-on): Update conditions.
2467         * tests/test-sqrtl.c (my_ldexpl): New function.
2468         (main): Add test of a particular value.
2469         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2470
2471 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2472
2473         doc: Update timer_* platform portability notes.
2474         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2475         that always return ENOSYS.
2476         * doc/posix-functions/timer_delete.texi: Likewise.
2477         * doc/posix-functions/timer_gettime.texi: Likewise.
2478         * doc/posix-functions/timer_settime.texi: Likewise.
2479
2480 2012-03-13  Bruno Haible  <bruno@clisp.org>
2481
2482         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2483         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2484         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2485         REPLACE_CBRTL to 1.
2486         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2487
2488 2012-03-13  Bruno Haible  <bruno@clisp.org>
2489
2490         remainderl: Avoid compilation error on AIX >= 5.2.
2491         * lib/math.in.h (remainderl): Undefine macro from the system header.
2492
2493 2012-03-13  Bruno Haible  <bruno@clisp.org>
2494
2495         Avoid compilation errors with MSVC option -fp:strict.
2496         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2497         * lib/cbrtf.c: Likewise.
2498         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2499
2500 2012-03-12  Bruno Haible  <bruno@clisp.org>
2501
2502         uninorm: Don't crash in out-of-memory conditions.
2503         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2504         gracefully.
2505         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2506         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2507
2508 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2509
2510         quote: fix syntax-check
2511         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2512         also exports quote_quoting_options.
2513
2514 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2515
2516         Collapse list of copyright years to ranges.  See
2517         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2518         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2519         build-aux/csharpexec.sh.in, build-aux/gnupload,
2520         build-aux/install-reloc, build-aux/javacomp.sh.in,
2521         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2522         build-aux/move-if-change, build-aux/reloc-ldflags,
2523         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2524
2525 2012-03-11  Bruno Haible  <bruno@clisp.org>
2526
2527         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2528         * m4/log2f-ieee.m4: New file.
2529         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2530         whether log2f works with a minus zero argument. Replace it if not.
2531         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2532         (Depends-on): Add log2-ieee.
2533         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2534         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2535
2536         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2537         * m4/log2-ieee.m4: New file.
2538         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2539         whether log2 works with a minus zero argument. Replace it if not.
2540         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2541         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2542         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2543
2544         Tests for module 'log2l-ieee'.
2545         * modules/log2l-ieee-tests: New file.
2546         * tests/test-log2l-ieee.c: New file.
2547
2548         New module 'log2l-ieee'.
2549         * modules/log2l-ieee: New file.
2550
2551         Tests for module 'log2-ieee'.
2552         * modules/log2-ieee-tests: New file.
2553         * tests/test-log2-ieee.c: New file.
2554
2555         New module 'log2-ieee'.
2556         * modules/log2-ieee: New file.
2557
2558         Tests for module 'log2f-ieee'.
2559         * modules/log2f-ieee-tests: New file.
2560         * tests/test-log2f-ieee.c: New file.
2561         * tests/test-log2-ieee.h: New file.
2562
2563         New module 'log2f-ieee'.
2564         * modules/log2f-ieee: New file.
2565
2566 2012-03-11  Bruno Haible  <bruno@clisp.org>
2567
2568         Tests for module 'log2l'.
2569         * modules/log2l-tests: New file.
2570         * tests/test-log2l.c: New file.
2571
2572         New module 'log2l'.
2573         * lib/math.in.h (log2l): New declaration.
2574         * lib/log2l.c: New file.
2575         * m4/log2l.m4: New file.
2576         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2578         REPLACE_LOG2L.
2579         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2580         REPLACE_LOG2L.
2581         * modules/log2l: New file.
2582         * tests/test-math-c++.cc: Check the declaration of log2l.
2583         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2584         and OSF/1 problems.
2585
2586 2012-03-11  Bruno Haible  <bruno@clisp.org>
2587
2588         Tests for module 'log2f'.
2589         * modules/log2f-tests: New file.
2590         * tests/test-log2f.c: New file.
2591
2592         New module 'log2f'.
2593         * lib/math.in.h (log2f): New declaration.
2594         * lib/log2f.c: New file.
2595         * m4/log2f.m4: New file.
2596         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2598         REPLACE_LOG2F.
2599         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2600         REPLACE_LOG2F.
2601         * modules/log2f: New file.
2602         * tests/test-math-c++.cc: Check the declaration of log2f.
2603         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2604         and OSF/1 and Cygwin problems.
2605
2606 2012-03-11  Bruno Haible  <bruno@clisp.org>
2607
2608         Tests for module 'log2'.
2609         * modules/log2-tests: New file.
2610         * tests/test-log2.c: New file.
2611         * tests/test-log2.h: New file.
2612
2613         New module 'log2'.
2614         * lib/math.in.h (log2): New declaration.
2615         * lib/log2.c: New file.
2616         * m4/log2.m4: New file.
2617         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2619         REPLACE_LOG2.
2620         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2621         REPLACE_LOG2.
2622         * modules/log2: New file.
2623         * tests/test-math-c++.cc: Check the declaration of log2.
2624         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2625         and OSF/1 and Cygwin problems.
2626
2627 2012-03-11  Bruno Haible  <bruno@clisp.org>
2628
2629         exp2* tests: More tests.
2630         * tests/test-exp2.h (test_function): Test all integral arguments that
2631         don't need to overflow or denormalized numbers.
2632         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2633         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2634         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2635
2636 2012-03-10  Bruno Haible  <bruno@clisp.org>
2637
2638         log1pl-ieee: Work around test failure on AIX 7.1.
2639         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2640
2641         log1pl-ieee: Work around test failure on IRIX 6.5.
2642         * m4/log1pl-ieee.m4: New file.
2643         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2644         test whether log1pl works with a minus zero argument. Replace it if
2645         not.
2646         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2648         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2649         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2650         (Depends-on): Update conditions.
2651         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2652         m4/signbit.m4.
2653         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2654         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2655
2656         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2657         * m4/log1pf-ieee.m4: New file.
2658         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2659         test whether log1pf works with a minus zero argument. Replace it if
2660         not.
2661         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2662         m4/signbit.m4.
2663         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2664         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2665
2666         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2667         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2668         (configure.ac): Require gl_FUNC_LOG1PF.
2669
2670         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2671         * m4/log1p-ieee.m4: New file.
2672         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2673         whether log1p works with a minus zero argument. Replace it if not.
2674         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2676         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2677         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2678         (Depends-on): Update conditions.
2679         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2680         m4/signbit.m4.
2681         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2682         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2683
2684         Tests for module 'log1pl-ieee'.
2685         * modules/log1pl-ieee-tests: New file.
2686         * tests/test-log1pl-ieee.c: New file.
2687
2688         New module 'log1pl-ieee'.
2689         * modules/log1pl-ieee: New file.
2690
2691         Tests for module 'log1p-ieee'.
2692         * modules/log1p-ieee-tests: New file.
2693         * tests/test-log1p-ieee.c: New file.
2694
2695         New module 'log1p-ieee'.
2696         * modules/log1p-ieee: New file.
2697
2698         Tests for module 'log1pf-ieee'.
2699         * modules/log1pf-ieee-tests: New file.
2700         * tests/test-log1pf-ieee.c: New file.
2701         * tests/test-log1p-ieee.h: New file.
2702
2703         New module 'log1pf-ieee'.
2704         * modules/log1pf-ieee: New file.
2705
2706 2012-03-10  Bruno Haible  <bruno@clisp.org>
2707
2708         Tests for module 'log1pl'.
2709         * modules/log1pl-tests: New file.
2710         * tests/test-log1pl.c: New file.
2711
2712         New module 'log1pl'.
2713         * lib/math.in.h (log1pl): New declaration.
2714         * lib/log1pl.c: New file.
2715         * m4/log1pl.m4: New file.
2716         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2718         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2719         * modules/log1pl: New file.
2720         * tests/test-math-c++.cc: Check the declaration of log1pl.
2721         * doc/posix-functions/log1pl.texi: Mention the new module.
2722
2723 2012-03-10  Bruno Haible  <bruno@clisp.org>
2724
2725         Tests for module 'log1pf'.
2726         * modules/log1pf-tests: New file.
2727         * tests/test-log1pf.c: New file.
2728
2729         New module 'log1pf'.
2730         * lib/math.in.h (log1pf): New declaration.
2731         * lib/log1pf.c: New file.
2732         * m4/log1pf.m4: New file.
2733         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2735         REPLACE_LOG1PF.
2736         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2737         REPLACE_LOG1PF.
2738         * modules/log1pf: New file.
2739         * tests/test-math-c++.cc: Check the declaration of log1pf.
2740         * doc/posix-functions/log1pf.texi: Mention the new module.
2741
2742 2012-03-10  Bruno Haible  <bruno@clisp.org>
2743
2744         log1p tests: More tests.
2745         * tests/test-log1p.h: New file.
2746         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2747         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2748         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2749         (main): Invoke test_function.
2750
2751         log1p: Provide replacement for Minix and MSVC.
2752         * lib/math.in.h (log1p): New declaration.
2753         * lib/log1p.c: New file.
2754         * m4/log1p.m4: New file.
2755         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2756         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2757         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2758         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2759         (Depends-on): Add math, isnand, log, round.
2760         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2761         HAVE_LOG1P is 0.
2762         * tests/test-math-c++.cc: Check the declaration of log1p.
2763         * doc/posix-functions/log1p.texi: Mention the replacement.
2764
2765 2012-03-10  Bruno Haible  <bruno@clisp.org>
2766
2767         math tests: Small simplification.
2768         * tests/test-exp.h (test_function): Use the same err_bound for
2769         'double' on platforms with sizeof (long double) == sizeof (double)
2770         than on platforms with sizeof (long double) > sizeof (double).
2771         * tests/test-exp2.h (test_function): Likewise.
2772         * tests/test-expm1.h (test_function): Likewise.
2773         * tests/test-log.h (test_function): Likewise.
2774
2775 2012-03-10  Bruno Haible  <bruno@clisp.org>
2776
2777         Fix some comments.
2778         * lib/expl.c: Fix an ambiguous comment.
2779         * lib/expm1.c: Likewise.
2780         * lib/expm1l.c: Likewise.
2781         * lib/exp2.c: Likewise.
2782         * lib/exp2l.c: Likewise.
2783
2784 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2785
2786         regex: allow inclusion of <regex.h> before <limits.h>
2787         Without this patch, portable programs had to include <limits.h> before
2788         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2789         I ran into this problem with a test version of GNU grep on Solaris 8.
2790         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2791         This is done conditionally so that this change can be merged
2792         back to glibc.
2793         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2794         using the included regex.
2795
2796         fts: depend on fdopendir
2797         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2798         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2799         problem was introduced when fdopendir was split out.
2800
2801 2012-03-10  Bruno Haible  <bruno@clisp.org>
2802
2803         Remove unused variables.
2804         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2805         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2806
2807 2012-03-10  Bruno Haible  <bruno@clisp.org>
2808
2809         isnanf-nolibm: Fix last commit.
2810         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2811
2812         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2813         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2814
2815 2012-03-10  Bruno Haible  <bruno@clisp.org>
2816
2817         logf-ieee: Work around test failure on NetBSD 5.1.
2818         * m4/logf-ieee.m4: New file.
2819         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2820         whether logf works with a negative argument. Replace it if not.
2821         * lib/logf.c (logf): For negative arguments, return NaN.
2822         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2823         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2824         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2825
2826         logf-ieee: Work around test failure on Solaris 9.
2827         * modules/logf-ieee (Depends-on): Add log-ieee.
2828         (configure.ac): Require gl_FUNC_LOGF.
2829
2830         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2831         * m4/log-ieee.m4: New file.
2832         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2833         log works with a negative argument. Replace it if not.
2834         * lib/log.c (log): For negative arguments, return NaN.
2835         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2836         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2837         * doc/posix-functions/log.texi: Mention the log-ieee module.
2838
2839         Tests for module 'logl-ieee'.
2840         * modules/logl-ieee-tests: New file.
2841         * tests/test-logl-ieee.c: New file.
2842
2843         New module 'logl-ieee'.
2844         * modules/logl-ieee: New file.
2845
2846         Tests for module 'log-ieee'.
2847         * modules/log-ieee-tests: New file.
2848         * tests/test-log-ieee.c: New file.
2849
2850         New module 'log-ieee'.
2851         * modules/log-ieee: New file.
2852
2853         Tests for module 'logf-ieee'.
2854         * modules/logf-ieee-tests: New file.
2855         * tests/test-logf-ieee.c: New file.
2856         * tests/test-log-ieee.h: New file.
2857
2858         New module 'logf-ieee'.
2859         * modules/logf-ieee: New file.
2860
2861 2012-03-10  Bruno Haible  <bruno@clisp.org>
2862
2863         log: Fix bug introduced on 2012-03-09.
2864         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2865
2866 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2867
2868         timer-time: link explicitly with pthreads on glibc
2869         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2870         to support static linking, when newer glibc is
2871         detected, as that contains pthread emulation of
2872         POSIX timer functions where required.
2873         * modules/timer-time: Depend on threadlib to
2874         pull in the appropriate library to link.
2875
2876 2012-03-10  Bruno Haible  <bruno@clisp.org>
2877
2878         log* tests: More tests.
2879         * tests/test-log.h: New file.
2880         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2881         (main): Invoke test_function.
2882         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2883         (main): Invoke test_function.
2884         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2885         (main): Invoke test_function.
2886         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2887         tests/randomd.c.
2888         (Makefile.am): Add randomd.c to test_log_SOURCES.
2889         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2890         tests/randomf.c.
2891         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2892         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2893         tests/randoml.c.
2894         (Depends-on): Add 'float'.
2895         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2896
2897 2012-03-09  Bruno Haible  <bruno@clisp.org>
2898
2899         logl: Work around OSF/1 5.1 bug.
2900         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2901         * lib/logl.c (logl): If logl exists, use it and provide just the
2902         workaround.
2903         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2904         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2906         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2907         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2908         (Depends-on): Update conditions.
2909         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2910
2911 2012-03-09  Bruno Haible  <bruno@clisp.org>
2912
2913         logf: Work around OSF/1 5.1 bug.
2914         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2915         * lib/logf.c (logf): If logf exists, use it and provide just the
2916         workaround.
2917         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2918         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2920         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2921         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2922         (Depends-on): Update conditions.
2923         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2924
2925 2012-03-09  Bruno Haible  <bruno@clisp.org>
2926
2927         log: Work around OSF/1 5.1 bug.
2928         * lib/math.in.h (log): New declaration.
2929         * lib/log.c: New file.
2930         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2931         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2932         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2934         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2935         * modules/log (Files): Add lib/log.c.
2936         (Depends-on): Add math.
2937         (configure.ac): If REPLACE_LOG is 1, compile an override.
2938         * tests/test-math-c++.cc: Check the declaration of log.
2939         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2940
2941 2012-03-09  Jim Meyering  <meyering@redhat.com>
2942
2943         readtokens.c: adjust wording in a comment
2944         * lib/readtokens.c: Insert omitted "that" in a comment.
2945
2946 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2947
2948         modechange: add notations +40, 00440, etc.
2949         * lib/modechange.c (mode_compile): Support new notations
2950         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2951
2952 2012-03-08  Bruno Haible  <bruno@clisp.org>
2953
2954         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2955         * m4/exp2l-ieee.m4: New file.
2956         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2957         test whether exp2l works with a NaN argument and with a negative
2958         infinity argument. Replace it if not.
2959         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2961         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2962         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2963         (Depends-on): Update conditions.
2964         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2965         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2966         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2967
2968         Tests for module 'exp2l-ieee'.
2969         * modules/exp2l-ieee-tests: New file.
2970         * tests/test-exp2l-ieee.c: New file.
2971
2972         New module 'exp2l-ieee'.
2973         * modules/exp2l-ieee: New file.
2974
2975         Tests for module 'exp2-ieee'.
2976         * modules/exp2-ieee-tests: New file.
2977         * tests/test-exp2-ieee.c: New file.
2978
2979         New module 'exp2-ieee'.
2980         * modules/exp2-ieee: New file.
2981
2982         Tests for module 'exp2f-ieee'.
2983         * modules/exp2f-ieee-tests: New file.
2984         * tests/test-exp2f-ieee.c: New file.
2985         * tests/test-exp2-ieee.h: New file.
2986
2987         New module 'exp2f-ieee'.
2988         * modules/exp2f-ieee: New file.
2989
2990 2012-03-08  Bruno Haible  <bruno@clisp.org>
2991
2992         Tests for module 'exp2l'.
2993         * modules/exp2l-tests: New file.
2994         * tests/test-exp2l.c: New file.
2995
2996         New module 'exp2l'.
2997         * lib/math.in.h (exp2l): New declaration.
2998         * lib/exp2l.c: New file.
2999         * lib/expl-table.c: New file, extracted from lib/expl.c.
3000         * lib/expl.c (gl_expl_table): New declaration.
3001         (expl): Remove expl_table. Update reference.
3002         * m4/exp2l.m4: New file.
3003         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
3004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
3005         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
3006         * modules/exp2l: New file.
3007         * modules/expl (Files): Add lib/expl-table.c.
3008         (configure.ac): Compile also expl-table.c.
3009         * tests/test-math-c++.cc: Check the declaration of exp2l.
3010         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
3011         problem.
3012
3013 2012-03-08  Bruno Haible  <bruno@clisp.org>
3014
3015         Tests for module 'exp2f'.
3016         * modules/exp2f-tests: New file.
3017         * tests/test-exp2f.c: New file.
3018
3019         New module 'exp2f'.
3020         * lib/math.in.h (exp2f): New declaration.
3021         * lib/exp2f.c: New file.
3022         * m4/exp2f.m4: New file.
3023         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
3024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
3025         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
3026         * modules/exp2f: New file.
3027         * tests/test-math-c++.cc: Check the declaration of exp2f.
3028         * doc/posix-functions/exp2f.texi: Mention the new module and the
3029         IRIX problem.
3030
3031 2012-03-08  Bruno Haible  <bruno@clisp.org>
3032
3033         Tests for module 'exp2'.
3034         * modules/exp2-tests: New file.
3035         * tests/test-exp2.c: New file.
3036         * tests/test-exp2.h: New file.
3037
3038         New module 'exp2'.
3039         * lib/math.in.h (exp2): New declaration.
3040         * lib/exp2.c: New file.
3041         * m4/exp2.m4: New file.
3042         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
3043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
3044         REPLACE_EXP2.
3045         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
3046         REPLACE_EXP2.
3047         * modules/exp2: New file.
3048         * tests/test-math-c++.cc: Check the declaration of exp2.
3049         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
3050         and OpenBSD problems.
3051
3052 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3053
3054         savedir: fix comment typo
3055         * lib/savedir.c (savedirstream): Fix typo in comment.
3056
3057 2012-03-08  Bruno Haible  <bruno@clisp.org>
3058
3059         test-readtokens.c: use const; remove unwarranted cast
3060         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
3061
3062 2012-03-08  Bruno Haible  <bruno@clisp.org>
3063
3064         fmal: Avoid compilation error on AIX.
3065         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
3066         AIX 5.2..7.1.
3067
3068 2012-03-08  Bruno Haible  <bruno@clisp.org>
3069
3070         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
3071         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
3072         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
3073         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
3074         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
3075         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
3076         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
3077
3078 2012-03-08  Bruno Haible  <bruno@clisp.org>
3079
3080         remainderf: Override buggy system function on IRIX 6.5.
3081         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
3082         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
3083         when it exists.
3084         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
3085
3086 2012-03-08  Jim Meyering  <meyering@redhat.com>
3087
3088         test-readtokens.c: avoid const-related compilation warnings
3089         * tests/test-readtokens.c: Avoid const-related compilation warnings.
3090
3091 2012-03-07  Jim Meyering  <meyering@redhat.com>
3092             Bruno Haible  <bruno@clisp.org>
3093
3094         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
3095         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
3096         tests/randomd.c.
3097         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
3098         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
3099         tests/randoml.c.
3100         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
3101
3102 2012-03-07  Bruno Haible  <bruno@clisp.org>
3103
3104         expm1l: Avoid compilation error on AIX.
3105         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
3106         AIX 5.2..7.1.
3107
3108 2012-03-07  Bruno Haible  <bruno@clisp.org>
3109
3110         expm1l: Don't override undeclared system function on IRIX 6.5.
3111         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
3112         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
3113         it exists. Set HAVE_DECL_EXPM1L.
3114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
3115         HAVE_EXPM1L.
3116         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
3117         HAVE_EXPM1L.
3118         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
3119
3120 2012-03-07  Bruno Haible  <bruno@clisp.org>
3121
3122         remainderl: Don't override undeclared system function on IRIX 6.5.
3123         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
3124         HAVE_REMAINDERL.
3125         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
3126         declared when it exists. Set HAVE_DECL_REMAINDERL.
3127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
3128         not HAVE_REMAINDERL.
3129         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
3130         HAVE_REMAINDERL.
3131         * doc/posix-functions/remainderl.texi: Mention missing declaration
3132         problem.
3133
3134 2012-03-07  Bruno Haible  <bruno@clisp.org>
3135
3136         rintf: Don't override undeclared system function on IRIX 6.5.
3137         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3138         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3139         exists. Set HAVE_DECL_RINTF.
3140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3141         HAVE_RINTF.
3142         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3143         HAVE_RINTF.
3144         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3145
3146 2012-03-07  Bruno Haible  <bruno@clisp.org>
3147
3148         roundl: Avoid compilation error on AIX.
3149         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3150         AIX 5.2..7.1.
3151
3152 2012-03-07  Bruno Haible  <bruno@clisp.org>
3153
3154         roundl: Don't override undeclared system function on IRIX 6.5.
3155         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3156         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3157         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3158         * modules/roundl (configure.ac): For replacement code, test
3159         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3160         (Depends-on): Update conditions.
3161         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3162
3163 2012-03-07  Bruno Haible  <bruno@clisp.org>
3164
3165         roundf: Don't override undeclared system function on IRIX 6.5.
3166         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3167         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3168         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3169         * modules/roundf (configure.ac): For replacement code, test
3170         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3171         (Depends-on): Update conditions.
3172         * modules/roundf-ieee (Depends-on): Update conditions.
3173         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3174
3175 2012-03-07  Bruno Haible  <bruno@clisp.org>
3176
3177         round: Don't override undeclared system function on IRIX 6.5.
3178         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3179         argument.
3180         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3181         also when it is not declared. Set HAVE_ROUND. For replacement code,
3182         test HAVE_ROUND, not HAVE_DECL_ROUND.
3183         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3184         not HAVE_DECL_ROUND.
3185         (Depends-on): Update conditions.
3186         * modules/round-ieee (Depends-on): Update conditions.
3187         * doc/posix-functions/round.texi: Mention the IRIX problem.
3188
3189 2012-03-07  Bruno Haible  <bruno@clisp.org>
3190
3191         copysignf: Don't override undeclared system function on IRIX 6.5.
3192         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3193         HAVE_COPYSIGNF.
3194         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3195         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3197         not HAVE_COPYSIGNF.
3198         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3199         HAVE_COPYSIGNF.
3200         * doc/posix-functions/copysignf.texi: Mention missing declaration
3201         problem.
3202
3203 2012-03-07  Jim Meyering  <meyering@redhat.com>
3204
3205         readtokens: add tests
3206         * modules/readtokens-tests: New file.
3207         * tests/test-readtokens.c: New file.
3208
3209 2012-03-07  Jim Meyering  <meyering@redhat.com>
3210
3211         quotearg: the module must now include quote.h
3212         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3213         So must the module.
3214         * modules/quotearg (Files): Add quote.h.
3215
3216 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3217
3218         readtokens: avoid core dumps with unusual calling patterns
3219         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3220         * lib/readtokens.c: Include limits.h.
3221         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3222         (readtoken): Don't cache the delimiters; the cache code was buggy
3223         if !delim && saved_delim, or if the new n_delim differs from the old.
3224         Also, it wasn't thread-safe.
3225
3226 2012-03-07  Bruno Haible  <bruno@clisp.org>
3227
3228         quote: Adhere to common module description layout.
3229         * modules/quote (Makefile.am): Add back empty section.
3230
3231 2012-03-06  Akim Demaille  <demaille@gostai.com>
3232
3233         quote: fuse into quotearg
3234         This patch is made for the benefit of Bison.
3235         quote does not leave the choice of the quoting style to the user.
3236         quoting_style provides poor customizability, yet quoting_options,
3237         which is very rich, is hidden inside quotearg.c.  So in order to
3238         allow quote customization, move its implementation to quotearg.c.
3239         * lib/quote.c: Remove.
3240         * modules/quote: Adjust.
3241         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3242         warning: provide all the members of literal structs.
3243         (quote_quoting_options): New.
3244         (quote, quote_n): Import implementation from quote.c.
3245         * lib/quote.h: Import the comments from quote.c.
3246         (quote_quoting_options): New.
3247
3248 2012-03-06  Bruno Haible  <bruno@clisp.org>
3249
3250         Tests for module 'expm1l-ieee'.
3251         * modules/expm1l-ieee-tests: New file.
3252         * tests/test-expm1l-ieee.c: New file.
3253
3254         New module 'expm1l-ieee'.
3255         * modules/expm1l-ieee: New file.
3256
3257         Tests for module 'expm1f-ieee'.
3258         * modules/expm1f-ieee-tests: New file.
3259         * tests/test-expm1f-ieee.c: New file.
3260
3261         New module 'expm1f-ieee'.
3262         * modules/expm1f-ieee: New file.
3263
3264         Tests for module 'expm1-ieee'.
3265         * modules/expm1-ieee-tests: New file.
3266         * tests/test-expm1-ieee.c: New file.
3267         * tests/test-expm1-ieee.h: New file.
3268
3269         New module 'expm1-ieee'.
3270         * modules/expm1-ieee: New file.
3271         * m4/expm1-ieee.m4: New file.
3272         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3273         whether expm1 works with a minus zero argument. Replace it if not.
3274         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3276         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3277         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3278         (Depends-on): Update conditions.
3279         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3280         AIX problem.
3281
3282 2012-03-06  Bruno Haible  <bruno@clisp.org>
3283
3284         Work around expm1f bug on IRIX 6.5.
3285         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3286         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3287         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3288         not work.
3289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3290         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3291         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3292         (Depends-on): Update conditions.
3293         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3294
3295 2012-03-06  Bruno Haible  <bruno@clisp.org>
3296
3297         Tests for module 'expm1l'.
3298         * modules/expm1l-tests: New file.
3299         * tests/test-expm1l.c: New file.
3300
3301         New module 'expm1l'.
3302         * lib/math.in.h (expm1l): New declaration.
3303         * lib/expm1l.c: New file.
3304         * m4/expm1l.m4: New file.
3305         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3306         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3307         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3308         * modules/expm1l: New file.
3309         * tests/test-math-c++.cc: Check the declaration of expm1l.
3310         * doc/posix-functions/expm1l.texi: Mention the new module.
3311
3312 2012-03-06  Bruno Haible  <bruno@clisp.org>
3313
3314         Tests for module 'expm1f'.
3315         * modules/expm1f-tests: New file.
3316         * tests/test-expm1f.c: New file.
3317
3318         New module 'expm1f'.
3319         * lib/math.in.h (expm1f): New declaration.
3320         * lib/expm1f.c: New file.
3321         * m4/expm1f.m4: New file.
3322         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3324         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3325         * modules/expm1f: New file.
3326         * tests/test-math-c++.cc: Check the declaration of expm1f.
3327         * doc/posix-functions/expm1f.texi: Mention the new module.
3328
3329 2012-03-06  Bruno Haible  <bruno@clisp.org>
3330
3331         Tests for module 'expm1'.
3332         * modules/expm1-tests: New file.
3333         * tests/test-expm1.c: New file.
3334         * tests/test-expm1.h: New file.
3335
3336         New module 'expm1'.
3337         * lib/math.in.h (expm1): New declaration.
3338         * lib/expm1.c: New file.
3339         * m4/expm1.m4: New file.
3340         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3341         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3342         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3343         * modules/expm1: New file.
3344         * tests/test-math-c++.cc: Check the declaration of expm1.
3345         * doc/posix-functions/expm1.texi: Mention the new module.
3346
3347 2012-03-06  Bruno Haible  <bruno@clisp.org>
3348
3349         math: Ensure declarations of math functions.
3350         * modules/acosf (Depends-on): Add 'extensions'.
3351         * modules/asinf (Depends-on): Likewise.
3352         * modules/atan2f (Depends-on): Likewise.
3353         * modules/atanf (Depends-on): Likewise.
3354         * modules/cbrt (Depends-on): Likewise.
3355         * modules/cbrtf (Depends-on): Likewise.
3356         * modules/cbrtl (Depends-on): Likewise.
3357         * modules/copysignf (Depends-on): Likewise.
3358         * modules/copysignl (Depends-on): Likewise.
3359         * modules/cosf (Depends-on): Likewise.
3360         * modules/coshf (Depends-on): Likewise.
3361         * modules/expf (Depends-on): Likewise.
3362         * modules/fabsf (Depends-on): Likewise.
3363         * modules/fabsl (Depends-on): Likewise.
3364         * modules/fmaf (Depends-on): Likewise.
3365         * modules/fmal (Depends-on): Likewise.
3366         * modules/fmodf (Depends-on): Likewise.
3367         * modules/fmodl (Depends-on): Likewise.
3368         * modules/frexpf (Depends-on): Likewise.
3369         * modules/frexpl (Depends-on): Likewise.
3370         * modules/hypot (Depends-on): Likewise.
3371         * modules/hypotf (Depends-on): Likewise.
3372         * modules/hypotl (Depends-on): Likewise.
3373         * modules/ldexpf (Depends-on): Likewise.
3374         * modules/ldexpl (Depends-on): Likewise.
3375         * modules/log10f (Depends-on): Likewise.
3376         * modules/log10l (Depends-on): Likewise.
3377         * modules/log1p (Depends-on): Likewise.
3378         * modules/logb (Depends-on): Likewise.
3379         * modules/logf (Depends-on): Likewise.
3380         * modules/modff (Depends-on): Likewise.
3381         * modules/modfl (Depends-on): Likewise.
3382         * modules/powf (Depends-on): Likewise.
3383         * modules/remainderf (Depends-on): Likewise.
3384         * modules/remainderl (Depends-on): Likewise.
3385         * modules/rintf (Depends-on): Likewise.
3386         * modules/rintl (Depends-on): Likewise.
3387         * modules/sinf (Depends-on): Likewise.
3388         * modules/sinhf (Depends-on): Likewise.
3389         * modules/sqrtf (Depends-on): Likewise.
3390         * modules/tanf (Depends-on): Likewise.
3391         * modules/tanhf (Depends-on): Likewise.
3392         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3393         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3394         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3395         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3396         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3397         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3398         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3399         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3400         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3401         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3402         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3403         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3404         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3405         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3406         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3407         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3408         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3409         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3410         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3411         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3412         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3413         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3414         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3415         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3416         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3417         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3418         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3419         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3420         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3421         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3422         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3423         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3424         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3425         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3426         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3427         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3428         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3429         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3430         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3431         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3432         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3433
3434 2012-03-06  Bruno Haible  <bruno@clisp.org>
3435
3436         math: Update module names in warnings.
3437         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3438         tanl): Use specific module name in warn-on-use warning.
3439
3440 2012-03-06  Bruno Haible  <bruno@clisp.org>
3441
3442         expl: Simplify computation.
3443         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3444
3445 2012-03-05  Bruno Haible  <bruno@clisp.org>
3446
3447         exp* tests: More tests.
3448         * tests/test-exp.h: New file.
3449         * tests/test-exp.c: Include <float.h> and test-exp.h.
3450         (main): Invoke test_function.
3451         * tests/test-expf.c: Include <float.h> and test-exp.h.
3452         (main): Invoke test_function.
3453         * tests/test-expl.c: Include <float.h> and test-exp.h.
3454         (main): Invoke test_function.
3455         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3456         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3457         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3458         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3459         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3460         (Depends-on): Add 'float'.
3461         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3462
3463         expl: Fix precision of computed result.
3464         * lib/expl.c: Completely rewritten.
3465         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3466         (Maintainer): Add me.
3467         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3468
3469 2012-03-05  Bruno Haible  <bruno@clisp.org>
3470
3471         cbrt* tests: More tests.
3472         * tests/test-cbrt.h: New file.
3473         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3474         (main): Invoke test_function.
3475         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3476         (main): Invoke test_function.
3477         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3478         (main): Invoke test_function.
3479         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3480         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3481         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3482         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3483         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3484         (Depends-on): Add 'float'.
3485         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3486
3487 2012-03-05  Bruno Haible  <bruno@clisp.org>
3488
3489         hypot* tests: More tests.
3490         * tests/test-hypot.h: New file, partially extracted from
3491         tests/test-hypotl.c.
3492         * tests/test-hypot.c: Include test-hypot.h.
3493         (main): Invoke test_function.
3494         * tests/test-hypotf.c: Include test-hypot.h.
3495         (main): Invoke test_function.
3496         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3497         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3498         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3499         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3500         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3501         tests/randomf.c.
3502         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3503         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3504         tests/randoml.c.
3505         (Depends-on): Add 'fpucw', 'float'.
3506         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3507
3508 2012-03-05  Bruno Haible  <bruno@clisp.org>
3509
3510         fpucw: Doc about FreeBSD.
3511         * lib/fpucw.h: Mention FreeBSD in comments.
3512
3513 2012-03-04  Bruno Haible  <bruno@clisp.org>
3514
3515         sqrt* tests: More tests.
3516         * tests/test-sqrt.h: New file.
3517         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3518         (main): Invoke test_function.
3519         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3520         (main): Invoke test_function.
3521         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3522         (main): Invoke test_function.
3523         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3524         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3525         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3526         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3527         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3528         (Depends-on): Add 'float'.
3529         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3530
3531 2012-03-04  Bruno Haible  <bruno@clisp.org>
3532
3533         remainder* tests: More tests.
3534         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3535         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3536         (main): Invoke test_function.
3537         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3538         (main): Invoke test_function.
3539         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3540         (main): Invoke test_function.
3541         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3542         tests/randomd.c.
3543         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3544         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3545         tests/randomf.c.
3546         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3547         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3548         tests/randoml.c.
3549         (Depends-on): Add 'float'.
3550         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3551
3552 2012-03-04  Bruno Haible  <bruno@clisp.org>
3553
3554         remainder, remainderf, remainderl: Fix computation for large quotients.
3555         * lib/remainder.c: Completely rewritten.
3556         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3557         USE_FLOAT.
3558         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3559         USE_LONG_DOUBLE.
3560         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3561         isnand, isinf. Remove round, fma.
3562         * modules/remainderf (Files): Add lib/remainder.c.
3563         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3564         Remove roundf, fmaf.
3565         * modules/remainderl (Files): Add lib/remainder.c.
3566         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3567         isinf. Remove roundl, fmal.
3568         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3569         REMAINDER_LIBM.
3570         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3571         REMAINDERF_LIBM.
3572         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3573         REMAINDERL_LIBM.
3574
3575 2012-03-04  Bruno Haible  <bruno@clisp.org>
3576
3577         fmod* tests: More tests.
3578         * tests/test-fmod.h (my_ldexp): New function.
3579         (test_function): Reduce amount of random numbers to test. Add tests
3580         of very large quotients x / y.
3581         * tests/test-fmod.c (MAX_EXP): New macro.
3582         * tests/test-fmodf.c (MAX_EXP): Likewise.
3583         * tests/test-fmodl.c (MAX_EXP): Likewise.
3584
3585 2012-03-04  Bruno Haible  <bruno@clisp.org>
3586
3587         fmod, fmodl: Fix computation for large quotients x / y.
3588         * lib/fmod.c: Completely rewritten.
3589         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3590         USE_LONG_DOUBLE.
3591         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3592         isnand. Remove fma.
3593         * modules/fmodl (Files): Add lib/fmod.c.
3594         (Depends-on): Add float, isfinite, signbit, fabsl,
3595         frexpl, ldexpl, isnanl. Remove fma.
3596         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3597         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3598
3599 2012-03-03  Bruno Haible  <bruno@clisp.org>
3600
3601         fmod* tests: More tests.
3602         * tests/test-fmod.h: New file.
3603         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3604         (main): Invoke test_function.
3605         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3606         (main): Invoke test_function.
3607         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3608         (main): Invoke test_function.
3609         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3610         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3611         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3612         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3613         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3614         (Depends-on): Add 'float'.
3615         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3616
3617 2012-03-03  Bruno Haible  <bruno@clisp.org>
3618
3619         rint* tests: More tests.
3620         * tests/test-rint.h: New file, partially extracted from
3621         tests/test-rintl.c.
3622         * tests/test-rint.c: Include test-rint.h.
3623         (main): Invoke test_function.
3624         * tests/test-rintf.c: Include test-rint.h.
3625         (main): Invoke test_function.
3626         * tests/test-rintl.c: Include test-rint.h.
3627         (main): Invoke test_function.
3628         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3629         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3630         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3631         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3632         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3633         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3634
3635 2012-03-03  Bruno Haible  <bruno@clisp.org>
3636
3637         modf* tests: More tests.
3638         * tests/test-modf.h: New file.
3639         * tests/test-modf.c: Include <float.h> and test-modf.h.
3640         (main): Invoke test_function.
3641         * tests/test-modff.c: Include <float.h> and test-modf.h.
3642         (main): Invoke test_function.
3643         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3644         (main): Invoke test_function.
3645         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3646         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3647         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3648         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3649         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3650         (Depends-on): Add 'float'.
3651         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3652
3653 2012-03-03  Bruno Haible  <bruno@clisp.org>
3654
3655         fabs* tests: More tests.
3656         * tests/test-fabs.h: New file, partially extracted from
3657         tests/test-fabsl.c.
3658         * tests/test-fabs.c (RANDOM): New macro.
3659         * tests/test-fabsf.c (RANDOM): New macro.
3660         * tests/test-fabsl.c (RANDOM): New macro.
3661         * modules/fabs-tests (Files): Add tests/randomd.c.
3662         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3663         * modules/fabsf-tests (Files): Add tests/randomf.c.
3664         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3665         * modules/fabsl-tests (Files): Add tests/randoml.c.
3666         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3667
3668 2012-03-03  Bruno Haible  <bruno@clisp.org>
3669
3670         ldexp* tests: More tests.
3671         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3672         * tests/test-ldexp.c (RANDOM): New macro.
3673         * tests/test-ldexpf.c (RANDOM): New macro.
3674         * tests/test-ldexpl.c (RANDOM): New macro.
3675         * modules/ldexp-tests (Files): Add tests/randomd.c.
3676         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3677         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3678         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3679         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3680         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3681
3682 2012-03-03  Bruno Haible  <bruno@clisp.org>
3683
3684         frexp* tests: More tests.
3685         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3686         * tests/test-frexp.c (RANDOM): New macro.
3687         * tests/test-frexpf.c (RANDOM): New macro.
3688         * tests/test-frexpl.c (RANDOM): New macro.
3689         * modules/frexp-tests (Files): Add tests/randomd.c.
3690         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3691         * modules/frexpf-tests (Files): Add tests/randomf.c.
3692         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3693         * modules/frexpl-tests (Files): Add tests/randoml.c.
3694         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3695
3696 2012-03-03  Bruno Haible  <bruno@clisp.org>
3697
3698         Support for pseudo-random numbers in tests.
3699         * tests/randomf.c: New file.
3700         * tests/randomd.c: New file.
3701         * tests/randoml.c: New file.
3702         * tests/macros.h (randomf, randomd, randoml): New declarations.
3703
3704 2012-03-03  Bruno Haible  <bruno@clisp.org>
3705
3706         frexp* tests: Refactor.
3707         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3708         * tests/test-frexp.c: Include and use it.
3709         * tests/test-frexpf.c: Likewise.
3710         * tests/test-frexpl.c: Likewise.
3711         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3712         * modules/frexpf-tests (Files): Likewise.
3713         * modules/frexpl-tests (Files): Likewise.
3714
3715 2012-03-02  Jim Meyering  <meyering@redhat.com>
3716
3717         maint: don't specify XZ_OPT=-9ev in dist-related rule
3718         Using xz's -9 option is warranted only if you have a very large
3719         tarball (see xz's documentation for the sizes vs. presets), and
3720         requires 64MiB of memory at decompression time.
3721         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3722         Automake's default of just "-e" is fine.  Override on a
3723         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3724
3725 2012-03-01  Eric Blake  <eblake@redhat.com>
3726
3727         maint.mk: allow announcement for non-gnulib project
3728         * maint.mk (announcement): Skip gnulib version if not used.
3729
3730 2012-03-01  Jim Meyering  <meyering@redhat.com>
3731
3732         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3733         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3734         envvar settings cannot interfere.  Otherwise, setting envvars like
3735         prohibit=foo require=bar, etc. would cause spurious test failures.
3736
3737 2012-03-01  Eric Blake  <eblake@redhat.com>
3738
3739         maint.mk: add per-line exclusions to prohibitions
3740         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3741         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3742         (sc_const_long_option): Use it.
3743
3744 2012-03-01  Bruno Haible  <bruno@clisp.org>
3745
3746         Tests for module 'expl-ieee'.
3747         * modules/expl-ieee-tests: New file.
3748         * tests/test-expl-ieee.c: New file.
3749
3750         New module 'expl-ieee'.
3751         * modules/expl-ieee: New file.
3752
3753         Tests for module 'exp-ieee'.
3754         * modules/exp-ieee-tests: New file.
3755         * tests/test-exp-ieee.c: New file.
3756
3757         New module 'exp-ieee'.
3758         * modules/exp-ieee: New file.
3759
3760         Tests for module 'expf-ieee'.
3761         * modules/expf-ieee-tests: New file.
3762         * tests/test-expf-ieee.c: New file.
3763         * tests/test-exp-ieee.h: New file.
3764
3765         New module 'expf-ieee'.
3766         * modules/expf-ieee: New file.
3767
3768 2012-02-29  Bruno Haible  <bruno@clisp.org>
3769
3770         cbrtl-ieee: Work around test failure on IRIX 6.5.
3771         * m4/cbrtl-ieee.m4: New file.
3772         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3773         test whether cbrtl works with a minus zero argument. Replace it if not.
3774         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3776         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3777         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3778         (Depends-on): Update conditions.
3779         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3780         m4/signbit.m4.
3781         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3782         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3783         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3784
3785         Tests for module 'cbrtl-ieee'.
3786         * modules/cbrtl-ieee-tests: New file.
3787         * tests/test-cbrtl-ieee.c: New file.
3788
3789         New module 'cbrtl-ieee'.
3790         * modules/cbrtl-ieee: New file.
3791
3792         Tests for module 'cbrt-ieee'.
3793         * modules/cbrt-ieee-tests: New file.
3794         * tests/test-cbrt-ieee.c: New file.
3795
3796         New module 'cbrt-ieee'.
3797         * modules/cbrt-ieee: New file.
3798
3799         Tests for module 'cbrtf-ieee'.
3800         * modules/cbrtf-ieee-tests: New file.
3801         * tests/test-cbrtf-ieee.c: New file.
3802         * tests/test-cbrt-ieee.h: New file.
3803
3804         New module 'cbrtf-ieee'.
3805         * modules/cbrtf-ieee: New file.
3806
3807 2012-02-29  Bruno Haible  <bruno@clisp.org>
3808
3809         cbrtf: Work around bug in IRIX 6.5 system function.
3810         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3811         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3812         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3813         work.
3814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3815         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3816         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3817         (Depends-on): Update conditions.
3818         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3819
3820 2012-02-29  Bruno Haible  <bruno@clisp.org>
3821
3822         Tests for module 'cbrtl'.
3823         * modules/cbrtl-tests: New file.
3824         * tests/test-cbrtl.c: New file.
3825
3826         New module 'cbrtl'.
3827         * lib/math.in.h (cbrtl): New declaration.
3828         * lib/cbrtl.c: New file.
3829         * m4/cbrtl.m4: New file.
3830         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3832         HAVE_DECL_CBRTL.
3833         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3834         HAVE_DECL_CBRTL.
3835         * modules/cbrtl: New file.
3836         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3837         * doc/posix-functions/cbrtl.texi: Mention the new module.
3838
3839 2012-02-29  Bruno Haible  <bruno@clisp.org>
3840
3841         Tests for module 'cbrtf'.
3842         * modules/cbrtf-tests: New file.
3843         * tests/test-cbrtf.c: New file.
3844
3845         New module 'cbrtf'.
3846         * lib/math.in.h (cbrtf): New declaration.
3847         * lib/cbrtf.c: New file.
3848         * m4/cbrtf.m4: New file.
3849         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3851         HAVE_DECL_CBRTF.
3852         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3853         HAVE_DECL_CBRTF.
3854         * modules/cbrtf: New file.
3855         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3856         * doc/posix-functions/cbrtf.texi: Mention the new module.
3857
3858 2012-02-29  Bruno Haible  <bruno@clisp.org>
3859
3860         cbrt: Provide replacement on MSVC and Minix.
3861         * lib/math.in.h (cbrt): New declaration.
3862         * lib/cbrt.c: New file.
3863         * m4/cbrt.m4: New file.
3864         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3866         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3867         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3868         (Depends-on): Add dependencies.
3869         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3870         * tests/test-math-c++.cc: Check the declaration of cbrt.
3871         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3872         replacement.
3873
3874 2012-02-29  Bruno Haible  <bruno@clisp.org>
3875
3876         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3877         * m4/hypotl-ieee.m4: New file.
3878         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3879         test whether hypotl works with mixed NaN and Infinity arguments.
3880         Replace it if not.
3881         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3883         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3884         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3885         (Depends-on): Update conditions.
3886         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3887         (Depends-on): Add hypot-ieee.
3888         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3889         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3890
3891         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3892         * m4/hypotf-ieee.m4: New file.
3893         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3894         test whether hypotf works with mixed NaN and Infinity arguments.
3895         Replace it if not.
3896         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3897         (Depends-on): Add hypot-ieee.
3898         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3899         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3900
3901         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3902         * lib/math.in.h (hypot): New declaration.
3903         * lib/hypot.c: New file.
3904         * m4/hypot-ieee.m4: New file.
3905         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3906         whether hypot works with mixed NaN and Infinity arguments. Replace it
3907         if not.
3908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3909         REPLACE_HYPOT.
3910         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3911         * modules/hypot (Files): Add lib/hypot.c.
3912         (Depends-on): Add dependencies.
3913         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3914         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3915         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3916         * tests/test-math-c++.cc: Check the declaration of hypot.
3917         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3918
3919         Tests for module 'hypotl-ieee'.
3920         * modules/hypotl-ieee-tests: New file.
3921         * tests/test-hypotl-ieee.c: New file.
3922
3923         New module 'hypotl-ieee'.
3924         * modules/hypotl-ieee: New file.
3925
3926         Tests for module 'hypot-ieee'.
3927         * modules/hypot-ieee-tests: New file.
3928         * tests/test-hypot-ieee.c: New file.
3929
3930         New module 'hypot-ieee'.
3931         * modules/hypot-ieee: New file.
3932
3933         Tests for module 'hypotf-ieee'.
3934         * modules/hypotf-ieee-tests: New file.
3935         * tests/test-hypotf-ieee.c: New file.
3936         * tests/test-hypot-ieee.h: New file.
3937
3938         New module 'hypotf-ieee'.
3939         * modules/hypotf-ieee: New file.
3940
3941 2012-02-29  Bruno Haible  <bruno@clisp.org>
3942
3943         Remove unused variables.
3944         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3945         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3946         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3947         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3948
3949 2012-02-29  Eric Blake  <eblake@redhat.com>
3950
3951         termios: fix pid_t always, not just for tcgetsid
3952         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3953         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3954         just when building tcgetsid.
3955
3956 2012-02-29  Bruno Haible  <bruno@clisp.org>
3957
3958         Tests for module 'hypotl'.
3959         * modules/hypotl-tests: New file.
3960         * tests/test-hypotl.c: New file.
3961
3962         New module 'hypotl'.
3963         * lib/math.in.h (hypotl): New declaration.
3964         * lib/hypotl.c: New file.
3965         * m4/hypotl.m4: New file.
3966         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3968         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3969         * modules/hypotl: New file.
3970         * tests/test-math-c++.cc: Check the hypotl declaration.
3971         * doc/posix-functions/hypotl.texi: Mention the new module.
3972
3973 2012-02-29  Eric Blake  <eblake@redhat.com>
3974
3975         tcgetsid: fix cygwin header bug
3976         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3977
3978         docs: update cygwin progress
3979         * doc/posix-functions/llround.texi (llround): Added in cygwin
3980         1.7.8.
3981         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3982         * doc/glibc-functions/program_invocation_name.texi
3983         (program_invocation_name): Likewise.
3984         * doc/glibc-functions/program_invocation_short_name.texi
3985         (program_invocation_short_name): Likewise.
3986         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3987         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3988         Likewise.
3989         * doc/posix-functions/pthread_spin_destroy.texi
3990         (pthread_spin_destroy): Added in cygwin 1.7.10.
3991         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3992         Likewise.
3993         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3994         Likewise.
3995         * doc/posix-functions/pthread_spin_trylock.texi
3996         (pthread_spin_trylock): Likewise.
3997         * doc/posix-functions/pthread_spin_unlock.texi
3998         (pthread_spin_unlock): Likewise.
3999         * doc/posix-functions/pthread_setschedprio.texi
4000         (pthread_setschedprio): Likewise.
4001         * doc/posix-functions/pthread_attr_getstack.texi
4002         (pthread_attr_getstack): Likewise.
4003         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
4004         (pthread_attr_getstackaddr): Likewise.
4005         * doc/glibc-functions/pthread_getattr_np.texi
4006         (pthread_getattr_np): Likewise.
4007         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
4008         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
4009         * doc/posix-functions/clock_settime.texi (clock_settime):
4010         Likewise.
4011         * doc/posix-functions/pthread_attr_getguardsize.texi
4012         (pthread_attr_getguardsize): Likewise.
4013         * doc/posix-functions/pthread_attr_setguardsize.texi
4014         (pthread_attr_setguardsize): Likewise.
4015         * doc/posix-functions/pthread_attr_setstack.texi
4016         (pthread_attr_setstack): Likewise.
4017         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
4018         (pthread_attr_setstackaddr): Likewise.
4019         * doc/posix-functions/clock_getcpuclockid.texi
4020         (clock_getcpuclockid): Likewise.
4021         * doc/posix-functions/pthread_getcpuclockid.texi
4022         (pthread_getcpuclockid): Likewise.
4023         * doc/glibc-functions/error.texi (error): Likewise.
4024         * doc/glibc-functions/error_at_line.texi (error_at_line):
4025         Likewise.
4026         * doc/glibc-functions/error_message_count.texi
4027         (error_message_count): Likewise.
4028         * doc/glibc-functions/error_one_per_line.texi
4029         (error_one_per_line): Likewise.
4030         * doc/glibc-functions/error_print_progname.texi
4031         (error_print_progname): Likewise.
4032         * doc/posix-functions/pthread_condattr_getclock.texi
4033         (pthread_condattr_getclock): Likewise.
4034         * doc/posix-functions/pthread_condattr_setclock.texi
4035         (pthread_condattr_setclock): Likewise.
4036         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
4037         Likewise.
4038         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
4039         * doc/glibc-functions/getpt.texi (getpt): Likewise.
4040         * doc/glibc-functions/get_current_dir_name.texi
4041         (get_current_dir_name): Likewise.
4042         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
4043         Likewise.
4044         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
4045         wrong return type.
4046         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
4047         1.7.11.
4048
4049 2012-02-29  Bruno Haible  <bruno@clisp.org>
4050
4051         Tests for module 'hypotf'.
4052         * modules/hypotf-tests: New file.
4053         * tests/test-hypotf.c: New file.
4054
4055         New module 'hypotf'.
4056         * lib/math.in.h (hypotf): New declaration.
4057         * lib/hypotf.c: New file.
4058         * m4/hypotf.m4: New file.
4059         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
4061         REPLACE_HYPOTF.
4062         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
4063         REPLACE_HYPOTF.
4064         * modules/hypotf: New file.
4065         * tests/test-math-c++.cc: Check the hypotf declaration.
4066         * doc/posix-functions/hypotf.texi: Mention the new module.
4067
4068         hypot: Prepare for hypotf module.
4069         * m4/hypot.m4: New file.
4070         * modules/hypot (Files): Add m4/hypot.m4.
4071         (configure.ac): Invoke gl_FUNC_HYPOT.
4072
4073 2012-02-29  Bruno Haible  <bruno@clisp.org>
4074
4075         hypot tests: More tests.
4076         * tests/test-hypot.c: Include <float.h>.
4077         (main): Add tests about overflow and underflow.
4078
4079 2012-02-29  Bruno Haible  <bruno@clisp.org>
4080
4081         math code: Add comments.
4082         * lib/acosl.c: Add comment about related glibc source files.
4083         * lib/asinl.c: Likewise.
4084         * lib/atanl.c: Likewise.
4085         * lib/expl.c: Likewise.
4086         * lib/logl.c: Likewise.
4087         * lib/sincosl.c: Likewise.
4088         * lib/sinl.c: Likewise.
4089         * lib/tanl.c: Likewise.
4090         * lib/trigl.c: Likewise.
4091         * lib/cosl.c: Likewise. Fix comments.
4092
4093 2012-02-28  Bruno Haible  <bruno@clisp.org>
4094
4095         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
4096         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
4097         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
4098         HUGE_VALL are defined.
4099         (numeric_equald): Renamed from numeric_equal.
4100         (numeric_equalf, numeric_equall): New functions.
4101         (main): Check also HUGE_VALF, HUGE_VALL.
4102         * modules/math-tests (Files): Add tests/macros.h.
4103         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
4104         HUGE_VALL.
4105
4106 2012-02-28  Bruno Haible  <bruno@clisp.org>
4107
4108         doc: Move ISO C11 feature notes into POSIX chapters.
4109         * doc/posix-functions/aligned_alloc.texi: Renamed from
4110         doc/glibc-functions/aligned_alloc.texi.
4111         * doc/posix-functions/quick_exit.texi: Renamed from
4112         doc/glibc-functions/quick_exit.texi.
4113         * doc/posix-headers/uchar.texi: Renamed from
4114         doc/glibc-headers/uchar.texi.
4115         * doc/posix-functions/c16rtomb.texi: Renamed from
4116         doc/glibc-functions/c16rtomb.texi.
4117         * doc/posix-functions/c32rtomb.texi: Renamed from
4118         doc/glibc-functions/c32rtomb.texi.
4119         * doc/posix-functions/mbrtoc16.texi: Renamed from
4120         doc/glibc-functions/mbrtoc16.texi.
4121         * doc/posix-functions/mbrtoc32.texi: Renamed from
4122         doc/glibc-functions/mbrtoc32.texi.
4123         * doc/gnulib.texi: Update.
4124         (Glibc uchar.h): Remove section.
4125         Suggested by Eric Blake.
4126
4127 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
4128
4129         stdnoreturn: port to MSVC better
4130         MSVC standard headers use __declspec(noreturn), so #define noreturn
4131         to empty on that platform.  Reported by Bruno Haible in
4132         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4133         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4134         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4135
4136 2012-02-28  Bruno Haible  <bruno@clisp.org>
4137
4138         doc: Mention new glibc headers and functions.
4139         * doc/glibc-headers/uchar.texi: New file.
4140         * doc/glibc-functions/aligned_alloc.texi: New file.
4141         * doc/glibc-functions/c16rtomb.texi: New file.
4142         * doc/glibc-functions/c32rtomb.texi: New file.
4143         * doc/glibc-functions/clock_adjtime.texi: New file.
4144         * doc/glibc-functions/fanotify_init.texi: New file.
4145         * doc/glibc-functions/fanotify_mark.texi: New file.
4146         * doc/glibc-functions/inet6_opt_append.texi: New file.
4147         * doc/glibc-functions/inet6_opt_find.texi: New file.
4148         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4149         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4150         * doc/glibc-functions/inet6_opt_init.texi: New file.
4151         * doc/glibc-functions/inet6_opt_next.texi: New file.
4152         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4153         * doc/glibc-functions/inet6_rth_add.texi: New file.
4154         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4155         * doc/glibc-functions/inet6_rth_init.texi: New file.
4156         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4157         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4158         * doc/glibc-functions/inet6_rth_space.texi: New file.
4159         * doc/glibc-functions/login.texi: New file.
4160         * doc/glibc-functions/mbrtoc16.texi: New file.
4161         * doc/glibc-functions/mbrtoc32.texi: New file.
4162         * doc/glibc-functions/name_to_handle_at.texi: New file.
4163         * doc/glibc-functions/ntp_gettimex.texi: New file.
4164         * doc/glibc-functions/open_by_handle_at.texi: New file.
4165         * doc/glibc-functions/prlimit.texi: New file.
4166         * doc/glibc-functions/process_vm_readv.texi: New file.
4167         * doc/glibc-functions/process_vm_writev.texi: New file.
4168         * doc/glibc-functions/recvmmsg.texi: New file.
4169         * doc/glibc-functions/scandirat.texi: New file.
4170         * doc/glibc-functions/sendmmsg.texi: New file.
4171         * doc/glibc-functions/setns.texi: New file.
4172         * doc/glibc-functions/timespec_get.texi: New file.
4173         * doc/gnulib.texi: Include them.
4174         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4175         sections.
4176         Reported by Eric Blake.
4177
4178 2012-02-28  Bruno Haible  <bruno@clisp.org>
4179
4180         Avoid compilation errors with MSVC option -fp:strict.
4181         * lib/floor.c: Use MSVC specific pragma fenv_access.
4182         * lib/ceil.c: Likewise.
4183         * lib/trunc.c: Likewise.
4184         * lib/round.c: Likewise.
4185         * lib/rint.c: Likewise.
4186         * lib/fma.c: Likewise.
4187         * lib/integer_length.c: Likewise.
4188         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4189         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4190         * tests/test-floor2.c: Likewise.
4191         * tests/test-floorf2.c: Likewise.
4192         * tests/test-ceil2.c: Likewise.
4193         * tests/test-ceilf2.c: Likewise.
4194         * tests/test-trunc2.c: Likewise.
4195         * tests/test-truncf2.c: Likewise.
4196         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4197
4198 2012-02-27  Bruno Haible  <bruno@clisp.org>
4199
4200         Tests for module 'sqrtl-ieee'.
4201         * modules/sqrtl-ieee-tests: New file.
4202         * tests/test-sqrtl-ieee.c: New file.
4203
4204         New module 'sqrtl-ieee'.
4205         * modules/sqrtl-ieee: New file.
4206
4207         Tests for module 'sqrt-ieee'.
4208         * modules/sqrt-ieee-tests: New file.
4209         * tests/test-sqrt-ieee.c: New file.
4210
4211         New module 'sqrt-ieee'.
4212         * modules/sqrt-ieee: New file.
4213
4214         Tests for module 'sqrtf-ieee'.
4215         * modules/sqrtf-ieee-tests: New file.
4216         * tests/test-sqrtf-ieee.c: New file.
4217         * tests/test-sqrt-ieee.h: New file.
4218
4219         New module 'sqrtf-ieee'.
4220         * modules/sqrtf-ieee: New file.
4221
4222 2012-02-27  Bruno Haible  <bruno@clisp.org>
4223
4224         remainderl-ieee: Work around test failure on OSF/1.
4225         * m4/remainderl-ieee.m4: New file.
4226         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4227         present, test whether remainderl works with a zero second argument.
4228         Replace it if not.
4229         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4231         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4232         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4233         (Depends-on): Update conditions.
4234         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4235         (Depends-on): Add remainder-ieee.
4236         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4237         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4238         module.
4239
4240         remainderf-ieee: Work around test failure on OSF/1.
4241         * m4/remainderf-ieee.m4: New file.
4242         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4243         present, test whether remainderf works with a zero second argument.
4244         Replace it if not.
4245         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4247         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4248         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4249         (Depends-on): Update conditions.
4250         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4251         (Depends-on): Add remainder-ieee.
4252         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4253         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4254         module.
4255
4256         remainder-ieee: Work around test failure on OSF/1.
4257         * m4/remainder-ieee.m4: New file.
4258         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4259         present, test whether remainder works with a zero second argument.
4260         Replace it if not.
4261         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4263         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4264         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4265         (Depends-on): Update dependencies.
4266         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4267         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4268         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4269
4270         Tests for module 'remainderl-ieee'.
4271         * modules/remainderl-ieee-tests: New file.
4272         * tests/test-remainderl-ieee.c: New file.
4273
4274         New module 'remainderl-ieee'.
4275         * modules/remainderl-ieee: New file.
4276
4277         Tests for module 'remainder-ieee'.
4278         * modules/remainder-ieee-tests: New file.
4279         * tests/test-remainder-ieee.c: New file.
4280
4281         New module 'remainder-ieee'.
4282         * modules/remainder-ieee: New file.
4283
4284         Tests for module 'remainderf-ieee'.
4285         * modules/remainderf-ieee-tests: New file.
4286         * tests/test-remainderf-ieee.c: New file.
4287         * tests/test-remainder-ieee.h: New file.
4288
4289         New module 'remainderf-ieee'.
4290         * modules/remainderf-ieee: New file.
4291
4292 2012-02-27  Bruno Haible  <bruno@clisp.org>
4293
4294         modff, modfl: Fix configure syntax error.
4295         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4296         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4297
4298 2012-02-27  Bruno Haible  <bruno@clisp.org>
4299
4300         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4301         * m4/fmodl-ieee.m4: New file.
4302         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4303         whether fmodl works with zero arguments. Replace it if not.
4304         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4305         (Depends-on): Add fmod-ieee.
4306         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4307         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4308
4309         fmodf-ieee: Work around test failure on OSF/1.
4310         * m4/fmodf-ieee.m4: New file.
4311         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4312         whether fmodf works with zero arguments. Replace it if not.
4313         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4315         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4316         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4317         (Depends-on): Update dependencies.
4318         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4319         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4320         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4321
4322         fmodf-ieee: Work around test failure on MSVC 9.
4323         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4324         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4325
4326         fmod-ieee: Work around test failures on OSF/1, mingw.
4327         * m4/fmod-ieee.m4: New file.
4328         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4329         whether fmod works with zero arguments. Replace it if not.
4330         * lib/math.in.h (fmod): New declaration.
4331         * lib/fmod.c: New file.
4332         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4334         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4335         * modules/fmod (Files): Add lib/fmod.c.
4336         (Depends-on): Add math, isinf, trunc, fma.
4337         (configure.ac): Arrange to compile lib/fmod.c if needed.
4338         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4339         m4/signbit.m4.
4340         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4341         * tests/test-math-c++.cc: Check the declaration of fmod.
4342         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4343
4344         fmodl-ieee: Fix test failures.
4345         * lib/fmodl.c (fmodl): Treat Inf specially.
4346         * modules/fmodl (Depends-on): Add isinf.
4347
4348         Tests for module 'fmodl-ieee'.
4349         * modules/fmodl-ieee-tests: New file.
4350         * tests/test-fmodl-ieee.c: New file.
4351
4352         New module 'fmodl-ieee'.
4353         * modules/fmodl-ieee: New file.
4354
4355         Tests for module 'fmod-ieee'.
4356         * modules/fmod-ieee-tests: New file.
4357         * tests/test-fmod-ieee.c: New file.
4358
4359         New module 'fmod-ieee'.
4360         * modules/fmod-ieee: New file.
4361
4362         Tests for module 'fmodf-ieee'.
4363         * modules/fmodf-ieee-tests: New file.
4364         * tests/test-fmodf-ieee.c: New file.
4365         * tests/test-fmod-ieee.h: New file.
4366
4367         New module 'fmodf-ieee'.
4368         * modules/fmodf-ieee: New file.
4369
4370 2012-02-27  Bruno Haible  <bruno@clisp.org>
4371
4372         Tests for module 'rintl-ieee'.
4373         * modules/rintl-ieee-tests: New file.
4374         * tests/test-rintl-ieee.c: New file.
4375
4376         New module 'rintl-ieee'.
4377         * modules/rintl-ieee: New file.
4378
4379         Tests for module 'rint-ieee'.
4380         * modules/rint-ieee-tests: New file.
4381         * tests/test-rint-ieee.c: New file.
4382
4383         New module 'rint-ieee'.
4384         * modules/rint-ieee: New file.
4385
4386         Tests for module 'rintf-ieee'.
4387         * modules/rintf-ieee-tests: New file.
4388         * tests/test-rintf-ieee.c: New file.
4389         * tests/test-rint-ieee.h: New file.
4390
4391         New module 'rintf-ieee'.
4392         * modules/rintf-ieee: New file.
4393
4394 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4395
4396         regex: re_search etc. should return -2 when memory exhausted
4397         This bug was uncovered when testing 'grep'.  Without the fix,
4398         re_search and friends return -1 when memory is exhausted, but -1
4399         means no match, and this causes grep to falsely report no-match
4400         instead of memory-exhaustion.  See
4401         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4402         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4403         trouble; this can occur if re_search_internal ran out of memory.
4404
4405 2012-02-26  Bruno Haible  <bruno@clisp.org>
4406
4407         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4408         * m4/modfl-ieee.m4: New file.
4409         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4410         whether modfl works with Inf. Replace it if not.
4411         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4413         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4414         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4415         (Depends-on): Update dependencies.
4416         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4417         m4/signbit.m4.
4418         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4419         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4420
4421         modfl-ieee: Fix dependencies.
4422         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4423
4424         modfl-ieee: Fix test failures.
4425         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4426         * modules/modfl (Depends-on): Add isfinite, isinf.
4427
4428         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4429         * m4/modff-ieee.m4: New file.
4430         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4431         whether modff works with NaN and Inf. Replace it if not.
4432         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4434         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4435         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4436         (Depends-on): Update dependencies.
4437         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4438         m4/signbit.m4.
4439         (Depends-on): Add modf-ieee.
4440         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4441         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4442
4443         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4444         * m4/modf-ieee.m4: New file.
4445         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4446         whether modf works with NaN and Inf. Replace it if not.
4447         * lib/math.in.h (modf): New declaration.
4448         * lib/modf.c: New file.
4449         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4451         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4452         * modules/modf (Files): Add lib/modf.c.
4453         (Depends-on): Add math, isfinite, trunc, isinf.
4454         (configure.ac): Addrange to compile lib/modf.c if needed.
4455         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4456         m4/signbit.m4.
4457         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4458         * tests/test-math-c++.cc: Check the declaration of modf.
4459         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4460
4461         Tests for module 'modfl-ieee'.
4462         * modules/modfl-ieee-tests: New file.
4463         * tests/test-modfl-ieee.c: New file.
4464
4465         New module 'modfl-ieee'.
4466         * modules/modfl-ieee: New file.
4467
4468         Tests for module 'modf-ieee'.
4469         * modules/modf-ieee-tests: New file.
4470         * tests/test-modf-ieee.c: New file.
4471
4472         New module 'modf-ieee'.
4473         * modules/modf-ieee: New file.
4474
4475         Tests for module 'modff-ieee'.
4476         * modules/modff-ieee-tests: New file.
4477         * tests/test-modff-ieee.c: New file.
4478         * tests/test-modf-ieee.h: New file.
4479
4480         New module 'modff-ieee'.
4481         * modules/modff-ieee: New file.
4482
4483 2012-02-26  Bruno Haible  <bruno@clisp.org>
4484
4485         Tests for module 'fabsl-ieee'.
4486         * modules/fabsl-ieee-tests: New file.
4487         * tests/test-fabsl-ieee.c: New file.
4488
4489         New module 'fabsl-ieee'.
4490         * modules/fabsl-ieee: New file.
4491
4492         Tests for module 'fabs-ieee'.
4493         * modules/fabs-ieee-tests: New file.
4494         * tests/test-fabs-ieee.c: New file.
4495
4496         New module 'fabs-ieee'.
4497         * modules/fabs-ieee: New file.
4498
4499         Tests for module 'fabsf-ieee'.
4500         * modules/fabsf-ieee-tests: New file.
4501         * tests/test-fabsf-ieee.c: New file.
4502         * tests/test-fabs-ieee.h: New file.
4503
4504         New module 'fabsf-ieee'.
4505         * modules/fabsf-ieee: New file.
4506
4507 2012-02-26  Bruno Haible  <bruno@clisp.org>
4508
4509         Tests for module 'fmal-ieee'.
4510         * modules/fmal-ieee-tests: New file.
4511         * tests/test-fmal-ieee.c: New file.
4512
4513         New module 'fmal-ieee'.
4514         * modules/fmal-ieee: New file.
4515
4516         Tests for module 'fma-ieee'.
4517         * modules/fma-ieee-tests: New file.
4518         * tests/test-fma-ieee.c: New file.
4519
4520         New module 'fma-ieee'.
4521         * modules/fma-ieee: New file.
4522
4523         Tests for module 'fmaf-ieee'.
4524         * modules/fmaf-ieee-tests: New file.
4525         * tests/test-fmaf-ieee.c: New file.
4526         * tests/test-fma-ieee.h: New file.
4527
4528         New module 'fmaf-ieee'.
4529         * modules/fmaf-ieee: New file.
4530
4531 2012-02-26  Bruno Haible  <bruno@clisp.org>
4532
4533         Tests for module 'ldexpl-ieee'.
4534         * modules/ldexpl-ieee-tests: New file.
4535         * tests/test-ldexpl-ieee.c: New file.
4536
4537         New module 'ldexpl-ieee'.
4538         * modules/ldexpl-ieee: New file.
4539
4540         Tests for module 'ldexp-ieee'.
4541         * modules/ldexp-ieee-tests: New file.
4542         * tests/test-ldexp-ieee.c: New file.
4543
4544         New module 'ldexp-ieee'.
4545         * modules/ldexp-ieee: New file.
4546
4547         Tests for module 'ldexpf-ieee'.
4548         * modules/ldexpf-ieee-tests: New file.
4549         * tests/test-ldexpf-ieee.c: New file.
4550         * tests/test-ldexp-ieee.h: New file.
4551
4552         New module 'ldexpf-ieee'.
4553         * modules/ldexpf-ieee: New file.
4554
4555 2012-02-26  Bruno Haible  <bruno@clisp.org>
4556
4557         Refactor frexp*-ieee tests.
4558         * tests/test-frexp-ieee.h: New file.
4559         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4560         (main): Just call test_function.
4561         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4562         (main): Just call test_function.
4563         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4564         (main): Just call test_function.
4565         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4566         * modules/frexp-ieee-tests (Files): Likewise.
4567         * modules/frexpl-ieee-tests (Files): Likewise.
4568
4569         Tests for module 'frexpl-ieee'.
4570         * modules/frexpl-ieee-tests: New file.
4571         * tests/test-frexpl-ieee.c: New file.
4572
4573         New module 'frexpl-ieee'.
4574         * modules/frexpl-ieee: New file.
4575
4576         Tests for module 'frexp-ieee'.
4577         * modules/frexp-ieee-tests: New file.
4578         * tests/test-frexp-ieee.c: New file.
4579
4580         New module 'frexp-ieee'.
4581         * modules/frexp-ieee: New file.
4582
4583         Tests for module 'frexpf-ieee'.
4584         * modules/frexpf-ieee-tests: New file.
4585         * tests/test-frexpf-ieee.c: New file.
4586
4587         New module 'frexpf-ieee'.
4588         * modules/frexpf-ieee: New file.
4589
4590 2012-02-26  Bruno Haible  <bruno@clisp.org>
4591
4592         roundl-ieee tests: More tests.
4593         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4594         (main): Add tests for [MX] shaded specification in POSIX.
4595         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4596         (Depends-on): Add isnanl-nolibm.
4597
4598         round-ieee tests: More tests.
4599         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4600         (main): Add tests for [MX] shaded specification in POSIX.
4601         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4602         (Depends-on): Add isnand-nolibm.
4603
4604         roundf-ieee tests: More tests.
4605         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4606         (main): Add tests for [MX] shaded specification in POSIX.
4607         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4608         (Depends-on): Add isnanf-nolibm.
4609
4610         truncl-ieee tests: More tests.
4611         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4612         (main): Add tests for [MX] shaded specification in POSIX.
4613         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4614         (Depends-on): Add isnanl-nolibm.
4615
4616         trunc-ieee tests: More tests.
4617         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4618         (main): Add tests for [MX] shaded specification in POSIX.
4619         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4620         (Depends-on): Add isnand-nolibm.
4621
4622         truncf-ieee tests: More tests.
4623         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4624         (main): Add tests for [MX] shaded specification in POSIX.
4625         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4626         (Depends-on): Add isnanf-nolibm.
4627
4628         ceill-ieee tests: More tests.
4629         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4630         (main): Add tests for [MX] shaded specification in POSIX.
4631         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4632         (Depends-on): Add isnanl-nolibm.
4633
4634         ceil-ieee tests: More tests.
4635         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4636         (main): Add tests for [MX] shaded specification in POSIX.
4637         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4638         (Depends-on): Add isnand-nolibm.
4639
4640         ceilf-ieee tests: More tests.
4641         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4642         (main): Add tests for [MX] shaded specification in POSIX.
4643         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4644         (Depends-on): Add isnanf-nolibm.
4645
4646         floorl-ieee tests: More tests.
4647         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4648         (main): Add tests for [MX] shaded specification in POSIX.
4649         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4650         (Depends-on): Add isnanl-nolibm.
4651
4652         floor-ieee tests: More tests.
4653         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4654         (main): Add tests for [MX] shaded specification in POSIX.
4655         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4656         (Depends-on): Add isnand-nolibm.
4657
4658         floorf-ieee tests: More tests.
4659         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4660         (main): Add tests for [MX] shaded specification in POSIX.
4661         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4662         (Depends-on): Add isnanf-nolibm.
4663
4664 2012-02-26  Bruno Haible  <bruno@clisp.org>
4665
4666         fpieee: More comments.
4667         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4668
4669 2012-02-25  Bruno Haible  <bruno@clisp.org>
4670
4671         Tests for module 'log10l'.
4672         * modules/log10l-tests: New file.
4673         * tests/test-log10l.c: New file.
4674         * tests/test-math-c++.cc: Check the declaration of log10l.
4675
4676         New module 'log10l'.
4677         * lib/math.in.h (log10l): New declaration.
4678         * lib/log10l.c: New file.
4679         * m4/log10l.m4: New file.
4680         * modules/log10l: New file.
4681         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4682         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4683         HAVE_DECL_LOG10L.
4684         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4685         HAVE_DECL_LOG10L.
4686         * doc/posix-functions/log10l.texi: Mention the new module.
4687
4688 2012-02-25  Bruno Haible  <bruno@clisp.org>
4689
4690         fmodl, remainder*: Avoid wrong results due to rounding errors.
4691         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4692         expected bounds.
4693         * lib/remainderf.c (remainderf): Likewise.
4694         * lib/remainder.c (remainder): Likewise.
4695         * lib/remainderl.c (remainderl): Likewise.
4696
4697 2012-02-25  Bruno Haible  <bruno@clisp.org>
4698
4699         Tests for module 'remainderl'.
4700         * modules/remainderl-tests: New file.
4701         * tests/test-remainderl.c: New file.
4702         * tests/test-math-c++.cc: Check the declaration of remainderl.
4703
4704         New module 'remainderl'.
4705         * lib/math.in.h (remainderl): New declaration.
4706         * lib/remainderl.c: New file.
4707         * m4/remainderl.m4: New file.
4708         * modules/remainderl: New file.
4709         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4711         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4712         HAVE_REMAINDERL.
4713         * doc/posix-functions/remainderl.texi: Mention the new module.
4714
4715 2012-02-25  Bruno Haible  <bruno@clisp.org>
4716
4717         Tests for module 'remainderf'.
4718         * modules/remainderf-tests: New file.
4719         * tests/test-remainderf.c: New file.
4720         * tests/test-math-c++.cc: Check the declaration of remainderf.
4721
4722         New module 'remainderf'.
4723         * lib/math.in.h (remainderf): New declaration.
4724         * lib/remainderf.c: New file.
4725         * m4/remainderf.m4: New file.
4726         * modules/remainderf: New file.
4727         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4729         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4730         HAVE_REMAINDERF.
4731         * doc/posix-functions/remainderf.texi: Mention the new module.
4732
4733 2012-02-25  Bruno Haible  <bruno@clisp.org>
4734
4735         remainder: Support for MSVC.
4736         * lib/math.in.h (remainder): New declaration.
4737         * lib/remainder.c: New file.
4738         * m4/remainder.m4: New file.
4739         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4740         (Depends-on): Add math, round, fma.
4741         (configure.ac): Use results of gl_FUNC_REMAINDER.
4742         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4744         HAVE_DECL_REMAINDER.
4745         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4746         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4747         * tests/test-math-c++.cc: Check the declaration of remainder.
4748         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4749         problems are fixed.
4750
4751 2012-02-25  Bruno Haible  <bruno@clisp.org>
4752
4753         Tests for module 'fmodl'.
4754         * modules/fmodl-tests: New file.
4755         * tests/test-fmodl.c: New file.
4756         * tests/test-math-c++.cc: Check the declaration of fmodl.
4757
4758         New module 'fmodl'.
4759         * lib/math.in.h (fmodl): New declaration.
4760         * lib/fmodl.c: New file.
4761         * m4/fmodl.m4: New file.
4762         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4763         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4764         REPLACE_FMODL.
4765         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4766         REPLACE_FMODL.
4767         * modules/fmodl: New file.
4768         * doc/posix-functions/fmodl.texi: Mention the new module.
4769
4770 2012-02-25  Bruno Haible  <bruno@clisp.org>
4771
4772         Tests for module 'modfl'.
4773         * modules/modfl-tests: New file.
4774         * tests/test-modfl.c: New file.
4775         * tests/test-math-c++.cc: Check the declaration of modfl.
4776
4777         New module 'modfl'.
4778         * lib/math.in.h (modfl): New declaration.
4779         * lib/modfl.c: New file.
4780         * m4/modfl.m4: New file.
4781         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4783         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4784         * modules/modfl: New file.
4785         * doc/posix-functions/modfl.texi: Mention the new module.
4786
4787 2012-02-25  Bruno Haible  <bruno@clisp.org>
4788
4789         Tests for module 'fabsl'.
4790         * modules/fabsl-tests: New file.
4791         * tests/test-fabsl.c: New file.
4792         * tests/test-math-c++.cc: Check the declaration of fabsl.
4793
4794         New module 'fabsl'.
4795         * lib/math.in.h (fabsl): New declaration.
4796         * lib/fabsl.c: New file.
4797         * m4/fabsl.m4: New file.
4798         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4800         REPLACE_FABSL.
4801         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4802         REPLACE_FABSL.
4803         * modules/fabsl: New file.
4804         * doc/posix-functions/fabsl.texi: Mention the new module.
4805
4806 2012-02-25  Bruno Haible  <bruno@clisp.org>
4807
4808         fabs tests: More tests.
4809         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4810         (zero): New variable.
4811         (main): Add tests for signed zero.
4812         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4813
4814         fabsf tests: More tests.
4815         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4816         (zero): New variable.
4817         (main): Add tests for signed zero.
4818         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4819
4820 2012-02-24  Bruno Haible  <bruno@clisp.org>
4821
4822         atanl: Provide function definition on MSVC.
4823         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4824         function pointer.
4825         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4826
4827 2012-02-24  Bruno Haible  <bruno@clisp.org>
4828
4829         acosl: Provide function definition on MSVC.
4830         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4831         function pointer.
4832         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4833
4834 2012-02-24  Bruno Haible  <bruno@clisp.org>
4835
4836         asinl: Provide function definition on MSVC.
4837         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4838         function pointer.
4839         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4840
4841 2012-02-24  Bruno Haible  <bruno@clisp.org>
4842
4843         tanl: Provide function definition on MSVC.
4844         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4845         function pointer.
4846         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4847
4848 2012-02-24  Bruno Haible  <bruno@clisp.org>
4849
4850         cosl: Provide function definition on MSVC.
4851         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4852         function pointer.
4853         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4854
4855 2012-02-24  Bruno Haible  <bruno@clisp.org>
4856
4857         sinl: Provide function definition on MSVC.
4858         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4859         function pointer.
4860         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4861
4862 2012-02-24  Bruno Haible  <bruno@clisp.org>
4863
4864         logl: Provide function definition on MSVC.
4865         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4866         function pointer.
4867         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4868
4869 2012-02-24  Bruno Haible  <bruno@clisp.org>
4870
4871         expl: Provide function definition on MSVC.
4872         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4873         function pointer.
4874         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4875
4876 2012-02-24  Bruno Haible  <bruno@clisp.org>
4877
4878         sqrtl: Provide function definition on MSVC.
4879         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4880         a function pointer.
4881         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4882
4883 2012-02-24  Bruno Haible  <bruno@clisp.org>
4884
4885         ceill: Provide function definition on MSVC.
4886         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4887         used as a function pointer.
4888         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4889
4890 2012-02-24  Bruno Haible  <bruno@clisp.org>
4891
4892         floorl: Provide function definition on MSVC.
4893         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4894         used as a function pointer.
4895         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4896
4897 2012-02-24  Bruno Haible  <bruno@clisp.org>
4898
4899         ceilf: Provide function definition on MSVC.
4900         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4901         used as a function pointer.
4902         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4903
4904 2012-02-24  Bruno Haible  <bruno@clisp.org>
4905
4906         floorf: Provide function definition on MSVC.
4907         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4908         used as a function pointer.
4909         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4910
4911 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4912
4913         stdnoreturn: new module
4914         This implements a replacement for C11's <stdnoreturn.h>.
4915         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4916         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4917         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4918         * tests/test-stdnoreturn.c: New files.
4919
4920 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4921
4922         regex: fix false multibyte matches in some regular expressions
4923         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4924         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4925         * lib/regex_internal.c (re_string_skip_chars):
4926         Fix miscomputation of remain_len that may cause incomplete
4927         multi-byte character and false match.
4928
4929 2012-02-24  Jim Meyering  <meyering@redhat.com>
4930
4931         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4932         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4933         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4934         Remove now-unnecessary str''cmp obfuscation.
4935         Suggested by Akim Demaille.
4936
4937 2012-02-24  Bruno Haible  <bruno@clisp.org>
4938
4939         streq: Rename macro.
4940         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4941         * NEWS: Mention the change.
4942         * lib/mbrtowc.c (mbrtowc): Update.
4943         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4944         * lib/wcwidth.c (wcwidth): Update.
4945         Suggested by Akim Demaille and Jim Meyering.
4946
4947 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4948
4949         regex: fix typo in definition of MIN
4950         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4951         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4952
4953 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4954             Bruno Haible  <bruno@clisp.org>
4955
4956         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4957         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4958         entries into a stack-allocated buffer directly.
4959         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4960
4961 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4962             Bruno Haible  <bruno@clisp.org>
4963
4964         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4965
4966          - There were several instances of this pattern:
4967
4968              for (;;) {
4969                n = acl (f, GETACLCNT, 0, NULL);
4970                [ allocate an array A of size N ]
4971                if (acl (f, GETACL, n, a) == n)
4972                  break;
4973              }
4974
4975            This loop might never terminate if some other process is constantly
4976            manipulating the file's ACL.  The loop should be rewritten to
4977            terminate.
4978
4979          - The acl (... GETACLNT ...) call is merely an optimization; its value
4980            is merely a hint as to how big to make the array.  A better
4981            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4982            and just guess a reasonably-big size, growing the size and trying
4983            again if it's not large enough.  This guarantees termination, and
4984            saves a system call.
4985
4986         * lib/acl-internal.h: Include <limits.h>.
4987         (MIN, SIZE_MAX): New macros.
4988         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4989         a stack-allocated buffer, and use malloc if it does not fit. Don't
4990         use GETACLCNT.
4991         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4992
4993 2012-02-19  Bruno Haible  <bruno@clisp.org>
4994
4995         acl: Fix endless loop on Solaris with vxfs.
4996         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4997         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4998         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4999         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
5000         * tests/test-sameacls.c (main)[Solaris]: Likewise.
5001         Reported by Bill Jones in
5002         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
5003
5004 2012-02-19  Bruno Haible  <bruno@clisp.org>
5005
5006         acl: Fix copy-acl test failure on Solaris 11 2011-11.
5007         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
5008         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
5009         that this function returns 0 in some more cases.
5010
5011 2012-02-19  Bruno Haible  <bruno@clisp.org>
5012
5013         acl: Update doc references.
5014         * doc/acl-resources.txt: Update links to Solaris documentation.
5015
5016 2012-02-19  Bruno Haible  <bruno@clisp.org>
5017
5018         Fix test failure in many locales on Solaris 11.
5019         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
5020         'tr' arguments.
5021         * tests/test-pipe-filter-ii1.c (main): Likewise.
5022         * build-aux/bootstrap (check_versions): Run 'tr' command with range
5023         expressions in the C locale.
5024         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5025         * m4/host-os.m4 (gl_HOST_OS): Likewise.
5026
5027 2012-02-19  Bruno Haible  <bruno@clisp.org>
5028
5029         gnulib-tool: Improve usage message.
5030         * gnulib-tool (func_usage): Move doc of --help and --version to the
5031         section "Operation modes".
5032
5033 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
5034
5035         README-release: make it easier to execute commands
5036         * top/README-release: break commands out on to separate lines.
5037
5038 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
5039
5040         GNUmakefile: simplify detection of unconfigured trees
5041         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
5042         whether the tree make is being run from is already configured or
5043         not.  Related simplifications.
5044
5045 2012-02-13  Simon Josefsson  <simon@josefsson.org>
5046
5047         * gnulib-tool (func_usage): Document --help and --version.
5048
5049 2012-02-11  Jim Meyering  <meyering@redhat.com>
5050
5051         bootstrap: don't exit 0 upon gnulib-tool failure
5052         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
5053         its exit status, not 0.
5054
5055 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
5056
5057         README-release: various improvements
5058         * top/README-release: Give a command to push changes for the
5059         release.  Add "distcheck" to list of other pre-release checks.
5060         Fix instance of "make stable" which should be "make TYPE".
5061
5062 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5063
5064         maint: replace FSF snail-mail addresses with URLs
5065         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
5066         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
5067         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
5068         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
5069         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
5070         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
5071         * lib/check-version.c, lib/check-version.h, lib/config.charset:
5072         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
5073         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
5074         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
5075         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
5076         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
5077         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
5078         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
5079         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
5080         * lib/glthread/thread.c, lib/glthread/thread.h:
5081         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
5082         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
5083         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
5084         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
5085         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
5086         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
5087         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
5088         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
5089         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
5090         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
5091         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
5092         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
5093         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
5094         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
5095         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
5096         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
5097         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
5098         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
5099         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
5100         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
5101         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
5102         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
5103         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
5104         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
5105         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
5106         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
5107         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
5108         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
5109         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
5110         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
5111         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
5112         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
5113         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
5114         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
5115         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
5116         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
5117         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
5118         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
5119         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
5120         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
5121         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
5122         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
5123         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
5124         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
5125         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
5126         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
5127         * tests/test-poll.c, tests/test-quotearg-simple.c:
5128         * tests/test-quotearg.c, tests/test-quotearg.h:
5129         * tests/test-round-ieee.c, tests/test-round1.c:
5130         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
5131         * tests/test-roundl-ieee.c, tests/test-roundl.c:
5132         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5133         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5134         * tests/test-strerror.c, tests/test-strerror_r.c:
5135         * tests/test-strsignal.c, tests/test-strverscmp.c:
5136         * tests/test-xmemdup0.c:
5137         Replace FSF snail mail addresses with URLs, as per GNU coding
5138         standards.  See glibc bug
5139         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5140
5141 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5142
5143         README-release: capitalize a word and split a line
5144         * top/README-release: Fix punctuation and spacing.
5145
5146 2012-02-08  Akim Demaille  <demaille@gostai.com>
5147
5148         fatal-signal: use C prototypes (with explicit void).
5149         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5150         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5151
5152 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5153
5154         regex: spelling fix
5155         * lib/regexec.c: spelling fix
5156
5157         regex: rely on stdint.h for SIZE_MAX
5158         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5159
5160 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5161
5162         regex: merge glibc changes
5163
5164         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5165         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5166         (init_word_char): Work even if bitset words are not exactly 32 or
5167         64 bits wide.  Don't assume there are no padding bits.
5168         * lib/regex.c [_LIBC]: Do not include <config.h>.
5169         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5170         and -Wtype-limits.
5171         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5172         needless disagreement with glibc.  All uses changed.  Define it to
5173         1 only if _GNU_SOURCE, to match glibc.
5174         (_REG_RM_NAME): Remove; no longer needed, since the names in
5175         question are now all protected by __USE_GNU.
5176         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5177         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5178         * lib/regex_internal.h (MIN): New macro.
5179
5180         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5181         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5182
5183         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5184         * lib/regex_internal.c (re_string_fetch_byte_case):
5185         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5186         is miscompiled, and it turns out it is because of an incorrect
5187         attribute on re_string_fetch_byte_case.  Unlike
5188         re_string_peek_byte_case, this one is really not pure, it modifies
5189         memory (increments pstr->cur_idx), and with the pure attribute GCC
5190         assumed it doesn't and it cached the presumed value of
5191         regexp->cur_idx in a variable across the
5192          for (;; ++i)
5193            {
5194              if (i >= BRACKET_NAME_BUF_SIZE)
5195                return REG_EBRACK;
5196              if (token->type == OP_OPEN_CHAR_CLASS)
5197                ch = re_string_fetch_byte_case (regexp);
5198              else
5199                ch = re_string_fetch_byte (regexp);
5200              if (re_string_eoi(regexp))
5201                return REG_EBRACK;
5202              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5203                break;
5204              elem->opr.name[i] = ch;
5205            }
5206
5207         2011-11-29 Andreas Schwab <schwab@redhat.com>
5208         * lib/regcomp.c (build_equiv_class):
5209         Fix access after end of search string in regex matcher.
5210
5211         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5212         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5213
5214         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5215         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5216
5217         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5218         * lib/regcomp.c (parse_branch, parse_sub_exp):
5219         More regex memory leak fixes and tests.
5220         (parse_sub_exp, parse_bracket_exp):
5221         Fix memory leak for some invalid regular expressions.
5222
5223         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5224         * lib/regex_internal.c, lib/regexec.c:
5225         Fix unnecessary overallocation due to incomplete character.  When
5226         incomplete characters are found at the end of a string the code
5227         ran amok and allocated lots of memory.  Stricter limits are now in
5228         place.
5229
5230         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5231         * lib/regex.h: Update documentation.
5232
5233         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5234         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5235
5236         2010-05-05 Andreas Schwab <schwab@redhat.com>
5237         * lib/regexec.c (find_collation_sequence_value):
5238         Fix lookup of collation sequence value during regexp matching.
5239
5240         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5241         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5242
5243         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5244         * lib/regex.h: Cleanup namespace.
5245
5246         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5247         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5248
5249         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5250         * lib/regex_internal.h: Prevent some declarations and definitions
5251         to be seen when used in tests.
5252
5253         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5254         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5255         __libc_lock_* macros if not _LIBC.
5256         (struct re_dfa_t): Add lock.
5257
5258 2012-02-07  Eric Blake  <eblake@redhat.com>
5259
5260         maint.mk: also prohibit lower-case @var@
5261         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5262         lower case, like @top_srcdir@.
5263
5264 2012-02-04  Eric Blake  <eblake@redhat.com>
5265
5266         canonicalize: avoid uninitialized memory use
5267         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5268         random '/' left in dest.
5269         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5270
5271 2012-02-04  Bruno Haible  <bruno@clisp.org>
5272
5273         isatty: Fix test failure of ptsname_r on native Windows.
5274         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5275         and don't set errno.
5276         (isatty): Test first whether fd is valid. Set errno when returning 0.
5277
5278 2012-02-04  Bruno Haible  <bruno@clisp.org>
5279
5280         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5281         * tests/test-spawn-pipe-main.c: Include progname.h.
5282         (main): Invoke set_program_name.
5283         * modules/spawn-pipe-tests (Depends-on): Add progname.
5284
5285         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5286         * tests/test-nonblocking-socket-main.c: Include progname.h.
5287         (main): Invoke set_program_name.
5288         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5289
5290         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5291         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5292         (main): Invoke set_program_name.
5293         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5294
5295 2012-02-04  Eric Blake  <eblake@redhat.com>
5296
5297         canonicalize-lgpl: fix // handling
5298         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5299
5300         canonicalize: fix // handling
5301         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5302         /// to //, since only // is special.
5303
5304 2012-02-04  Bruno Haible  <bruno@clisp.org>
5305
5306         ioctl: Fix test failure on native Windows.
5307         * lib/ioctl.c: Include msvc-nothrow.h.
5308         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5309
5310 2012-02-04  Bruno Haible  <bruno@clisp.org>
5311
5312         fsync: Avoid test failure on native Windows.
5313         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5314         read-only.
5315
5316 2012-02-04  Bruno Haible  <bruno@clisp.org>
5317
5318         sys_select: Avoid syntax error on OpenBSD 5.0.
5319         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5320         currently being included, just include the system's <sys/select.h>.
5321
5322 2012-02-04  Bruno Haible  <bruno@clisp.org>
5323
5324         sys_select: Avoid syntax error on OpenBSD 5.0.
5325         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5326         <sys/select.h>, not before.
5327         Reported by Jiri B <jirib@devio.us>.
5328
5329 2012-02-04  Bruno Haible  <bruno@clisp.org>
5330
5331         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5332         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5333         global variables.
5334         * tests/test-get-rusage-data.c (main): Likewise.
5335         Reported by Jim Meyering.
5336
5337 2012-02-04  Bruno Haible  <bruno@clisp.org>
5338
5339         stdioext: Fix last commit.
5340         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5341
5342 2012-02-03  Bruno Haible  <bruno@clisp.org>
5343
5344         stdioext: Add tentative support for Plan9.
5345         * lib/stdio-impl.h: Include <errno.h>.
5346         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5347         * lib/freadable.c (freadable): Likewise.
5348         * lib/fwritable.c (fwritable): Likewise.
5349         * lib/fbufmode.c (fbufmode): Likewise.
5350         * lib/freading.c (freading): Likewise.
5351         * lib/fwriting.c (fwriting): Likewise.
5352         * lib/freadptr.c (freadptr): Likewise.
5353         * lib/freadseek.c (freadptrinc): Likewise.
5354         * lib/freadahead.c (freadahead): Likewise.
5355         * lib/fpurge.c (fpurge): Likewise.
5356         * lib/fseeko.c (rpl_fseeko): Likewise.
5357         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5358         Reported by Jens Staal <staal1978@gmail.com>.
5359
5360 2012-02-02  Jim Meyering  <meyering@redhat.com>
5361
5362         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5363         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5364         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5365         not even to try to add the attribute.  Instead, add a pragma to suppress
5366         the suggestion/warning.
5367
5368 2012-01-31  Karl Berry  <karl@gnu.org>
5369
5370         setstate doc: typo.
5371         * doc/posix-functions/setstate.texi (setstate): { not (.
5372
5373 2012-01-31  Bruno Haible  <bruno@clisp.org>
5374
5375         popen: Make more robust on Windows.
5376         * lib/popen.c: On native Windows, use the _popen based code even if
5377         HAVE_POPEN is set.
5378         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5379         environment variable on native Windows.
5380
5381 2012-01-30  Bruno Haible  <bruno@clisp.org>
5382
5383         pclose: Fix typo.
5384         * lib/stdio.in.h (pclose): Fix typo in warning message.
5385
5386 2012-01-30  Bruno Haible  <bruno@clisp.org>
5387
5388         doc about getlogin_r, setstate.
5389         * doc/posix-functions/getlogin_r.texi: List the incompatible
5390         declaration problem under "not fixed by gnulib".
5391         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5392         problem on Solaris 11 and other platforms.
5393
5394 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5395             Bruno Haible  <bruno@clisp.org>
5396
5397         poll tests: Make test more robust.
5398         * tests/test-poll.c: Include macros.h.
5399         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5400         return value of various I/O operations.
5401         * modules/poll-tests (Files): Add tests/macros.h.
5402
5403 2012-01-30  Bruno Haible  <bruno@clisp.org>
5404
5405         sys_stat: Fix support for mingw64 and MSVC.
5406         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5407         header files already do it.
5408         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5409         stat itself.
5410         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5411
5412 2012-01-30  Bruno Haible  <bruno@clisp.org>
5413
5414         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5416         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5417
5418 2012-01-29  Bruno Haible  <bruno@clisp.org>
5419
5420         quotearg: Fix test failure on MacOS X 10.5.
5421         * tests/test-quotearg-simple.c: Include localcharset.h.
5422         (main): If the locale encoding is not ASCII, bypass the tests of
5423         locale_quoting_style and clocale_quoting_style.
5424         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5425
5426 2012-01-29  Jim Meyering  <meyering@redhat.com>
5427
5428         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5429         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5430         detect uses of canonicalize_file_name.
5431
5432 2012-01-28  Bruno Haible  <bruno@clisp.org>
5433
5434         test-framework-sh: Fix test failure with AIX 7.1 diff.
5435         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5436         in column 1, like 'diff -c' does.
5437         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5438         whether 'diff -u' is used. Instead, test whether the output contains
5439         some '@' character.
5440
5441 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5442
5443         strtoimax: eliminate need for stdint.h, inttypes.h checks
5444         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5445         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5446         the prerequisites for a recently-introduced strtoimax test.
5447         I guess this might cause strtoimax to be replaced when not
5448         strictly necessary on older hosts, but this shouldn't introduce
5449         any bugs and it should make Emacs 'configure' faster on typical
5450         modern hosts.  Problem discovered when importing the latest gnulib
5451         to an Emacs test version.
5452         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5453
5454 2012-01-28  Bruno Haible  <bruno@clisp.org>
5455
5456         sys_time: Override 'struct timeval' on some native Windows platforms.
5457         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5458         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5459         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5460         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5461         needs to be overridden.
5462         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5463         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5464         * tests/test-sys_select.c: Check that the tv_sec member has the same
5465         size as a 'time_t'.
5466         * tests/test-sys_time.c: Likewise.
5467         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5468         is set, set also REPLACE_GETTIMEOFDAY.
5469         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5470         convert the resulting 'struct timeval' before returning.
5471         * lib/select.c: Include <sys/time.h>.
5472         (select, timeval): Undefine at the right place.
5473         * modules/select (Depends-on): Add sys_time.
5474         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5475         some Windows platforms.
5476         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5477
5478 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5479
5480         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5481         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5482         an integer.
5483         * lib/fcntl.c (dupfd): Likewise.
5484         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5485
5486 2012-01-28  Bruno Haible  <bruno@clisp.org>
5487
5488         fcntl: Avoid compilation error on native Windows.
5489         * modules/fcntl (Depends-on): Add 'close'.
5490
5491 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5492
5493         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5494         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5495         pointer to an integer.
5496         * lib/poll.c (IsConsoleHandle): Likewise.
5497         * lib/isatty.c (IsConsoleHandle): Likewise.
5498
5499 2012-01-28  Jim Meyering  <meyering@redhat.com>
5500
5501         doc: clarify README-release
5502         * top/README-release: Clarify: you should make a point to have
5503         the latest stable versions of build tools in your PATH, and the
5504         reference to buildreq is solely for its list of tool names, not
5505         for its minimal-functional version numbers.
5506         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5507
5508         maint.mk: use more readable (yet functionally equivalent) quoting
5509         It is common to quote a single quote in a single quoted string like
5510         this:  '...'\''...'.  Unless you know the idiom, that looks like
5511         gibberish, so prefer to double-quote the string when possible.
5512         Then you can use a more readable, lone single quote: "...'..."
5513         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5514         "don't" is more readable than the equivalent 'don'\''t'.
5515         (sc_cast_of_x_alloc_return_value): Likewise.
5516         (sc_cast_of_alloca_return_value): Likewise.
5517         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5518         rather than '\'':'\''.
5519
5520 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5521
5522         stdalign: relax _Alignof and tighten _Alignas test
5523         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5524         as it was too strict: alignof must divide offsetof, but it need
5525         not equal offsetof.  Inspired by Joseph S. Myers's comment
5526         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5527         Conversely, tighten the _Alignas test a bit, as the resulting
5528         alignment must be exactly 8.
5529
5530 2012-01-27  Bruno Haible  <bruno@clisp.org>
5531
5532         stdalign: Document the last change.
5533         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5534
5535 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5536
5537         stdalign: check that alignof and offsetof are consistent
5538         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5539         Problem reported for gnulib by Richard W.M. Jones in
5540         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5541
5542 2012-01-27  Jim Meyering  <meyering@redhat.com>
5543
5544         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5545         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5546         convert a sequence with gaps to the minimal containing range.
5547         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5548         * tests/test-update-copyright.sh: Test for this.
5549         The FSF confirmed it is ok to do this, assuming there is at
5550         least one significant change per year in the affected range:
5551         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5552
5553 2012-01-26  Bruno Haible  <bruno@clisp.org>
5554
5555         pipe2: refine doc about thread-safety
5556         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5557         multithread-safety problem.
5558         * doc/glibc-functions/accept4.texi: Likewise.
5559
5560 2012-01-26  Bruno Haible  <bruno@clisp.org>
5561
5562         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5563         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5564         In the test program, include <fcntl.h>, for O_RDONLY.
5565
5566 2012-01-26  Eric Blake  <eblake@redhat.com>
5567
5568         pipe2: document lack of thread-safety in replacement
5569         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5570         issue in replacement.
5571         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5572         Based on a report by Eric Wong.
5573
5574 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5575             Bruno Haible  <bruno@clisp.org>
5576
5577         malloca: Avoid warnings on x86_64 mingw64.
5578         * lib/malloca.c: Include <stdint.h>.
5579         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5580         * modules/malloca (Depends-on): Add stdint.
5581         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5582
5583 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5584
5585         obstack: remove __STDC__ conditionals
5586         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5587         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5588         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5589         m4/include_next.m4 as the only gnulib-maintained places that still
5590         refer to __STDC__.
5591
5592 2012-01-24  Bruno Haible  <bruno@clisp.org>
5593
5594         havelib: Modern quoting.
5595         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5596         the recent change to the GNU coding standards.
5597
5598 2012-01-24  Bruno Haible  <bruno@clisp.org>
5599
5600         stdint: Improve support for Android.
5601         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5602         Reported by Simon Josefsson <simon@josefsson.org>.
5603
5604 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5605
5606         doc: omit trailing empty lines from INSTALL etc.
5607         * doc/Makefile (INSTALL): Omit trailing empty lines.
5608         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5609         omit trailing empty lines.  This simplifies the build procedure.
5610
5611 2012-01-23  Jim Meyering  <meyering@redhat.com>
5612
5613         tests: avoid spurious warnings about gl_sockets_startup
5614         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5615         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5616         reporting a "statement with no effect".
5617         * tests/test-accept.c (main): Mark as "(void)".
5618         * tests/test-accept4.c (main): Likewise.
5619         * tests/test-bind.c (main): Likewise.
5620         * tests/test-connect.c (main): Likewise.
5621         * tests/test-getpeername.c (main): Likewise.
5622         * tests/test-getsockname.c (main): Likewise.
5623         * tests/test-getsockopt.c (main): Likewise.
5624         * tests/test-listen.c (main): Likewise.
5625         * tests/test-recv.c (main): Likewise.
5626         * tests/test-recvfrom.c (main): Likewise.
5627         * tests/test-send.c (main): Likewise.
5628         * tests/test-sendto.c (main): Likewise.
5629         * tests/test-setsockopt.c (main): Likewise.
5630         * tests/test-shutdown.c (main): Likewise.
5631
5632 2012-01-21  Bruno Haible  <bruno@clisp.org>
5633
5634         locale-fr.m4: Fix for Android.
5635         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5636         failure of the test program on Bionic libc.
5637
5638 2012-01-21  Jim Meyering  <meyering@redhat.com>
5639
5640         bootstrap: fail when bootstrap_post_import_hook fails
5641         Otherwise, it's far too easy to miss diagnostics emitted
5642         between gnulib-tool's output and that of running configure.
5643         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5644
5645 2012-01-17  Jim Meyering  <meyering@redhat.com>
5646
5647         maint: enable sc_trailing_blank
5648         * build-aux/pmccabe.css: Remove trailing blanks.
5649         * doc/acl-cygwin.txt: Likewise.
5650         * doc/gnu-oids.texi: Likewise
5651         * cfg.mk: Enable sc_trailing_blank.
5652         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5653
5654 2012-01-17  Jim Meyering  <meyering@redhat.com>
5655
5656         maint: enable sc_prohibit_openat_without_use
5657         * cfg.mk: Enable sc_prohibit_openat_without_use.
5658         Exempt lib/selinux-at.c.
5659
5660 2012-01-17  Jim Meyering  <meyering@redhat.com>
5661
5662         maint: enable sc_prohibit_cloexec_without_use
5663         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5664         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5665
5666 2012-01-17  Jim Meyering  <meyering@redhat.com>
5667
5668         maint: enable sc_prohibit_intprops_without_use
5669         * cfg.mk: Enable sc_prohibit_intprops_without_use
5670         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5671
5672 2012-01-17  Jim Meyering  <meyering@redhat.com>
5673
5674         maint: enable sc_prohibit_hash_pjw_without_use
5675         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5676         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5677         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5678         following " (".
5679
5680 2012-01-17  Jim Meyering  <meyering@redhat.com>
5681
5682         maint: enable double-word-prohibiting rule
5683         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5684         Exempt three files.
5685
5686 2012-01-17  Jim Meyering  <meyering@redhat.com>
5687
5688         maint: remove empty lines at EOF, but excluding modules/*
5689         Apply syntax rules at home as well as abroad.  Most changes
5690         were induced by running this:
5691           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5692             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5693             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5694         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5695         Exempt modules/* and two binary files.
5696         Also exempt doc/INSTALL*, per request from Bruno Haible.
5697         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5698         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5699         * doc/Copyright/request-assign.future: Likewise.
5700         * doc/Copyright/request-disclaim.changes: Likewise.
5701         * doc/INSTALL: Likewise.
5702         * doc/INSTALL.ISO: Likewise.
5703         * doc/INSTALL.UTF-8: Likewise.
5704         * doc/acl-cygwin.txt: Likewise.
5705         * doc/acl-resources.txt: Likewise.
5706         * doc/fdl-1.2.texi: Likewise.
5707         * doc/fdl-1.3.texi: Likewise.
5708         * doc/fdl.texi: Likewise.
5709         * lib/argp-pin.c: Likewise.
5710         * lib/round.c: Likewise.
5711         * lib/unicase/u16-totitle.c: Likewise.
5712         * lib/unictype/block_test.c: Likewise.
5713         * lib/uninorm/canonical-decomposition.c: Likewise.
5714         * m4/README: Likewise.
5715         * m4/relocatable-lib.m4: Likewise.
5716         * tests/test-isnand-nolibm.c: Likewise.
5717         * tests/test-isnand.c: Likewise.
5718         * tests/uninorm/NormalizationTest.txt: Likewise.
5719
5720 2012-01-17  Jim Meyering  <meyering@redhat.com>
5721
5722         maint: add framework to run syntax-check rules against gnulib sources
5723         * cfg.mk: New file, to disable all currently-failing tests.
5724         We'll enable them one by one, as they are made to pass.
5725         * Makefile (sc_maint): New rule.
5726
5727 2012-01-21  Bruno Haible  <bruno@clisp.org>
5728
5729         stdint: Add support for Android.
5730         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5731         include the system's <stdint.h>.
5732         Reported by Simon Josefsson <simon@josefsson.org>.
5733
5734 2012-01-19  Jim Meyering  <meyering@redhat.com>
5735
5736         bootstrap: add bootstrap_post_import_hook
5737         Bison does still need something like the gnulib_mk_hook whose
5738         invocation I had to remove along with slurp in commit 767ccd40.
5739         Technically, we could get along without it, but doing so would
5740         have required living with a warning and a mandatory post-bootstrap
5741         automake rerun.
5742         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5743         (bootstrap_post_import_hook): New function.
5744         Invoke it after gnulib-tool --import and before autoreconf.
5745
5746 2012-01-18  Jim Meyering  <meyering@redhat.com>
5747
5748         gitlog-to-changelog: don't use "no_"-prefixed variable name
5749         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5750         to enable both --cluster and --no-cluster.  Change variable name,
5751         s/\$no_cluster/$cluster/, and reverse usage to match.
5752
5753         gitlog-to-changelog: use "||", not "or" in expressions
5754         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5755         expressions.
5756
5757 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5758
5759         gitlog-to-changelog: new option --no-cluster
5760         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5761         clustering of adjacent commit messages.
5762
5763 2012-01-17  Jim Meyering  <meyering@redhat.com>
5764
5765         maint: spell file systems with two words, not one
5766         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5767         two words, not one.
5768
5769 2012-01-16  Jim Meyering  <meyering@redhat.com>
5770
5771         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5772         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5773
5774 2012-01-16  Eric Blake  <eblake@redhat.com>
5775
5776         bootstrap: cater to autoconf 2.59
5777         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5778         is not available.
5779
5780         bootstrap: properly check for libtool
5781         * build-aux/bootstrap (libtoolize): Also run libtool when older
5782         usage is detected.
5783
5784 2012-01-15  Bruno Haible  <bruno@clisp.org>
5785
5786         Improve support for MSVC 9.
5787         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5788         clashes on MSVC.
5789         * lib/fcntl.in.h: Likewise.
5790         * lib/stdlib.in.h: Likewise.
5791         * lib/sys_stat.in.h: Likewise.
5792
5793 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5794
5795         gnupload: we hold the master copy of this script now
5796         For motivation and more information, see:
5797         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5798         * build-aux/gnupload: Make it clear in the heading comments that the
5799         master copy of this file is maintained by gnulib.  Since we are at
5800         it, bump its copyright year and ...
5801         ($scriptversion): ... the date in its version.
5802         ($usage): Patches and bug reports should be sent to the gnulib list,
5803         not the automake one.
5804         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5805         anymore.
5806
5807 2012-01-15  Bruno Haible  <bruno@clisp.org>
5808
5809         Fix module 'random'.
5810         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5811         initstate, setstate are declared.
5812
5813 2012-01-14  Bruno Haible  <bruno@clisp.org>
5814
5815         Tests for module 'random'.
5816         * modules/random-tests: New file.
5817         * tests/test-random.c: New file, based on tests/test-random_r.c.
5818
5819         New module 'random'.
5820         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5821         declarations.
5822         * lib/random.c: New file, based on glibc/stdlib/random.c.
5823         * m4/random.m4: New file.
5824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5825         HAVE_RANDOM.
5826         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5827         * modules/random: New file.
5828         * config/srclist.txt: Add an entry for random.c.
5829         * doc/posix-functions/random.texi: Mention the 'random' module.
5830         * doc/posix-functions/initstate.texi: Likewise.
5831         * doc/posix-functions/setstate.texi: Likewise.
5832         * doc/posix-functions/srandom.texi: Likewise.
5833
5834 2012-01-12  Bruno Haible  <bruno@clisp.org>
5835
5836         random_r: Use common idioms.
5837         * lib/random_r.c: Include <stdlib.h> first.
5838
5839         random_r: Override incompatible API on AIX, OSF/1.
5840         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5841         Override the system function if REPLACE_RANDOM_R is 1.
5842         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5843         and OSF/1, set REPLACE_RANDOM_R.
5844         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5845         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5846         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5847         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5848         * doc/glibc-functions/random_r.texi: Likewise.
5849         * doc/glibc-functions/setstate_r.texi: Likewise.
5850
5851         random_r: Support for MSVC 9.
5852         * lib/random_r.c: Include stdint.h, not inttypes.h.
5853
5854 2012-01-12  Eric Blake  <eblake@redhat.com>
5855
5856         inet_ntop: guard extra work by IF_LINT
5857         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5858         better code generation when not checking for warnings.
5859         Suggested by Paul Eggert and Jim Meyering.
5860
5861         strptime: fix regression on mingw
5862         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5863         Fix regression.  Reported by Bruno Haible.
5864
5865 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5866             Bruno Haible  <bruno@clisp.org>
5867
5868         copy-file: add error-code-returning variant.
5869         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5870         (qcopy_file_preserving): New declaration.
5871         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5872         copy_file_preserving. Change return type to 'int'. Don't emit an error
5873         message here.
5874         (copy_file_preserving): New function.
5875         * tests/test-copy-file.c: Include <stdlib.h>.
5876         (main): Test qcopy_file_preserving if the environment variable
5877         NO_STDERR_OUTPUT is set.
5878         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5879         with NO_STDERR_OUTPUT
5880         * tests/test-copy-file-2.sh: Likewise.
5881
5882 2012-01-10  Bruno Haible  <bruno@clisp.org>
5883
5884         copy-file: Use 'quote' module consistently.
5885         * lib/copy-file.c (copy_file_preserving): Use quote().
5886
5887         copy-file: Refactor.
5888         * lib/copy-file.c: Include quote.h.
5889         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5890         message here.
5891         * modules/copy-file (Depends-on): Add quote.
5892
5893         acl: Export qcopy_acl.
5894         * lib/acl.h (qcopy_acl): New declaration.
5895         * lib/copy-acl.c (qcopy_acl): Make non-static.
5896
5897         acl: Rename a local variable.
5898         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5899
5900         acl: Align return values of copy_acl and qcopy_acl.
5901         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5902         maybe < -1.
5903
5904 2012-01-11  Eric Blake  <eblake@redhat.com>
5905
5906         strptime: silence gcc warnings
5907         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5908         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5909         Reported by Daniel P. Berrange.
5910
5911         inet_ntop: silence gcc warning
5912         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5913         Reported by Daniel P. Berrange.
5914
5915 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5916
5917         getloadavg test: skip the test on GNU/Linux without /proc mounted
5918         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5919         file.  When /proc is not mounted, it always fails with ENOENT.
5920         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5921         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5922
5923 2012-01-10  Bruno Haible  <bruno@clisp.org>
5924
5925         regex: Avoid link error on MSVC 9.
5926         * modules/regex (Depends-on): Add wctype.
5927
5928 2012-01-10  Bruno Haible  <bruno@clisp.org>
5929
5930         doc: Mention --with-tests option.
5931         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5932         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5933         --with-tests.
5934         Reported by Reuben Thomas.
5935
5936 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5937
5938         users.txt: order package names lexicographically.
5939         * users.txt: Order package names lexicographically.
5940
5941 2012-01-10  Jim Meyering  <meyering@redhat.com>
5942
5943         maint.mk: fix description in comment
5944         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5945
5946         ignore-value: remove deprecated ignore_ptr function
5947         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5948         * NEWS: Note this.
5949
5950 2012-01-09  Jim Meyering  <meyering@redhat.com>
5951
5952         test-init.sh: avoid a subshell
5953         * tests/test-init.sh: Remove protective subshell.
5954         Suggested by Bernhard Voelker.  While a subshell is normally
5955         required to protect against older shells (Solaris, FreeBSD) that
5956         warn about a missing program before performing redirection, the
5957         shell-selection tests performed by init.sh probably exclude any
5958         offending shell.
5959
5960 2012-01-08  Bruno Haible  <bruno@clisp.org>
5961
5962         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5963         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5964         variable.
5965
5966 2012-01-08  Bruno Haible  <bruno@clisp.org>
5967
5968         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5969         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5970         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5971         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5972         macro.
5973         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5974         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5975         * lib/spawn_faction_addopen.c: Add workaround implementation if
5976         HAVE_WORKING_POSIX_SPAWN.
5977         * modules/spawn (Makefile): Substitute
5978         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5979         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5980         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5981         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5982         (Depends-on): Update conditions.
5983         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5984         the Solaris 11 bug.
5985
5986 2012-01-08  Bruno Haible  <bruno@clisp.org>
5987
5988         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5989         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5990         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5991         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5992         macro.
5993         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5994         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5995         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5996         HAVE_WORKING_POSIX_SPAWN.
5997         * modules/spawn (Makefile): Substitute
5998         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5999         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
6000         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
6001         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6002         (Depends-on): Update conditions.
6003         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6004         the Solaris 11 bug.
6005
6006 2012-01-08  Bruno Haible  <bruno@clisp.org>
6007
6008         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
6009         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6010         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6011         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
6012         HAVE_WORKING_POSIX_SPAWN.
6013         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
6014         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
6015         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6016         * lib/spawn_faction_addclose.c: Add workaround implementation if
6017         HAVE_WORKING_POSIX_SPAWN.
6018         * modules/spawn (Makefile): Substitute
6019         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6020         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
6021         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
6022         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6023         (Depends-on): Update conditions.
6024         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6025         the Solaris 11 bug.
6026
6027 2012-01-08  Bruno Haible  <bruno@clisp.org>
6028
6029         doc: Update for Solaris 11 2011-11.
6030         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
6031         * m4/printf.m4: Update comments.
6032
6033 2012-01-08  Bruno Haible  <bruno@clisp.org>
6034
6035         mktime: Avoid compilation error on Solaris 11.
6036         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
6037
6038 2012-01-08  Bruno Haible  <bruno@clisp.org>
6039
6040         doc: Small fix.
6041         * doc/posix-headers/nl_types.texi: Correct platforms list.
6042
6043 2012-01-08  Simon Josefsson  <simon@josefsson.org>
6044
6045         Add lgpl-3.0 module.
6046         * MODULES.html.sh (Support for building documentation): Add
6047         lgpl-3.0.
6048         * modules/lgpl-3.0: New file.
6049
6050 2012-01-08  Jim Meyering  <meyering@redhat.com>
6051
6052         select.c: indent with spaces, not TABs
6053         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
6054
6055 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6056
6057         quotearg: do not use grave accent for left quote
6058         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
6059         locale_quoting_style.
6060         (quotearg_buffer_restyled): Fix example.
6061         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
6062
6063 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6064
6065         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
6066         Most programs do not have translation catalogs for English and much
6067         less separate catalogs for British and American English.  Drop the
6068         suggestion to translators about these two, and provide it
6069         automatically for Unicode locales.  Like most programs, even those
6070         using American English, we use single quotation marks.  This conflicts
6071         with the American typographic convention, but works better when you
6072         cite the entire error message within double quotes.  It also tries not
6073         to clash with established practice and with what non-gnulib programs
6074         will usually do.
6075         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
6076         using an UTF-8 or GB-18030 locale.  The list of other locales with
6077         quotes was provided by Bruno Haible.
6078         (quotearg_buffer_restyled): Adjust instructions to translators.
6079         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
6080         text, since this would be wrong when using Unicode.
6081         * modules/quotearg: Depend on c-strcaseeq.
6082
6083 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6084
6085         quotearg: fix Wikipedia link
6086         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
6087
6088 2012-01-07  Simon Josefsson  <simon@josefsson.org>
6089
6090         Fix for mingw with MSVC9.
6091         * m4/ld-version-script.m4: Check that compiler rejects version
6092         scripts with syntax errors.  Reported by Bruno Haible
6093         <bruno@clisp.org>.
6094
6095 2012-01-06  Bruno Haible  <bruno@clisp.org>
6096
6097         Talk about "native Windows API", not "Woe32".
6098         * lib/accept4.c: Update comments to mention native Windows.
6099         * lib/execute.c: Likewise.
6100         * lib/fatal-signal.c: Likewise.
6101         * lib/localcharset.c: Likewise.
6102         * lib/nanosleep.c: Likewise.
6103         * lib/nl_langinfo.c: Likewise.
6104         * lib/pclose.c: Likewise.
6105         * lib/pipe-filter-gi.c: Likewise.
6106         * lib/pipe-filter-ii.c: Likewise.
6107         * lib/pipe.c: Likewise.
6108         * lib/pipe2.c: Likewise.
6109         * lib/popen.c: Likewise.
6110         * lib/progreloc.c: Likewise.
6111         * lib/relocatable.c: Likewise.
6112         * lib/sigaction.c: Likewise.
6113         * lib/sigprocmask.c: Likewise.
6114         * lib/spawn-pipe.h: Likewise.
6115         * lib/spawn-pipe.c: Likewise.
6116         * lib/spawni.c: Likewise.
6117         * lib/stat-time.h: Likewise.
6118         * lib/w32spawn.h: Likewise.
6119         * tests/test-isatty.c: Likewise.
6120         * lib/config.charset: More comments.
6121         * doc/gnulib-intro.texi: Mention native Windows.
6122         * doc/posix-functions/_Exit_C99.texi: Likewise.
6123         * doc/posix-headers/fcntl.texi: Likewise.
6124
6125 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
6126
6127         argp: Avoid crash if translator uses % characters in a translation.
6128         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
6129         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6130
6131 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6132
6133         doc: C11 and C++11 are now official
6134         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6135         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6136         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6137         * modules/stdalign:
6138         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6139
6140 2012-01-06  Bruno Haible  <bruno@clisp.org>
6141
6142         uc-is-grapheme-break tests: Tweak.
6143         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6144         message.
6145
6146 2012-01-06  Bruno Haible  <bruno@clisp.org>
6147
6148         test-init.sh: correct the test for diff -u
6149         * tests/test-init.sh: Also redirect stdout to /dev/null.
6150
6151 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6152
6153         Use ', not `, for quoting output.
6154         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6155         (print_changelog_deltas, get_tool_versions, main program):
6156         * build-aux/git-version-gen:
6157         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6158         * build-aux/move-if-change (help):
6159         * build-aux/useless-if-before-free (usage, main program):
6160         * check-module (parse_module_file, usage)
6161         (find_included_lib_files, check_module):
6162         * lib/argmatch.c (main) [TEST]:
6163         * lib/argp-help.c (_help):
6164         * lib/getopt1.c (main) [TEST]:
6165         * lib/git-merge-changelog.c (usage):
6166         * lib/xstrtol-error.c (xstrtol_error):
6167         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6168         * m4/argz.m4 (gl_FUNC_ARGZ):
6169         * m4/bison.m4 (gl_BISON):
6170         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6171         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6172         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6173         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6174         * m4/gc-random.m4 (gl_GC_RANDOM):
6175         * m4/intl.m4 (gt_CHECK_DECL):
6176         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6177         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6178         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6179         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6180         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6181         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6182         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6183         * tests/test-dirname.c (main):
6184         * tests/test-getpass.c (main):
6185         * tests/test-iconvme.c (main):
6186         * tests/test-parse-datetime.c (LOG):
6187         * tests/test-xstrtoimax.sh:
6188         * tests/test-xstrtol.sh:
6189         * tests/test-xstrtoll.sh:
6190         * tests/test-xstrtoumax.sh:
6191         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6192         * top/GNUmakefile (abort-due-to-no-makefile):
6193         Quote 'like this', not `like this', as per the recent change to
6194         the GNU coding standards.
6195
6196 2012-01-05  Bruno Haible  <bruno@clisp.org>
6197
6198         strtoimax: Don't force a replacement on systems where intmax_t is int.
6199         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6200         'intmax_t' is not larger than 'int'.
6201         Reported by Pádraig Brady <P@draigBrady.com>.
6202
6203 2012-01-05  Bruno Haible  <bruno@clisp.org>
6204
6205         doc: Mention NetBSD bugs.
6206         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6207         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6208
6209 2012-01-05  Bruno Haible  <bruno@clisp.org>
6210
6211         strtoumax tests: Enhance tests.
6212         * tests/test-strtoumax.c (main): Add tests for large values.
6213
6214 2012-01-05  Bruno Haible  <bruno@clisp.org>
6215
6216         strtoimax: Work around AIX 5.1 bug.
6217         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6218         definition.
6219         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6220         Set HAVE_STRTOIMAX.
6221         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6222         REPLACE_STRTOIMAX.
6223         * modules/inttypes-incomplete (Makefile.am): Substitute
6224         REPLACE_STRTOIMAX.
6225         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6226         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6227         (Depends-on): Update conditions.
6228         * tests/test-strtoimax.c (main): Add tests for large values.
6229         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6230
6231 2012-01-05  Bruno Haible  <bruno@clisp.org>
6232
6233         inttypes: Modernize.
6234         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6235         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6236         (Makefile.am): Update inttypes.h rule.
6237
6238 2012-01-05  Jim Meyering  <meyering@redhat.com>
6239
6240         init.sh: don't waste a subshell just to redirect stderr
6241         * tests/init.sh: In testing for diff -u and diff -c, use a
6242         stderr-redirecting exec inside `...` rather than a subshell.
6243
6244         test-init.sh: avoid failure on HP-UX 11.00
6245         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6246         resolves to diff -c or cmp.  Reported by Bruno Haible.
6247
6248 2012-01-05  Bruno Haible  <bruno@clisp.org>
6249
6250         Tests for module 'strtoull'.
6251         * modules/strtoull-tests: New file.
6252         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6253
6254 2012-01-05  Bruno Haible  <bruno@clisp.org>
6255
6256         Tests for module 'strtoll'.
6257         * modules/strtoll-tests: New file.
6258         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6259
6260 2012-01-05  Bruno Haible  <bruno@clisp.org>
6261
6262         Tests for module 'strtoul'.
6263         * modules/strtoul-tests: New file.
6264         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6265
6266 2012-01-05  Bruno Haible  <bruno@clisp.org>
6267
6268         Tests for module 'strtol'.
6269         * modules/strtol-tests: New file.
6270         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6271
6272 2012-01-04  Jim Meyering  <meyering@redhat.com>
6273
6274         test-init.sh: accommodate Solaris 5.10's different diff -u output
6275         * tests/test-init.sh: Also exempt @@ lines from the comparison
6276         of diff output, since Solaris 5.10 and GNU diff formats differ.
6277         Reported by Stefano Lattarini.
6278
6279 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6280
6281         test-posixtm: don't assume signed integer wraparound
6282         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6283         after signed integer overflow.  Inspired by (though it may not
6284         fix) Bruno Haible's bug report in
6285         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6286
6287         Spell out "Windows 9x" and "Windows XP".
6288         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6289         "Windows 9x" and "WinXP" with "Windows XP".
6290
6291 2012-01-04  Jim Meyering  <meyering@redhat.com>
6292
6293         test-vc-list-files-cvs.sh: remove obsolete comment
6294         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6295         double exit.  Now that's all encapsulated via skip_ and Exit.
6296
6297 2012-01-04  Bruno Haible  <bruno@clisp.org>
6298
6299         Talk about "native Windows API", not "Win32".
6300         * lib/classpath.c: Update comments to mention native Windows.
6301         * lib/csharpexec.c: Likewise.
6302         * lib/dup2.c: Likewise.
6303         * lib/error.c: Likewise.
6304         * lib/fcntl.c: Likewise.
6305         * lib/filename.h: Likewise.
6306         * lib/findprog.c: Likewise.
6307         * lib/get-rusage-as.c: Likewise.
6308         * lib/get-rusage-data.c: Likewise.
6309         * lib/getpagesize.c: Likewise.
6310         * lib/javaexec.c: Likewise.
6311         * lib/msvc-inval.c: Likewise.
6312         * lib/msvc-nothrow.c: Likewise.
6313         * lib/nanosleep.c: Likewise.
6314         * lib/nonblocking.c: Likewise.
6315         * lib/printf-parse.c: Likewise.
6316         * lib/setlocale.c: Likewise.
6317         * lib/sigaction.c: Likewise.
6318         * lib/strerror_r.c: Likewise.
6319         * lib/tmpdir.c: Likewise.
6320         * lib/vasnprintf.c: Likewise.
6321         * lib/w32spawn.h: Likewise.
6322         * lib/waitpid.c: Likewise.
6323         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6324         * m4/locale-ar.m4: Likewise.
6325         * m4/locale-fr.m4: Likewise.
6326         * m4/locale-ja.m4: Likewise.
6327         * m4/locale-tr.m4: Likewise.
6328         * m4/locale-zh.m4: Likewise.
6329         * m4/printf.m4: Likewise.
6330         * tests/test-cloexec.c: Likewise.
6331         * tests/test-copy-acl.sh: Likewise.
6332         * tests/test-copy-file.sh: Likewise.
6333         * tests/test-file-has-acl.sh: Likewise.
6334         * tests/test-set-mode-acl.sh: Likewise.
6335         * tests/test-dup-safer.c: Likewise.
6336         * tests/test-dup2.c: Likewise.
6337         * tests/test-dup3.c: Likewise.
6338         * tests/test-fcntl.c: Likewise.
6339         * tests/test-nonblocking-pipe.h: Likewise.
6340         * tests/test-nonblocking-socket.h: Likewise.
6341         * tests/test-pipe.c: Likewise.
6342         * tests/test-pipe2.c: Likewise.
6343         * tests/test-spawn-pipe-child.c: Likewise.
6344         * doc/acl-resources.txt: Likewise.
6345         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6346         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6347         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6348         * lib/localcharset.c: Update comments to mention native Windows.
6349         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6350         * lib/localename.c: Likewise.
6351         * lib/progreloc.c: Likewise.
6352         * lib/relocatable.c: Likewise.
6353         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6354         (windows_compute_revents): Renamed from win32_compute_revents.
6355         (windows_compute_revents_socket): Renamed from
6356         win32_compute_revents_socket.
6357         * lib/select.c: Update comments to mention native Windows.
6358         (windows_poll_handle): Renamed from win32_poll_handle.
6359         * m4/threadlib.m4: Update comments to mention native Windows.
6360         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6361         --enable-threads=windows instead of --enable-threads=win32. Set
6362         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6363         * lib/glthread/lock.h: Update comments to mention native Windows.
6364         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6365         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6366         USE_WIN32_THREADS.
6367         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6368         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6369         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6370         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6371         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6372         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6373         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6374         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6375         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6376         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6377         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6378         * tests/test-tls.c: Likewise.
6379         Rationale:
6380         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6381         on both 32-bit and 64-bit Windows systems.
6382         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6383         line of distinction is between "native Windows" on one side and Unix/
6384         POSIX systems on the other side. More details in
6385         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6386         Suggested by Paul Eggert.
6387
6388 2012-01-03  Bruno Haible  <bruno@clisp.org>
6389
6390         isatty: Support for MSVC 9.
6391         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6392         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6393         (_isatty_nothrow): New function.
6394         (isatty): Use it instead of _isatty.
6395         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6396         * lib/poll.c (IsConsoleHandle): Likewise.
6397         * lib/select.c (IsConsoleHandle): Likewise.
6398         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6399         (gl_PREREQ_ISATTY): New macro.
6400         * modules/isatty (Depends-on): Add msvc-inval.
6401         (configure.ac): Invoke gl_PREREQ_ISATTY.
6402
6403 2012-01-03  Jim Meyering  <meyering@redhat.com>
6404
6405         maint.mk: remove temporary transition aid from over 1.5 years ago
6406         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6407         purpose was to aid in the transition (avoiding silent malfunction)
6408         from that old name to the new _sc_search_regexp.  This shim was
6409         added by commit 219c504b.
6410
6411         init.sh: do not try to accommodate compare arguments starting with "-"
6412         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6413         compare arguments that start with "-".  Besides, we do not worry
6414         about this when invoking diff or cmp; why start now with sed?
6415         Using "--" to separate options from argument would trigger sed
6416         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6417         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6418
6419 2012-01-02  Bruno Haible  <bruno@clisp.org>
6420
6421         Enhance tests for module 'isatty'.
6422         * modules/isatty-tests (Depends-on): Add pipe-posix.
6423         * tests/test-isatty.c: Include <fcntl.h>.
6424         (DEV_NULL): New macro.
6425         (main): Test the resut of isatty() also on regular files, pipes, and
6426         /dev/null.
6427
6428         New module 'isatty'.
6429         * lib/unistd.in.h (isatty): New declaration.
6430         * lib/isatty.c: New file, based on an idea of
6431         Bastien Roucariès <roucaries.bastien@gmail.com>.
6432         * m4/isatty.m4: New file.
6433         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6434         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6435         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6436         REPLACE_ISATTY.
6437         * modules/isatty: New file.
6438         * doc/posix-functions/isatty.texi: Mention the new module.
6439         Suggested by Paolo Bonzini.
6440
6441 2012-01-02  Bruno Haible  <bruno@clisp.org>
6442
6443         canonicalize: Tweak 2011-12-29 commit.
6444         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6445         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6446
6447 2012-01-02  Jim Meyering  <meyering@redhat.com>
6448
6449         gitlog-to-changelog: describe input syntax in --help output
6450         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6451
6452         gitlog-to-changelog: fix typo in --help: show backslash before email @
6453         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6454         in sources, but not in actual output.
6455
6456 2011-12-30  Jim Meyering  <meyering@redhat.com>
6457
6458         gitlog-to-changelog: don't malfunction when name contains %-directive
6459         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6460         in a name string cause trouble.  E.g., with a user name of "%s",
6461         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6462
6463 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6464
6465         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6466         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6467         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6468         the "  (tiny change)" notation that is appended to the standard
6469         ChangeLog "date  name  email" header line.
6470
6471 2012-01-01  Jim Meyering  <meyering@redhat.com>
6472
6473         test-framework-sh: init.sh: fix "make dist" failure
6474         When using gnulib-tool's --with-tests option and any module that
6475         depends on test-framework-sh, "make dist" would fail due to the
6476         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6477         in the gltests directory, and not in the gllib/ directory.
6478         One way to work around that is to move the EXTRA_DIST += init.sh
6479         from the primary module to the -tests one:
6480         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6481         * modules/test-framework-sh (Makefile.am): ...not here.
6482         Reported by Tom G. Christensen in
6483         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6484
6485         version-etc: update copyright year reported by --version
6486         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6487
6488 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6489
6490         canonicalize: only stat() if required
6491         * lib/canonicalize.c (canonicalize_filename_mode):
6492         Avoid calling l?stat() when both CAN_MISSING,
6493         and CAN_NOLINKS are set, as we neither need
6494         to resolve symlinks or test component existence.
6495
6496 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6497
6498         doc: cover st_ino issues once; add OpenVMS etc.
6499         * doc/posix-functions/stat.texi (stat):
6500         * doc/posix-functions/lstat.texi (lstat):
6501         * doc/posix-functions/fstatat.texi (fstatat):
6502         * doc/posix-functions/fstat.texi (fstat):
6503         Move general 'struct stat' stuff to sys_stat.texi,
6504         leaving behind a pointer.
6505         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6506         Merge duplicate info about 'struct stat' problems into here.
6507         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6508         and suggest partial workarounds.
6509
6510         same-inode: port to OpenVMS
6511         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6512         three st_ino values.
6513
6514 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6515
6516         canonicalize: fix references to stat() and lstat()
6517         * lib/canonicalize.c (canonicalize_filename_mode):
6518         Ensure references always resolve to a replacement
6519         function if required (even via a macro).
6520
6521 2011-12-30  Jim Meyering  <meyering@redhat.com>
6522
6523         gitlog-to-changelog: remove a little duplication
6524         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6525         rather than twice.
6526
6527 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6528
6529         canonicalize: add support for not resolving symlinks
6530         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6531         indicate we don't want to follow symlinks.  Also
6532         provide CAN_MODE_MASK to aid setting these existing
6533         mutually exclusive values.
6534         * lib/canonicalize.c (canonicalize_filename_mode):
6535         Extract the flags from can_mode parameter, which
6536         are currently just used to select between stat()
6537         and lstat().  Also ensure that mutually exclusive
6538         values are flagged immediately as invalid.
6539         * tests/test-canonicalize.c: Verify symlinks are
6540         not followed, and that invalid flag combinations
6541         are diagnosed.
6542
6543 2011-12-25  Jim Meyering  <meyering@redhat.com>
6544
6545         gitlog-to-changelog: do not clump multi-paragraph entries
6546         Identical header lines (date,name,email+coauthors) are suppressed,
6547         thus putting all entries with those same characteristics under
6548         a single header.  However, when a log entry consists of two or
6549         more paragraphs, it may not be clear where it starts and ends.
6550         This change makes it so that such an entry is always separated
6551         from others by a header line, even when that header would
6552         otherwise be suppressed.
6553         * build-aux/gitlog-to-changelog: Implement the above.
6554         Inspired by a related request from Stefano Lattarini in
6555         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6556
6557 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6558
6559         announce-gen: fix `cmd' typo in diagnostic
6560         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6561         diagnostic: a missing '$' meant that the command was not output.
6562
6563 2011-12-23  Jim Meyering  <meyering@redhat.com>
6564
6565         test-framework-sh: distribute init.sh
6566         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6567         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6568         fail due to the lack of init.sh.
6569
6570         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6571         * modules/atexit-tests: Rather than listing tests/init.sh,
6572         now that there's a module for it, simply depend on that new module.
6573         * modules/closein-tests: Likewise.
6574         * modules/exclude-tests: Likewise.
6575         * modules/getcwd-tests: Likewise.
6576         * modules/perror-tests: Likewise.
6577         * modules/pread-tests: Likewise.
6578         * modules/pwrite-tests: Likewise.
6579         * modules/vc-list-files-tests: Likewise.
6580         * modules/verify-tests: Likewise.
6581         * modules/xalloc-die-tests: Likewise.
6582         * modules/xstrtoimax-tests: Likewise.
6583         * modules/xstrtol-tests: Likewise.
6584         * modules/xstrtoll-tests: Likewise.
6585         * modules/xstrtoumax-tests: Likewise.
6586         * modules/yesno-tests: Likewise.
6587
6588 2011-12-22  Jim Meyering  <meyering@redhat.com>
6589
6590         test-framework-sh: add minimal tests of init.sh's compare function
6591         * modules/test-framework-sh-tests: New file.
6592         * tests/test-init.sh: New file.
6593
6594         test-framework-sh: new module
6595         * modules/test-framework-sh: New file.
6596         * MODULES.html.sh (Support for maintaining and releasing projects):
6597         List it.
6598
6599         init.sh: do not emit simulated diff output to stderr
6600         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6601
6602 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6603
6604         .gitignore: ignore gnulib.dvi and regex.info
6605         * doc/.gitignore:add gnulib.dvi and regex.info
6606
6607 2011-12-22  Jim Meyering  <meyering@redhat.com>
6608
6609         init.sh: correct previous change
6610         * tests/init.sh (compare): My previous change was wrong.
6611         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6612
6613         init.sh: avoid unwarranted test failure when using "set -e"
6614         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6615         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6616         a use like "compare exp out" would get evoke an unconditional failure.
6617
6618 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6619
6620         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6621         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6622         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6623         autoreconf that did not.
6624         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6625         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6626
6627 2011-12-17  Jim Meyering  <meyering@redhat.com>
6628
6629         bootstrap: remove some now-unneeded code
6630         This script arose back when gnulib-tool was young.
6631         Since then, it has seen improvements that render much of this
6632         script unnecessary.  In particular, it can now make symlinks
6633         to the files it uses.  Also, I no longer see as much value in
6634         marking files as read-only via comments.
6635         If you relied on the symlink-creation feature of the preceding
6636         version of this script, you can get most of that functionality
6637         by adding the --symlink option to the definition of
6638         gnulib_tool_option_extras in your bootstrap.conf file.
6639         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6640         Run autopoint and libtoolize *before* gnulib-tool.
6641         After it, run an abbreviated autoreconf, rather than a loop around
6642         all tools.
6643         (slirp, bt_mark_as_generated): Remove functions.
6644
6645 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6646
6647         ftoastr: fix typo
6648         * lib/ftoastr.h: Fix misspelling in comment.
6649
6650 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6651
6652         * top/README-release: fix punctuation.
6653
6654 2011-12-17  Jim Meyering  <meyering@redhat.com>
6655
6656         bootstrap: correct the recent buildreq change
6657         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6658         had no effect.
6659         * build-aux/bootstrap (buildreq): Bracket each search term with
6660         "*...*", so that the shell "case" statement works as intended.
6661         Add comments.
6662
6663 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6664
6665         build: let bootstrap resort to wget when downloading .po files
6666         * build-aux/bootstrap (download_po_files): Fallback to wget when
6667         downloading the .po files via rsync fails.  This is necessary to
6668         bootstrap from behind a strict firewall.
6669
6670 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6671
6672         stdint: don't assume C++11 when compiling with g++
6673         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6675         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6676         work also in C++ before C++11, as that improperly inhibits
6677         generating a substitute stdint.h for that case.
6678
6679 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6680
6681         alloca: protect comment from gnulib-tool
6682         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6683         that gnulib-tool doesn't think it's a license, and munge it to
6684         say "GCC version 3".
6685
6686 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6687
6688         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6689         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6690         $(abs_top_builddir) instead of $(top_builddir).
6691
6692 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6693
6694         strftime-tests: also test nanoseconds
6695         * tests/test-strftime.c (T): Add a test of %N.
6696
6697 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6698
6699         inttypes, stdint: add C++11 support
6700         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6701         when including inttypes.h and stdint.h.  Support this change to
6702         the standard.
6703         * doc/posix-headers/inttypes.texi (inttypes.h):
6704         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6705         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6706         Define if not defined already, for the benefit of pre-C++11 hosts.
6707         Define the standard format macros (e.g., PRId8) always.
6708         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6709         Likewise, if __cpluspus.  Define the standard constant and limit
6710         macros (e.g., INT8_C, INT8_MAX) always.
6711         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6712         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6713         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6714         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6715         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6716         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6717         Likewise.
6718
6719 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6720
6721         nonblocking tests: Fix test failure on Linux/PPC.
6722         Suggested by Prerna Saxena in
6723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6724         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6725         Set to 1100000.
6726
6727 2011-12-12  Jim Meyering  <meyering@redhat.com>
6728
6729         argmatch: don't hard-code `' when listing valid option arguments
6730         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6731         use the quote function to add quotes.  Use fputs rather than
6732         fprintf for the format string with no format directive.
6733
6734 2011-12-07  Eric Blake  <eblake@redhat.com>
6735
6736         bootstrap: detect tools required by gnulib-tool
6737         * build-aux/bootstrap (buildreq): Provide minimum implicit
6738         dependencies.
6739         * DEPENDENCIES: Mention patch as a prereq.
6740
6741 2011-12-04  Bruno Haible  <bruno@clisp.org>
6742
6743         sethostname: Port to Windows platforms.
6744         * lib/sethostname.c: Provide an alternate implementation for Windows
6745         platforms.
6746         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6747         (main): Skip the test if sethostname() fails with EPERM. On Windows
6748         platforms, don't check the result of gethostname().
6749
6750 2011-12-04  Bruno Haible  <bruno@clisp.org>
6751             Jim Meyering  <meyering@redhat.com>
6752
6753         tests: Avoid spurious error message on platforms without mktemp program.
6754         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6755
6756 2011-12-04  Bruno Haible  <bruno@clisp.org>
6757
6758         sethostname: Fix documentation.
6759         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6760         "not fixed" section.
6761
6762 2011-12-03  Bruno Haible  <bruno@clisp.org>
6763
6764         gnulib-tool: Verify that the License field is present and non-empty.
6765         * gnulib-tool (func_get_license_raw): New function, extracted from
6766         func_get_license.
6767         (func_get_license): Use it. Warn if the module is not a test module and
6768         has no license.
6769         Suggested by Jim Meyering.
6770
6771 2011-12-03  Bruno Haible  <bruno@clisp.org>
6772
6773         sethostname tests: Fix link error on mingw.
6774         * tests/test-sethostname1.c: New file, extracted from
6775         tests/test-sethostname.c.
6776         * tests/test-sethostname2.c: New file, extracted from
6777         tests/test-sethostname.c.
6778         * tests/test-sethostname.c: Remove file.
6779         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6780         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6781         (Depends-on): Add gethostname.
6782         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6783         Link the latter with $(GETHOSTNAME_LIB).
6784
6785         sethostname tests: Fix compilation error on mingw.
6786         * tests/test-sethostname.c: Don't include <sys/types.h>.
6787         (geteuid): Use a dummy value without uid_t.
6788         * modules/sethostname-tests (Depends-on): Remove sys_types.
6789
6790         sethostname tests: Avoid a gcc warning.
6791         * tests/test-sethostname.c (main): Remove an unused variable.
6792
6793         Tweak last commit.
6794         * modules/sethostname-tests (Files): Sort by decreasing importance.
6795         (configure.ac): Check for geteuid.
6796         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6797         the test when there's nothing to test. Drop an unnecessary cast.
6798         Improve an error message. Verify that the final sethostname() call
6799         succeeds.
6800
6801 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6802
6803         Add a test suite for the sethostname module.
6804         * modules/sethostname-tests: New file.  A test program
6805         for the sethostname module.
6806         * tests/test-sethostname.c: Likewise.
6807
6808 2011-12-03  Bruno Haible  <bruno@clisp.org>
6809
6810         Tweak last commit.
6811         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6812         Fix preprocessor directives indentation. Fix typos.
6813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6814         * modules/unistd (Makefile): Likewise.
6815
6816 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6817
6818         Integrate the sethostname module into unistd.
6819         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6820         into the unistd.h header.
6821         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6822         preprocessor directives.
6823         * modules/unistd: Setup the Makefile substitutions of the
6824         SETHOSTNAME preprocessor directives.
6825
6826 2011-12-03  Bruno Haible  <bruno@clisp.org>
6827
6828         Tweak last commit.
6829         * lib/sethostname.c: Don't include <string.h>.
6830         (sethostname): No need to copy the argument string to the stack. Don't
6831         call clearerr. Preserve errno when fprintf failed.
6832         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6833         Don't invoke AC_REPLACE_FUNCS.
6834         * modules/sethostname (Link): Remove empty section.
6835         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6836         failure problem.
6837
6838 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6839
6840         New module 'sethostname'.
6841         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6842         for systems that lack it.
6843         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6844         sethostname declaration and function.
6845         * modules/sethostname: New file.  Define the sethostname module.
6846
6847 2011-12-03  Bruno Haible  <bruno@clisp.org>
6848
6849         Tweak last commit.
6850         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6851
6852 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6853
6854         Split the HOST_NAME_MAX detection into a separate m4 macro.
6855         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6856         macro so it can be used by the pending sethostname module.
6857
6858 2011-12-03  Bruno Haible  <bruno@clisp.org>
6859
6860         Fix module descriptions syntax.
6861         * modules/argv-iter (License): Fix syntax.
6862         * modules/di-set (License): Likewise.
6863         * modules/ino-map (License): Likewise.
6864         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6865
6866 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6867
6868         stdalign: port to Clang 3.0
6869         Problem reported by Simon Josefsson in
6870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6871         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6872         which has <stdalign.h> but which does not define alignof.
6873         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6874
6875 2011-12-01  Eric Blake  <eblake@redhat.com>
6876
6877         mktempd: silence dd usage
6878         * build-aux/mktempd (rand_bytes): Silence dd.
6879
6880 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6881
6882         manywarnings: Don't mention gcc version in docstring.
6883         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6884         Jim Meyering <meyering@redhat.com>.
6885
6886 2011-11-30  Jim Meyering  <meyering@redhat.com>
6887
6888         hash: mark a few floating point constants with "f" suffix
6889         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6890         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6891         floating point constants with "f", since they're destined to be
6892         saved/used as "float"s.
6893
6894 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6895
6896         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6897         * tests/test-float.c (test_long_double): Correct and re-enable the
6898         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6899
6900 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6901
6902         Avoid subtracting two pointers that don't point into the same block.
6903         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6904         only pointers into the same memory block are subtracted. We cannot
6905         assume that sizeof (ptrdiff_t) == sizeof (void *).
6906
6907 2011-11-29  Eric Blake  <eblake@redhat.com>
6908
6909         maint.mk: add syntax check for use of compare from init.sh
6910         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6911         moved here from coreutils.
6912
6913         manywarnings: drop -Wunsuffixed-float-constants
6914         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6915         '1.0D', which is the only way to silence this warning for 'double'.
6916
6917 2011-11-29  Jim Meyering  <meyering@redhat.com>
6918
6919         hash: mark compute_bucket_size with the pure attribute
6920         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6921
6922         quotearg, propername: correct pragma guard expression
6923         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6924         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6925
6926 2011-11-28  Jim Meyering  <meyering@redhat.com>
6927
6928         propername: do not mark proper_name with the const attribute
6929         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6930         since it examines data pointed to by its parameter.
6931         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6932         the suggestion from -Wsuggest-attribute=const.
6933
6934         propername: mark one more function as const
6935         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6936
6937 2011-11-27  Jim Meyering  <meyering@redhat.com>
6938
6939         mark functions with const and pure attributes
6940
6941         Mark functions per suggestions from gcc-4.6 when using these options:
6942         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6943         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6944         Follow these guidelines: when possible, apply the attribute to
6945         an extern declaration, not to its definition.  Apply it to the
6946         definition only when the definition is static.
6947         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6948         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6949         * lib/base64.h (isbase64): Likewise.
6950         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6951         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6952         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6953         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6954         (c_tolower, c_toupper): Likewise.
6955         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6956         * lib/chdir-long.c (find_non_slash): Likewise.
6957         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6958         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6959         * lib/file-type.h (file_type): Likewise.
6960         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6961         * lib/filevercmp.c (verrevcmp): Likewise.
6962         * lib/freadahead.h (freadahead): Likewise.
6963         * lib/fts.c (fts_maxarglen): Likewise.
6964         * lib/hash-pjw.h (hash_pjw): Likewise.
6965         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6966         * lib/hash.c (is_prime, next_prime): Likewise.
6967         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6968         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6969         (hash_table_ok, hash_get_first, hash_string): Likewise.
6970         (compute_bucket_size): Likewise.
6971         * lib/i-ring.h (i_ring_empty): Likewise.
6972         * lib/isnan.c (isnanl): Likewise.
6973         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6974         * lib/memcasecmp.h (memcasecmp): Likewise.
6975         * lib/memchr2.h (memchr2): Likewise.
6976         * lib/memcmp2.h (memcmp2): Likewise.
6977         * lib/parse-datetime.y (lookup_zone): Likewise.
6978         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6979         [!WINDOWS_SOCKETS]: Likewise.
6980         * lib/strnlen1.h (strnlen1): Likewise.
6981         * lib/uniwidth.in.h (uc_width): Likewise.
6982         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6983         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6984         (quoting_options_from_style): Add a comment.
6985         * lib/propername.h (proper_name): Add a comment.
6986
6987 2011-11-27  Bruno Haible  <bruno@clisp.org>
6988
6989         Remove unused macros from !_LIBC code in glibc-borrowed files.
6990         * lib/fnmatch.c (STRCOLL): Remove macro.
6991         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6992         * lib/glob.c (__stat, __readdir64): Remove macros.
6993         * lib/tempname.c (__open64, __xstat64): Remove macros.
6994         Suggested by Paul Eggert.
6995
6996 2011-11-27  Bruno Haible  <bruno@clisp.org>
6997
6998         getcwd: Fix link error on MSVC 9.
6999         * modules/getcwd (Depends-on): Add readdir, rewinddir.
7000
7001 2011-11-27  Bruno Haible  <bruno@clisp.org>
7002
7003         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
7004         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
7005         HAVE_OPENDIR is 0.
7006         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
7007         HAVE_CLOSEDIR is 0.
7008         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
7009         is 0.
7010         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
7011
7012 2011-11-27  Bruno Haible  <bruno@clisp.org>
7013
7014         getcwd: Fix bug from 2011-08-17.
7015         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
7016         platforms that need it.
7017         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
7018         code of 4 to be a failure, not a success. This ensures that
7019         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
7020
7021 2011-11-27  Bruno Haible  <bruno@clisp.org>
7022
7023         binary-io tests: Avoid test failure on mingw when libtool is used.
7024         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
7025         Don't verify the size of t-bin-out1.tmp here.
7026         * tests/test-binary-io.sh: Verify it here.
7027         Reported by Simon Josefsson.
7028
7029 2011-11-26  Bruno Haible  <bruno@clisp.org>
7030
7031         Fix conflict between two instantiations of module 'unistd'.
7032         * gnulib-tool (func_emit_autoconf_snippet): Substitute
7033         ${include_guard_prefix} also in the autoconf snippet.
7034         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
7035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
7036         GNULIB_UNISTD_H_GETOPT.
7037         * modules/getopt-posix (configure.ac): Set the
7038         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
7039         * modules/getopt-gnu (configure.ac): Likewise.
7040         * modules/unistd (Makefile.am): Change the substitution value of
7041         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
7042         Reported by Simon Josefsson.
7043
7044 2011-11-25  Bruno Haible  <bruno@clisp.org>
7045
7046         pagealign_alloc: Doc and comments.
7047         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
7048         module.
7049         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
7050
7051 2011-11-25  Jim Meyering  <meyering@redhat.com>
7052
7053         test-update-copyright.sh: avoid false-positive failure
7054         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
7055         around false positive failure on Cygwin/Windows.  The latter was
7056         matching erroneously-created files with names like
7057         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
7058
7059 2011-11-25  Simon Josefsson  <simon@josefsson.org>
7060
7061         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
7062         * m4/valgrind-tests.m4: Check that the parameters that will be
7063         used works, not just a subset of them.  Reported by Bruno Haible
7064         <bruno@clisp.org>.
7065
7066 2011-11-24  Jim Meyering  <meyering@redhat.com>
7067
7068         test-stdalign.c: comment out long double tests
7069         * tests/test-stdalign.c: Don't try to reduce alignment of long double
7070         variables.  That provokes errors like this from gcc-4.7.0 20111124:
7071         error: '_Alignas' specifiers cannot reduce alignment of \
7072         'static_longdouble_alignas'.
7073
7074 2011-11-22  Jim Meyering  <meyering@redhat.com>
7075
7076         init.sh: make "compare /dev/null FILE" output more readable
7077         * tests/init.sh (compare_): Document the preferred order of arguments.
7078         (emit_diff_u_header_): New function.
7079         (compare_dev_null_): Emit a simulated diff, rather than just the
7080         contents of the unexpected file.  Suggestion from Bruno Haible.
7081
7082 2011-11-21  Jim Meyering  <meyering@redhat.com>
7083             Eric Blake  <eblake@redhat.com>
7084
7085         init.sh: work around OSF/1 5.1's mishandling of /dev/null
7086         * tests/init.sh: Make our compare function slightly more portable.
7087         Reported by Bruno Haible in
7088         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
7089
7090 2011-11-21  Simon Josefsson  <simon@josefsson.org>
7091
7092         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
7093         before using it, in code that ends up in config.h.
7094
7095 2011-11-20  Bruno Haible  <bruno@clisp.org>
7096
7097         getcwd: Work around getcwd bug on AIX 5..7.
7098         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
7099         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
7100         Use a different value for gl_cv_func_getcwd_path_max. Move the
7101         definition of HAVE_PARTLY_WORKING_GETCWD from here...
7102         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
7103         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
7104         Define HAVE_MINIMALLY_WORKING_GETCWD.
7105         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
7106         where it is not even minimally working, that is, on AIX.
7107         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
7108         m4/getcwd-path-max.m4.
7109         (main): Update exit code computation.
7110         * doc/posix-functions/getcwd.texi: Mention list of platforms where
7111         getcwd does not handle long file names.
7112
7113 2011-11-20  Bruno Haible  <bruno@clisp.org>
7114
7115         getcwd: Fix bug from 2009-09-10.
7116         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
7117         like "no".
7118
7119 2011-11-20  Simon Josefsson  <simon@josefsson.org>
7120
7121         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
7122
7123 2011-11-20  Bruno Haible  <bruno@clisp.org>
7124
7125         fma tests: Avoid shadowing local variables.
7126         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
7127         expected.
7128
7129 2011-11-20  Bruno Haible  <bruno@clisp.org>
7130
7131         copysignf tests: Fix.
7132         * tests/test-copysignf.c: Fix signature check.
7133
7134 2011-11-20  Bruno Haible  <bruno@clisp.org>
7135
7136         fma: Remove unused code.
7137         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7138         unused macros.
7139
7140 2011-11-20  Bruno Haible  <bruno@clisp.org>
7141
7142         sethostname: Fix doc about AIX.
7143         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7144         sethostname; it has it.
7145
7146         sethostname: Mention more portability problems.
7147         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7148         problem.
7149         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7150
7151 2011-11-19  Bruno Haible  <bruno@clisp.org>
7152
7153         Depend on module fcntl-h when AT_FDCWD is used.
7154         * modules/utimens (Depends-on): Add fcntl-h.
7155         * modules/areadlinkat (Depends-on): Likewise.
7156         * modules/areadlinkat-with-size (Depends-on): Likewise.
7157         * modules/faccessat (Depends-on): Likewise.
7158         * modules/fchmodat (Depends-on): Likewise.
7159         * modules/fchownat (Depends-on): Likewise.
7160         * modules/getcwd (Depends-on): Likewise.
7161         * modules/mkdirat (Depends-on): Likewise.
7162         * modules/mkfifoat (Depends-on): Likewise.
7163         * modules/readlinkat (Depends-on): Likewise.
7164         * modules/symlinkat (Depends-on): Likewise.
7165         * modules/dup2-tests (Depends-on): Likewise.
7166         * modules/fdutimensat-tests (Depends-on): Likewise.
7167         * modules/futimens-tests (Depends-on): Likewise.
7168
7169 2011-11-19  Bruno Haible  <bruno@clisp.org>
7170
7171         euidaccess: Update a comment.
7172         * lib/euidaccess.c: Update comment about platforms with faccessat.
7173
7174 2011-11-19  Bruno Haible  <bruno@clisp.org>
7175
7176         openat: Fix file list.
7177         * modules/openat (Files): Remove lib/at-func.c.
7178
7179 2011-11-19  Bruno Haible  <bruno@clisp.org>
7180
7181         fstatat: Simplify.
7182         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7183         gnulib should define rpl_fstatat, there is a
7184         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7185
7186 2011-11-19  Bruno Haible  <bruno@clisp.org>
7187
7188         Ensure 'inline' can be used in tests/test-utimens-common.h.
7189         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7190         * modules/futimens-tests (configure.ac): Likewise.
7191         * modules/utimens-tests (configure.ac): Likewise.
7192         * modules/utimensat-tests (configure.ac): Likewise.
7193
7194 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7195
7196         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7197         not hash_insert0.
7198         (hash_insert_if_absent): Doc fix.
7199
7200 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7201
7202         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7203
7204 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7205
7206         test-getcwd: disambiguate exit status
7207         * tests/test-getcwd.c (test_long_name): Return 0..7.
7208         (main): Exit with an unambiguous exit status.  The old
7209         code yielded a mysterious mixture of two failure codes.
7210
7211         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7212         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7213         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7214         rpl_fstatat or fstatat.  This should fix the other problem
7215         reported by Kai Habel in
7216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7217         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7219         and I reproduced it on a Solaris 8 host we still have in production.
7220
7221 2011-11-18  Jim Meyering  <meyering@redhat.com>
7222
7223         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7224         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7225         Add a sentence to the comment.
7226         (hash_insert0): New function that simply calls hash_insert_if_absent.
7227         * lib/hash.h (hash_insert_if_absent): Declare it.
7228         (hash_insert0): Add deprecation attribute.
7229         (_GL_ATTRIBUTE_DEPRECATED): Define.
7230         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7231         not hash_insert0.
7232         * NEWS: Mention it, even though it's not really an incompatible change.
7233
7234 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7235
7236         openat: avoid compilation failure due to lack of <errno.h> inclusion
7237         * lib/openat.c: Include <errno.h>.
7238
7239 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7240
7241         * modules/getcwd (Depends-on): Add fdopendir.
7242         This fixes one of the two problems reported by Kai Habel in
7243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7244
7245         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7246         stdalign problem reported by Ian Beckwith in
7247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7248         * modules/crypto/gc-arcfour (Depends-on):
7249         Depend conditionally on crypto/arcfour.
7250         * modules/crypto/gc-arctwo (Depends-on):
7251         Depend conditionally on crypto/arctwo.
7252         * modules/crypto/gc-des (Depends-on):
7253         Depend conditionally on crypto/des.
7254         * modules/crypto/gc-hmac-md5 (Depends-on):
7255         Depend conditionally on crypto/hmac-md5.
7256         * modules/crypto/gc-hmac-sha1 (Depends-on):
7257         Depend conditionally on crypto/hmac-sha1.
7258         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7259         * modules/crypto/gc-md4 (Depends-on):
7260         Depend conditionally on crypto/md4.
7261         * modules/crypto/gc-md5 (Depends-on):
7262         Depend conditionally on crypto/md5.
7263         * modules/crypto/gc-rijndael (Depends-on):
7264         Depend conditionally on crypto/rijndael.
7265         * modules/crypto/gc-sha1 (Depends-on):
7266         Depend conditionally on crypto/sha1.
7267         * modules/crypto/gc-arcfour:
7268         * modules/crypto/gc-arctwo:
7269         * modules/crypto/gc-des:
7270         * modules/crypto/gc-hmac-md5:
7271         * modules/crypto/gc-hmac-sha1:
7272         * modules/crypto/gc-md2:
7273         * modules/crypto/gc-md4:
7274         * modules/crypto/gc-md5:
7275         * modules/crypto/gc-rijndael:
7276         * modules/crypto/gc-sha1:
7277         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7278         now that the conditional dependencies do the work for us.
7279
7280 2011-11-17  Jim Meyering  <meyering@redhat.com>
7281
7282         tests: factor st_ctime-comparison out of two headers
7283         * tests/test-utimens-common.h (ctime_compare): Define.
7284         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7285         * tests/test-lutimens.h (test_lutimens): Likewise.
7286         * tests/test-utimens.h (test_utimens): Likewise.
7287
7288         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7289         Invoke the test program via an init.sh-using wrapper.
7290         * tests/test-getcwd.sh: New file.
7291         * modules/getcwd-tests (Files): Add it.
7292         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7293
7294 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7295
7296         gitlog-to-changelog: support multi-author commits.
7297         The FSF cares about keeping track of all authors of patches to its
7298         projects, but Git doesn't provide obvious support for multi-author
7299         changesets. Consensus seems to be forming around the use of extra
7300         Signed-off-by inspired lines in the log message formatted as
7301         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7302         multi-author commits between version control systems.
7303         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7304         log message and output in standard ChangeLog multi-author format.
7305         Reported by Peter Rosin <peda@lysator.liu.se>
7306
7307 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7308             Bruno Haible  <bruno@clisp.org>
7309
7310         Fix some modules' file list.
7311         * modules/fstatat (Files): Add m4/lstat.m4.
7312         * modules/openat (Files): Likewise.
7313         * modules/unlinkat (Files): Likewise.
7314
7315 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7316
7317         maint.mk: fix tight-scope.mk generation in VPATH builds.
7318         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7319         reference with $(srcdir) so that the file is found correctly even
7320         when running `make syntax-check' in a VPATH build.
7321
7322 2011-11-13  Bruno Haible  <bruno@clisp.org>
7323             Jim Meyering  <meyering@redhat.com>
7324
7325         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7326         * tests/init.sh (compare): Remove "No differences encountered" or
7327         synonymous output from the 'diff' program.
7328
7329 2011-11-13  Bruno Haible  <bruno@clisp.org>
7330
7331         Makefile: Tweak indentation.
7332         * Makefile: Use tab as first character in every line that contains rule
7333         commands.
7334
7335 2011-11-13  Bruno Haible  <bruno@clisp.org>
7336
7337         Syntax check for copyright statements.
7338         * check-copyright: New file.
7339         * Makefile (sc_check_copyright): New rule.
7340
7341 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7342
7343         * build-aux/git-version-gen: Add --prefix to configure the tag
7344         match string.
7345
7346 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7347
7348         * build-aux/git-version-gen: Add --help and --version.
7349
7350 2011-11-12  Jim Meyering  <meyering@redhat.com>
7351
7352         revamp the other test-exclude?.sh scripts to use init.sh, too
7353         * tests/test-exclude1.sh: Use init.sh.
7354         * tests/test-exclude2.sh: Likewise.
7355         * tests/test-exclude3.sh: Likewise.
7356         * tests/test-exclude4.sh: Likewise.
7357         * tests/test-exclude5.sh: Likewise.
7358         * tests/test-exclude6.sh: Likewise.
7359         * tests/test-exclude7.sh: Likewise.
7360         * tests/test-exclude8.sh: Likewise.
7361         * modules/exclude-tests (Files): List init.sh.
7362
7363         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7364         These shell scripts ignored failure of the binary test-exclude,
7365         so making the latter return 77 didn't cause them to be skipped.
7366         * tests/test-exclude5.sh: Exit with test-exclude's error status
7367         when that program fails.  Revamp to use init.sh.
7368         * tests/test-exclude2.sh: Likewise.
7369
7370         test-exclude: fix a typo
7371         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7372
7373 2011-11-11  Bruno Haible  <bruno@clisp.org>
7374
7375         obstack: Fix compilation error on MSVC 9.
7376         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7377
7378 2011-11-11  Jim Meyering  <meyering@redhat.com>
7379
7380         test-exclude: skip tests rather than failing on deficient systems
7381         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7382         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7383         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7384         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7385
7386 2011-11-10  Bruno Haible  <bruno@clisp.org>
7387
7388         ptsname_r test: Avoid gcc warning on glibc systems.
7389         * tests/test-ptsname_r.c (null_ptr): New function.
7390         (test_errors): Use it.
7391
7392 2011-11-10  Bruno Haible  <bruno@clisp.org>
7393
7394         ptsname_r: Avoid compilation error on OSF/1 5.1.
7395         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7397         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7398         function is not declared or incompatibly declared.
7399         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7400         * modules/ptsname_r (Depends-on, configure.ac): Update.
7401         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7402
7403 2011-11-10  Bruno Haible  <bruno@clisp.org>
7404
7405         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7406         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7407         When cross-compiling, guess yes on all platforms except AIX.
7408         Reported by Ludovic Courtès <ludo@gnu.org>.
7409
7410 2011-11-09  Bruno Haible  <bruno@clisp.org>
7411
7412         ptsname_r tests: Fix bugs.
7413         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7414         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7415
7416 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7417
7418         fstatat: work with cross-compilation
7419         Problem reported by Ludovic Courtès in
7420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7421         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7422         "cross-compiling" and assume the bug is present.  Replace
7423         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7424         an inverted sense, to be more conservative about our assumptions.
7425         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7426
7427 2011-11-09  Bruno Haible  <bruno@clisp.org>
7428
7429         Improve MODULES.html output.
7430         * modules/mkfifoat (Description): Use the word "function".
7431         * modules/readlinkat (Description): Likewise.
7432         * modules/symlinkat (Description): Likewise.
7433
7434 2011-11-09  Eric Blake  <eblake@redhat.com>
7435
7436         ptsname_r-tests: new test module
7437         * modules/ptsname_r-tests: New module.
7438         * tests/test-ptsname_r.c: New file.
7439
7440         ptsname_r: new module
7441         * modules/ptsname_r: New module.
7442         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7443         * lib/ptsname.c (__ptsname_r): Split...
7444         * lib/ptsname_r.c: ...into new file.
7445         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7446         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7447         * modules/stdlib (Makefile.am): Substitute witnesses.
7448         * lib/stdlib.in.h (ptsname_r): Declare it.
7449         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7450         * MODULES.html.sh (Misc): Likewise.
7451         * modules/ptsname (Depends-on): Alter dependency.
7452         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7453
7454 2011-11-09  Jim Meyering  <meyering@redhat.com>
7455
7456         announce-gen: be more concise when there's only one URL+tarball
7457         * build-aux/announce-gen (get_tool_versions): When you distribute
7458         only one type of tarball, combine the first two "Here are..."
7459         sections and make the key-checking grammar independent of
7460         how many tarballs there are.
7461
7462 2011-11-09  Eric Blake  <eblake@redhat.com>
7463
7464         openpty: provide a stub on mingw
7465         * lib/pty.in.h (includes): Provide forward declarations.
7466         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7467
7468         raise: fix mingw handling of SIGPIPE
7469         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7470
7471 2011-11-08  Bruno Haible  <bruno@clisp.org>
7472
7473         More conditional dependencies.
7474         * modules/faccessat (Depends-on): Add conditions.
7475         * modules/fchmodat (Depends-on): Likewise.
7476         * modules/fchownat (Depends-on): Likewise.
7477         * modules/fstatat (Depends-on): Likewise.
7478         * modules/mkfifoat (Depends-on): Likewise.
7479         * modules/readlinkat (Depends-on): Likewise.
7480         * modules/symlinkat (Depends-on): Likewise.
7481         * modules/unlinkat (Depends-on): Likewise.
7482         * modules/utimensat (Depends-on): Likewise.
7483         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7484         * modules/linkat (Depends-on): Refine the conditions.
7485         * modules/renameat (Depends-on): Likewise.
7486
7487 2011-11-08  Bruno Haible  <bruno@clisp.org>
7488
7489         faccessat: Move AC_LIBOBJ invocation to module description.
7490         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7491         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7492         invocation from here...
7493         * modules/faccessat (configure.ac): ... to here. Invoke
7494         gl_PREREQ_FACCESSAT.
7495
7496 2011-11-08  Bruno Haible  <bruno@clisp.org>
7497
7498         faccessat: Simplify autoconf macro.
7499         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7500         gl_FUNC_EUIDACCESS.
7501
7502 2011-11-08  Bruno Haible  <bruno@clisp.org>
7503
7504         renameat: Fix dependencies.
7505         * modules/renameat (Depends-on): Add stdbool.
7506
7507 2011-11-08  Bruno Haible  <bruno@clisp.org>
7508
7509         mkfifoat: Fix module description.
7510         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7511         not gl_UNISTD_MODULE_INDICATOR.
7512
7513 2011-11-08  Bruno Haible  <bruno@clisp.org>
7514
7515         fstatat: Remove unused dependency.
7516         * modules/fstatat (Depends-on): Remove fstat.
7517
7518 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7519
7520         GNUmakefile: behave when Makefile is missing.
7521         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7522
7523 2011-11-08  Bruno Haible  <bruno@clisp.org>
7524
7525         openat: Conditionalize dependencies.
7526         * lib/openat.c: Reduce the scope of some #includes.
7527         * modules/openat (Depends-on): Add conditions.
7528
7529 2011-11-07  Jim Meyering  <meyering@redhat.com>
7530
7531         maint.mk: extract GPG key ID without using a temporary file
7532         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7533         without using a temporary file.  Based on a suggestion from Werner Koch
7534         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7535
7536 2011-11-07  Eric Blake  <eblake@redhat.com>
7537
7538         grantpt: fix typo
7539         * lib/stdlib.in.h (grantpt): Check correct function.
7540
7541         maint.mk: silence new syntax check
7542         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7543
7544 2011-11-06  Bruno Haible  <bruno@clisp.org>
7545
7546         Doc about floating-point and math API.
7547         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7548         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7549
7550 2011-11-06  Bruno Haible  <bruno@clisp.org>
7551
7552         stdalign tests: Skip the test when compiled by Sun C.
7553         * tests/test-stdalign.c (main): Skip the test on Sun C.
7554
7555 2011-11-06  Bruno Haible  <bruno@clisp.org>
7556
7557         ansi-c++-opt: Complete the 2011-06-05 change.
7558         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7559         does not support namespaces, set the variable to "no", not to ":".
7560
7561 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7562
7563         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7564
7565 2011-11-06  Bruno Haible  <bruno@clisp.org>
7566
7567         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7568         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7569         (minus_zerol) [HP-UX]: New macro.
7570         (unary_minus) [HP-UX]: New function.
7571         (copysignl) [HP-UX]: Use unary_minus function.
7572
7573 2011-11-06  Bruno Haible  <bruno@clisp.org>
7574
7575         ldexp, ldexpf, ldexpl: Enhance tests.
7576         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7577         and tests/test-ldexpl.c.
7578         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7579         LDEXP, MIN_EXP, MAX_EXP): New macros.
7580         Include test-ldexp.h.
7581         (main): Just call test_function.
7582         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7583         infinity.h, nan.h.
7584         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7585         MAX_EXP): New macros.
7586         Include test-ldexp.h.
7587         (x, y): Remove variables.
7588         (main): Just call test_function.
7589         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7590         infinity.h, nan.h.
7591         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7592         MAX_EXP): New macros.
7593         Include test-ldexp.h.
7594         (x, y): Remove variables.
7595         (main): Just call test_function.
7596         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7597         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7598         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7599         (Depends-on): Add isnand-nolibm, signbit, float.
7600         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7601         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7602         (Depends-on): Add isnanf-nolibm, signbit, float.
7603
7604 2011-11-06  Bruno Haible  <bruno@clisp.org>
7605
7606         math tests: Cosmetics.
7607         * tests/test-math-c++.cc: Reorder declarations.
7608
7609 2011-11-05  Bruno Haible  <bruno@clisp.org>
7610
7611         fma*: Simplify test.
7612         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7613         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7614
7615         Tests for module 'fmal'.
7616         * modules/fmal-tests: New file.
7617         * tests/test-fmal1.c: New file.
7618         * tests/test-fmal2.c: New file.
7619
7620         New module 'fmal'.
7621         * lib/math.in.h (fmal): New declaration.
7622         * lib/fmal.c: New file.
7623         * m4/fmal.m4: New file.
7624         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7626         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7627         REPLACE_FMAL.
7628         * modules/fmal: New file.
7629         * doc/posix-functions/fmal.texi: Mention the new module and the various
7630         bugs.
7631
7632         Tests for module 'fmaf'.
7633         * modules/fmaf-tests: New file.
7634         * tests/test-fmaf1.c: New file.
7635         * tests/test-fmaf2.c: New file.
7636
7637         New module 'fmaf'.
7638         * lib/math.in.h (fmaf): New declaration.
7639         * lib/fmaf.c: New file.
7640         * m4/fmaf.m4: New file.
7641         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7643         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7644         REPLACE_FMAF.
7645         * modules/fmaf: New file.
7646         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7647         bugs.
7648
7649         Tests for module 'fma'.
7650         * modules/fma-tests: New file.
7651         * tests/test-fma1.c: New file.
7652         * tests/test-fma1.h: New file.
7653         * tests/test-fma2.c: New file.
7654         * tests/test-fma2.h: New file.
7655
7656         New module 'fma'.
7657         * lib/math.in.h (fma): New declaration.
7658         * lib/fma.c: New file.
7659         * m4/fma.m4: New file.
7660         * m4/fegetround.m4: New file.
7661         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7663         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7664         REPLACE_FMA.
7665         * modules/fma: New file.
7666         * doc/posix-functions/fma.texi: Mention the new module and the various
7667         bugs.
7668
7669         Extend gl_MATHFUNC.
7670         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7671         Support 'void' as argument type.
7672         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7673
7674 2011-11-05  Jim Meyering  <meyering@redhat.com>
7675
7676         maint.mk: also prohibit inclusion of dirent.h without use
7677         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7678
7679 2011-11-05  Bruno Haible  <bruno@clisp.org>
7680
7681         ldexpl tests: Avoid test failure on MSVC 9.
7682         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7683         value. Needed in order to enforce the conversion from a value greater
7684         than LDBL_MAX to Infinity.
7685
7686 2011-11-05  Bruno Haible  <bruno@clisp.org>
7687
7688         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7689         * modules/at-internal: New file, extracted from modules/openat.
7690         * modules/openat-h: New file.
7691         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7692         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7693         * modules/openat (Description): Add reference to POSIX function.
7694         (Files): Remove lib/openat.h, lib/openat-proc.c.
7695         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7696         intprops, unistd.
7697         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7698         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7699         gl_FCNTL_MODULE_INDICATOR.
7700         (Include): Remove unistd.h, openat.h.
7701         * modules/areadlinkat (Files): Add lib/at-func.c.
7702         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7703         openat-die, openat-h, save-cwd.
7704         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7705         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7706         openat-die, openat-h, save-cwd, unistd.
7707         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7708         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7709         openat-h, save-cwd. Remove fcntl-h, openat.
7710         * modules/fchmodat (Files): Remove lib/openat.h.
7711         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7712         openat, stdbool, unistd.
7713         * modules/fchownat (Files): Remove lib/openat.h.
7714         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7715         openat, stdbool, sys_stat.
7716         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7717         lib/openat-proc.c.
7718         (Depends-on): Add at-internal.
7719         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7720         * modules/fstatat (Files): Remove lib/openat.h.
7721         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7722         stdbool, unistd.
7723         * modules/fts (Depends-on): Add openat-h.
7724         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7725         openat.
7726         * modules/mkdirat (Files): Remove lib/openat.h.
7727         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7728         openat, stdbool, sys_stat.
7729         * modules/mkfifoat (Files): Add lib/at-func.c.
7730         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7731         openat-h, save-cwd. Remove fcntl-h, openat.
7732         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7733         * modules/readlinkat (Files): Add lib/at-func.c.
7734         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7735         openat-h, save-cwd. Remove fcntl-h, openat.
7736         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7737         openat.
7738         * modules/selinux-at (Files): Add lib/at-func.c.
7739         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7740         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7741         * modules/symlinkat (Files): Add lib/at-func.c.
7742         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7743         openat-h, save-cwd. Remove fcntl-h, openat.
7744         * modules/unlinkat (Files): Remove lib/openat.h.
7745         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7746         stdbool.
7747         * modules/utimensat (Files): Add lib/at-func.c.
7748         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7749         openat-die, openat-h, save-cwd.
7750         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7751         * modules/fdutimensat-tests (Depends-on): Add openat.
7752         * modules/fstatat-tests (Depends-on): Add openat-h.
7753         * modules/readlinkat-tests (Depends-on): Add openat.
7754         * modules/symlinkat-tests (Depends-on): Add openat.
7755
7756 2011-11-05  Bruno Haible  <bruno@clisp.org>
7757
7758         openat: Include <stdbool.h>.
7759         * lib/openat.c: Include <stdbool.h>.
7760
7761 2011-11-04  Bruno Haible  <bruno@clisp.org>
7762
7763         fchownat, renameat, unlinkat: Fix dependencies.
7764         * modules/fchownat (Depends-on): Add fstatat.
7765         * modules/renameat (Depends-on): Likewise.
7766         * modules/unlinkat (Depends-on): Likewise.
7767
7768 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7769
7770         openat: remove direct dependency on dirent
7771         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7772         and hasn't been needed ever since fdopendir was split into its own
7773         module on 2009-08-31.
7774         * modules/openat (Depends-on): Remove dirent.
7775
7776 2011-11-04  Bruno Haible  <bruno@clisp.org>
7777
7778         renameat: Optimize code size.
7779         * modules/renameat (configure.ac): Don't compile at-func2.c if
7780         REPLACE_RENAMEAT is 1.
7781
7782 2011-11-04  Bruno Haible  <bruno@clisp.org>
7783
7784         openat tests: Fix file list.
7785         * modules/openat-tests (Files): Add tests/test-open.h.
7786
7787 2011-11-04  Bruno Haible  <bruno@clisp.org>
7788
7789         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7790         * modules/fchmodat (Depends-on): Add openat-die.
7791         * modules/fchownat (Depends-on): Likewise.
7792         * modules/linkat (Depends-on): Likewise.
7793         * modules/renameat (Depends-on): Likewise.
7794         * modules/openat (Depends-on): Add dirent.
7795
7796 2011-11-04  Jim Meyering  <meyering@redhat.com>
7797
7798         at-func*.c: fix comments
7799         * lib/at-func2.c: Correct/improve first-line comment.
7800         * lib/at-func.c: Correct grammar in first-line comment.
7801
7802 2011-11-04  Bruno Haible  <bruno@clisp.org>
7803
7804         New module 'mkdirat', split off from module 'openat'.
7805         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7806         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7807         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7808         * modules/mkdirat: New file, extracted from modules/openat.
7809         * modules/openat (Files): Remove lib/mkdirat.c.
7810         (Depends-on): Remove mkdir.
7811         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7812         (Include): Remove <sys/stat.h>.
7813         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7814         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7815         tests/test-mkdir.h.
7816         (Depends-on): Remove ignore-value.
7817         (Makefile.am): Remove rules for test-mkdirat.
7818         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7819         of module 'openat'.
7820         * NEWS: Mention the change.
7821
7822 2011-11-04  Bruno Haible  <bruno@clisp.org>
7823
7824         closedir: Avoid warning on mingw.
7825         * lib/closedir.c: Include <unistd.h>.
7826
7827 2011-11-04  Bruno Haible  <bruno@clisp.org>
7828
7829         New module 'fstatat', split off from module 'openat'.
7830         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7831         defined.
7832         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7833         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7834         gl_FUNC_FSTATAT.
7835         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7836         * modules/fstatat: New file, extracted from modules/openat.
7837         * modules/openat (Files): Remove lib/fstatat.c.
7838         (Depends-on): Remove lstat.
7839         (configure.ac): Remove AC_LIBOBJ of fstatat.
7840         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7841         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7842         tests/test-lstat.h, tests/test-stat.h.
7843         (Depends-on): Remove getcwd-lgpl.
7844         (Makefile.am): Remove rules for test-fstatat.
7845         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7846         of module 'openat'.
7847         * NEWS: Mention the change.
7848         * modules/getcwd (Depends-on): Add fstatat.
7849         * modules/linkat (Depends-on): Likewise.
7850         * modules/mkfifoat-tests (Depends-on): Likewise.
7851         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7852
7853 2011-11-03  Bruno Haible  <bruno@clisp.org>
7854
7855         New module 'unlinkat', split off from module 'openat'.
7856         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7857         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7858         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7859         * modules/unlinkat: New file, extracted from modules/openat. Correct
7860         the dependency conditions.
7861         * modules/openat (Files): Remove lib/unlinkat.c.
7862         (Depends-on): Remove rmdir, unlink.
7863         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7864         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7865         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7866         tests/test-rmdir.h, tests/test-unlink.h.
7867         (Depends-on): Remove unlinkdir.
7868         (Makefile.am): Remove rules for test-unlinkat.
7869         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7870         of module 'openat'.
7871         * NEWS: Mention the change.
7872         * modules/linkat-tests (Depends-on): Add unlinkat.
7873         * modules/mkfifoat-tests (Depends-on): Likewise.
7874         * modules/readlinkat-tests (Depends-on): Likewise.
7875
7876 2011-11-02  Bruno Haible  <bruno@clisp.org>
7877
7878         New module 'fchmodat', split off from module 'openat'.
7879         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7880         defined.
7881         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7882         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7883         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7884         * modules/fchmodat: New file, extracted from modules/openat.
7885         * modules/openat (Files): Remove lib/fchmodat.c.
7886         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7887         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7888         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7889         (Makefile.am): Remove rules for test-fchmodat.
7890         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7891         of module 'openat'.
7892         * NEWS: Mention the change.
7893
7894 2011-11-02  Jim Meyering  <meyering@redhat.com>
7895
7896         putenv: indent #definition of "environ" to placate cppi
7897         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7898
7899         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7900         Git logs are often treated as immutable, because editing them
7901         changes the SHA1 checksums of all descendants.  Thus, errors in
7902         git logs tend to stay there forever.  However, when we generate
7903         a ChangeLog file -- typically for distribution -- from that git log,
7904         we can actually make corrections in the generated file.  The key
7905         lies in recording in machine-readable/applicable form the desired
7906         corrections.  See --help for description and an example.
7907         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7908         (usage): Describe it; alphabetize option descriptions.
7909         (main): Honor the new option, carefully.
7910
7911 2011-11-01  Jim Meyering  <meyering@redhat.com>
7912
7913         gitlog-to-changelog: avoid an infloop
7914         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7915         that ends up being empty.
7916
7917 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7918
7919         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7920         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7921         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7922         contains (possibly-quoted) backslashes.  This should avoid
7923         all-too-common shell bugs if COMPLICATED contains backslashes in
7924         the "wrong" places.  Reported by David Evans in
7925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7926         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7927         because we want ASCII ranges.  Is there some reason we don't use
7928         the C locale everywhere in this script?
7929         (func_module, top level): Avoid unwanted pathname expansion when
7930         $repo_url_prefix or $repo_url_suffix_repl contain shell
7931         metacharacters like '?' and '*'.
7932
7933 2011-11-01  Bruno Haible  <bruno@clisp.org>
7934
7935         fchownat: Improve description.
7936         * modules/fchownat (Description): Add link to function.
7937
7938 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7939
7940         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7941         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7943         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7944
7945 2011-11-01  Bruno Haible  <bruno@clisp.org>
7946
7947         alignof: Avoid collision with stdalign module.
7948         * lib/alignof.h (alignof): Remove macro.
7949         * NEWS: Mention the change.
7950         Reported by Paul Eggert.
7951
7952 2011-11-01  Bruno Haible  <bruno@clisp.org>
7953
7954         New module 'fchownat', split off from module 'openat'.
7955         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7956         defined.
7957         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7958         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7959         invoke gl_FUNC_FCHOWNAT.
7960         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7961         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7962         * modules/fchownat: New file, extracted from modules/openat.
7963         * modules/openat (Files): Remove lib/fchownat.c.
7964         (Depends-on): Remove lchown.
7965         (configure.ac): Remove AC_LIBOBJ of fchownat.
7966         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7967         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7968         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7969         (Depends-on): Remove mgetgroups, usleep, stat-time.
7970         (configure.ac): Remove test for getegid.
7971         (Makefile.am): Remove rules for test-fchownat.
7972         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7973         of module 'openat'.
7974         * NEWS: Mention the change.
7975
7976 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7977
7978         stdalign: port better to MSVC and to Sun C 5.11
7979         This fixes some of the problems reported by Bruno Haible in
7980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7981         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7982         shortcomings of MSVC and of Sun C 5.11.
7983         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7984         around __declspec arg.
7985         * modules/stdalign-tests (Files): Add tests/macros.h.
7986         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7987         Include macros.h, for ASSERT.
7988         (DECLARE_ALIGNED): Remove.
7989         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7990         to catch bug), and to 1 if not (simplifies the rest of the code).
7991         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7992         (CHECK_AUTO): Remove.
7993         (CHECK_ALIGNED): Check only the alignment of the static vars,
7994         since auto var alignment isn't supported by Sun C 5.11.
7995         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7996         ASSERT failures are easier to diagnose.
7997
7998 2011-10-31  Bruno Haible  <bruno@clisp.org>
7999
8000         doc about some IRIX 5.3 problems.
8001         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
8002         on IRIX 5.3.
8003         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
8004         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
8005         5.3.
8006         * doc/posix-functions/grantpt.texi: Likewise.
8007         * doc/posix-functions/unlockpt.texi: Likewise.
8008         * doc/posix-functions/lgamma.texi: Likewise.
8009         * doc/posix-functions/nextafter.texi: Likewise.
8010         * doc/posix-functions/remainder.texi: Likewise.
8011         * doc/posix-functions/select.texi: Mention misplaced declaration on
8012         IRIX 5.3.
8013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8014
8015 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
8016
8017         gitlog-to-changelog: fix git-log invocation.
8018         git-log mishandles date strings before 1970-01-01 UTC, and there is
8019         no use to specify --since=1970-01-01 by default anyway.
8020         * build-aux/gitlog-to-changelog: By default, when no --since option
8021         was given, do not specify explicit --since option to git-log.
8022
8023 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
8024
8025         gitlog-to-changelog: new option --append-dot.
8026         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
8027         first non-blank line of each commit message terminated with a dot.
8028
8029 2011-10-30  Bruno Haible  <bruno@clisp.org>
8030
8031         ffsl, ffsll: Avoid compilation error due to 'restrict'.
8032         * lib/ffsl.h: Include <config.h>.
8033         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
8034
8035 2011-10-30  Jim Meyering  <meyering@redhat.com>
8036
8037         GNUmakefile: reenable "make syntax-check" for most projects
8038         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
8039         build-aux variable", "syntax-check" would do nothing but succeed with
8040         the "No version control files detected..." diagnostic (unless you
8041         happened to override _build-aux via cfg.mk).
8042         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
8043         to precede inclusion of maint.mk.  Otherwise, these variables would
8044         be used undefined in any project that does not override the default.
8045
8046 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
8047
8048         gitlog-to-changelog: treat a message with only blank lines as empty.
8049         * build-aux/gitlog-to-changelog: Move the code that removes leading and
8050         trailing blank lines before the code that issues a warning about an
8051         empty commit message.
8052
8053 2011-10-30  Jim Meyering  <meyering@redhat.com>
8054
8055         test-parse-datetime.c: avoid new DST-related false positive test failure
8056         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
8057         based on the time/date we'll convert, not the current time.
8058         Otherwise, the moment we cross a DST boundary like today's in
8059         Europe, (CEST to CET), that offset ends up being one hour off.
8060
8061 2011-10-27  Bruno Haible  <bruno@clisp.org>
8062
8063         fstat: Tweak documentation.
8064         * modules/fstat (Description): More precise description.
8065
8066 2011-10-27  Bruno Haible  <bruno@clisp.org>
8067
8068         Update documentation regarding 'largefile' module.
8069         * doc/posix-functions/fstat.texi: Tweak wording.
8070         * doc/posix-functions/opendir.texi: Mention that the module fixes the
8071         problems with huge directories and/or small ino_t types.
8072         * doc/posix-functions/readdir.texi: Likewise.
8073         * doc/posix-functions/rewinddir.texi: Likewise.
8074
8075 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
8076
8077         maint.mk: don't maintain a second build-aux variable.
8078         * maint.mk (build_aux): Removed.  The maintainer-makefile module
8079         depends on GNUmakefile, which already maintains a cfg.mk
8080         overridable $(_build-aux) for projects with a non-standard
8081         build-aux directory location, although without the $(srcdir)
8082         prefix.  Use that variable consistently instead of introducing a
8083         second one.  Adjust all call sites.
8084
8085 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8086
8087         Add stdalign module and use it in other modules.
8088         This is based on a previous proposal by Bruno Haible
8089         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
8090
8091         stdalign: new module
8092         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
8093         * modules/stdalign: New files.
8094         * MODULES.html.sh (c1x_core_properties): Add stdalign.
8095         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8096
8097         stdalign-tests: new module
8098         * modules/stdalign-tests, tests/test-stdalign.c: New files.
8099
8100         argp: use stdalign
8101         * lib/argp-parse.c: Include <stdalign.h>.
8102         (alignof): Remove.
8103         * modules/argp (Depends-on): Add stdalign.
8104
8105         crypto libraries: use stdalign
8106         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8107         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
8108         Do not include <stdlib.h> twice, in md4.c.
8109         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
8110         because we are accessing a pointer's bit-pattern, not a size.
8111         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
8112         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
8113         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8114         * modules/crypto/sha512: Likewise.
8115
8116         sys_socket: use stdalign, not alignof
8117         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
8118         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
8119
8120 2011-10-27  Bruno Haible  <bruno@clisp.org>
8121
8122         raise test: Avoid a test failure on Linux/MIPS.
8123         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
8124         because 99 is a valid signal on Linux/MIPS.
8125
8126 2011-10-27  Bruno Haible  <bruno@clisp.org>
8127
8128         nonblocking tests: Fix test failure on Linux/MIPS.
8129         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
8130         Set to 270000.
8131
8132 2011-10-27  Bruno Haible  <bruno@clisp.org>
8133
8134         utimensat: Work around problem on Linux/hppa.
8135         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8136         values.
8137         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8138
8139 2011-10-25  Jim Meyering  <meyering@redhat.com>
8140
8141         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8142         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8143         after symbols like NULL, size_t, etc.
8144         Reported by Alfred M. Szmidt.
8145
8146         maint.mk: exempt ENODATA from a syntax-check rule
8147         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8148         from the sc_prohibit_always-defined_macros syntax-check rule.
8149         Add a comment.  See this for more details:
8150         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8151
8152 2011-10-23  Jim Meyering  <meyering@redhat.com>
8153
8154         fts: close parent dir FD before returning from post-traversal fts_read
8155         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8156         unlink A, even though an FD open on A remained.  This is suboptimal
8157         (holding a file descriptor open longer than needed), but otherwise not
8158         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8159         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8160         that represents a real problem: it causes the removal of A to fail
8161         with e.g., "rm: cannot remove `A': Device or resource busy"
8162
8163         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8164         directory file descriptors.  After completing the final, FTS_DP,
8165         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8166         cache, but then proceeded to add a new FD to it via the subsequent
8167         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8168         final file descriptor would be closed only via fts_close's call to
8169         fd_ring_clear.  Now, it is usually closed earlier, via the final
8170         FTS_DP-returning fts_read call.
8171         * lib/fts.c (restore_initial_cwd): New function, converted from
8172         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8173         Update callers.
8174         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8175         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8176
8177 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8178             Bruno Haible  <bruno@clisp.org>
8179             Jim Meyering  <jim@meyering.net>
8180
8181         readme-release: improve safety of release prep instructions.
8182         * README-release: Don't git pull all branches when only master
8183         is needed for the release process.
8184         Run make maintainer-clean before changing trees and merging.
8185         Don't try to run ./configure right after git pull in case files
8186         that influence the bootstrap process have changed, move the
8187         ./configure step to after running ./bootstrap.
8188         Don't bootstrap "one last time"... it's the first time!
8189
8190 2011-10-22  Bruno Haible  <bruno@clisp.org>
8191
8192         errno, strerror-override: Support for MSVC 10.
8193         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8194         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8195         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8196         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8197         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8198         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8199         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8200         Assign values compatible with MSVC 10.
8201         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8202         New macros.
8203         (GNULIB_defined_EWINSOCK): New macro.
8204         * lib/strerror-override.c (strerror_override): Update accordingly.
8205         * lib/strerror-override.h: Likewise.
8206         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8207         longer equal to the corresponding errno value.
8208         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8209
8210 2011-10-22  Bruno Haible  <bruno@clisp.org>
8211
8212         perror: Recognize when test program crashes.
8213         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8214         strerror, set gl_cv_func_perror_works to no.
8215         Reported by Daniel Richard G. <skunk@iskunk.org>.
8216
8217         perror: Fix indentation.
8218         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8219
8220 2011-10-22  Bruno Haible  <bruno@clisp.org>
8221
8222         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8223         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8224         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8225         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8226         functions, not as a macro.
8227         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8228         macros.
8229         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8230         absence of macro.
8231         Suggested by Eric Blake.
8232         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8233
8234 2011-10-21  Bruno Haible  <bruno@clisp.org>
8235
8236         relocatable-prog-wrapper: Don't leave object files behind.
8237         * build-aux/install-reloc: Re-synchronize list of .o files to be
8238         removed with list of compilation units.
8239
8240 2011-10-20  Bruno Haible  <bruno@clisp.org>
8241
8242         openpty, posix_openpt: Remove code duplication.
8243         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8244         * lib/openpty.c: Include <stdlib.h>.
8245         (openpty): Use posix_openpt on all platforms except IRIX.
8246         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8247
8248 2011-10-20  Bruno Haible  <bruno@clisp.org>
8249
8250         unlockpt: Detect invalid argument.
8251         * lib/unlockpt.c: Include <fcntl.h>.
8252         (unlockpt): Check whether fd is valid, using fcntl().
8253         * modules/unlockpt (Depends-on): Add fcntl-h.
8254
8255 2011-10-20  Bruno Haible  <bruno@clisp.org>
8256
8257         openpty: Avoid compilation error on AIX 6.1.
8258         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8259
8260 2011-10-20  Bruno Haible  <bruno@clisp.org>
8261
8262         posix_openpt: Support for OpenBSD.
8263         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8264         (posix_openpt) [OpenBSD]: New code.
8265         * lib/grantpt.c: Include <fcntl.h>.
8266         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8267         * modules/grantpt (Depends-on): Add fcntl-h.
8268
8269 2011-10-20  Bruno Haible  <bruno@clisp.org>
8270
8271         posix_openpt test: Coding style.
8272         * tests/test-posix_openpt.c: Use GNU coding style.
8273
8274 2011-10-20  Bruno Haible  <bruno@clisp.org>
8275
8276         grantpt: Support --avoid=pt_chown.
8277         * modules/grantpt (Files): Add lib/pty-private.h.
8278
8279 2011-10-20  Bruno Haible  <bruno@clisp.org>
8280
8281         posix_openpt: Fix autoconf macro.
8282         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8283         unneeded check for _getpty.
8284
8285 2011-10-20  Bruno Haible  <bruno@clisp.org>
8286
8287         openpty: Update comments.
8288         * lib/openpty.c: Add comments about Minix.
8289
8290 2011-10-19  Eric Blake  <eblake@redhat.com>
8291
8292         openpty: relax license
8293         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8294
8295         pt_chown: use configmake to simplify build
8296         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8297
8298         ptsname and others: relax license
8299         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8300         * modules/unlockpt (License): Likewise.
8301         * modules/pt_chown (License): Likewise.
8302         * modules/ptsname (License): Likewise.
8303         * modules/ttyname_r (License): Likewise.
8304
8305 2011-10-19  Jim Meyering  <meyering@redhat.com>
8306
8307         posix_openpt: remove spurious #endif
8308         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8309
8310 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8311
8312         maint.mk: Respect $(build_aux) in web-manual rule.
8313         * top/maint.mk (web-manual): Find gen-announce script in user's
8314         $(build_aux) directory instead of hard-coding 'build-aux'.
8315
8316 2011-10-19  Bruno Haible  <bruno@clisp.org>
8317
8318         posix_openpt: Fix compilation error.
8319         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8320         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8321         Mention the openpty module as an alternative.
8322
8323 2011-10-19  Bruno Haible  <bruno@clisp.org>
8324
8325         Support for old NeXTstep 3.3 frexp().
8326         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8327         execution time of the test to 5 seconds.
8328         Reported by Daniel Richard G. <skunk@iskunk.org>.
8329
8330 2011-10-19  Bruno Haible  <bruno@clisp.org>
8331
8332         Support for old NeXTstep 3.3 sed.
8333         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8334         part, use /.../, not \|...|. Escape periods in the header file name.
8335         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8336         Reported by Daniel Richard G. <skunk@iskunk.org>.
8337
8338 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8339
8340         Support for old NeXTstep 3.3 gcc.
8341         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8342         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8343         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8344         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8345         * lib/regex.h (_Restrict_arr_): Likewise.
8346         * lib/regex_internal.h (re_token_t): Likewise.
8347         * lib/regexec.c (check_node_accept_bytes): Likewise.
8348         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8349
8350 2011-10-18  Eric Blake  <eblake@redhat.com>
8351
8352         posix_openpt: new module
8353         * modules/posix_openpt: New module.
8354         * m4/posix_openpt.m4: New file.
8355         * lib/posix_openpt.c: Likewise.
8356         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8357         (gl_STDLIB_H_DEFAULTS): Set defaults.
8358         * modules/stdlib (Makefile.am): Substitute macros.
8359         * lib/stdlib.in.h (posix_openpt): Declare.
8360         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8361         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8362         * modules/posix_openpt-tests: New test module.
8363         * tests/test-posix_openpt.c: New test.
8364
8365 2011-10-15  Bruno Haible  <bruno@clisp.org>
8366
8367         xstrtoll: Fix compilation failure.
8368         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8369         from lib/strtol.c.
8370         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8371         some platforms.
8372         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8373
8374 2011-10-15  Bruno Haible  <bruno@clisp.org>
8375
8376         vasnprintf: Optimize bit search operation.
8377         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8379         gl_DOUBLE_EXPONENT_LOCATION.
8380         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8381         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8382         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8383         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8384         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8385         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8386         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8387         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8388         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8389
8390 2011-10-15  Bruno Haible  <bruno@clisp.org>
8391
8392         vasnprintf: Fix comments.
8393         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8394
8395 2011-10-14  Bruno Haible  <bruno@clisp.org>
8396
8397         Tests for module 'integer_length_ll'.
8398         * modules/integer_length_ll-tests: New file.
8399         * tests/test-integer_length_ll.c: New file.
8400
8401         New module 'integer_length_ll'.
8402         * lib/integer_length_ll.c: New file.
8403         * modules/integer_length_ll: New file.
8404
8405 2011-10-14  Bruno Haible  <bruno@clisp.org>
8406
8407         Tests for module 'integer_length_l'.
8408         * modules/integer_length_l-tests: New file.
8409         * tests/test-integer_length_l.c: New file.
8410
8411         New module 'integer_length_l'.
8412         * lib/integer_length_l.c: New file.
8413         * modules/integer_length_l: New file.
8414
8415 2011-10-14  Bruno Haible  <bruno@clisp.org>
8416
8417         Tests for module 'integer_length'.
8418         * modules/integer_length-tests: New file.
8419         * tests/test-integer_length.c: New file.
8420
8421         New module 'integer_length'.
8422         * lib/integer_length.h: New file.
8423         * lib/integer_length.c: New file.
8424         * modules/integer_length: New file.
8425
8426 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8427
8428         popen: Fix dependency conditions.
8429         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8430
8431 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8432
8433         perror: Fix autoconf test.
8434         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8435         <stdlib.h> and <string.h>.
8436
8437 2011-10-14  Bruno Haible  <bruno@clisp.org>
8438
8439         ffsl: Optimize on 64-bit platforms.
8440         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8441         unrolling.
8442
8443 2011-10-13  Bruno Haible  <bruno@clisp.org>
8444
8445         ffsl: Optimize on 32-bit platforms.
8446         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8447         use ffs() without a loop.
8448
8449         ffsl, ffsll: Optimize for GCC.
8450         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8451         * lib/ffsl.c (GCC_BUILTIN): New macro.
8452         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8453
8454 2011-10-13  Bruno Haible  <bruno@clisp.org>
8455
8456         ffs, bcopy, memset: Support symbol renaming via config.h.
8457         * lib/ffs.c: Include <config.h>.
8458         * lib/bcopy.c: Likewise.
8459         * lib/memset.c: Likewise.
8460
8461 2011-10-10  Bruno Haible  <bruno@clisp.org>
8462
8463         atanl: Simplify for platforms where 'long double' == 'double'.
8464         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8465         alternative implementation.
8466         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8467         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8468         * modules/atanl (Depends-on): Add atan. Update conditions.
8469
8470 2011-10-10  Bruno Haible  <bruno@clisp.org>
8471
8472         acosl: Simplify for platforms where 'long double' == 'double'.
8473         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8474         alternative implementation.
8475         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8476         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8477         * modules/acosl (Depends-on): Add acos. Update conditions.
8478
8479 2011-10-10  Bruno Haible  <bruno@clisp.org>
8480
8481         asinl: Simplify for platforms where 'long double' == 'double'.
8482         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8483         alternative implementation.
8484         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8485         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8486         * modules/asinl (Depends-on): Add asin. Update conditions.
8487
8488 2011-10-10  Bruno Haible  <bruno@clisp.org>
8489
8490         tanl: Simplify for platforms where 'long double' == 'double'.
8491         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8492         implementation.
8493         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8494         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8495         * modules/tanl (Depends-on): Add tan. Update conditions.
8496         (configure.ac): Don't compile trigl.c if
8497         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8498
8499 2011-10-10  Bruno Haible  <bruno@clisp.org>
8500
8501         cosl: Simplify for platforms where 'long double' == 'double'.
8502         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8503         implementation.
8504         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8505         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8506         * modules/cosl (Depends-on): Add cos. Update conditions.
8507         (configure.ac): Don't compile sincosl.c and trigl.c if
8508         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8509
8510 2011-10-10  Bruno Haible  <bruno@clisp.org>
8511
8512         sinl: Simplify for platforms where 'long double' == 'double'.
8513         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8514         implementation.
8515         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8516         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8517         * modules/sinl (Depends-on): Add sin. Update conditions.
8518         (configure.ac): Don't compile sincosl.c and trigl.c if
8519         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8520
8521 2011-10-10  Bruno Haible  <bruno@clisp.org>
8522
8523         logl: Simplify for platforms where 'long double' == 'double'.
8524         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8525         implementation.
8526         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8527         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8528         * modules/logl (Depends-on): Add log. Update conditions.
8529
8530 2011-10-10  Bruno Haible  <bruno@clisp.org>
8531
8532         expl: Simplify for platforms where 'long double' == 'double'.
8533         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8534         implementation.
8535         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8536         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8537         * modules/expl (Depends-on): Add exp. Update conditions.
8538
8539 2011-10-10  Bruno Haible  <bruno@clisp.org>
8540
8541         sqrtl: Simplify for platforms where 'long double' == 'double'.
8542         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8543         alternative implementation.
8544         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8545         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8546         * modules/sqrtl (Depends-on): Update conditions.
8547
8548 2011-10-10  Bruno Haible  <bruno@clisp.org>
8549
8550         ldexpl: Simplify for platforms where 'long double' == 'double'.
8551         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8552         alternative implementation.
8553         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8554         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8555         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8556
8557 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8558
8559         ffsll: set correct witness
8560         * modules/ffsll (configure.ac): Fix typo.
8561
8562 2011-10-10  Bruno Haible  <bruno@clisp.org>
8563
8564         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8565         * lib/printf-frexpl.c: Include <config.h>.
8566         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8567         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8568         second time.
8569         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8570         gl_LONG_DOUBLE_VS_DOUBLE.
8571         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8572         conditions.
8573
8574 2011-10-10  Bruno Haible  <bruno@clisp.org>
8575
8576         frexpl: Simplify for platforms where 'long double' == 'double'.
8577         * lib/frexpl.c: Include <config.h>.
8578         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8579         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8580         time.
8581         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8582         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8583         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8584         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8585         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8586         conditions.
8587
8588 2011-10-10  Jim Meyering  <meyering@redhat.com>
8589
8590         test-renameat: don't leave behind a temporary file
8591         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8592           ERROR: files left in build directory after distclean:
8593           ./gltests/test-renameat.too
8594           make[1]: *** [distcleancheck] Error 1
8595         Reported by Tom G. Christensen.
8596
8597 2011-10-09  Bruno Haible  <bruno@clisp.org>
8598
8599         rint: Determine RINT_LIBM correctly on AIX 7.
8600         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8601         directly, not only through a function pointer. Also accept an optional
8602         4th argument with extra code.
8603         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8604         rintf() call by gcc when optimizing.
8605
8606         mathfunc.m4: Refactor.
8607         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8608         m4 variable.
8609
8610 2011-10-09  Bruno Haible  <bruno@clisp.org>
8611
8612         rintl: Simplify for platforms where 'long double' == 'double'.
8613         * lib/rintl.c: Include <config.h>.
8614         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8615         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8616         time.
8617         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8618         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8619         * modules/rintl (Depends-on): Add rint. Update conditions.
8620
8621 2011-10-09  Bruno Haible  <bruno@clisp.org>
8622
8623         roundl: Simplify for platforms where 'long double' == 'double'.
8624         * lib/roundl.c: Include <config.h>.
8625         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8626         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8627         time.
8628         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8629         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8630         * modules/roundl (Depends-on): Add round. Update conditions.
8631
8632 2011-10-09  Bruno Haible  <bruno@clisp.org>
8633
8634         truncl: Simplify for platforms where 'long double' == 'double'.
8635         * lib/truncl.c: Include <config.h>.
8636         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8637         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8638         time.
8639         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8640         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8641         * modules/truncl (Depends-on): Add trunc. Update conditions.
8642
8643 2011-10-09  Bruno Haible  <bruno@clisp.org>
8644
8645         ceill: Simplify for platforms where 'long double' == 'double'.
8646         * lib/ceill.c: Include <config.h>.
8647         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8648         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8649         time.
8650         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8651         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8652         * modules/ceill (Depends-on): Add ceil. Update conditions.
8653
8654 2011-10-09  Bruno Haible  <bruno@clisp.org>
8655
8656         floorl: Simplify for platforms where 'long double' == 'double'.
8657         * lib/floorl.c: Include <config.h>.
8658         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8659         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8660         time.
8661         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8662         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8663         * modules/floorl (Depends-on): Add floor. Update conditions.
8664
8665 2011-10-09  Bruno Haible  <bruno@clisp.org>
8666
8667         rint: Fix ordering constraints.
8668         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8669         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8670         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8671
8672 2011-10-09  Bruno Haible  <bruno@clisp.org>
8673
8674         copysignl: Simplify for platforms where 'long double' == 'double'.
8675         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8676         alternative.
8677         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8678         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8679         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8680
8681 2011-10-09  Bruno Haible  <bruno@clisp.org>
8682
8683         Tests for module 'rintl'.
8684         * modules/rintl-tests: New file.
8685         * tests/test-rintl.c: New file.
8686
8687         New module 'rintl'.
8688         * lib/math.in.h (rintl): New declaration.
8689         * lib/rintl.c: New file.
8690         * m4/rintl.m4: New file.
8691         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8693         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8694         * modules/rintl: New file.
8695         * tests/test-math-c++.cc: Check the declaration of rintl.
8696         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8697         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8698         * doc/posix-functions/rintl.texi: Mention the new module.
8699
8700 2011-10-09  Bruno Haible  <bruno@clisp.org>
8701
8702         Tests for module 'rintf'.
8703         * modules/rintf-tests: New file.
8704         * tests/test-rintf.c: New file.
8705
8706         New module 'rintf'.
8707         * lib/math.in.h (rintf): New declaration.
8708         * lib/rintf.c: New file.
8709         * m4/rintf.m4: New file.
8710         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8712         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8713         * modules/rintf: New file.
8714         * tests/test-math-c++.cc: Check the declaration of rintf.
8715         * doc/posix-functions/rintf.texi: Mention the new module.
8716
8717 2011-10-09  Bruno Haible  <bruno@clisp.org>
8718
8719         rint: Support for MSVC.
8720         * lib/math.in.h (rint): New declaration.
8721         * lib/rint.c: New file.
8722         * m4/rint.m4: New file.
8723         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8725         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8726         * modules/rint (Description): Fix.
8727         (Files): Add lib/rint.c, m4/rint.m4.
8728         (Depends-on): Add math.
8729         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8730         gl_MATH_MODULE_INDICATOR.
8731         * tests/test-math-c++.cc: Check the declaration of rint.
8732         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8733         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8734         * doc/posix-functions/rint.texi: Mention the replacement provided by
8735         the module.
8736
8737         rint tests: More tests.
8738         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8739         minus-zero.h, infinity.h, nan.h.
8740         (main): Skip the test if the current rounding mode is not standard. Add
8741         tests for negative numbers, minus zero, infinity, NaN.
8742         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8743         tests/nan.h.
8744         (Depends-on): Add isnand-nolibm.
8745
8746 2011-10-09  Bruno Haible  <bruno@clisp.org>
8747
8748         Tests for module 'copysignl'.
8749         * modules/copysignl-tests: New file.
8750         * tests/test-copysignl.c: New file.
8751
8752         New module 'copysignl'.
8753         * lib/math.in.h (copysignl): New declaration.
8754         * lib/copysignl.c: New file.
8755         * m4/copysignl.m4: New file.
8756         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8758         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8759         HAVE_COPYSIGNL.
8760         * modules/copysignl: New file.
8761         * tests/test-math-c++.cc: Check the declaration of copysignl.
8762         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8763         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8764         * doc/posix-functions/copysignl.texi: Mention the new module.
8765
8766 2011-10-09  Bruno Haible  <bruno@clisp.org>
8767
8768         Tests for module 'copysignf'.
8769         * modules/copysignf-tests: New file.
8770         * tests/test-copysignf.c: New file.
8771
8772         New module 'copysignf'.
8773         * lib/math.in.h (copysignf): New declaration.
8774         * lib/copysignf.c: New file.
8775         * m4/copysignf.m4: New file.
8776         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8778         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8779         HAVE_COPYSIGNF.
8780         * modules/copysignf: New file.
8781         * tests/test-math-c++.cc: Check the declaration of copysignf.
8782         * doc/posix-functions/copysignf.texi: Mention the new module.
8783
8784 2011-10-09  Bruno Haible  <bruno@clisp.org>
8785
8786         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8787         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8788         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8789         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8790         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8791         gl_SIGNAL_H_DEFAULTS.
8792
8793 2011-10-09  Bruno Haible  <bruno@clisp.org>
8794
8795         poll: Make macro safer.
8796         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8797         ac_cv_header_poll_h is not set.
8798
8799 2011-10-09  Bruno Haible  <bruno@clisp.org>
8800
8801         copysign: Provide replacement.
8802         * lib/math.in.h (copysign): New declaration.
8803         * lib/copysign.c: New file.
8804         * m4/copysign.m4: New file.
8805         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8807         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8808         HAVE_COPYSIGN.
8809         * modules/copysign (Description): Clarify.
8810         (Files): Add lib/copysign.c, m4/copysign.m4.
8811         (Depends-on): Add math, signbit.
8812         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8813         gl_MATH_MODULE_INDICATOR.
8814         * tests/test-math-c++.cc: Check the declaration of copysign.
8815         * doc/posix-functions/copysign.texi: Mention the effects of the module
8816         on Minix and MSVC.
8817
8818 2011-10-09  Bruno Haible  <bruno@clisp.org>
8819
8820         isinf: Ensure macro on AIX 5.1.
8821         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8822         macro.
8823         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8824
8825 2011-10-09  Bruno Haible  <bruno@clisp.org>
8826
8827         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8828         * modules/snprintf-posix-tests (configure.ac): Require
8829         gl_LONG_DOUBLE_VS_DOUBLE.
8830         * modules/sprintf-posix-tests (configure.ac): Likewise.
8831         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8832         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8833         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8834         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8835         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8836         tests on platforms where 'long double' is the same as 'double'.
8837         * tests/test-sprintf-posix.h (test_function): Likewise.
8838         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8839         * tests/test-vasprintf-posix.c (test_function): Likewise.
8840
8841         *printf: Fix for platforms where 'long double' == 'double'.
8842         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8843         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8844         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8845         * modules/fprintf-posix (Files): Likewise.
8846         * modules/obstack-printf-posix (Files): Likewise.
8847         * modules/snprintf-posix (Files): Likewise.
8848         * modules/sprintf-posix (Files): Likewise.
8849         * modules/vasnprintf (Files): Likewise.
8850         * modules/vasnprintf-posix (Files): Likewise.
8851         * modules/vasprintf-posix (Files): Likewise.
8852         * modules/vdprintf-posix (Files): Likewise.
8853         * modules/vfprintf-posix (Files): Likewise.
8854         * modules/vsnprintf-posix (Files): Likewise.
8855         * modules/vsprintf-posix (Files): Likewise.
8856         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8857         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8858         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8859         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8860         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8861         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8862         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8863
8864         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8865         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8866         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8867         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8868         'long double'.
8869         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8870
8871         isinf: Fix for platforms where 'long double' == 'double'.
8872         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8873         Don't blindly assume 80-bit 'long double'.
8874
8875         isfinite: Fix for platforms where 'long double' == 'double'.
8876         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8877         Don't blindly assume 80-bit 'long double'.
8878
8879         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8880         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8881         * modules/isfinite-tests (configure.ac): Require
8882         gl_LONG_DOUBLE_VS_DOUBLE.
8883         * modules/isinf-tests (configure.ac): Likewise.
8884         * modules/isnan-tests (configure.ac): Likewise.
8885         * modules/isnanl-tests (configure.ac): Likewise.
8886         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8887         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8888         tests on platforms where 'long double' is the same as 'double'.
8889         * tests/test-isinf.c (test_isinfl): Likewise.
8890         * tests/test-isnan.c (test_long_double): Likewise.
8891         * tests/test-isnanl.h (main): Likewise.
8892
8893 2011-10-08  Bruno Haible  <bruno@clisp.org>
8894
8895         Tests for module 'tanhf'.
8896         * modules/tanhf-tests: New file.
8897         * tests/test-tanhf.c: New file.
8898
8899         New module 'tanhf'.
8900         * lib/math.in.h (tanhf): New declaration.
8901         * lib/tanhf.c: New file.
8902         * m4/tanhf.m4: New file.
8903         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8905         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8906         * modules/tanhf: New file.
8907         * tests/test-math-c++.cc: Check the declaration of tanhf.
8908         * doc/posix-functions/tanhf.texi: Mention the new module.
8909
8910         tanh: Use a .m4 file.
8911         * m4/tanh.m4: New file.
8912         * modules/tanh (Files): Add it.
8913         (configure.ac): Just invoke gl_FUNC_TANH.
8914
8915 2011-10-08  Bruno Haible  <bruno@clisp.org>
8916
8917         Tests for module 'coshf'.
8918         * modules/coshf-tests: New file.
8919         * tests/test-coshf.c: New file.
8920
8921         New module 'coshf'.
8922         * lib/math.in.h (coshf): New declaration.
8923         * lib/coshf.c: New file.
8924         * m4/coshf.m4: New file.
8925         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8927         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8928         * modules/coshf: New file.
8929         * tests/test-math-c++.cc: Check the declaration of coshf.
8930         * doc/posix-functions/coshf.texi: Mention the new module.
8931
8932         cosh: Use a .m4 file.
8933         * m4/cosh.m4: New file.
8934         * modules/cosh (Files): Add it.
8935         (configure.ac): Just invoke gl_FUNC_COSH.
8936
8937 2011-10-08  Bruno Haible  <bruno@clisp.org>
8938
8939         Tests for module 'sinhf'.
8940         * modules/sinhf-tests: New file.
8941         * tests/test-sinhf.c: New file.
8942
8943         New module 'sinhf'.
8944         * lib/math.in.h (sinhf): New declaration.
8945         * lib/sinhf.c: New file.
8946         * m4/sinhf.m4: New file.
8947         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8949         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8950         * modules/sinhf: New file.
8951         * tests/test-math-c++.cc: Check the declaration of sinhf.
8952         * doc/posix-functions/sinhf.texi: Mention the new module.
8953
8954         sinh: Use a .m4 file.
8955         * m4/sinh.m4: New file.
8956         * modules/sinh (Files): Add it.
8957         (configure.ac): Just invoke gl_FUNC_SINH.
8958
8959 2011-10-08  Bruno Haible  <bruno@clisp.org>
8960
8961         Tests for module 'atan2f'.
8962         * modules/atan2f-tests: New file.
8963         * tests/test-atan2f.c: New file.
8964
8965         New module 'atan2f'.
8966         * lib/math.in.h (atan2f): New declaration.
8967         * lib/atan2f.c: New file.
8968         * m4/atan2f.m4: New file.
8969         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8971         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8972         * modules/atan2f: New file.
8973         * tests/test-math-c++.cc: Check the declaration of atan2f.
8974         * doc/posix-functions/atan2f.texi: Mention the new module.
8975
8976         atan2: Use a .m4 file.
8977         * m4/atan2.m4: New file.
8978         * modules/atan2 (Files): Add it.
8979         (configure.ac): Just invoke gl_FUNC_ATAN2.
8980
8981 2011-10-08  Bruno Haible  <bruno@clisp.org>
8982
8983         Tests for module 'atanf'.
8984         * modules/atanf-tests: New file.
8985         * tests/test-atanf.c: New file.
8986
8987         New module 'atanf'.
8988         * lib/math.in.h (atanf): New declaration.
8989         * lib/atanf.c: New file.
8990         * m4/atanf.m4: New file.
8991         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8993         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8994         * modules/atanf: New file.
8995         * tests/test-math-c++.cc: Check the declaration of atanf.
8996         * doc/posix-functions/atanf.texi: Mention the new module.
8997
8998         atan: Use a .m4 file.
8999         * m4/atan.m4: New file.
9000         * modules/atan (Files): Add it.
9001         (configure.ac): Just invoke gl_FUNC_ATAN.
9002
9003 2011-10-08  Bruno Haible  <bruno@clisp.org>
9004
9005         Tests for module 'acosf'.
9006         * modules/acosf-tests: New file.
9007         * tests/test-acosf.c: New file.
9008
9009         New module 'acosf'.
9010         * lib/math.in.h (acosf): New declaration.
9011         * lib/acosf.c: New file.
9012         * m4/acosf.m4: New file.
9013         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
9014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
9015         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
9016         * modules/acosf: New file.
9017         * tests/test-math-c++.cc: Check the declaration of acosf.
9018         * doc/posix-functions/acosf.texi: Mention the new module.
9019
9020         acos: Use a .m4 file.
9021         * m4/acos.m4: New file.
9022         * modules/acos (Files): Add it.
9023         (configure.ac): Just invoke gl_FUNC_ACOS.
9024
9025 2011-10-08  Bruno Haible  <bruno@clisp.org>
9026
9027         Tests for module 'asinf'.
9028         * modules/asinf-tests: New file.
9029         * tests/test-asinf.c: New file.
9030
9031         New module 'asinf'.
9032         * lib/math.in.h (asinf): New declaration.
9033         * lib/asinf.c: New file.
9034         * m4/asinf.m4: New file.
9035         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
9036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
9037         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
9038         * modules/asinf: New file.
9039         * tests/test-math-c++.cc: Check the declaration of asinf.
9040         * doc/posix-functions/asinf.texi: Mention the new module.
9041
9042         asin: Use a .m4 file.
9043         * m4/asin.m4: New file.
9044         * modules/asin (Files): Add it.
9045         (configure.ac): Just invoke gl_FUNC_ASIN.
9046
9047 2011-10-08  Bruno Haible  <bruno@clisp.org>
9048
9049         Tests for module 'tanf'.
9050         * modules/tanf-tests: New file.
9051         * tests/test-tanf.c: New file.
9052
9053         New module 'tanf'.
9054         * lib/math.in.h (tanf): New declaration.
9055         * lib/tanf.c: New file.
9056         * m4/tanf.m4: New file.
9057         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
9058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
9059         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
9060         * modules/tanf: New file.
9061         * tests/test-math-c++.cc: Check the declaration of tanf.
9062         * doc/posix-functions/tanf.texi: Mention the new module.
9063
9064         tan: Use a .m4 file.
9065         * m4/tan.m4: New file.
9066         * modules/tan (Files): Add it.
9067         (configure.ac): Just invoke gl_FUNC_TAN.
9068
9069 2011-10-08  Bruno Haible  <bruno@clisp.org>
9070
9071         Tests for module 'cosf'.
9072         * modules/cosf-tests: New file.
9073         * tests/test-cosf.c: New file.
9074
9075         New module 'cosf'.
9076         * lib/math.in.h (cosf): New declaration.
9077         * lib/cosf.c: New file.
9078         * m4/cosf.m4: New file.
9079         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
9080         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
9081         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
9082         * modules/cosf: New file.
9083         * tests/test-math-c++.cc: Check the declaration of cosf.
9084         * doc/posix-functions/cosf.texi: Mention the new module.
9085
9086         cos: Use a .m4 file.
9087         * m4/cos.m4: New file.
9088         * modules/cos (Files): Add it.
9089         (configure.ac): Just invoke gl_FUNC_COS.
9090
9091 2011-10-08  Bruno Haible  <bruno@clisp.org>
9092
9093         Tests for module 'sinf'.
9094         * modules/sinf-tests: New file.
9095         * tests/test-sinf.c: New file.
9096
9097         New module 'sinf'.
9098         * lib/math.in.h (sinf): New declaration.
9099         * lib/sinf.c: New file.
9100         * m4/sinf.m4: New file.
9101         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
9102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
9103         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
9104         * modules/sinf: New file.
9105         * tests/test-math-c++.cc: Check the declaration of sinf.
9106         * doc/posix-functions/sinf.texi: Mention the new module.
9107
9108         sin: Use a .m4 file.
9109         * m4/sin.m4: New file.
9110         * modules/sin (Files): Add it.
9111         (configure.ac): Just invoke gl_FUNC_SIN.
9112
9113 2011-10-08  Bruno Haible  <bruno@clisp.org>
9114
9115         Tests for module 'powf'.
9116         * modules/powf-tests: New file.
9117         * tests/test-powf.c: New file.
9118
9119         New module 'powf'.
9120         * lib/math.in.h (powf): New declaration.
9121         * lib/powf.c: New file.
9122         * m4/powf.m4: New file.
9123         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
9124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
9125         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
9126         * modules/powf: New file.
9127         * tests/test-math-c++.cc: Check the declaration of powf.
9128         * doc/posix-functions/powf.texi: Mention the new module.
9129
9130         pow: Use a .m4 file.
9131         * m4/pow.m4: New file.
9132         * modules/pow (Files): Add it.
9133         (configure.ac): Just invoke gl_FUNC_POW.
9134
9135 2011-10-08  Bruno Haible  <bruno@clisp.org>
9136
9137         Tests for module 'log10f'.
9138         * modules/log10f-tests: New file.
9139         * tests/test-log10f.c: New file.
9140
9141         New module 'log10f'.
9142         * lib/math.in.h (log10f): New declaration.
9143         * lib/log10f.c: New file.
9144         * m4/log10f.m4: New file.
9145         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9147         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9148         * modules/log10f: New file.
9149         * tests/test-math-c++.cc: Check the declaration of log10f.
9150         * doc/posix-functions/log10f.texi: Mention the new module.
9151
9152         log10: Use a .m4 file.
9153         * m4/log10.m4: New file.
9154         * modules/log10 (Files): Add it.
9155         (configure.ac): Just invoke gl_FUNC_LOG10.
9156
9157 2011-10-08  Bruno Haible  <bruno@clisp.org>
9158
9159         Tests for module 'logf'.
9160         * modules/logf-tests: New file.
9161         * tests/test-logf.c: New file.
9162
9163         New module 'logf'.
9164         * lib/math.in.h (logf): New declaration.
9165         * lib/logf.c: New file.
9166         * m4/logf.m4: New file.
9167         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9169         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9170         * modules/logf: New file.
9171         * tests/test-math-c++.cc: Check the declaration of logf.
9172         * doc/posix-functions/logf.texi: Mention the new module.
9173
9174         log: Use a .m4 file.
9175         * m4/log.m4: New file.
9176         * modules/log (Files): Add it.
9177         (configure.ac): Just invoke gl_FUNC_LOG.
9178
9179 2011-10-08  Bruno Haible  <bruno@clisp.org>
9180
9181         Tests for module 'expf'.
9182         * modules/expf-tests: New file.
9183         * tests/test-expf.c: New file.
9184
9185         New module 'expf'.
9186         * lib/math.in.h (expf): New declaration.
9187         * lib/expf.c: New file.
9188         * m4/expf.m4: New file.
9189         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9191         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9192         * modules/expf: New file.
9193         * tests/test-math-c++.cc: Check the declaration of expf.
9194         * doc/posix-functions/expf.texi: Mention the new module.
9195
9196         exp: Use a .m4 file.
9197         * m4/exp.m4: New file.
9198         * modules/exp (Files): Add it.
9199         (configure.ac): Just invoke gl_FUNC_EXP.
9200
9201 2011-10-08  Bruno Haible  <bruno@clisp.org>
9202
9203         Tests for module 'sqrtf'.
9204         * modules/sqrtf-tests: New file.
9205         * tests/test-sqrtf.c: New file.
9206
9207         New module 'sqrtf'.
9208         * lib/math.in.h (sqrtf): New declaration.
9209         * lib/sqrtf.c: New file.
9210         * m4/sqrtf.m4: New file.
9211         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9213         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9214         * modules/sqrtf: New file.
9215         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9216         * doc/posix-functions/sqrtf.texi: Mention the new module.
9217
9218 2011-10-08  Bruno Haible  <bruno@clisp.org>
9219
9220         Tests: Avoid link failures w.r.t. libintl.
9221         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9222         $(LIBINTL).
9223         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9224         $(LIBINTL).
9225         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9226         against $(LIBINTL).
9227         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9228         $(LIBINTL).
9229         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9230         $(LIBINTL).
9231         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9232
9233 2011-10-08  Bruno Haible  <bruno@clisp.org>
9234
9235         pow tests: Defeat compiler optimizations.
9236         * tests/test-pow.c (main): Assign arguments to x and y before use.
9237
9238 2011-10-08  Bruno Haible  <bruno@clisp.org>
9239
9240         gnulib-tool: Improve last commit.
9241         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9242         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9243         ignore dependencies that are not among the modules list.
9244
9245 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9246
9247         gnulib-tool: don't follow dependencies to avoided modules
9248         This fixes a bug that is related to the previous one.
9249         * gnulib-tool (func_modules_transitive_closure)
9250         (func_emit_autoconf_snippets):
9251         Check whether a dependency is acceptable before using it.
9252         (--extract-dependencies): Report an error if --avoid is also used,
9253         since this combination of options is not yet supported.
9254
9255         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9256         Problem reported by Peter Dyballa in
9257         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9258         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9259         when echoing "$condition".
9260
9261 2011-10-07  Bruno Haible  <bruno@clisp.org>
9262
9263         Fix documentation about math functions on MacOS X.
9264         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9265         MacOS X 10.5.
9266         * doc/posix-functions/fdim.texi: Likewise.
9267         * doc/posix-functions/feclearexcept.texi: Likewise.
9268         * doc/posix-functions/fegetenv.texi: Likewise.
9269         * doc/posix-functions/fegetround.texi: Likewise.
9270         * doc/posix-functions/feholdexcept.texi: Likewise.
9271         * doc/posix-functions/feraiseexcept.texi: Likewise.
9272         * doc/posix-functions/fesetenv.texi: Likewise.
9273         * doc/posix-functions/fesetround.texi: Likewise.
9274         * doc/posix-functions/fetestexcept.texi: Likewise.
9275         * doc/posix-functions/feupdateenv.texi: Likewise.
9276         * doc/posix-functions/fmax.texi: Likewise.
9277         * doc/posix-functions/fmin.texi: Likewise.
9278         * doc/posix-functions/log2.texi: Likewise.
9279         * doc/posix-functions/modff.texi: Likewise.
9280         * doc/posix-functions/nan.texi: Likewise.
9281         * doc/posix-functions/nanf.texi: Likewise.
9282         * doc/posix-functions/nextafterf.texi: Likewise.
9283         * doc/posix-functions/remquo.texi: Likewise.
9284
9285 2011-10-07  Bruno Haible  <bruno@clisp.org>
9286
9287         modff: Drop assumption about library that defines modff.
9288         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9289         AC_CHECK_FUNCS.
9290         * modules/modff (Files): Add m4/mathfunc.m4.
9291
9292 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9293
9294         raise tests: Avoid a GCC warning.
9295         * tests/test-raise.c (handler): Use _Noreturn.
9296
9297 2011-10-07  Bruno Haible  <bruno@clisp.org>
9298
9299         Tests for module 'ldexpf'.
9300         * modules/ldexpf-tests: New file.
9301         * tests/test-ldexpf.c: New file.
9302
9303         New module 'ldexpf'.
9304         * lib/math.in.h (ldexpf): New declaration.
9305         * lib/ldexpf.c: New file.
9306         * m4/ldexpf.m4: New file.
9307         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9309         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9310         * modules/ldexpf: New file.
9311         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9312         * doc/posix-functions/ldexpf.texi: Mention the new module.
9313
9314 2011-10-06  Bruno Haible  <bruno@clisp.org>
9315
9316         frexpf: Work around problems on IRIX and mingw.
9317         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9319         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9320         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9321         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9322         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9323         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9324
9325 2011-10-06  Bruno Haible  <bruno@clisp.org>
9326
9327         fabsf: Drop assumption about library that defines fabsf.
9328         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9329         AC_CHECK_FUNCS.
9330         * modules/fabsf (Files): Add m4/mathfunc.m4.
9331
9332 2011-10-06  Bruno Haible  <bruno@clisp.org>
9333
9334         frexpf: Drop assumption about library that defines frexpf.
9335         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9336         'int *', 'float *', 'long double *', 'float', 'long double'.
9337         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9338         AC_CHECK_FUNCS.
9339         * modules/frexpf (Files): Add m4/mathfunc.m4.
9340
9341         Tests for module 'frexpf'.
9342         * modules/frexpf-tests: New file.
9343         * tests/test-frexpf.c: New file.
9344
9345         New module 'frexpf'.
9346         * lib/math.in.h (frexpf): New declaration.
9347         * lib/frexpf.c: New file.
9348         * m4/frexpf.m4: New file.
9349         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9351         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9352         * modules/frexpf: New file.
9353         * tests/test-math-c++.cc: Check the declaration of frexpf.
9354         * doc/posix-functions/frexpf.texi: Mention the new module.
9355
9356 2011-10-06  Bruno Haible  <bruno@clisp.org>
9357
9358         math: Sort function declarations of math.in.h.
9359         * lib/math.in.h (frexp, logb): Move declarations.
9360
9361 2011-10-05  Bruno Haible  <bruno@clisp.org>
9362
9363         Tests for module 'modff'.
9364         * modules/modff-tests: New file.
9365         * tests/test-modff.c: New file.
9366
9367         New module 'modff'.
9368         * lib/math.in.h (modff): New declaration.
9369         * lib/modff.c: New file.
9370         * m4/modff.m4: New file.
9371         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9372         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9373         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9374         * modules/modff: New file.
9375         * tests/test-math-c++.cc: Check the declaration of modff.
9376         * doc/posix-functions/modff.texi: Mention the new module.
9377
9378         modf tests: Make test sharper.
9379         * tests/test-modf.c (main): Strengthen upper bound.
9380
9381         modf: Use a .m4 file.
9382         * m4/modf.m4: New file.
9383         * modules/modf (Files): Add it.
9384         (configure.ac): Just invoke gl_FUNC_MODF.
9385
9386 2011-10-05  Bruno Haible  <bruno@clisp.org>
9387
9388         Tests for module 'fmodf'.
9389         * modules/fmodf-tests: New file.
9390         * tests/test-fmodf.c: New file.
9391
9392         New module 'fmodf'.
9393         * lib/math.in.h (fmodf): New declaration.
9394         * lib/fmodf.c: New file.
9395         * m4/fmodf.m4: New file.
9396         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9398         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9399         * modules/fmodf: New file.
9400         * tests/test-math-c++.cc: Check the declaration of fmodf.
9401         * doc/posix-functions/fmodf.texi: Mention the new module.
9402
9403         fmod: Use a .m4 file.
9404         * m4/fmod.m4: New file.
9405         * modules/fmod (Files): Add it.
9406         (configure.ac): Just invoke gl_FUNC_FMOD.
9407
9408 2011-10-05  Bruno Haible  <bruno@clisp.org>
9409
9410         Tests for module 'fabsf'.
9411         * modules/fabsf-tests: New file.
9412         * tests/test-fabsf.c: New file.
9413
9414         New module 'fabsf'.
9415         * lib/math.in.h (fabsf): New declaration.
9416         * lib/fabsf.c: New file.
9417         * m4/fabsf.m4: New file.
9418         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9419         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9420         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9421         * modules/fabsf: New file.
9422         * tests/test-math-c++.cc: Check the declaration of fabsf.
9423         * doc/posix-functions/fabsf.texi: Mention the new module.
9424
9425         fabs: Use a .m4 file.
9426         * m4/fabs.m4: New file.
9427         * modules/fabs (Files): Add it.
9428         (configure.ac): Just invoke gl_FUNC_FABS.
9429
9430 2011-10-05  Jim Meyering  <meyering@redhat.com>
9431
9432         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9433         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9434         ls -lL regression introduced in coreutils-8.12, it does so at the
9435         cost of an additional stat call in the common case.  Besides, now
9436         that the kernel change that prompted commit 95f7c57f has been reverted
9437         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9438         we have no use for commit 95f7c57f, "file-has-acl: use
9439         acl_extended_file_nofollow if available".
9440
9441 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9442
9443         file-has-acl: revert unintended change in behavior of ls -L
9444         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9445         derived from...
9446         (file_has_acl): ...code here.  Call it.
9447         This problem was introduced with 2011-07-22 commit 95f7c57f,
9448         "file-has-acl: use acl_extended_file_nofollow if available".
9449         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9450
9451 2011-10-03  Bruno Haible  <bruno@clisp.org>
9452
9453         poll: Avoid link errors on MSVC.
9454         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9455         * modules/poll (Depends-on): Add sockets.
9456         (Link): New section.
9457         * NEWS: Mention the change.
9458         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9459         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9460         $(LIB_POLL) instead of $(LIBSOCKET).
9461
9462 2011-10-03  Bruno Haible  <bruno@clisp.org>
9463
9464         sys_select tests: Fix link error on MSVC 9.
9465         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9466         with $(LIB_SELECT) instead of $(LIBSOCKET).
9467
9468 2011-10-03  Bruno Haible  <bruno@clisp.org>
9469
9470         sys_select: Fix compilation error on mingw.
9471         * lib/sys_select.in.h: On native Windows, include <io.h>.
9472
9473 2011-10-03  Bruno Haible  <bruno@clisp.org>
9474
9475         wmemset: Support for MSVC.
9476         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9477         whether wmemset() exists.
9478
9479 2011-10-03  Bruno Haible  <bruno@clisp.org>
9480
9481         wmemmove: Support for MSVC.
9482         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9483         whether wmemmove() exists.
9484
9485 2011-10-03  Bruno Haible  <bruno@clisp.org>
9486
9487         wmemcpy: Support for MSVC.
9488         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9489         whether wmemcpy() exists.
9490
9491 2011-10-03  Bruno Haible  <bruno@clisp.org>
9492
9493         wmemcmp: Support for MSVC.
9494         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9495         whether wmemcmp() exists.
9496
9497 2011-10-03  Bruno Haible  <bruno@clisp.org>
9498
9499         wmemchr: Support for MSVC.
9500         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9501         whether wmemchr() exists.
9502
9503 2011-10-03  Bruno Haible  <bruno@clisp.org>
9504
9505         glthread/*, strsignal: Support for MSVC.
9506         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9507         including <winsock.h> on MSVC 9.
9508         * lib/glthread/lock.h: Likewise.
9509         * lib/glthread/thread.h: Likewise.
9510         * lib/glthread/tls.h: Likewise.
9511         * lib/glthread/yield.h: Likewise.
9512         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9513         if HAVE_UNISTD_H is false.
9514         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9515
9516 2011-10-03  Bruno Haible  <bruno@clisp.org>
9517
9518         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9519         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9520         Set to 100000.
9521
9522 2011-10-03  Bruno Haible  <bruno@clisp.org>
9523
9524         acl: Fix specification.
9525         * lib/file-has-acl.c (file_has_acl): Fix specification.
9526
9527 2011-10-03  Bruno Haible  <bruno@clisp.org>
9528
9529         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9530         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9531         (compute_curr_prefix, shared_library_fullname,
9532         find_shared_library_fullname, get_shared_library_fullname, relocate):
9533         Use it together with PIC && INSTALLDIR.
9534         Reported by <jojelino@gmail.com>
9535         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9536
9537 2011-10-01  Jim Meyering  <meyering@redhat.com>
9538
9539         maint.mk: adjust a release-related rule not to require use of gzip
9540         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9541         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9542         projects that build only .tar.xz files.  Also fix an erroneous test.
9543
9544         test-linkat: don't leave behind a temporary file
9545         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9546         Otherwise, coreutils' "make distcheck" would fail with this:
9547           Only in /c/cu/tests/torture/coreutils/test/\
9548             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9549           make[2]: *** [my-distcheck] Error 1
9550
9551         float, math: add omitted file
9552         * lib/itold.c: Add file, required for yesterday's float change.
9553
9554 2011-10-01  Bruno Haible  <bruno@clisp.org>
9555
9556         isinf: Fix for OpenBSD/x86.
9557         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9558         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9559         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9560
9561 2011-10-01  Bruno Haible  <bruno@clisp.org>
9562
9563         isfinite: Fix syntax error in configure test.
9564         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9565
9566         isfinite: Fix typo.
9567         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9568         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9569
9570 2011-10-01  Bruno Haible  <bruno@clisp.org>
9571
9572         nonblocking tests: Fix test failure on Linux/IA-64.
9573         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9574         Set to 270000.
9575
9576 2011-10-01  Bruno Haible  <bruno@clisp.org>
9577
9578         mkfifoat tests: Fix a test failure on mingw.
9579         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9580         with error ENOSYS.
9581
9582 2011-09-30  Bruno Haible  <bruno@clisp.org>
9583
9584         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9585         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9586         'long double'. Set REPLACE_ITOLD.
9587         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9588         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9589         * lib/itold.c: New file.
9590         * modules/float (Files): Add lib/itold.c.
9591         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9592         (Makefile.am): Substitute REPLACE_ITOLD.
9593         * modules/math (Depends-on): Add float.
9594         (Makefile.am): Substitute REPLACE_ITOLD.
9595         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9596         * doc/posix-headers/math.texi: Likewise.
9597         * doc/posix-functions/logl.texi: Likewise.
9598
9599 2011-09-30  Bruno Haible  <bruno@clisp.org>
9600
9601         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9602         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9603         Set to 140000.
9604
9605 2011-09-30  Bruno Haible  <bruno@clisp.org>
9606
9607         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9608         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9609         invocation, say "right after AC_PROG_CC_STDC", not "right after
9610         AC_PROG_CC".
9611         Reported by Gary V. Vaughan <gary@gnu.org>.
9612
9613 2011-09-30  Bruno Haible  <bruno@clisp.org>
9614
9615         Centralize C99 requirement.
9616         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9617         * modules/stdarg (configure.ac-early): Invoke it instead of
9618         AC_PROG_CC_STDC.
9619         Reported by Gary V. Vaughan and Paul Eggert.
9620
9621 2011-09-29  Bruno Haible  <bruno@clisp.org>
9622
9623         float: Fix LDBL_MAX value on Linux/PowerPC.
9624         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9625         on Linux/PowerPC.
9626         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9627         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9628         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9629         platform.
9630         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9631
9632 2011-09-29  Bruno Haible  <bruno@clisp.org>
9633
9634         doc: Improve doc about gl_EARLY.
9635         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9636         AC_PROG_CC_STDC invocation.
9637         Reported by Gary V. Vaughan <gary@gnu.org>.
9638
9639 2011-09-28  Bruno Haible  <bruno@clisp.org>
9640
9641         fgetc, fputc, fread, fwrite tests: Fix link error.
9642         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9643         on non-MSVC platforms.
9644         * tests/test-fputc.c (main): Likewise.
9645         * tests/test-fread.c (main): Likewise.
9646         * tests/test-fwrite.c (main): Likewise.
9647         Reported by Jim Meyering.
9648
9649 2011-09-27  Bruno Haible  <bruno@clisp.org>
9650
9651         fputc, fwrite tests: Avoid test failure on MSVC.
9652         * tests/test-fgetc.c: Include msvc-inval.h.
9653         (main): Invoke gl_msvc_inval_ensure_handler.
9654         * tests/test-fputc.c: Include msvc-inval.h.
9655         (main): Invoke gl_msvc_inval_ensure_handler.
9656         * tests/test-fread.c: Include msvc-inval.h.
9657         (main): Invoke gl_msvc_inval_ensure_handler.
9658         * tests/test-fwrite.c: Include msvc-inval.h.
9659         (main): Invoke gl_msvc_inval_ensure_handler.
9660         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9661         * modules/fputc-tests (Depends-on): Likewise.
9662         * modules/fread-tests (Depends-on): Likewise.
9663         * modules/fwrite-tests (Depends-on): Likewise.
9664
9665 2011-09-27  Bruno Haible  <bruno@clisp.org>
9666
9667         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9668         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9669         (raise): Remove older, duplicated declaration.
9670         (_gl_raise_SIGPIPE): New declaration.
9671         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9672         (rpl_raise): Remove function.
9673         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9674         a gnulib-defined SIGPIPE here.
9675         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9676         'sigprocmask' has detected missing signal-blocking and the module
9677         'sigpipe' is enabled.
9678         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9679
9680 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9681
9682         base64-tests: avoid memory leak
9683         * tests/test-base64.c (main): Plug memory leak.
9684
9685         base32: new module
9686         * modules/base32: New module.
9687         * lib/base32.c: New file.
9688         * lib/base32.h: Likewise.
9689         * m4/base32.m4: Likewise.
9690         * modules/base32-tests: New test.
9691         * tests/test-base32.c: Likewise.
9692         * MODULES.html.sh (Misc): Mention it.
9693
9694 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9695
9696         gnulib: use more-standard license notice wording
9697         * gnulib-tool (func_emit_copyright_notice): When emitting a
9698         license notice into a file, use the standard wording as suggested
9699         by the current information for GNU maintainers, except say "file"
9700         rather than "program".  The new wording gives a license version
9701         number, which addresses an issue raised by Glenn Morris in
9702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9703         * m4/onceonly.m4: Use that same wording here, too.
9704
9705         dup2: minor simplification
9706         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9707         as lib/dup2.c no longer uses 'inline'.
9708
9709 2011-09-25  Bruno Haible  <bruno@clisp.org>
9710
9711         strings: Fix compilation error on MSVC.
9712         * lib/strings.in.h: Include <stddef.h> for size_t.
9713
9714 2011-09-25  Bruno Haible  <bruno@clisp.org>
9715
9716         fflush et al.: Document limitation on MSVC.
9717         * doc/posix-functions/fflush.texi: Document possible crash in handling
9718         mode other than DEFAULT_HANDLING.
9719         * doc/posix-functions/fgetc.texi: Likewise.
9720         * doc/posix-functions/fputc.texi: Likewise.
9721         * doc/posix-functions/fread.texi: Likewise.
9722         * doc/posix-functions/fwrite.texi: Likewise.
9723
9724 2011-09-25  Bruno Haible  <bruno@clisp.org>
9725
9726         msvc-inval: Allow three invalid parameter handling modes.
9727         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9728         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9729         macros.
9730         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9731         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9732         SANE_LIBRARY_HANDLING as a no-op.
9733         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9734         <stdlib.h>.
9735         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9736
9737 2011-09-25  Bruno Haible  <bruno@clisp.org>
9738
9739         msvc-inval: Make handler multithread-safe.
9740         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9741         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9742         declarations.
9743         (gl_msvc_inval_current): New declaration.
9744         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9745         Operate on the structure returned by gl_msvc_inval_current().
9746         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9747         Remove varaiables.
9748         (tls_index, tls_initialized): New variables.
9749         (not_per_thread): New variable.
9750         (gl_msvc_inval_current): New function.
9751         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9752         returned by gl_msvc_inval_current().
9753
9754 2011-09-25  Bruno Haible  <bruno@clisp.org>
9755
9756         msvc-inval: Install handler globally.
9757         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9758         !_MSC_VER.
9759         (gl_msvc_invalid_parameter_handler): Remove declaration.
9760         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9761         declarations.
9762         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9763         Install the handler globally, don't uninstall it.
9764         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9765         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9766         currently valid, call RaiseException instead.
9767         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9768         for !_MSC_VER.
9769
9770 2011-09-25  Bruno Haible  <bruno@clisp.org>
9771
9772         strerror_r-posix: Fix for MSVC 9.
9773         * lib/strerror_r.c (local_snprintf): New function.
9774         (snprintf): Define to local_snprintf, not to _snprintf.
9775
9776 2011-09-25  Bruno Haible  <bruno@clisp.org>
9777
9778         ftruncate: Support for MSVC 9.
9779         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9780         (chsize_nothrow): New function.
9781         (chsize): Redefine as a macro.
9782         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9783         * modules/ftruncate (Depends-on): Add msvc-inval.
9784
9785 2011-09-25  Bruno Haible  <bruno@clisp.org>
9786
9787         New module 'fstat'.
9788         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9789         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9790         * lib/fchdir.c (rpl_fstat): Remove function.
9791         * m4/fstat.m4: New file.
9792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9793         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9794         declared.
9795         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9796         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9797         * modules/fstat: New file.
9798         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9799         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9800         is set.
9801         * doc/posix-functions/fstat.texi: Mention the new module and the
9802         problem on MSVC.
9803         * NEWS: Mention the change.
9804         * modules/acl (Depends-on): Add fstat.
9805         * modules/chdir-safer (Depends-on): Likewise.
9806         * modules/chown (Depends-on): Likewise.
9807         * modules/copy-file (Depends-on): Likewise.
9808         * modules/fchdir (Depends-on): Likewise.
9809         * modules/fdopendir (Depends-on): Likewise.
9810         * modules/fopen (Depends-on): Likewise.
9811         * modules/fts (Depends-on): Likewise.
9812         * modules/getcwd (Depends-on): Likewise.
9813         * modules/isapipe (Depends-on): Likewise.
9814         * modules/linkat (Depends-on): Likewise.
9815         * modules/lseek (Depends-on): Likewise.
9816         * modules/mkdir-p (Depends-on): Likewise.
9817         * modules/open (Depends-on): Likewise.
9818         * modules/openat (Depends-on): Likewise.
9819         * modules/read-file (Depends-on): Likewise.
9820         * modules/renameat (Depends-on): Likewise.
9821         * modules/utimens (Depends-on): Likewise.
9822
9823 2011-09-25  Bruno Haible  <bruno@clisp.org>
9824
9825         linkat: Fix compilation on MSVC 9.
9826         * lib/linkat.c: Don't include <stdint.h>.
9827
9828 2011-09-25  Bruno Haible  <bruno@clisp.org>
9829
9830         fclose: Support for MSVC 9.
9831         * lib/fclose.c: Include msvc-inval.h.
9832         (fclose_nothrow): New function.
9833         (rpl_fclose): Use it.
9834         * modules/fclose (Depends-on): Add msvc-inval.
9835         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9836
9837 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9838
9839         dup2: minor simplifications
9840         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9841         that it's a performance win.
9842         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9843         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9844
9845 2011-09-24  Jim Meyering  <meyering@redhat.com>
9846
9847         test-futimens: avoid a warning from gcc -Wshadow
9848         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9849         to avoid a shadowing warning.
9850
9851 2011-09-24  Bruno Haible  <bruno@clisp.org>
9852
9853         fdopen: Support for MSVC 9.
9854         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9855         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9856         * lib/fdopen.c: Include msvc-inval.h.
9857         (fdopen_nothrow): New function.
9858         (rpl_fdopen): Use it.
9859         * modules/fdopen (Depends-on): Add msvc-inval.
9860         * modules/fclose-tests (Depends-on): Add fdopen.
9861         * modules/fflush-tests (Depends-on): Likewise.
9862         * modules/fgetc-tests (Depends-on): Likewise.
9863         * modules/fputc-tests (Depends-on): Likewise.
9864         * modules/fread-tests (Depends-on): Likewise.
9865         * modules/freopen-tests (Depends-on): Likewise.
9866         * modules/fseeko-tests (Depends-on): Likewise.
9867         * modules/ftello-tests (Depends-on): Likewise.
9868         * modules/fwrite-tests  (Depends-on): Likewise.
9869         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9870
9871 2011-09-24  Bruno Haible  <bruno@clisp.org>
9872
9873         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9874         * modules/fgetc-tests (Depends-on): Add unistd.
9875         * modules/fputc-tests (Depends-on): Likewise.
9876         * modules/fread-tests (Depends-on): Likewise.
9877         * modules/fwrite-tests (Depends-on): Likewise.
9878
9879 2011-09-24  Bruno Haible  <bruno@clisp.org>
9880
9881         dup: Simplify autoconf test.
9882         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9883         on gl_MSVC_INVAL's result.
9884
9885 2011-09-24  Bruno Haible  <bruno@clisp.org>
9886
9887         Tests for function fwrite().
9888         * modules/fwrite-tests: New file.
9889         * tests/test-fwrite.c: New file.
9890         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9891
9892         Tests for function fread().
9893         * modules/fread-tests: New file.
9894         * tests/test-fread.c: New file.
9895         * modules/stdio-tests (Depends-on): Add fread-tests.
9896
9897         Activate fputc tests.
9898         * modules/stdio-tests (Depends-on): Add fputc-tests.
9899
9900         Enhance fgetc, fputc tests.
9901         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9902         * tests/test-fputc.c (main): Likewise.
9903
9904 2011-09-24  Bruno Haible  <bruno@clisp.org>
9905
9906         write: Support for MSVC 9.
9907         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9908         is not 1.
9909         * lib/write.c (write_nothrow): New function.
9910         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9911         not 1. Use write_nothrow.
9912         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9913         invalid parameter handler.
9914         (gl_PREREQ_WRITE): New macro.
9915         * modules/write (Depends-on): Add msvc-inval.
9916         (configure.ac): Invoke gl_PREREQ_WRITE.
9917         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9918
9919 2011-09-24  Bruno Haible  <bruno@clisp.org>
9920
9921         read: Fix last commit.
9922         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9923
9924 2011-09-24  Bruno Haible  <bruno@clisp.org>
9925
9926         dup2: Fix last commit.
9927         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9928         (rpl_dup2): Disable fcntl workaround on native Windows.
9929
9930         sigprocmask: Make code safer.
9931         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9932         section that changes macro definitions for this compilation unit.
9933
9934 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9935
9936         dup2: clarify by coalescing Windows-specific material
9937         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9938         "msvc-nothrow.h"' to the Windows-specific section, so that the
9939         Emacs source need not contain these include files.
9940         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9941         Windows-specific fixes into this function rather than just the
9942         nothrow fix, as this shortens and clarifies the code.  Always
9943         define as a function, as that's a bit cleaner than having it be
9944         sometimes a function and sometimes a macro.
9945         (rpl_dup2): Move the Windows-specific stuff out of here and into
9946         ms_windows_dup2.  Don't protect the Haiku-related fix with
9947         "#if !defined __linux__", as the same code also works around
9948         a Linux kernel bug, and it doesn't add any system calls on any
9949         platform.  Add comment about FreeBSD 6.1.
9950
9951         sigprocmask: move #include directive
9952         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9953         Windows-specific section, so that the Emacs source need not
9954         contain msvc-inval.h.
9955
9956 2011-09-23  Bruno Haible  <bruno@clisp.org>
9957
9958         read: Support for MSVC 9.
9959         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9960         is not 1.
9961         * lib/read.c (read_nothrow): New function.
9962         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9963         read_nothrow.
9964         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9965         invalid parameter handler.
9966         (gl_PREREQ_READ): New macro.
9967         * modules/read (Depends-on): Add msvc-inval.
9968         (configure.ac): Invoke gl_PREREQ_READ.
9969         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9970
9971 2011-09-23  Bruno Haible  <bruno@clisp.org>
9972
9973         close: Support for MSVC 9.
9974         * lib/close.c: Include <errno.h>, msvc-inval.h.
9975         (close_nothrow): New function.
9976         (rpl_close): Use it.
9977         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9978         invalid parameter handler.
9979         * modules/close (Depends-on): Add msvc-inval.
9980         * modules/dup2-tests (Depends-on): Add close.
9981         * modules/dup3-tests (Depends-on): Likewise.
9982         * modules/fcntl-tests (Depends-on): Likewise.
9983         * modules/spawn-pipe-tests (Depends-on): Likewise.
9984         * modules/unistd-safer-tests (Depends-on): Likewise.
9985         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9986
9987 2011-09-23  Bruno Haible  <bruno@clisp.org>
9988
9989         New module 'dup'.
9990         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9991         Allow replacement.
9992         * lib/dup.c: New file.
9993         * lib/fchdir.c (rpl_dup): Remove function.
9994         * m4/dup.m4: New file.
9995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9996         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9997         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9998         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9999         * modules/dup: New file.
10000         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
10001         'dup' module is in use.
10002         * modules/fdopendir (Depends-on): Add dup.
10003         * modules/fdutimensat-tests (Depends-on): Likewise.
10004         * modules/fts (Depends-on): Likewise.
10005         * modules/futimens-tests (Depends-on): Likewise.
10006         * modules/posix_spawnp-tests (Depends-on): Likewise.
10007         * modules/unistd-safer-tests (Depends-on): Likewise.
10008         * modules/utimens-tests (Depends-on): Likewise.
10009         * doc/posix-functions/dup.texi: Mention the new module and the problem
10010         on MSVC.
10011
10012 2011-09-23  Bruno Haible  <bruno@clisp.org>
10013
10014         getdtablesize: Support for MSVC 9.
10015         * lib/getdtablesize.c: Include msvc-inval.h.
10016         (_setmaxstdio_nothrow): New function.
10017         (_setmaxstdio): Redefine it.
10018         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
10019         * modules/getdtablesize (Depends-on): Add msvc-inval.
10020         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
10021
10022 2011-09-23  Bruno Haible  <bruno@clisp.org>
10023
10024         signal-h: Rename from signal.
10025         * modules/signal-h: Renamed from modules/signal.
10026         * modules/pthread_sigmask (Depends-on): Update.
10027         * modules/raise (Depends-on): Likewise.
10028         * modules/sigaction (Depends-on): Likewise.
10029         * modules/sigpipe (Depends-on): Likewise.
10030         * modules/sigprocmask (Depends-on): Likewise.
10031         * modules/sys_select (Depends-on): Likewise.
10032         * modules/signal-h-tests: Renamed from modules/signal-tests.
10033         (Files, Depends-on, Makefile.am): Update.
10034         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
10035         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
10036         (Files, Makefile.am): Update.
10037         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
10038         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
10039         * modules/signal: New placeholder file.
10040         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
10041         * doc/posix-headers/signal.texi: Update.
10042         * NEWS: Mention the change.
10043
10044 2011-09-23  Bruno Haible  <bruno@clisp.org>
10045
10046         sigprocmask: Avoid crashes through signal() on MSVC 9.
10047         * lib/sigprocmask.c: Include msvc-inval.h.
10048         (signal_nothrow): New function.
10049         (signal): Redefine it.
10050         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
10051         * modules/sigprocmask (Depends-on): Add msvc-inval.
10052         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
10053
10054 2011-09-23  Bruno Haible  <bruno@clisp.org>
10055
10056         Tests for module 'raise'.
10057         * modules/raise-tests: New file.
10058         * tests/test-raise.c: New file.
10059
10060         raise: Support for MSVC.
10061         * lib/signal.in.h (raise): New declaration.
10062         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
10063         for native Windows platforms.
10064         * m4/raise.m4: New file.
10065         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
10066         HAVE_RAISE, REPLACE_RAISE.
10067         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
10068         REPLACE_RAISE.
10069         * modules/raise (Status, Notice): Remove fields.
10070         (Files): Add m4/raise.m4.
10071         (Depends-on): Add signal, msvc-inval.
10072         (configure.ac): Use the common idioms.
10073         (Maintainer): Add me.
10074         * tests/test-signal-c++.cc: Check the signature of raise.
10075         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
10076
10077 2011-09-23  Bruno Haible  <bruno@clisp.org>
10078
10079         pipe2: Fix compilation on pre-C99 compilers.
10080         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
10081
10082 2011-09-23  Bruno Haible  <bruno@clisp.org>
10083
10084         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
10085         * lib/msvc-nothrow.h: New file.
10086         * lib/msvc-nothrow.c: New file.
10087         * m4/msvc-nothrow.m4: New file.
10088         * modules/msvc-nothrow: New file.
10089         * lib/dup2.c: Include msvc-nothrow.h.
10090         (rpl_dup2): No need to protect _get_osfhandle call here.
10091         * lib/accept4.c: Include msvc-nothrow.h.
10092         * lib/error.c: Likewise.
10093         * lib/fcntl.c: Likewise.
10094         * lib/lseek.c: Likewise.
10095         * lib/nonblocking.c: Likewise.
10096         * lib/poll.c: Likewise.
10097         * lib/read.c: Likewise.
10098         * lib/select.c: Likewise.
10099         * lib/sockets.h: Likewise.
10100         * lib/sockets.c: Likewise.
10101         * lib/stdio-read.c: Likewise.
10102         * lib/stdio-write.c: Likewise.
10103         * lib/write.c: Likewise.
10104         * lib/w32sock.h: Likewise.
10105         * lib/w32spawn.h: Likewise.
10106         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
10107         * lib/fsync.c: Likewise.
10108         * lib/isapipe.c: Likewise.
10109         * modules/dup2 (Depends-on): Add msvc-nothrow.
10110         * modules/accept4 (Depends-on): Likewise.
10111         * modules/error (Depends-on): Likewise.
10112         * modules/fcntl (Depends-on): Likewise.
10113         * modules/lseek (Depends-on): Likewise.
10114         * modules/nonblocking (Depends-on): Likewise.
10115         * modules/poll (Depends-on): Likewise.
10116         * modules/read (Depends-on): Likewise.
10117         * modules/select (Depends-on): Likewise.
10118         * modules/sockets (Depends-on): Likewise.
10119         * modules/sigpipe (Depends-on): Likewise.
10120         * modules/write (Depends-on): Likewise.
10121         * modules/accept (Depends-on): Likewise.
10122         * modules/bind (Depends-on): Likewise.
10123         * modules/connect (Depends-on): Likewise.
10124         * modules/gethostname (Depends-on): Likewise.
10125         * modules/getpeername (Depends-on): Likewise.
10126         * modules/getsockname (Depends-on): Likewise.
10127         * modules/getsockopt (Depends-on): Likewise.
10128         * modules/ioctl (Depends-on): Likewise.
10129         * modules/listen (Depends-on): Likewise.
10130         * modules/recv (Depends-on): Likewise.
10131         * modules/recvfrom (Depends-on): Likewise.
10132         * modules/send (Depends-on): Likewise.
10133         * modules/sendto (Depends-on): Likewise.
10134         * modules/setsockopt (Depends-on): Likewise.
10135         * modules/shutdown (Depends-on): Likewise.
10136         * modules/socket (Depends-on): Likewise.
10137         * modules/execute (Depends-on): Likewise.
10138         * modules/spawn-pipe (Depends-on): Likewise.
10139         * modules/flock (Depends-on): Likewise.
10140         * modules/fsync (Depends-on): Likewise.
10141         * modules/isapipe (Depends-on): Likewise.
10142         * tests/test-cloexec.c: Include msvc-nothrow.h.
10143         * tests/test-dup-safer.c: Likewise.
10144         * tests/test-dup2.c: Likewise.
10145         * tests/test-dup3.c: Likewise.
10146         * tests/test-fcntl.c: Likewise.
10147         * tests/test-pipe.c: Likewise.
10148         * tests/test-pipe2.c: Likewise.
10149         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10150         * modules/unistd-safer-tests (Depends-on): Likewise.
10151         * modules/dup2-tests (Depends-on): Likewise.
10152         * modules/dup3-tests (Depends-on): Likewise.
10153         * modules/fcntl-tests (Depends-on): Likewise.
10154         * modules/pipe-posix-tests (Depends-on): Likewise.
10155         * modules/pipe2-tests (Depends-on): Likewise.
10156
10157 2011-09-23  Bruno Haible  <bruno@clisp.org>
10158
10159         dup2: Make code more maintainable.
10160         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10161         (rpl_dup2): Use it.
10162         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10163         * modules/dup2 (configure.ac): Invoke it.
10164         Reported by Paul Eggert.
10165
10166 2011-09-23  Bruno Haible  <bruno@clisp.org>
10167
10168         msvc-inval: Fix compilation error.
10169         * lib/msvc-inval.h: Include <excpt.h>.
10170
10171 2011-09-23  Bruno Haible  <bruno@clisp.org>
10172
10173         mkdir: Tweak for MSVC 9.
10174         * lib/sys_stat.in.h: Update comments.
10175         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10176
10177         Tests for module 'chdir'.
10178         * modules/chdir-tests: New file.
10179         * tests/test-chdir.c: New file.
10180
10181         New module 'chdir'.
10182         * modules/chdir: New file.
10183         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10184         (chdir): New declaration.
10185         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10186         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10187         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10188         * tests/test-unistd-c++.cc: Check signature of chdir.
10189         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10190         * modules/chdir-long (Depends-on): Add chdir.
10191         * modules/fchdir (Depends-on): Likewise.
10192         * modules/rename (Depends-on): Likewise.
10193         * modules/savewd (Depends-on): Likewise.
10194
10195         rmdir: Support for mingw, MSVC 9.
10196         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10197         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10198
10199         getcwd: Tweak for MSVC 9.
10200         * lib/unistd.in.h: Update comments.
10201         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10202
10203 2011-09-22  Bruno Haible  <bruno@clisp.org>
10204
10205         strerror_r-posix: Avoid a link error on MSVC.
10206         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10207         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10208
10209 2011-09-22  Bruno Haible  <bruno@clisp.org>
10210
10211         select: Avoid link errors on MSVC.
10212         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10213         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10214         * modules/pselect (Link): Likewise.
10215         * NEWS: Mention the change.
10216         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10217         test-select-stdin against $(LIB_SELECT).
10218         * modules/pselect-tests (Makefile.am): Link test-pselect against
10219         $(LIB_SELECT).
10220
10221 2011-09-22  Bruno Haible  <bruno@clisp.org>
10222
10223         select: Avoid compilation error on MSVC.
10224         * lib/select.c: Don't include <stdbool.h>.
10225
10226 2011-09-21  Bruno Haible  <bruno@clisp.org>
10227
10228         Consolidate all uses of PATH_MAX in *.m4 files.
10229         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10230         macros.
10231         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10232         and gl_PATHMAX_SNIPPET.
10233         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10234         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10235         * modules/chdir-long (Files): Add m4/pathmax.m4.
10236         * modules/getcwd (Files): Likewise.
10237
10238 2011-09-21  Bruno Haible  <bruno@clisp.org>
10239
10240         ftruncate: Un-deprecate, concentrate on Win32 support.
10241         * modules/ftruncate (Status, Notice): Remove sections.
10242         (Depends-on): Add largefile.
10243         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10244         non-mingw platforms.
10245         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10246         include <io.h>.
10247         * modules/perror-tests (Depends-on): Add ftruncate.
10248         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10249         'ftruncate' module.
10250
10251 2011-09-21  Bruno Haible  <bruno@clisp.org>
10252
10253         Add dependencies to new dirent related modules.
10254         * modules/opendir (Depends-on): Add closedir.
10255         * modules/getcwd (Depends-on): Add opendir, closedir.
10256         * modules/dirent-safer-tests (Depends-on): Likewise.
10257         * modules/fdopendir-tests (Depends-on): Likewise.
10258         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10259         * modules/renameat-tests (Depends-on): Likewise.
10260
10261 2011-09-21  Bruno Haible  <bruno@clisp.org>
10262
10263         opendir: Avoid compilation error on mingw.
10264         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10265         * modules/opendir (Depends-on): Add unistd.
10266
10267 2011-09-21  Bruno Haible  <bruno@clisp.org>
10268
10269         ftruncate tests: Avoid a test failure on mingw.
10270         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10271
10272 2011-09-21  Bruno Haible  <bruno@clisp.org>
10273
10274         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10275         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10276         native Windows.
10277
10278 2011-09-21  Bruno Haible  <bruno@clisp.org>
10279
10280         New module 'fdopen'.
10281         * lib/stdio.in.h (fdopen): New declaration.
10282         * lib/fdopen.c: New file.
10283         * m4/fdopen.m4: New file.
10284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10285         REPLACE_FDOPEN.
10286         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10287         REPLACE_FDOPEN.
10288         * modules/fdopen: New file.
10289         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10290         * tests/test-stdio-c++.cc: Check signature of fdopen.
10291         * doc/posix-functions/fdopen.texi: Mention the new module.
10292
10293 2011-09-21  Bruno Haible  <bruno@clisp.org>
10294
10295         unlockpt tests: Avoid test failure on NetBSD 5.1.
10296         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10297         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10298
10299 2011-09-21  Bruno Haible  <bruno@clisp.org>
10300
10301         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10302         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10303         * tests/test-getlogin_r.c (main): Likewise.
10304
10305 2011-09-20  Bruno Haible  <bruno@clisp.org>
10306
10307         time tests: Don't require pid_t.
10308         * doc/posix-headers/time.texi: Revert last change.
10309         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10310         * tests/test-time.c: Comment out the check for pid_t.
10311
10312 2011-09-20  Bruno Haible  <bruno@clisp.org>
10313
10314         fsync tests: Avoid a test failure on mingw.
10315         * tests/test-fsync.c (main): Allow a failure with EIO.
10316
10317 2011-09-20  Bruno Haible  <bruno@clisp.org>
10318
10319         euidaccess: Update comments.
10320         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10321
10322 2011-09-20  Bruno Haible  <bruno@clisp.org>
10323
10324         Ensure EBADF returns for socket functions on mingw.
10325         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10326         descriptor is invalid.
10327         * lib/bind.c (rpl_bind): Likewise.
10328         * lib/connect.c (rpl_connect): Likewise.
10329         * lib/getpeername.c (rpl_getpeername): Likewise.
10330         * lib/getsockname.c (rpl_getsockname): Likewise.
10331         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10332         * lib/listen.c (rpl_listen): Likewise.
10333         * lib/recv.c (rpl_recv): Likewise.
10334         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10335         * lib/send.c (rpl_send): Likewise.
10336         * lib/sendto.c (rpl_sendto): Likewise.
10337         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10338         * lib/shutdown.c (rpl_shutdown): Likewise.
10339
10340 2011-09-20  Bruno Haible  <bruno@clisp.org>
10341
10342         select tests: EBADF tests.
10343         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10344         test_bad_fd): New functions.
10345         (test_function): Invoke also test_bad_fd.
10346
10347 2011-09-20  Bruno Haible  <bruno@clisp.org>
10348
10349         Tests for module 'posix_spawn_file_actions_addopen.
10350         * modules/posix_spawn_file_actions_addopen-tests: New file.
10351         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10352
10353         Tests for module 'posix_spawn_file_actions_adddup2'.
10354         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10355         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10356
10357         Tests for module 'posix_spawn_file_actions_addclose'.
10358         * modules/posix_spawn_file_actions_addclose-tests: New file.
10359         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10360
10361 2011-09-20  Bruno Haible  <bruno@clisp.org>
10362
10363         Tests for module 'unlockpt'.
10364         * modules/unlockpt-tests: New file.
10365         * tests/test-unlockpt.c: New file.
10366         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10367
10368         Tests for module 'grantpt'.
10369         * modules/grantpt-tests: New file.
10370         * tests/test-grantpt.c: New file.
10371         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10372
10373 2011-09-20  Bruno Haible  <bruno@clisp.org>
10374
10375         freopen tests: EBADF tests.
10376         * tests/test-freopen.c: Include errno.h, unistd.h.
10377         (main): Add tests for EBADF, commented out for the moment.
10378
10379         fclose tests: EBADF tests.
10380         * tests/test-fclose.c (main): Add tests for EBADF.
10381
10382         fflush tests: EBADF tests.
10383         * tests/test-fflush.c: Include errno.h, macros.h.
10384         (main): Add tests for EBADF.
10385
10386         ftello tests: EBADF tests.
10387         * tests/test-ftello4.sh: New file.
10388         * tests/test-ftello4.c: New file.
10389         * modules/ftello-tests (Files): Add them.
10390         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10391
10392         fseeko tests: EBADF tests.
10393         * tests/test-fseeko4.sh: New file.
10394         * tests/test-fseeko4.c: New file.
10395         * modules/fseeko-tests (Files): Add them.
10396         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10397
10398         Tests for function fputc().
10399         * modules/fputc-tests: New file.
10400         * tests/test-fputc.c: New file.
10401         * modules/stdio-tests (Depends-on): Add fputc-tests.
10402
10403         Tests for function fgetc().
10404         * modules/fgetc-tests: New file.
10405         * tests/test-fgetc.c: New file.
10406         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10407
10408         Tests for function fdopen().
10409         * modules/fdopen-tests: New file.
10410         * tests/test-fdopen.c: New file.
10411         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10412
10413         Tests for module 'vdprintf'.
10414         * modules/vdprintf-tests: New file.
10415         * tests/test-vdprintf.c: New file.
10416
10417         Tests for module 'dprintf'.
10418         * modules/dprintf-tests: New file.
10419         * tests/test-dprintf.c: New file.
10420
10421 2011-09-20  Bruno Haible  <bruno@clisp.org>
10422
10423         Tests for module 'ioctl'.
10424         * modules/ioctl-tests: New file.
10425         * tests/test-ioctl.c: New file.
10426
10427 2011-09-20  Bruno Haible  <bruno@clisp.org>
10428
10429         fcntl tests: EBADF tests.
10430         * tests/test-fcntl.c (main): Add more tests for EBADF.
10431
10432 2011-09-20  Bruno Haible  <bruno@clisp.org>
10433
10434         utimensat tests: EBADF tests.
10435         * tests/test-utimensat.c (main): Add tests for EBADF.
10436
10437         renameat tests: EBADF tests.
10438         * tests/test-renameat.c (main): Add tests for EBADF.
10439
10440         mkfifoat tests: EBADF tests.
10441         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10442
10443         readlinkat tests: EBADF tests.
10444         * tests/test-readlinkat.c (main): Add tests for EBADF.
10445
10446         symlinkat tests: EBADF tests.
10447         * tests/test-symlinkat.c (main): Add tests for EBADF.
10448
10449         linkat tests: EBADF tests.
10450         * tests/test-linkat.c (main): Add tests for EBADF.
10451
10452         Tests for module 'faccessat'.
10453         * modules/faccessat-tests: New file.
10454         * tests/test-faccessat.c: New file.
10455
10456         fdopendir tests: EBADF tests.
10457         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10458
10459         openat tests: EBADF tests.
10460         * tests/test-fchownat.c (main): Add tests for EBADF.
10461         * tests/test-fstatat.c (main): Likewise.
10462         * tests/test-mkdirat.c (main): Likewise.
10463         * tests/test-openat.c (main): Likewise.
10464         * tests/test-unlinkat.c (main): Likewise.
10465         * tests/test-fchmodat.c: New file.
10466         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10467         (Makefile.am): Also run 'test-fchmodat'.
10468
10469 2011-09-20  Bruno Haible  <bruno@clisp.org>
10470
10471         utimens, futimens, fdutimensat tests: EBADF tests.
10472         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10473
10474         Tests for function fstat().
10475         * modules/fstat-tests: New file.
10476         * tests/test-fstat.c: New file.
10477         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10478
10479 2011-09-20  Bruno Haible  <bruno@clisp.org>
10480
10481         test-ttyname_r tests: EBADF tests.
10482         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10483
10484         Tests for module 'isatty'.
10485         * modules/isatty-tests: New file.
10486         * tests/test-isatty.c: New file.
10487
10488         Tests for module 'write'.
10489         * modules/write-tests: New file.
10490         * tests/test-write.c: New file.
10491
10492         Tests for module 'read'.
10493         * modules/read-tests: New file.
10494         * tests/test-read.c: New file.
10495
10496         pwrite tests: EBADF tests.
10497         * tests/test-pwrite.c (main): Add tests for EBADF.
10498
10499         pread tests: EBADF tests.
10500         * tests/test-pread.c (main): Add tests for EBADF.
10501
10502         lseek tests: EBADF tests.
10503         * tests/test-lseek.c (main): Add more tests for EBADF.
10504
10505         Tests for module 'ftruncate'.
10506         * modules/ftruncate-tests: New file.
10507         * tests/test-ftruncate.sh: New file.
10508         * tests/test-ftruncate.c: New file.
10509
10510         fsync tests: EBADF tests.
10511         * tests/test-fsync.c (main): Add more tests for EBADF.
10512
10513         fdatasync tests: EBADF tests.
10514         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10515
10516         Tests for module 'fchown'.
10517         * modules/fchown-tests: New file.
10518         * tests/test-fchown.c: New file.
10519
10520         Tests for module 'fchmod'.
10521         * modules/fchmod-tests: New file.
10522         * tests/test-fchmod.c: New file.
10523
10524         fchdir tests: EBADF tests.
10525         * tests/test-fchdir.c (main): Add more tests for EBADF.
10526
10527         dup2 tests: EBADF tests.
10528         * tests/test-dup2.c (main): Add more tests for EBADF.
10529
10530         Tests for module 'dup'.
10531         * modules/dup-tests: New file.
10532         * tests/test-dup.c: New file.
10533
10534         Tests for module 'close'.
10535         * modules/close-tests: New file.
10536         * tests/test-close.c: New file.
10537
10538 2011-09-20  Bruno Haible  <bruno@clisp.org>
10539
10540         Tests for module 'shutdown'.
10541         * modules/shutdown-tests: New file.
10542         * tests/test-shutdown.c: New file.
10543
10544         Tests for module 'setsockopt'.
10545         * modules/setsockopt-tests: New file.
10546         * tests/test-setsockopt.c: New file.
10547
10548         Tests for module 'sendto'.
10549         * modules/sendto-tests: New file.
10550         * tests/test-sendto.c: New file.
10551
10552         Tests for module 'send'.
10553         * modules/send-tests: New file.
10554         * tests/test-send.c: New file.
10555
10556         Tests for module 'recvfrom'.
10557         * modules/recvfrom-tests: New file.
10558         * tests/test-recvfrom.c: New file.
10559
10560         Tests for module 'recv'.
10561         * modules/recv-tests: New file.
10562         * tests/test-recv.c: New file.
10563
10564         Tests for module 'listen'.
10565         * modules/listen-tests: New file.
10566         * tests/test-listen.c: New file.
10567
10568         Tests for module 'getsockopt'.
10569         * modules/getsockopt-tests: New file.
10570         * tests/test-getsockopt.c: New file.
10571
10572         Tests for module 'getsockname'.
10573         * modules/getsockname-tests: New file.
10574         * tests/test-getsockname.c: New file.
10575
10576         Tests for module 'getpeername'.
10577         * modules/getpeername-tests: New file.
10578         * tests/test-getpeername.c: New file.
10579
10580         Tests for module 'connect'.
10581         * modules/connect-tests: New file.
10582         * tests/test-connect.c: New file.
10583
10584         Tests for module 'bind'.
10585         * modules/bind-tests: New file.
10586         * tests/test-bind.c: New file.
10587
10588         accept4 tests: Fix for native Windows.
10589         * tests/test-accept4.c: Include sockets.h.
10590         (main): Invoke gl_sockets_startup.
10591         * modules/accept4-tests (Depends-on): Add sockets.
10592
10593         accept tests: Fix for native Windows.
10594         * tests/test-accept.c: Include sockets.h.
10595         (main): Invoke gl_sockets_startup.
10596         * modules/accept-tests (Depends-on): Add sockets.
10597
10598 2011-09-19  Bruno Haible  <bruno@clisp.org>
10599
10600         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10601         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10602         do...while(0).
10603         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10604         Suggested by Paul Eggert.
10605
10606 2011-09-19  Bruno Haible  <bruno@clisp.org>
10607
10608         sched: Ensure pid_t is defined.
10609         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10610         not define pid_t.
10611         * lib/sched.in.h: Include <sys/types.h>.
10612         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10614
10615 2011-09-19  Bruno Haible  <bruno@clisp.org>
10616
10617         msvc-inval: Ensure the entire expansion is a single statement.
10618         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10619         of braces.
10620
10621 2011-09-19  Jim Meyering  <meyering@redhat.com>
10622
10623         tests: use printf, not echo in init.sh's warn_ function
10624         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10625         misbehave when given strings containing a backslash or starting
10626         with e.g., -n.  James Youngman suggested setting IFS.
10627
10628 2011-09-19  Eric Blake  <eblake@redhat.com>
10629
10630         futimens: enhance test
10631         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10632         closed non-negative fd.
10633
10634         date: accept 'hence' as opposite of 'ago'
10635         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10636         * tests/test-parse-datetime.c (main): Enhance test.
10637         Suggested by Jesse Wilson.
10638
10639 2011-09-19  Jim Meyering  <meyering@redhat.com>
10640
10641         getcwd: don't fail in a deep directory on a system without openat
10642         Before this change, getcwd would fail when called from a directory
10643         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10644         the non-openat implementation used "..", "../..", "../../..", etc.
10645         to access ancestor directories.  With too many, that string would
10646         be longer than PATH_MAX.
10647         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10648         using gnulib's openat replacement.
10649         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10650         we're using the replacement function.
10651
10652 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10653
10654         maint.mk: avoid warnings from perl about missing files
10655         * top/maint.mk (def_sym_regex): Ignore files listed in
10656         $(gl_other_headers_) that do not exist, say because a project
10657         does not use a corresponding module.
10658
10659 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10660
10661         stat: use pathmax.h only if needed
10662         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10663         This is better for Emacs, which does not have a mingw port and
10664         therefore can avoid the pathmax module.
10665
10666         utimens: remove dependency on dup2
10667         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10668         to work around the Linux kernel bug.
10669         * modules/utimens (Depends-on): Remove dup2.
10670
10671 2011-09-18  Bruno Haible  <bruno@clisp.org>
10672
10673         inet_ntop, inet_pton: Look for it also in libresolv.
10674         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10675         libnsl, search for it in libresolv.
10676         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10677         Needed on Solaris 7.
10678
10679 2011-09-18  Bruno Haible  <bruno@clisp.org>
10680
10681         accept, accept4 tests: Avoid link error on Solaris.
10682         * modules/accept-tests (Makefile.am): Link test-accept against
10683         $(LIBSOCKET).
10684         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10685         $(LIBSOCKET).
10686
10687         accept4: Avoid link error on Solaris.
10688         * modules/accept4 (Link): New section.
10689
10690         socket functions: Avoid link errors on Solaris.
10691         * modules/accept (Depends-on): Add socketlib.
10692         (Link): New section.
10693         * modules/bind (Depends-on): Add socketlib.
10694         (Link): New section.
10695         * modules/connect (Depends-on): Add socketlib.
10696         (Link): New section.
10697         * modules/getpeername (Depends-on): Add socketlib.
10698         (Link): New section.
10699         * modules/getsockname (Depends-on): Add socketlib.
10700         (Link): New section.
10701         * modules/getsockopt (Depends-on): Add socketlib.
10702         (Link): New section.
10703         * modules/listen (Depends-on): Add socketlib.
10704         (Link): New section.
10705         * modules/recv (Depends-on): Add socketlib.
10706         (Link): New section.
10707         * modules/recvfrom (Depends-on): Add socketlib.
10708         (Link): New section.
10709         * modules/send (Depends-on): Add socketlib.
10710         (Link): New section.
10711         * modules/sendto (Depends-on): Add socketlib.
10712         (Link): New section.
10713         * modules/setsockopt (Depends-on): Add socketlib.
10714         (Link): New section.
10715         * modules/shutdown (Depends-on): Add socketlib.
10716         (Link): New section.
10717         * modules/socket (Depends-on): Add socketlib.
10718         (Link): New section.
10719
10720 2011-09-18  Bruno Haible  <bruno@clisp.org>
10721
10722         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10723         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10724         than 5 seconds.
10725         * modules/ptsname-tests (configure.ac): Test for alarm.
10726
10727 2011-09-18  Bruno Haible  <bruno@clisp.org>
10728
10729         posix_spawn_file_actions_add*: Fix module dependencies.
10730         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10731         posix_spawn_file_actions_init.
10732         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10733         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10734
10735 2011-09-18  Bruno Haible  <bruno@clisp.org>
10736
10737         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10738         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10739         * tests/test-renameat.c (main): Likewise.
10740
10741 2011-09-18  Bruno Haible  <bruno@clisp.org>
10742
10743         Tests for module 'accept4'.
10744         * modules/accept4-tests: New file.
10745         * tests/test-accept4.c: New file.
10746
10747 2011-09-18  Bruno Haible  <bruno@clisp.org>
10748
10749         Tests for module 'accept'.
10750         * modules/accept-tests: New file.
10751         * tests/test-accept.c: New file.
10752
10753 2011-09-18  Bruno Haible  <bruno@clisp.org>
10754
10755         dup2: Support for MSVC.
10756         * lib/dup2.c: Include msvc-inval.h.
10757         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10758         _get_osfhandle calls.
10759         * modules/dup2 (Depends-on): Add msvc-inval.
10760         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10761
10762         New module 'msvc-inval'.
10763         * lib/msvc-inval.h: New file.
10764         * lib/msvc-inval.c: New file.
10765         * m4/msvc-inval.m4: New file.
10766         * modules/msvc-inval: New file.
10767
10768 2011-09-17  Bruno Haible  <bruno@clisp.org>
10769
10770         Tests for module 'pclose'.
10771         * modules/pclose-tests: New file.
10772
10773         New module 'pclose'.
10774         * lib/stdio.in.h (pclose): New declaration.
10775         * lib/pclose.c: New file.
10776         * m4/pclose.m4: New file.
10777         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10778         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10779         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10780         * modules/pclose: New file.
10781         * modules/popen-tests (Depends-on): Add pclose.
10782         * modules/popen-safer-tests (Depends-on): Likewise.
10783         * doc/posix-functions/pclose.texi: Mention the new module.
10784
10785 2011-09-17  Bruno Haible  <bruno@clisp.org>
10786
10787         popen: Support for MSVC.
10788         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10789         * lib/popen.c (popen): Provide alternate definition for native Windows.
10790         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10792         * modules/popen (Depends-on, configure.ac): Update condition.
10793         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10794         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10795         fixed.
10796
10797 2011-09-17  Bruno Haible  <bruno@clisp.org>
10798
10799         isnanl, isnand, isnanf: Work around MSVC bug.
10800         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10801
10802 2011-09-17  Bruno Haible  <bruno@clisp.org>
10803
10804         sys_socket tests: Fix recent mistake.
10805         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10806
10807 2011-09-17  Bruno Haible  <bruno@clisp.org>
10808
10809         putenv: Support for MSVC.
10810         * modules/putenv (Depends-on): Add environ.
10811         * lib/putenv.c (environ): Disable declaration.
10812         * lib/unistd.in.h: Update comment.
10813
10814 2011-09-17  Bruno Haible  <bruno@clisp.org>
10815
10816         math: Avoid macro redefinition warnings on MSVC.
10817         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10818         Undefine before redefining.
10819
10820 2011-09-17  Bruno Haible  <bruno@clisp.org>
10821
10822         doc: Mention functions which are declared as macros.
10823         * doc/posix-functions/*[fl].texi: Mention that some functions are
10824         defined as macros with arguments only.
10825
10826 2011-09-17  Bruno Haible  <bruno@clisp.org>
10827
10828         Add dependencies to new dirent related modules.
10829         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10830         * modules/fts (Depends-on): Likewise.
10831         * modules/glob (Depends-on): Likewise.
10832         * modules/savedir (Depends-on): Likewise.
10833         * modules/scandir (Depends-on): Likewise.
10834         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10835         * modules/fdopendir (Depends-on): Add opendir.
10836
10837 2011-09-17  Bruno Haible  <bruno@clisp.org>
10838
10839         inet_pton: Support for MSVC on Windows Vista or newer.
10840         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10841         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10842         HAVE_DECL_INET_PTON is defined.
10843         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10844         On platforms with <winsock2.h>, test whether inet_pton 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_PTON.
10848         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10849         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10850         (Depends-on, configure.ac): Update condition.
10851         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10852
10853 2011-09-17  Bruno Haible  <bruno@clisp.org>
10854
10855         inet_ntop: Support for MSVC on Windows Vista or newer.
10856         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10857         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10858         HAVE_DECL_INET_NTOP is defined.
10859         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10860         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10861         <ws2tcpip.h>. If so, arrange to replace it.
10862         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10863         REPLACE_INET_NTOP.
10864         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10865         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10866         (Depends-on, configure.ac): Update condition.
10867         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10868
10869 2011-09-16  Eric Blake  <eblake@redhat.com>
10870
10871         test-fsync: yet another enhancement
10872         * tests/test-fsync.c (main): Also test behavior on read-only text
10873         file.
10874
10875 2011-09-16  Bruno Haible  <bruno@clisp.org>
10876
10877         Enhance fsync, fdatasync tests.
10878         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10879         * tests/test-fdatasync.c (main): Likewise.
10880
10881 2011-09-16  Bruno Haible  <bruno@clisp.org>
10882
10883         Support for MSVC compiler: Ensure mode_t gets defined.
10884         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10885         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10886         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10887         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10888         * tests/test-fcntl-h.c: Check that mode_t is defined.
10889         * tests/test-sys_stat.c: Likewise.
10890         * tests/test-sys_types.c: Likewise.
10891         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10892         * doc/posix-headers/sys_stat.texi: Likewise.
10893         * doc/posix-headers/sys_types.texi: Likewise.
10894
10895 2011-09-16  Bruno Haible  <bruno@clisp.org>
10896
10897         sys_stat: Support for MSVC.
10898         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10899         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10900         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10901         MSVC.
10902
10903 2011-09-16  Bruno Haible  <bruno@clisp.org>
10904
10905         Support for MSVC compiler: Ensure off_t gets defined.
10906         * lib/unistd.in.h: Include <sys/types.h>.
10907         * tests/test-fcntl-h.c: Check that off_t is defined.
10908         * tests/test-sys_stat.c: Likewise.
10909         * tests/test-sys_types.c: Likewise.
10910
10911 2011-09-16  Eric Blake  <eblake@redhat.com>
10912
10913         fdatasync: port to Solaris
10914         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10915         * modules/fdatasync (Link): Document it.
10916         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10917
10918         fdatasync: port to MacOS X 10.7
10919         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10920         declared.
10921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10922         * modules/unistd (Makefile.am): Substitute it.
10923         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10924         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10925
10926         fdatasync: minor improvements
10927         * modules/fdatasync (Depends-on): Add condition for fsync.
10928         * lib/fdatasync.c (fdatasync): Add comment.
10929         * tests/test-unistd-c++.cc: Test fdatasync.
10930
10931         unistd: update refs to newer POSIX
10932         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10933         Suggested by Bruno Haible.
10934
10935         fdatasync: new module
10936         * modules/fsync (Description): Document difference to fdatasync.
10937         * modules/fdatasync: New module.
10938         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10939         * lib/fdatasync.c (fdatasync): Likewise.
10940         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10941         defaults.
10942         * modules/unistd (Makefile.am): Set witnesses.
10943         * lib/unistd.in.h (fdatasync): Declare.
10944         * MODULES.html.sh: Document it.
10945         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10946         * modules/fdatasync-tests: New test.
10947         * tests/test-fdatasync.c: Likewise.
10948
10949 2011-09-16  Eric Blake  <eblake@redhat.com>
10950
10951         test-fsync: enhance tests
10952         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10953         * tests/test-fsync.c (main): Enhance test.
10954
10955 2011-09-15  Bruno Haible  <bruno@clisp.org>
10956
10957         Support for MSVC compiler: Ensure ssize_t gets defined.
10958         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10959         * doc/posix-headers/stdio.texi: Likewise.
10960         * modules/stdio (Depends-on): Add ssize_t.
10961         * modules/sys_socket (Depends-on): Likewise.
10962         * modules/sys_types (Depends-on): Likewise.
10963         * modules/sys_uio (Depends-on): Likewise.
10964         * modules/unistd (Depends-on): Likewise.
10965         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10966         * tests/test-sys_types.c: Check that ssize_t is defined.
10967
10968 2011-09-14  Bruno Haible  <bruno@clisp.org>
10969
10970         Avoid using #, the m4 comment starter character, near brackets.
10971         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10972         delimiter character in sed expressions.
10973         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10974         Suggested by Eric Blake.
10975
10976         Properly quote AC_CHECK_DECLS' 4th argument.
10977         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10978         argument.
10979         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10980         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10981         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10982         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10983         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10984         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10985         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10986         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10987         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10988         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10989         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10990         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10991         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10992         * m4/isinf.m4 (gl_ISINF): Likewise.
10993         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10994         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10995         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10996         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10997         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10998         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10999         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11000         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11001         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
11002         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11003         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11004         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11005         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
11006         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11007         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11008         Reported by Eric Blake.
11009
11010         Properly quote AC_CHECK_DECL's 4th argument.
11011         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
11012         argument.
11013         * m4/argp.m4 (gl_ARGP): Likewise.
11014         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11015         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11016         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11017         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11018         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
11019         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
11020         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
11021         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11022         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11023         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11024         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11025         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11026         Reported by Eric Blake.
11027
11028 2011-09-14  Eric Blake  <eblake@redhat.com>
11029
11030         opendir: avoid compile warning
11031         * lib/opendir.c (includes): Always include errno.h.
11032         Reported by Tatsuro MATSUOKA.
11033
11034 2011-09-14  Jim Meyering  <meyering@redhat.com>
11035
11036         maint.mk: sc_tight_scope: propagate failure from sub-make
11037         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
11038         Reported by Martin von Gagern.
11039
11040 2011-09-13  Bruno Haible  <bruno@clisp.org>
11041
11042         tempname: Support for MSVC.
11043         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
11044         MSVC.
11045         * modules/tempname (Depends-on): Add fcntl-h.
11046
11047 2011-09-13  Bruno Haible  <bruno@clisp.org>
11048
11049         sys_time: Support for MSVC.
11050         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
11051         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
11052         include <winsock2.h>.
11053         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
11054         function declarations that collide with POSIX.
11055         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
11056         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11057
11058 2011-09-13  Bruno Haible  <bruno@clisp.org>
11059
11060         stat: Support for MSVC.
11061         * lib/stat.c: Include pathmax.h.
11062         * modules/stat (Depends-on): Add pathmax.
11063
11064         pathmax: Support for native Windows.
11065         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
11066
11067 2011-09-12  Bruno Haible  <bruno@clisp.org>
11068
11069         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
11070         * lib/dirent.in.h (struct dirent): New type.
11071         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11072         DT_WHT): New macros.
11073         (DIR): New type.
11074         (opendir, closedir): Declare only if the module 'opendir' is enabled.
11075         (readdir, rewinddir): New declarations.
11076         * lib/dirent-private.h: New file.
11077         * lib/opendir.c: New file.
11078         * lib/readdir.c: New file.
11079         * lib/rewinddir.c: New file.
11080         * lib/closedir.c: New file.
11081         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
11082         * m4/opendir.m4: New file.
11083         * m4/readdir.m4: New file.
11084         * m4/rewinddir.m4: New file.
11085         * m4/closedir.m4: New file.
11086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
11087         REPLACE_CLOSEDIR here.
11088         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
11089         readdir, rewinddir are declared.
11090         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
11091         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
11092         HAVE_REWINDDIR, HAVE_CLOSEDIR.
11093         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
11094         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
11095         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
11096         * modules/opendir: New file.
11097         * modules/readdir: New file.
11098         * modules/rewinddir: New file.
11099         * modules/closedir: New file.
11100         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
11101         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
11102         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
11103         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
11104         * NEWS: Mention the 'fchdir' change.
11105
11106 2011-09-11  Bruno Haible  <bruno@clisp.org>
11107
11108         asm-underscore.m4: Support for MSVC.
11109         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
11110         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
11111
11112 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
11113
11114         Doc about crypt functions.
11115         * doc/posix-functions/crypt.texi: Expand range of glibc versions
11116         needing for _GNU_SOURCE to get crypt.
11117         * doc/posix-functions/encrypt.texi: Likewise.
11118         * doc/posix-functions/setkey.texi: Likewise.
11119
11120 2011-09-11  Bruno Haible  <bruno@clisp.org>
11121
11122         doc: Update regarding MSVC 9.
11123         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
11124         tested".
11125         * doc/posix-functions/*.texi: Update with info about MSVC 9.
11126         * doc/posix-headers/*.texi: Likewise.
11127         * doc/pastposix-functions/*.texi: Likewise.
11128         * doc/glibc-functions/*.texi: Likewise.
11129         * doc/glibc-headers/*.texi: Likewise.
11130
11131 2011-09-11  Bruno Haible  <bruno@clisp.org>
11132
11133         unistd et al.: Don't assume <unistd.h> exists.
11134         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11135         does not exist.
11136         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11137         exist. But include <stdlib.h>.
11138         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11139         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11140         symlink() does not exist.
11141         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11142         include <io.h> instead.
11143         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11144         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11145         include <direct.h> instead.
11146         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11147         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11148         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11149         <io.h> instead.
11150         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11151         correctly if the system does not have hard links.
11152         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11153         <direct.h> instead.
11154         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11155         it when looking for function declarations.
11156         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11157         <direct.h> and <io.h> instead.
11158         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11159
11160 2011-09-11  Bruno Haible  <bruno@clisp.org>
11161
11162         strcase: Support for MSVC.
11163         * modules/strcase (Status, Notice): Remove obsoletion mark.
11164         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11165         * doc/posix-functions/strncasecmp.texi: Likewise.
11166
11167         strings: Don't assume <strings.h> exists.
11168         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11169         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11170         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11171         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11172
11173 2011-09-11  Bruno Haible  <bruno@clisp.org>
11174
11175         dirent: Don't assume <dirent.h> exists.
11176         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11177         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11178         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11179         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11180
11181 2011-09-11  Bruno Haible  <bruno@clisp.org>
11182
11183         Fix wint_t on MSVC.
11184         * lib/wchar.in.h (wint_t): On MSVC, override it.
11185         * lib/wctype.in.h (wint_t): Likewise.
11186         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11187         MSVC.
11188         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11189         * doc/posix-headers/wctype.texi: Likewise.
11190
11191 2011-09-11  Bruno Haible  <bruno@clisp.org>
11192
11193         sys_types: Fix typo.
11194         * lib/sys_types.in.h: Fix typo in comment.
11195         Reported by Paul Eggert.
11196
11197         Support for MSVC compiler: Ensure size_t gets defined.
11198         * modules/strings (Depends-on): Add 'sys_types'.
11199         * modules/sys_uio (Depends-on): Likewise.
11200         * lib/sys_uio.in.h: Update comment.
11201
11202         C++ tests for module 'sys_types'.
11203         * modules/sys_types-c++-tests: New file.
11204         * tests/test-sys_types-c++.cc: New file.
11205
11206         Tests for module 'sys_types'.
11207         * modules/sys_types-tests: New file.
11208         * tests/test-sys_types.c: New file.
11209
11210         New module 'sys_types'.
11211         * lib/sys_types.in.h: New file.
11212         * m4/sys_types_h.m4: New file.
11213         * modules/sys_types: New file.
11214         * doc/posix-headers/sys_types.texi: Mention the new module and the
11215         size_t problem on MSVC 9.
11216
11217 2011-09-11  Bruno Haible  <bruno@clisp.org>
11218
11219         Support for MSVC compiler: Avoid division by a literal 0.
11220         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11221         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11222         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11223         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11224         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11225         * tests/infinity.h: New file.
11226         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11227         on MSVC.
11228         * tests/test-ceilf1.c: Include infinity.h.
11229         (main): Use Infinityf.
11230         * tests/test-ceil1.c: Include infinity.h.
11231         (main): Use Infinityd.
11232         * tests/test-ceill.c: Include infinity.h.
11233         (main): Use Infinityl.
11234         * tests/test-dprintf-posix.c: Include infinity.h.
11235         (test_function): Use Infinityd.
11236         * tests/test-floorf1.c: Include infinity.h.
11237         (main): Use Infinityf.
11238         * tests/test-floor1.c: Include infinity.h.
11239         (main): Use Infinityd.
11240         * tests/test-floorl.c: Include infinity.h.
11241         (main): Use Infinityl.
11242         * tests/test-fprintf-posix.c: Include infinity.h.
11243         (test_function): Use Infinityd.
11244         * tests/test-frexp.c: Include infinity.h.
11245         (main): Use Infinityd.
11246         * tests/test-frexpl.c: Include infinity.h.
11247         (main): Use Infinityl.
11248         * tests/test-isfinite.c: Include infinity.h.
11249         (test_isfinitef): Use Infinityf.
11250         (test_isfinited): Use Infinityd.
11251         (test_isfinitel): Use Infinityl.
11252         * tests/test-isinf.c: Include infinity.h.
11253         (test_isinff): Use Infinityf.
11254         (test_isinfd): Use Infinityd.
11255         (test_isinfl): Use Infinityl.
11256         * tests/test-isnan.c: Include infinity.h.
11257         (test_float): Use Infinityf.
11258         (test_double): Use Infinityd.
11259         (test_long_double): Use Infinityl.
11260         * tests/test-isnanf.h: Include infinity.h.
11261         (main): Use Infinityf.
11262         * tests/test-isnand.h: Include infinity.h.
11263         (main): Use Infinityd.
11264         * tests/test-isnanl.h: Include infinity.h.
11265         (main): Use Infinityl.
11266         * tests/test-ldexpl.c: Include infinity.h.
11267         (main): Use Infinityl.
11268         * tests/test-printf-posix.h: Include infinity.h.
11269         (test_function): Use Infinityd.
11270         * tests/test-roundf1.c: Include infinity.h.
11271         (main): Use Infinityf.
11272         * tests/test-round1.c: Include infinity.h.
11273         (main): Use Infinityd.
11274         * tests/test-roundl.c: Include infinity.h.
11275         (main): Use Infinityl.
11276         * tests/test-signbit.c: Include infinity.h.
11277         (test_signbitf): Use Infinityf.
11278         (test_signbitd): Use Infinityd.
11279         (test_signbitl): Use Infinityl.
11280         * tests/test-snprintf-posix.h: Include infinity.h.
11281         (test_function): Use Infinityd, Infinityl.
11282         * tests/test-sprintf-posix.h: Include infinity.h.
11283         (test_function): Use Infinityd, Infinityl.
11284         * tests/test-truncf1.c: Include infinity.h.
11285         (main): Use Infinityf.
11286         * tests/test-trunc1.c: Include infinity.h.
11287         (main): Use Infinityd.
11288         * tests/test-truncl.c: Include infinity.h.
11289         (main): Use Infinityl.
11290         * tests/test-vasnprintf-posix.c: Include infinity.h.
11291         (test_function): Use Infinityd, Infinityl.
11292         * tests/test-vasprintf-posix.c: Include infinity.h.
11293         (test_function): Use Infinityd, Infinityl.
11294         * modules/ceilf-tests (Files): Add tests/infinity.h.
11295         * modules/ceil-tests (Files): Likewise.
11296         * modules/ceill-tests (Files): Likewise.
11297         * modules/dprintf-posix-tests (Files): Likewise.
11298         * modules/floorf-tests (Files): Likewise.
11299         * modules/floor-tests (Files): Likewise.
11300         * modules/floorl-tests (Files): Likewise.
11301         * modules/fprintf-posix-tests (Files): Likewise.
11302         * modules/frexp-tests (Files): Likewise.
11303         * modules/frexp-nolibm-tests (Files): Likewise.
11304         * modules/frexpl-tests (Files): Likewise.
11305         * modules/frexpl-nolibm-tests (Files): Likewise.
11306         * modules/isfinite-tests (Files): Likewise.
11307         * modules/isinf-tests (Files): Likewise.
11308         * modules/isnan-tests (Files): Likewise.
11309         * modules/isnanf-tests (Files): Likewise.
11310         * modules/isnanf-nolibm-tests (Files): Likewise.
11311         * modules/isnand-tests (Files): Likewise.
11312         * modules/isnand-nolibm-tests (Files): Likewise.
11313         * modules/isnanl-tests (Files): Likewise.
11314         * modules/isnanl-nolibm-tests (Files): Likewise.
11315         * modules/ldexpl-tests (Files): Likewise.
11316         * modules/printf-posix-tests (Files): Likewise.
11317         * modules/roundf-tests (Files): Likewise.
11318         * modules/round-tests (Files): Likewise.
11319         * modules/roundl-tests (Files): Likewise.
11320         * modules/signbit-tests (Files): Likewise.
11321         * modules/snprintf-posix-tests (Files): Likewise.
11322         * modules/sprintf-posix-tests (Files): Likewise.
11323         * modules/truncf-tests (Files): Likewise.
11324         * modules/trunc-tests (Files): Likewise.
11325         * modules/truncl-tests (Files): Likewise.
11326         * modules/vasnprintf-posix-tests (Files): Likewise.
11327         * modules/vasprintf-posix-tests (Files): Likewise.
11328         * modules/vdprintf-posix-tests (Files): Likewise.
11329         * modules/vfprintf-posix-tests (Files): Likewise.
11330         * modules/vprintf-posix-tests (Files): Likewise.
11331         * modules/vsnprintf-posix-tests (Files): Likewise.
11332         * modules/vsprintf-posix-tests (Files): Likewise.
11333         * modules/xprintf-posix-tests (Files): Likewise.
11334
11335 2011-09-11  Bruno Haible  <bruno@clisp.org>
11336
11337         Ensure pid_t gets defined.
11338         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11339         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11340         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11341         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11342         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11343         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11344         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11345         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11346         * tests/test-fcntl-h.c: Check that pid_t is defined.
11347         * tests/test-sched.c: Likewise.
11348         * tests/test-termios.c: Likewise.
11349         * tests/test-time.c: Likewise.
11350         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11351         * doc/posix-headers/signal.texi: Likewise.
11352         * doc/posix-headers/sys_types.texi: Likewise.
11353         * doc/posix-headers/time.texi: Likewise.
11354
11355 2011-09-11  Bruno Haible  <bruno@clisp.org>
11356
11357         acl: Fix compilation on Solaris 10 (older version).
11358         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11359         of ACE_EVERYONE.
11360         * lib/set-mode-acl.c (qset_acl): Likewise.
11361         Reported by Christian Jullien <eligis@orange.fr>.
11362
11363 2011-09-10  Bruno Haible  <bruno@clisp.org>
11364
11365         iconv, unsetenv: Add support for MSVC compiler.
11366         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11367         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11368
11369 2011-09-10  Bruno Haible  <bruno@clisp.org>
11370
11371         *printf: Add support for MSVC compiler.
11372         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11373         handles the exception caused by the %n directive. When cross-compiling,
11374         guess no on native Windows.
11375         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11376         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11377         emulate it through vsnprintf.
11378         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11379         * doc/posix-functions/dprintf.texi: Update documentation regarding
11380         MSVC 9.
11381         * doc/posix-functions/fprintf.texi: Likewise.
11382         * doc/posix-functions/printf.texi: Likewise.
11383         * doc/posix-functions/snprintf.texi: Likewise.
11384         * doc/posix-functions/sprintf.texi: Likewise.
11385         * doc/posix-functions/swprintf.texi: Likewise.
11386         * doc/posix-functions/vdprintf.texi: Likewise.
11387         * doc/posix-functions/vfprintf.texi: Likewise.
11388         * doc/posix-functions/vprintf.texi: Likewise.
11389         * doc/posix-functions/vsnprintf.texi: Likewise.
11390         * doc/posix-functions/vsprintf.texi: Likewise.
11391         * doc/glibc-functions/asprintf.texi: Likewise.
11392         * doc/glibc-functions/obstack_printf.texi: Likewise.
11393         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11394         * doc/glibc-functions/vasprintf.texi: Likewise.
11395
11396 2011-09-10  Bruno Haible  <bruno@clisp.org>
11397
11398         nocrash: Add support for native Windows.
11399         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11400
11401 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11402             Bruno Haible  <bruno@clisp.org>
11403
11404         absolute-header, include-next: Add support for MSVC compiler.
11405         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11406         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11407         directory separator in #line directives.
11408         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11409         recognize also backslash as directory separator in #line directives.
11410
11411 2011-09-08  Jim Meyering  <meyering@redhat.com>
11412
11413         maint.mk: mark the post-release commit log with "maint: " prefix
11414         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11415         one-line commit-log summary.
11416
11417 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11418             Bruno Haible  <bruno@clisp.org>
11419
11420         Doc about crypt functions.
11421         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11422         systems.
11423         * doc/posix-functions/encrypt.texi: Likewise.
11424         * doc/posix-functions/setkey.texi: Likewise.
11425
11426 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11427
11428         * lib/gc.h: Fix copyright header.
11429
11430 2011-09-07  Bruno Haible  <bruno@clisp.org>
11431
11432         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11433         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11434         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11435
11436 2011-09-07  Bruno Haible  <bruno@clisp.org>
11437
11438         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11439         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11440         * lib/freopen.c: Likewise.
11441         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11442         * lib/lstat.c: Likewise.
11443         * lib/stat.c: Likewise.
11444         * lib/open.c: Use different syntax for include of <fcntl.h>.
11445         * lib/openat.c: Include fcntl.h again, explicitly.
11446
11447 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11448
11449         parse-datetime: document the newly accepted format
11450         * doc/parse-datetime.texi (Combined date and time of day items):
11451         New section.
11452
11453 2011-09-06  Bruno Haible  <bruno@clisp.org>
11454
11455         acl: Fix a test failure on newer Solaris 10 with ZFS.
11456         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11457         ENOSYS as no ACL.
11458         Reported by Jim Meyering.
11459
11460 2011-09-06  Bruno Haible  <bruno@clisp.org>
11461
11462         acl: Update for AIX >= 5.3 with NFS.
11463         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11464         ENOSYS as no ACL.
11465
11466         acl: Fix a test failure on AIX >= 5.3 with NFS.
11467         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11468         as no ACL.
11469
11470 2011-09-06  Bruno Haible  <bruno@clisp.org>
11471
11472         acl: Fix a test failure on IRIX 6.5 with NFS.
11473         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11474         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11475         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11476         * lib/copy-acl.c (qcopy_acl): Likewise.
11477
11478 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11479
11480         openat: port to AIX 7.1 with large files
11481         AIX 7.1 does a "#define openat open64at" if large files are in use,
11482         so we can't simply #undef openat.  Use the orig_openat trick (similar
11483         to orig_open in lib/open.c) to work around the problem.  Problem
11484         reported by Kevin Brott for GNU tar, in the thread containing
11485         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11486         * lib/openat.c (__need_system_fcntl_h): Define first.
11487         Include <fcntl.h> and <sys/types.h> before undefining.
11488         (orig_openat) [HAVE_OPENAT]: New inline function.
11489         (openat) [HAVE_OPENAT]: Do not undef.
11490         (rpl_openat): Use orig_openat, not openat.
11491
11492 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11493             Bruno Haible  <bruno@clisp.org>
11494
11495         acl: Avoid errors on NonStop Kernel.
11496         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11497         ENOTSUP errors.
11498
11499 2011-09-05  Bruno Haible  <bruno@clisp.org>
11500
11501         acl: Clean up Solaris code.
11502         * lib/acl-internal.h: Remove no-op #if.
11503         * lib/file-has-acl.c: Likewise.
11504         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11505         * lib/copy-acl.c (qcopy_acl): Likewise.
11506
11507 2011-09-05  Bruno Haible  <bruno@clisp.org>
11508
11509         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11510         binaries built on the original Solaris 10.
11511         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11512         trivial.
11513
11514 2011-09-05  Bruno Haible  <bruno@clisp.org>
11515
11516         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11517         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11518         10.
11519         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11520         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11521         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11522         instead of acl_get, facl_get, acl_set, facl_set.
11523
11524 2011-09-05  Bruno Haible  <bruno@clisp.org>
11525
11526         copy-file: Try unit tests on more file systems.
11527         * tests/test-copy-file-1.sh: New file.
11528         * tests/test-copy-file-2.sh: New file.
11529         * modules/copy-file-tests (Files): Add them.
11530         (Makefile.am): Add them to TESTS.
11531
11532         acl: Try unit tests on more file systems.
11533         * tests/test-file-has-acl-1.sh: New file.
11534         * tests/test-file-has-acl-2.sh: New file.
11535         * tests/test-set-mode-acl-1.sh: New file.
11536         * tests/test-set-mode-acl-2.sh: New file.
11537         * tests/test-copy-acl-1.sh: New file.
11538         * tests/test-copy-acl-2.sh: New file.
11539         * modules/acl-tests (Files): Add them.
11540         (Makefile.am): Add them to TESTS.
11541
11542 2011-09-04  Bruno Haible  <bruno@clisp.org>
11543
11544         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11545         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11546         10.
11547         (OLD_ALLOW, OLD_DENY): New macros.
11548         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11549         ACE_ACCESS_ALLOWED_ACE_TYPE.
11550         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11551         ACE_ACCESS_DENIED_ACE_TYPE.
11552         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11553         (NEW_ACE_EXECUTE): Fix value.
11554         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11555         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11556         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11557         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11558         NEW_ACE_SYNCHRONIZE): New macros.
11559         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11560         instead of acl_fromtext, acl_set, facl_set.
11561         Fixes a coreutils/tests/cp/perm failure.
11562
11563 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11564
11565         openat: test for fstatat (..., 0) bug
11566         Further testing with tar suggests that fstatat (..., 0)
11567         does not work in general, on AIX 7.1; see
11568         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11569         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11570         replacement fstatat (which is what older AIX releases were using
11571         anyway).
11572         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11573         use is now changed to orig_fstatat.  This was probably the right
11574         thing to do anyway.
11575         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11576         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11577         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11578         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11579         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11580         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11581         if the bug is found.
11582
11583         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11584         This tests for another fstatat bug on AIX 7.1:
11585         fstatat (AT_FDCWD, ..., 0) does not work.  See
11586         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11587         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11588         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11589         (rpl_fstatat): Adjust so that it works around either (or both)
11590         bugs if present.
11591         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11592
11593 2011-09-03  Karl Berry  <karl@gnu.org>
11594
11595         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11596         in index entries.
11597
11598 2011-09-02  Bruno Haible  <bruno@clisp.org>
11599
11600         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11601         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11602         values of AR, ARFLAGS, RANLIB.
11603         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11604
11605 2011-09-02  Bruno Haible  <bruno@clisp.org>
11606
11607         Find 'ar' program that fits with --host argument.
11608         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11609
11610 2011-09-02  Bruno Haible  <bruno@clisp.org>
11611
11612         tests: init.sh: Support any non-GNU diff.
11613         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11614         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11615         Solaris 8.
11616
11617 2011-09-02  Bruno Haible  <bruno@clisp.org>
11618
11619         tests: init.sh: work also with any non-GNU diff that supports -u
11620         * tests/init.sh: Relax check for diff -u support.
11621         Rather than checking for GNU diff via --version, simply check
11622         for support for -u itself.  Useful at least on OpenBSD 4.9,
11623         AIX 7.1, IRIX 6.5, and Solaris 10.
11624
11625 2011-09-01  Bruno Haible  <bruno@clisp.org>
11626
11627         strtoimax, strtoumax: Document problem on HP-UX 11.
11628         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11629         * doc/posix-functions/strtoumax.texi: Likewise.
11630
11631 2011-09-01  Bruno Haible  <bruno@clisp.org>
11632
11633         strtoumax: Avoid link error on OSF/1 with DTK cc.
11634         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11635         defined as a function.
11636         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11637         strtoumax is defined, not whether it is declared.
11638
11639 2011-09-01  Bruno Haible  <bruno@clisp.org>
11640
11641         strtoimax: Avoid link error on OSF/1 with DTK cc.
11642         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11643         defined as a function.
11644         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11645         strtoimax is defined, not whether it is declared.
11646
11647 2011-09-01  Bruno Haible  <bruno@clisp.org>
11648
11649         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11650         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11651         as a function.
11652         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11653         whether it is declared.
11654
11655 2011-09-01  Bruno Haible  <bruno@clisp.org>
11656
11657         imaxabs: Avoid link error on OSF/1 with DTK cc.
11658         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11659         as a function.
11660         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11661         whether it is declared.
11662
11663 2011-09-01  Bruno Haible  <bruno@clisp.org>
11664
11665         Tests for module 'strtoumax'.
11666         * modules/strtoumax-tests: New file.
11667         * tests/test-strtoumax.c: New file.
11668
11669         Tests for module 'strtoimax'.
11670         * modules/strtoimax-tests: New file.
11671         * tests/test-strtoimax.c: New file.
11672
11673         Tests for module 'imaxdiv'.
11674         * modules/imaxdiv-tests: New file.
11675         * tests/test-imaxdiv.c: New file.
11676
11677         Tests for module 'imaxabs'.
11678         * modules/imaxabs-tests: New file.
11679         * tests/test-imaxabs.c: New file.
11680
11681 2011-09-01  Bruno Haible  <bruno@clisp.org>
11682
11683         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11684         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11685         pthread_create.
11686
11687 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11688
11689         openat: work around AIX 7.1 fstatat issue
11690         This should fix the problem that was not properly fixed
11691         in the previous change, dated 2011-08-30.
11692         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11693         __need_system_stat_h defined.
11694         (orig_fstatat) [HAVE_FSTATAT]: New function.
11695         (rpl_fstatat): Go back to the old way of doing things,
11696         except call orig_fstatat instead of fstatat.
11697         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11698         Remove unnecessary check whether fstatat fills in st_size etc.
11699
11700 2011-09-01  Bruno Haible  <bruno@clisp.org>
11701
11702         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11703         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11704         just include the system's header.
11705
11706 2011-08-31  Jim Meyering  <meyering@redhat.com>
11707
11708         tests: avoid spurious assertion failure in test-float.c on ppc64
11709         * tests/test-float.c (test_long_double): Comment out an assertion,
11710         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11711         with gcc-4.4.4.
11712
11713         maint: indent with spaces, not TABs
11714         I need to get in the habit of running gnulib's "make check".
11715         Both of these would have been caught.
11716         * m4/largefile.m4: Indent with spaces, not TABs.
11717         * lib/parse-datetime.y (iso_8601_time): Likewise.
11718         Spotted by Pádraig Brady.
11719
11720         test-parse-datetime.c: accommodate a relatively strict gcc warning
11721         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11722         to avoid a warning from gcc's -Werror=missing-declarations.
11723         Insert a few spaces-before-funcall-parenthesis.
11724
11725 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11726
11727         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11728         The parser now accepts ISO 8601 date-time strings with "T" as the
11729         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11730         with a space between the date and time strings.  Now it also parses
11731         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11732         variants like "2004-02-29T16:21:42.333-07:00"
11733         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11734         of day representation using the 'T' separator character.
11735         * doc/parse-datetime.texi (General date syntax): replace use of
11736         deprecated --iso-8601 option with --rfc-3339 in example of date
11737         command output formats that can be parsed.
11738         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11739         lib/parse-datetime.y.
11740         (gmt_offset): New function.
11741         (main): Add additional test cases to validate ISO8601 extended
11742         date and time of day parsing.
11743
11744 2011-08-31  Bruno Haible  <bruno@clisp.org>
11745
11746         freopen: Documentation.
11747         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11748         name.
11749         Reported by Claudio Bley <claudio.bley@gmail.com>.
11750
11751 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11752
11753         freopen: Don't crash if the filename argument is NULL.
11754         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11755         NULL.
11756
11757 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11758
11759         openat: work around AIX 7.1 fstatat bug
11760         Problem reported by Kevin Brott for GNU tar, in the thread containing
11761         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11762         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11763         FSTATAT_ST_SIZE_ETC_BROKEN.
11764         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11765         rpl_fstatat.
11766         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11767         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11768         AC_CHECK_FUNCS_ONCE for fstatat.
11769         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11770         fchmodat, mkdirat, openat and unlinkat.
11771
11772 2011-08-30  Bruno Haible  <bruno@clisp.org>
11773
11774         Avoid endless recursions if config.h includes some header files.
11775         * lib/fopen.c (__need_FILE): Define already before including config.h.
11776         * lib/freopen.c (__need_FILE): Likewise.
11777         * lib/open.c (__need_system_fcntl_h): Likewise.
11778         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11779         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11780         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11781
11782 2011-08-25  Karl Berry  <karl@gnu.org>
11783
11784         * config/srclist.txt (ylwrap): new try.
11785         * build-aux/ylwrap: new file.
11786
11787 2011-08-23  Bruno Haible  <bruno@clisp.org>
11788
11789         tmpdir: Use a good default directory on native Windows.
11790         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11791         (P_tmpdir): Default to _P_tmpdir on native Windows.
11792         (path_search): On native Windows, try the value returned by GetTempPath
11793         before trying P_tmpdir.
11794         * modules/tmpdir (Depends-on): Add pathmax.
11795         Suggested by John Darrington <john@darrington.wattle.id.au>.
11796
11797 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11798
11799         doc: fix typo in README-release
11800         * top/README-release: Capitalize first word of a sentence.
11801
11802 2011-08-19  Jim Meyering  <meyering@redhat.com>
11803
11804         fts: do not exhaust memory when processing million-entry directories
11805         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11806         directory would require about 256*N bytes of memory.  Thus, it was
11807         easy to construct a directory too large to be processed by any of
11808         those tools.  With this change, fts' maximum memory utilization is
11809         now limited to around 30MB.
11810         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11811         (fts_read): When we've processed the final entry (i.e., when
11812         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11813         using the parent entry to read any remaining entries.  Dispatch
11814         depending on what fts_build returns:
11815         - NULL+stop, aka failure: stop
11816         - NULL otherwise: move up in the dir hierarchy
11817         - non-NULL: handle this new entry
11818         (fts_build): Declare and use new local, continue_readdir.
11819         Prepare to be called from fts_read, when the entries
11820         from a partially-read directory have just been exhausted.
11821         In that case, we'll skip the opendir and instead use the parent's
11822         fts_dirp and derive dir_fd from that.
11823         Finally, in the readdir loop, if we read max_entries entries,
11824         exit the loop ensuring *not* to call closedir.  This is required
11825         so that fts_dirp can be reused on a subsequent call.
11826         Prompted by Ben England's report of memory exhaustion in find
11827         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11828
11829         maint: fts: move decl of `dp' down into while loop; split a long line
11830         * lib/fts.c (fts_build): No semantic change.
11831
11832         fts: add/use new struct member, fts_dirp
11833         We are about to use this to manage any directory with
11834         too many entries to read all of them into memory at once.
11835         To do that, we'll need to save the DIR* pointer in each
11836         affected FTSENT struct.
11837         * lib/fts_.h: Include <dirent.h>.
11838         (struct FTSENT) [fts_dirp]: New member.
11839         * lib/fts.c (closedir_and_clear): Define.
11840         Use it in place of closedir so that we are sure to
11841         clear the new fts_dirp member when done with it.
11842         (fts_alloc): Initialize the new member.
11843         (fts_lfree): Free, if needed.
11844
11845         maint: fts: give __opendir2 a new parameter and rename
11846         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11847         than surreptitiously using sole caller's "dir_fd".
11848         (fts_opendir): Rename from __opendir2.
11849
11850         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11851         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11852
11853         maint: fts.c: correct off-by-one indentation
11854         * lib/fts.c (fts_build): Correct indentation, change style
11855         of a couple of block comments, and bracing style.
11856
11857         maint: fts.c: move __opendir2 #define "up" out of function body
11858         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11859
11860         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11861         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11862         out for a long time and besides was useful only on BSD systems.
11863
11864 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11865
11866         regex: port to Stratus OpenVOS
11867         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11868         define to empty, rather than attempting nonportable optimizations.
11869         Problem reported by Paul Green in:
11870         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11871         and fix suggested by Eric Blake in:
11872         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11873
11874 2011-08-17  Eric Blake  <eblake@redhat.com>
11875
11876         getcwd: fix test failures on mingw
11877         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11878         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11879         test if long directory cannot be created, and allow mingw errno.
11880
11881         getcwd-lgpl: fix m4 to match relaxed test for BSD
11882         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11883         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11884         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11885         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11886         signature problem.
11887
11888         getcwd: fix compilation on mingw64
11889         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11890         getcwd.
11891         Reported by Marc-André Lureau.
11892
11893         pipe2: silence compiler warning
11894         * lib/pipe2.c (pipe2): Hide label if it is not used.
11895
11896 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11897
11898         relocatable-prog: fix link error
11899         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11900         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11901         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11902         into modules/relocatable-lib without noticing that
11903         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11904         also needs to build relocatable.c.
11905
11906 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11907
11908         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11910         shell code: it contained a 'break' that was not in a loop.
11911         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11912         via a shell-language loop; this may have been true in old Autoconf
11913         versions, but it's not true in Autoconf 2.68.  I found this bug
11914         when testing coreutils git on Solaris 8, whose shell complains
11915         about the syntax error.
11916
11917 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11918
11919         * lib/base64.c: Fix comment to reference RFC 4648.
11920         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11921         <gvtulder@gmail.com>.
11922
11923 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11924
11925         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11926
11927         po/Makefile.in.in: fix make -q problem
11928         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11929         rule, since there's no file named 'check-macro-version' and its
11930         use as a file breaks make -q.
11931         (all): Don't depend on check-macro-version.
11932         (CHECK_MACRO_VERSION): New macro.
11933         (stamp-po): Use it.
11934
11935         configmake: fix make -q problem
11936         * modules/configmake (configmake.h): Update configmake.h's time stamp
11937         even if the file does not change.  Otherwise, 'make -q' fails.
11938         Problem reported by Simon Josefsson in
11939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11940
11941 2011-08-11  Jim Meyering  <meyering@redhat.com>
11942
11943         git-version-gen: correct the advice in a comment
11944         * build-aux/git-version-gen: Correct comment.
11945         Don't recommend to list .tarball-version in .gitignore.
11946
11947 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11948
11949         base64: fix off-by-one buffer size bug
11950         Problem and (trivial) fix reported by Gijs van Tulder in
11951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11952         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11953         * tests/test-base64.c (main): Catch the bug.
11954
11955 2011-08-10  Eric Blake  <eblake@redhat.com>
11956
11957         closein: correct comments
11958         * lib/closein.c (close_stdin): Improve comments.
11959
11960 2011-08-09  Bruno Haible  <bruno@clisp.org>
11961
11962         More tests for 'fseeko'.
11963         * tests/test-fseeko3.c: New file, from Eric Blake.
11964         * tests/test-fseeko3.sh: New file.
11965         * modules/fseeko-tests (Files): Add them.
11966         (TESTS): Add test-fseeko3.sh.
11967         (check_PROGRAMS): Add test-fseeko3.
11968
11969 2011-08-09  Eric Blake  <eblake@redhat.com>
11970
11971         fseeko: remove unneeded hack
11972         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11973
11974         fseeko: fix bug on glibc
11975         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11976         Reported by John W. Eaton.
11977
11978 2011-08-08  Bruno Haible  <bruno@clisp.org>
11979
11980         unictype/base: Fix interoperability with preinstalled libunistring.
11981         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11982         Reported by Simon Josefsson.
11983
11984 2011-08-08  Bruno Haible  <bruno@clisp.org>
11985
11986         iswblank: Detect declaration correctly.
11987         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11988         AC_CHECK_DECLS invocation.
11989
11990 2011-08-08  Bruno Haible  <bruno@clisp.org>
11991
11992         tcgetsid: Detect declaration correctly.
11993         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11994         AC_CHECK_DECLS invocation.
11995         Reported by Simon Josefsson.
11996
11997 2011-08-08  Eric Blake  <eblake@redhat.com>
11998
11999         largefile: fix typo that regressed large file support
12000         * modules/largefile (configure.ac-early): Fix section name.
12001
12002 2011-08-06  Karl Berry  <karl@gnu.org>
12003
12004         * MODULES.html.sh (func_all_files): _Noreturn is no longer
12005         a separate module.
12006
12007 2011-08-05  Simon Josefsson  <simon@josefsson.org>
12008
12009         openat: Fix warnings and commens when building unlinkat.c on Hurd.
12010         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
12011         get prototype for free.
12012
12013 2011-08-04  Bruno Haible  <bruno@clisp.org>
12014
12015         Tests for module 'pathmax'.
12016         * modules/pathmax-tests: New file.
12017         * tests/test-pathmax.c: New file.
12018
12019         canonicalize-lgpl: Support larger filenames on the Hurd.
12020         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
12021         Reported by Paul Eggert.
12022
12023         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
12024         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
12025         * lib/chdir-long.h: Include pathmax.h.
12026         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
12027         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
12028         (PATH_MAX): Remove code that is done by pathmax.h.
12029         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
12030         * lib/tmpfile.c: Add a comment.
12031         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
12032         * modules/chdir-long (Depends-on): Add pathmax.
12033         * modules/getcwd (Depends-on): Add pathmax.
12034         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
12035         is not defined.
12036         * doc/posix-headers/limits.texi: Mention the pathmax module.
12037         * NEWS: Mention the change.
12038
12039 2011-08-02  Bruno Haible  <bruno@clisp.org>
12040
12041         pthread_sigmask: Actually use results of gl_THREADLIB.
12042         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
12043         gl_THREADLIB, not gl_[]THREADLIB.
12044         Reported by Eric Blake.
12045
12046 2011-08-02  Jim Meyering  <meyering@redhat.com>
12047
12048         maint.mk: relax the default _gl_TS_function_match regexp
12049         * top/maint.mk (_gl_TS_function_match): Don't require at least one
12050         space between function name and "(" in an "extern" declaration.
12051         That would fail to match a decl with no space there: extern void foo();
12052
12053 2011-07-31  Iain Nicol  <iain@thenicols.net>
12054
12055         git-version-gen: document that EXTRA_DIST must include .version
12056         * build-aux/git-version-gen: In the how-to-use comment, document
12057         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
12058         will fail when run from an unpacked distribution tarball.
12059
12060 2011-08-01  Bruno Haible  <bruno@clisp.org>
12061
12062         wctype-h: Fix last change.
12063         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
12064         REPLACE_TOWLOWER to 0.
12065         Reported by Sam Steingold <sds@gnu.org>.
12066
12067 2011-07-31  Bruno Haible  <bruno@clisp.org>
12068
12069         frexpl: Update autoconf test.
12070         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12071         according to changes of 2011-06-20.
12072
12073 2011-07-31  Bruno Haible  <bruno@clisp.org>
12074
12075         sys_utsname: Add support for Minix.
12076         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
12077         <sys/utsname.h>.
12078         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12079         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
12080
12081 2011-07-31  Bruno Haible  <bruno@clisp.org>
12082
12083         strings: Add support for Minix.
12084         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
12085         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12086         * doc/posix-headers/strings.texi: Document the Minix problem.
12087
12088 2011-07-31  Bruno Haible  <bruno@clisp.org>
12089
12090         wctype-h: Add support for Minix.
12091         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
12092         REPLACE_TOWLOWER.
12093         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
12094         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
12095         REPLACE_ISWCNTRL.
12096
12097 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
12098
12099         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
12100         This is a performance improvement for 64-bit hosts: it causes the
12101         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
12102
12103 2011-07-31  Bruno Haible  <bruno@clisp.org>
12104
12105         stdioext: Add support for Minix.
12106         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
12107         * lib/fpurge.c (fpurge): Likewise.
12108         * lib/freadahead.c (freadahead): Likewise.
12109         * lib/freadable.c (freadable): Likewise.
12110         * lib/freading.c (freading): Likewise.
12111         * lib/freadptr.c (freadptr): Likewise.
12112         * lib/freadseek.c (freadptrinc): Likewise.
12113         * lib/fseeko.c (rpl_fseeko): Likewise.
12114         * lib/fseterr.c (fseterr): Likewise.
12115         * lib/fwritable.c (fwritable): Likewise.
12116         * lib/fwriting.c (fwriting): Likewise.
12117         * lib/fflush.c (clear_ungetc_buffer): Update comment.
12118         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
12119
12120 2011-07-31  Bruno Haible  <bruno@clisp.org>
12121
12122         errno: Port to Minix.
12123         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
12124         ECONNABORTED are defined.
12125         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
12126         GNULIB_defined_ECONNABORTED): New macros.
12127         * lib/strerror-override.h (strerror_override): Test also
12128         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
12129         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
12130         ECONNABORTED.
12131         * doc/posix-headers/errno.texi: Mention the Minix problem.
12132
12133 2011-07-31  Bruno Haible  <bruno@clisp.org>
12134
12135         Work around declaration collisions on Minix.
12136         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12137         defined, set REPLACE_MBSINIT.
12138         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12139         defined, set REPLACE_MBRTOWC.
12140         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12141         set REPLACE_MBRLEN.
12142         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12143         defined, set REPLACE_MBSRTOWCS.
12144         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12145         defined, set REPLACE_WCRTOMB.
12146         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12147         defined, set REPLACE_WCSRTOMBS.
12148
12149 2011-07-31  Bruno Haible  <bruno@clisp.org>
12150
12151         Add support for Minix with ACK compiler.
12152         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12153         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12154         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12155
12156 2011-07-31  Bruno Haible  <bruno@clisp.org>
12157
12158         Documentation about Minix.
12159         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12160         * doc/glibc-headers/*.texi: Likewise.
12161         * doc/posix-functions/*.texi: Likewise.
12162         * doc/glibc-functions/*.texi: Likewise.
12163
12164 2011-07-31  Bruno Haible  <bruno@clisp.org>
12165
12166         snippet/warn-on-use: Fix indentation.
12167         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12168
12169 2011-07-25  Jim Meyering  <meyering@redhat.com>
12170
12171         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12172         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12173         commands.
12174
12175 2011-07-27  Jim Meyering  <meyering@redhat.com>
12176
12177         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12178         * top/maint.mk (gl_extract_significant_defines_): Now that
12179         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12180         gnulib/lib/signal.in.h, and now that we recommend to
12181         define-if-undefined those two symbols in application code,
12182         we must filter them out of the "significant" list.
12183         This avoids a "make syntax-check" failure in coreutils.
12184
12185 2011-07-26  Eric Blake  <eblake@redhat.com>
12186
12187         warnings: add comments about previous patch
12188         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12189         * m4/include_next.m4: Likewise.
12190         * m4/warn-on-use.m4: Likewise.
12191         * m4/warnings.m4: Likewise, and simplify use.
12192         Suggested by Stefano Lattarini.
12193
12194         include-next, warnings: support older autoconf
12195         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12196         AS_VAR_PUSHDEF in a way that works with older autoconf.
12197         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12198         Reported by Daniel P. Berrange.
12199
12200 2011-07-25  Bruno Haible  <bruno@clisp.org>
12201
12202         fseek, ftell: Fix doc.
12203         * doc/posix-functions/fseek.texi: Reword statement about
12204         AC_SYS_LARGEFILE.
12205         * doc/posix-functions/ftell.texi: Likewise.
12206
12207 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12208             Bruno Haible  <bruno@clisp.org>
12209
12210         Add dependencies to the 'largefile' module.
12211         * modules/fopen (Depends-on): Add 'largefile'.
12212         * modules/freopen (Depends-on): Likewise.
12213         * modules/fseeko (Depends-on): Likewise.
12214         * modules/ftello (Depends-on): Likewise.
12215         * modules/glob (Depends-on): Likewise.
12216         * modules/lseek (Depends-on): Likewise.
12217         * modules/lstat (Depends-on): Likewise.
12218         * modules/mkostemp (Depends-on): Likewise.
12219         * modules/mkostemps (Depends-on): Likewise.
12220         * modules/mkstemp (Depends-on): Likewise.
12221         * modules/mkstemps (Depends-on): Likewise.
12222         * modules/open (Depends-on): Likewise.
12223         * modules/openat (Depends-on): Likewise.
12224         * modules/pread (Depends-on): Likewise.
12225         * modules/pwrite (Depends-on): Likewise.
12226         * modules/scandir (Depends-on): Likewise.
12227         * modules/stat (Depends-on): Likewise.
12228         * modules/tmpfile (Depends-on): Likewise.
12229         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12230         since the containing module now depends on the largefile module.
12231         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12232         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12233         off_t is fixed by gnulib.
12234         * doc/posix-functions/freopen.texi: Likewise.
12235         * doc/posix-functions/fseeko.texi: Likewise.
12236         * doc/posix-functions/fstatat.texi: Likewise.
12237         * doc/posix-functions/ftello.texi: Likewise.
12238         * doc/posix-functions/glob.texi: Likewise.
12239         * doc/posix-functions/lseek.texi: Likewise.
12240         * doc/posix-functions/lstat.texi: Likewise.
12241         * doc/posix-functions/mkstemp.texi: Likewise.
12242         * doc/posix-functions/open.texi: Likewise.
12243         * doc/posix-functions/openat.texi: Likewise.
12244         * doc/posix-functions/pread.texi: Likewise.
12245         * doc/posix-functions/pwrite.texi: Likewise.
12246         * doc/posix-functions/scandir.texi: Likewise.
12247         * doc/posix-functions/stat.texi: Likewise.
12248         * doc/posix-functions/tmpfile.texi: Likewise.
12249         * doc/glibc-functions/mkostemp.texi: Likewise.
12250         * doc/glibc-functions/mkostemps.texi: Likewise.
12251         * doc/glibc-functions/mkstemps.texi: Likewise.
12252
12253 2011-07-25  Bruno Haible  <bruno@clisp.org>
12254
12255         fcntl: Move AC_LIBOBJ invocation to module description.
12256         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12257         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12258
12259         fcntl: Remove call-in from fchdir.m4.
12260         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12261         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12262
12263         dup3: Remove potential call-in from fchdir.m4.
12264         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12266
12267         dup2: Move AC_LIBOBJ invocation to module description.
12268         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12269         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12270         Don't invoke AC_LIBOBJ.
12271         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12272
12273         dup2: Remove call-in from fchdir.m4.
12274         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12276
12277         fclose: Move AC_LIBOBJ invocation to module description.
12278         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12279         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12280         to 1.
12281         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12282
12283         fclose: Remove call-in from close.m4.
12284         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12285         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12286
12287         close: Move AC_LIBOBJ invocation to module description.
12288         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12289         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12290         1.
12291         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12292
12293         close: Remove call-in from fchdir.m4.
12294         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12295         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12296
12297         open: Move AC_LIBOBJ invocation to module description.
12298         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12299         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12300         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12301
12302         open: Remove call-in from fchdir.m4.
12303         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12304         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12305
12306         fchdir: Start to remove gl_REPLACE_* idiom.
12307         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12308         (gl_FUNC_FCHDIR): Invoke it.
12309
12310 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12311
12312         * lib/ftell.c (ftell): Comment out cast.
12313
12314         close: use gl_REPLACE_FCLOSE only if defined
12315         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12316         is defined.  The close module doesn't depend on the fclose module
12317         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12319         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12320
12321 2011-07-24  Jim Meyering  <meyering@redhat.com>
12322
12323         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12324         * tests/test-select.h (test_function): Declare as "static".
12325
12326 2011-07-24  Bruno Haible  <bruno@clisp.org>
12327
12328         doc: Mention the effects of AC_SYS_LARGEFILE.
12329         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12330         on this function.
12331         * doc/posix-functions/aio_error.texi: Likewise.
12332         * doc/posix-functions/aio_fsync.texi: Likewise.
12333         * doc/posix-functions/aio_read.texi: Likewise.
12334         * doc/posix-functions/aio_return.texi: Likewise.
12335         * doc/posix-functions/aio_suspend.texi: Likewise.
12336         * doc/posix-functions/aio_write.texi: Likewise.
12337         * doc/posix-functions/fgetpos.texi: Likewise.
12338         * doc/posix-functions/fopen.texi: Likewise.
12339         * doc/posix-functions/freopen.texi: Likewise.
12340         * doc/posix-functions/fsetpos.texi: Likewise.
12341         * doc/posix-functions/fstatvfs.texi: Likewise.
12342         * doc/posix-functions/ftruncate.texi: Likewise.
12343         * doc/posix-functions/ftw.texi: Likewise.
12344         * doc/posix-functions/getrlimit.texi: Likewise.
12345         * doc/posix-functions/glob.texi: Likewise.
12346         * doc/posix-functions/lio_listio.texi: Likewise.
12347         * doc/posix-functions/lockf.texi: Likewise.
12348         * doc/posix-functions/mkstemp.texi: Likewise.
12349         * doc/posix-functions/mmap.texi: Likewise.
12350         * doc/posix-functions/nftw.texi: Likewise.
12351         * doc/posix-functions/openat.texi: Likewise.
12352         * doc/posix-functions/opendir.texi: Likewise.
12353         * doc/posix-functions/posix_fadvise.texi: Likewise.
12354         * doc/posix-functions/posix_fallocate.texi: Likewise.
12355         * doc/posix-functions/pread.texi: Likewise.
12356         * doc/posix-functions/pwrite.texi: Likewise.
12357         * doc/posix-functions/readdir.texi: Likewise.
12358         * doc/posix-functions/readdir_r.texi: Likewise.
12359         * doc/posix-functions/rewinddir.texi: Likewise.
12360         * doc/posix-functions/scandir.texi: Likewise.
12361         * doc/posix-functions/seekdir.texi: Likewise.
12362         * doc/posix-functions/setrlimit.texi: Likewise.
12363         * doc/posix-functions/statvfs.texi: Likewise.
12364         * doc/posix-functions/telldir.texi: Likewise.
12365         * doc/posix-functions/tmpfile.texi: Likewise.
12366         * doc/posix-functions/truncate.texi: Likewise.
12367         * doc/glibc-functions/fallocate.texi: Likewise.
12368         * doc/glibc-functions/fstatfs.texi: Likewise.
12369         * doc/glibc-functions/fts_children.texi: Likewise.
12370         * doc/glibc-functions/fts_read.texi: Likewise.
12371         * doc/glibc-functions/getdirentries.texi: Likewise.
12372         * doc/glibc-functions/mkostemp.texi: Likewise.
12373         * doc/glibc-functions/mkostemps.texi: Likewise.
12374         * doc/glibc-functions/mkstemps.texi: Likewise.
12375         * doc/glibc-functions/preadv.texi: Likewise.
12376         * doc/glibc-functions/pwritev.texi: Likewise.
12377         * doc/glibc-functions/sendfile.texi: Likewise.
12378         * doc/glibc-functions/statfs.texi: Likewise.
12379
12380 2011-07-24  Bruno Haible  <bruno@clisp.org>
12381
12382         doc: Fix typo.
12383         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12384
12385 2011-07-24  Bruno Haible  <bruno@clisp.org>
12386
12387         doc: Mention fsusage.
12388         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12389
12390 2011-07-24  Bruno Haible  <bruno@clisp.org>
12391
12392         doc: Mention new glibc headers and functions.
12393         * doc/glibc-headers/gshadow.texi: New file.
12394         * doc/glibc-functions/endsgent.texi: New file.
12395         * doc/glibc-functions/fgetsgent.texi: New file.
12396         * doc/glibc-functions/fgetsgent_r.texi: New file.
12397         * doc/glibc-functions/getsgent.texi: New file.
12398         * doc/glibc-functions/getsgent_r.texi: New file.
12399         * doc/glibc-functions/getsgnam.texi: New file.
12400         * doc/glibc-functions/getsgnam_r.texi: New file.
12401         * doc/glibc-functions/putsgent.texi: New file.
12402         * doc/glibc-functions/setsgent.texi: New file.
12403         * doc/glibc-functions/sgetsgent.texi: New file.
12404         * doc/glibc-functions/sgetsgent_r.texi: New file.
12405         * doc/glibc-functions/malloc_info.texi: New file.
12406         * doc/glibc-functions/preadv.texi: New file.
12407         * doc/glibc-functions/pwritev.texi: New file.
12408         * doc/glibc-functions/register_printf_modifier.texi: New file.
12409         * doc/glibc-functions/register_printf_specifier.texi: New file.
12410         * doc/glibc-functions/register_printf_type.texi: New file.
12411         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12412         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12413         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12414         * doc/glibc-functions/pthread_getname_np.texi: New file.
12415         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12416         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12417         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12418         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12419         * doc/glibc-functions/pthread_setname_np.texi: New file.
12420         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12421         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12422         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12423         * doc/glibc-functions/qsort_r.texi: New file.
12424         * doc/glibc-functions/quick_exit.texi: New file.
12425         * doc/glibc-functions/syncfs.texi: New file.
12426         * doc/gnulib.texi: Include them.
12427         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12428         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12429         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12430         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12431         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12432         * doc/glibc-functions/execvpe.texi: Likewise.
12433
12434 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12435
12436         ftell: don't include <unistd.h>
12437         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12438         guaranteed to define off_t, and the ftell module depends on the
12439         stdio module.
12440
12441         ftell: do not assume wraparound signed arithmetic
12442         * lib/ftell.c: Include <limits.h>.
12443         (ftell): Don't assume wraparound signed arithmetic.
12444
12445 2011-07-24  Bruno Haible  <bruno@clisp.org>
12446
12447         close: No longer depend on module 'fclose'.
12448         * modules/close (Depends-on): Remove fclose.
12449         * NEWS: Mention the change.
12450         Suggested by Sam Steingold <sds@gnu.org>.
12451
12452 2011-07-24  Bruno Haible  <bruno@clisp.org>
12453
12454         fsusage: Enable large volume support on AIX >= 5.2.
12455         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12456         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12457         instead of STAT_STATVFS.
12458         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12459
12460         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12461         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12462         f_blocks field only on MacOS X.
12463
12464         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12465         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12466         * modules/fsusage (Depends-on): Add largefile.
12467
12468 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12469
12470         * README: Modernize discussion of signed integers.
12471         Assuming overflow wraparound is no longer safe.
12472         Mention ones' complement and signed magnitude.
12473
12474 2011-07-22  Bruno Haible  <bruno@clisp.org>
12475
12476         select tests, pselect tests: Refactor.
12477         * tests/test-select.h: New file, extracted from tests/test-select.c.
12478         (select_fn): New type.
12479         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12480         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12481         test_pipe): Add my_select argument.
12482         (test_function): Renamed from main. Add my_select argument.
12483         * tests/test-select.c: Move most code to tests/test-select.h. Include
12484         test-select.h.
12485         * modules/select-tests (Files): Add tests/test-select.h.
12486         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12487         (my_select, main): New functions.
12488         * modules/pselect-tests (Files): Add tests/test-select.h,
12489         tests/macros.h, tests/signature.h.
12490         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12491         (configure.ac): Check for <sys/wait.h>.
12492
12493 2011-07-22  Bruno Haible  <bruno@clisp.org>
12494
12495         sys_select tests: Check the signature of FD_*.
12496         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12497         signature tests from here...
12498         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12499         here.
12500         * modules/sys_select-tests (Files): Add tests/signature.h.
12501
12502 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12503
12504         largefile: new module, replacing large-inode
12505         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12506         * MODULES.html.sh: Add largefile, remove large-inode.
12507         * modules/largefile, m4/largefile.m4: New files.
12508         * modules/large-inode, m4/large-inode.m4: Remove.
12509
12510         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12511         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12512         implementations that use only 32 bits to count blocks.
12513         On typical hosts with 1024-byte blocks, this fails with file
12514         systems as small as 4 TiB.  Problem reported by Herb Wartens
12515         <http://debbugs.gnu.org/9140> and this should also fix a similar
12516         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12517
12518         large-inode: New module
12519         * MODULES.html.sh: Add it.
12520         * modules/large-inode, m4/large-inode.m4: New files.
12521
12522         extensions: Enable extensions on MacOS X 10.5 and later.
12523         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12524
12525 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12526
12527         file-has-acl: use acl_extended_file_nofollow if available
12528         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12529         (acl_extended_file): New macro.
12530         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12531         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12532
12533 2011-07-21  Bruno Haible  <bruno@clisp.org>
12534
12535         Declare system functions in a way that works with C++.
12536         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12537         declare fdopendir as extern "C".
12538         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12539         declare frexpl as extern "C".
12540         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12541         declare gai_strerror as extern "C".
12542         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12543         programs, declare gai_strerror as extern "C".
12544         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12545         declare getlogin_r as extern "C".
12546         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12547         as extern "C".
12548         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12549         declare ldexpl as extern "C".
12550         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12551         as extern "C".
12552         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12553         program, declare getmntinfo as extern "C".
12554         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12555         stpncpy as extern "C".
12556         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12557         program, declare __xpg_strerror_r as extern "C".
12558         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12559         strndup as extern "C".
12560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12561         declare memset and bzero as extern "C".
12562         Reported by Sam Steingold <sds@gnu.org>.
12563
12564 2011-07-12  Jim Meyering  <meyering@redhat.com>
12565
12566         maint.mk: prohibit inclusion of "verify.h" without use
12567         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12568
12569 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12570
12571         timer-time: A new module to check for timer_settime()
12572         * m4/timer_time.m4: Check for the posix function.
12573         * modules/timer-time: Add the new module.
12574         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12575         Mention it.
12576
12577 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12578             Bruno Haible  <bruno@clisp.org>
12579
12580         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12581         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12582         not defined, assume POSIX threads and look for pthread_sigmask in
12583         $LIBS, without changing $CPPFLAGS.
12584
12585 2011-07-19  Bruno Haible  <bruno@clisp.org>
12586
12587         strstr: Update cross-compilation guess.
12588         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12589         CPUs, guess no, in view of glibc
12590         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12591         Suggested by Eric Blake. Reported by Reuben Thomas.
12592
12593 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12594
12595         getopt-gnu: suppress core dumps from detection code
12596         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12597         to suppress core dumps that may well occur on glibc systems.
12598         * modules/getopt-gnu: Depend on nocrash.
12599
12600 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12601
12602         pthread_sigmask: ensure usleep is declared
12603         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12604         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12605
12606 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12607
12608         doc: Document NonStop portability issues.
12609         * doc/posix-functions/sigaction.texi (sigaction):
12610         * doc/posix-headers/signal.texi (signal.h):
12611         Document NonStop.  See Joachim Schmitz in
12612         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12613
12614 2011-07-15  Bruno Haible  <bruno@clisp.org>
12615
12616         ffsl, ffsll: Avoid unportable behaviour.
12617         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12618
12619 2011-07-15  Bruno Haible  <bruno@clisp.org>
12620
12621         ffs: More tests.
12622         * tests/test-ffs.c (NBITS): New macro.
12623         (main): Add more tests.
12624         * tests/test-ffsl.c (NBITS): New macro.
12625         (main): Add more tests.
12626         * tests/test-ffsll.c (NBITS): New macro.
12627         (main): Add more tests.
12628
12629 2011-07-15  Eric Blake  <eblake@redhat.com>
12630
12631         ffsl, ffsll: new modules
12632         * modules/ffsl: New file.
12633         * modules/ffsll: Likewise.
12634         * m4/ffsl.m4: Likewise.
12635         * m4/ffsll.m4: Likewise.
12636         * lib/ffsl.c: Likewise.
12637         * lib/ffsl.h: Likewise.
12638         * lib/ffsll.c: Likewise.
12639         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12640         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12641         * modules/string (Makefile.am): Substitute witnesses.
12642         * lib/strings.in.h (ffsl, ffsll): Declare.
12643         * modules/ffsl-tests: New test file.
12644         * modules/ffsll-tests: Likewise.
12645         * tests/test-ffsl.c: Likewise.
12646         * tests/test-ffsll.c: Likewise.
12647         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12648         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12649         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12650
12651         ffs: fix m4 prerequisite
12652         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12653
12654         ffs: avoid undefined behavior
12655         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12656         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12657         Reported by Bruno Haible.
12658
12659 2011-07-12  Bruno Haible  <bruno@clisp.org>
12660
12661         pthread_sigmask: Rely on module 'threadlib'.
12662         * modules/pthread_sigmask (Depends-on): Add threadlib.
12663         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12664         is defined.
12665
12666 2011-07-12  Bruno Haible  <bruno@clisp.org>
12667
12668         regex: Depend on module 'strcase'.
12669         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12670
12671 2011-07-12  Jim Meyering  <meyering@redhat.com>
12672
12673         warn-on-use: fix typo in file name
12674         * modules/snippet/warn-on-use (Files): Correct file name:
12675         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12676
12677 2011-07-12  Bruno Haible  <bruno@clisp.org>
12678
12679         strings: Document module.
12680         * doc/posix-headers/strings.texi: Mention module 'strings'.
12681
12682 2011-07-12  Bruno Haible  <bruno@clisp.org>
12683
12684         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12685         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12686         (Files, Makefile.am): Update.
12687         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12688         * modules/stdlib (Depends-on): Update.
12689
12690 2011-07-12  Bruno Haible  <bruno@clisp.org>
12691
12692         * NEWS: Mention the changes.
12693
12694         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12695         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12696         (Files, Makefile.am): Update.
12697         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12698         * modules/arpa_inet (Depends-on): Update.
12699         * modules/ctype (Depends-on): Update.
12700         * modules/dirent (Depends-on): Update.
12701         * modules/fcntl-h (Depends-on): Update.
12702         * modules/glob (Depends-on): Update.
12703         * modules/iconv-h (Depends-on): Update.
12704         * modules/inttypes-incomplete (Depends-on): Update.
12705         * modules/langinfo (Depends-on): Update.
12706         * modules/locale (Depends-on): Update.
12707         * modules/math (Depends-on): Update.
12708         * modules/netdb (Depends-on): Update.
12709         * modules/poll-h (Depends-on): Update.
12710         * modules/pty (Depends-on): Update.
12711         * modules/search (Depends-on): Update.
12712         * modules/signal (Depends-on): Update.
12713         * modules/spawn (Depends-on): Update.
12714         * modules/stdio (Depends-on): Update.
12715         * modules/stdlib (Depends-on): Update.
12716         * modules/string (Depends-on): Update.
12717         * modules/strings (Depends-on): Update.
12718         * modules/sys_file (Depends-on): Update.
12719         * modules/sys_ioctl (Depends-on): Update.
12720         * modules/sys_select (Depends-on): Update.
12721         * modules/sys_socket (Depends-on): Update.
12722         * modules/sys_stat (Depends-on): Update.
12723         * modules/sys_time (Depends-on): Update.
12724         * modules/sys_times (Depends-on): Update.
12725         * modules/sys_utsname (Depends-on): Update.
12726         * modules/sys_wait (Depends-on): Update.
12727         * modules/termios (Depends-on): Update.
12728         * modules/time (Depends-on): Update.
12729         * modules/unistd (Depends-on): Update.
12730         * modules/wchar (Depends-on): Update.
12731         * modules/wctype-h (Depends-on): Update.
12732         * MODULES.html.sh (Support for building libraries and executables):
12733         Update.
12734
12735         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12736         * modules/snippet/unused-parameter: Renamed from
12737         modules/unused-parameter.
12738         (Files, Makefile.am): Update.
12739         * build-aux/snippet/unused-parameter.h: Renamed from
12740         build-aux/unused-parameter.h.
12741         * modules/selinux-h (Depends-on): Update.
12742         * modules/unistr/base (Depends-on): Update.
12743         * MODULES.html.sh (Core language properties): Update.
12744
12745         Rename module 'link-warning' to 'snippet/link-warning'.
12746         * modules/snippet/link-warning: Renamed from modules/link-warning.
12747         (Files, Makefile.am): Update.
12748         * build-aux/snippet/link-warning.h: Renamed from
12749         build-aux/link-warning.h.
12750         * MODULES.html.sh (Support for building libraries and executables):
12751         Update.
12752
12753         Rename module 'c++defs' to 'snippet/c++defs'.
12754         * modules/snippet/c++defs: Renamed from modules/c++defs.
12755         (Files, Makefile.am): Update.
12756         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12757         * modules/arpa_inet (Depends-on): Update.
12758         * modules/ctype (Depends-on): Update.
12759         * modules/dirent (Depends-on): Update.
12760         * modules/fcntl-h (Depends-on): Update.
12761         * modules/glob (Depends-on): Update.
12762         * modules/iconv-h (Depends-on): Update.
12763         * modules/langinfo (Depends-on): Update.
12764         * modules/locale (Depends-on): Update.
12765         * modules/math (Depends-on): Update.
12766         * modules/netdb (Depends-on): Update.
12767         * modules/poll-h (Depends-on): Update.
12768         * modules/pty (Depends-on): Update.
12769         * modules/search (Depends-on): Update.
12770         * modules/signal (Depends-on): Update.
12771         * modules/spawn (Depends-on): Update.
12772         * modules/stdio (Depends-on): Update.
12773         * modules/stdlib (Depends-on): Update.
12774         * modules/string (Depends-on): Update.
12775         * modules/strings (Depends-on): Update.
12776         * modules/sys_ioctl (Depends-on): Update.
12777         * modules/sys_select (Depends-on): Update.
12778         * modules/sys_socket (Depends-on): Update.
12779         * modules/sys_stat (Depends-on): Update.
12780         * modules/sys_time (Depends-on): Update.
12781         * modules/sys_wait (Depends-on): Update.
12782         * modules/termios (Depends-on): Update.
12783         * modules/time (Depends-on): Update.
12784         * modules/unistd (Depends-on): Update.
12785         * modules/wchar (Depends-on): Update.
12786         * modules/wctype-h (Depends-on): Update.
12787
12788         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12789         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12790         (Files, Makefile.am): Update.
12791         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12792         * modules/argv-iter (Depends-on): Update.
12793         * modules/arpa_inet (Depends-on): Update.
12794         * modules/dirent (Depends-on): Update.
12795         * modules/fcntl-h (Depends-on): Update.
12796         * modules/fnmatch (Depends-on): Update.
12797         * modules/getopt-posix (Depends-on): Update.
12798         * modules/glob (Depends-on): Update.
12799         * modules/iconv-h (Depends-on): Update.
12800         * modules/inttypes-incomplete (Depends-on): Update.
12801         * modules/locale (Depends-on): Update.
12802         * modules/math (Depends-on): Update.
12803         * modules/netdb (Depends-on): Update.
12804         * modules/search (Depends-on): Update.
12805         * modules/signal (Depends-on): Update.
12806         * modules/spawn (Depends-on): Update.
12807         * modules/stdio (Depends-on): Update.
12808         * modules/stdlib (Depends-on): Update.
12809         * modules/string (Depends-on): Update.
12810         * modules/strings (Depends-on): Update.
12811         * modules/sys_socket (Depends-on): Update.
12812         * modules/sys_stat (Depends-on): Update.
12813         * modules/sys_time (Depends-on): Update.
12814         * modules/sys_times (Depends-on): Update.
12815         * modules/sys_utsname (Depends-on): Update.
12816         * modules/time (Depends-on): Update.
12817         * modules/unistd (Depends-on): Update.
12818         * modules/wchar (Depends-on): Update.
12819         * MODULES.html.sh (Support for building libraries and executables):
12820         Update.
12821
12822 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12823
12824         Improvements on _Noreturn and related modules.
12825
12826         modules/_Exit-tests: test _Noreturn too
12827         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12828         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12829         (main): Use them.
12830
12831         stdnoreturn, stdnoreturn-tests: remove modules
12832         They're not needed here and a bit premature for use elsewhere.  See
12833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12834         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12835         * tests/test-stdnoreturn.c: Remove files.
12836         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12837         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12838         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12839         and using noreturn.
12840         * modules/openat, modules/sigpipe-die, modules/xalloc:
12841         * modules/xmemdup0, modules/xstrtol:
12842         Remove dependency on stdnoreturn.
12843
12844         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12845         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12846         Reparenthesize to avoid GCC warning.
12847         Support Microsoft's syntax.
12848         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12849
12850         _Noreturn-tests: remove module
12851         * modules/_Noreturn-tests: Remove.
12852         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12853         * tests/test-_Noreturn.c: Remove.
12854         * tests/test-stdnoreturn.c: Merge from the old
12855         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12856
12857 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12858
12859         _Noreturn, stdnoreturn, and related modules.
12860
12861         * top/maint.mk: Adjust to new noreturn support.
12862         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12863         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12864
12865         xalloc: use stdnoreturn.h
12866         * lib/xalloc.h: Include <stdnoreturn.h>.
12867         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12868         * modules/xalloc (Depends-on): Add stdnoreturn.
12869
12870         xstrtol: use stdnoreturn.h
12871         * lib/xstrtol.h: Include <stdnoreturn.h>.
12872         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12873         * modules/xstrtol (Depends-on): Add stdnoreturn.
12874
12875         xmemdup0: use stdnoreturn.h
12876         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12877         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12878         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12879
12880         sigpipe-die: use stdnoreturn.h
12881         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12882         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12883         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12884
12885         openat: use stdnoreturn.h
12886         * lib/openat.h: Include <stdnoreturn.h>.
12887         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12888         * modules/openat (Depends-on): Add stdnoreturn.
12889
12890         * lib/openat-die.c (openat_save_fail): Modernize comment.
12891
12892         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12893
12894         * lib/glthread/thread.h: Modernize comment.
12895
12896         obstack: use _Noreturn
12897         * lib/obstack.c (__attribute__): Remove macro.
12898         (print_and_abort): Use _Noreturn.
12899
12900         c-stack: use _Noreturn
12901         * lib/c-stack.c (die, overflow_handler, segv_handler):
12902         Use _Noreturn rather than __attribute__((noreturn)).
12903
12904         argmatch-tests, exclude_tests: use _Noreturn
12905         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12906         Remove.
12907         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12908
12909         stdlib: use _Noreturn
12910         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12911         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12912         * modules/stdlib (Depends-on): Add _Noreturn.
12913         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12914
12915         stdnoreturn-tests: new module
12916         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12917
12918         stdnoreturn: new module
12919         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12920         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12921
12922         _Noreturn-tests: new module
12923         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12924
12925         _Noreturn: new module
12926         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12927         New section, mentioning it.
12928         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12929
12930         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12931
12932 2011-07-11  Eric Blake  <eblake@redhat.com>
12933
12934         ffs: new module
12935         * modules/ffs: New file.
12936         * m4/ffs.m4: Likewise.
12937         * lib/ffs.c: Likewise.
12938         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12939         * modules/strings (Makefile.am): Substitute witness.
12940         (Depends-on): Add c++defs.
12941         * lib/strings.in.h (ffs): Declare.
12942         * modules/ffs-tests: New test file.
12943         * tests/test-ffs.c: Test new module.
12944         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12945         * doc/posix-functions/ffs.texi (ffs): Likewise.
12946
12947         regex: avoid compiler warning
12948         * lib/regex.c (includes): Include <strings.h>, for use of
12949         strcasecmp in regcomp.c.
12950         Reported by Joachim Schmitz.
12951
12952 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12953
12954         stdint: respect system's intmax_t if INTMAX_MAX
12955         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12956         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12957         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12958         long but int64_t is long long, and where we will clash with the
12959         system intmax_t if we override it.  See
12960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12961         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12962         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12963         similarly for UINTMAX_C.
12964
12965 2011-07-08  Bruno Haible  <bruno@clisp.org>
12966
12967         pthread_sigmask tests: Avoid a compiler warning.
12968         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12969         non-zero.
12970
12971         sigprocmask tests: A better way to avoid a compiler warning.
12972         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12973         (main): Complain if system() returns non-zero.
12974         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12975
12976 2011-07-08  Bruno Haible  <bruno@clisp.org>
12977
12978         pthread_sigmask: Work around IRIX bug.
12979         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12980         bug.
12981         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12982         there may be unblocked pending signals.
12983         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12984
12985 2011-07-08  Bruno Haible  <bruno@clisp.org>
12986
12987         pthread_sigmask: Work around Cygwin bug.
12988         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12989         bug.
12990         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12991         the system's pthread_sigmask function.
12992         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12993
12994 2011-07-08  Bruno Haible  <bruno@clisp.org>
12995
12996         pthread_sigmask: Work around bug in single-threaded implementation.
12997         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12998         FreeBSD, HP-UX, Solaris bug.
12999         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
13000         * lib/pthread_sigmask.c: Include <stddef.h>.
13001         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
13002         the system's pthread_sigmask function.
13003         * modules/pthread_sigmask (configure.ac): Invoke
13004         gl_PREREQ_PTHREAD_SIGMASK.
13005         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
13006         HP-UX, Solaris.
13007
13008 2011-07-08  Eric Blake  <eblake@redhat.com>
13009
13010         test-sigprocmask: avoid compiler warning
13011         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
13012         * tests/test-sigprocmask.c (main): Use it to silence warning.
13013         Reported by Jim Meyering.
13014
13015         test-snprintf: avoid compiler warning
13016         * tests/test-snprintf.c (main): Avoid shadowed declaration.
13017         * tests/test-vsnprintf.c (main): Likewise.
13018         Reported by Jim Meyering.
13019
13020 2011-07-08  Bruno Haible  <bruno@clisp.org>
13021
13022         Tests for module 'pthread_sigmask'.
13023         * modules/pthread_sigmask-tests: New file.
13024         * tests/test-pthread_sigmask1.c: New file, based on
13025         tests/test-sigprocmask.c.
13026         * tests/test-pthread_sigmask2.c: New file.
13027
13028 2011-07-08  Jim Meyering  <meyering@redhat.com>
13029
13030         test-getopt.h: avoid warning about an unused variable
13031         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
13032
13033 2011-07-07  Jim Meyering  <meyering@redhat.com>
13034
13035         maint: reduce list of files exempt from sc_prohibit_leading_TABs
13036         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
13037         now that it no longer contains leading TABs.
13038         Remove unused "url=FIXME" statement.
13039
13040 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13041
13042         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
13043         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13044         When gl_THREADLIB is not in use, assume that the POSIX sematics
13045         are desired.  This is better for Emacs, which uses POSIX semantics
13046         on GNUish and/or POSIXish platforms, and does not use threads at
13047         all otherwise.
13048
13049         pthread_sigmask: fix typo when testing for libraries
13050         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13051         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
13052
13053 2011-07-08  Eric Blake  <eblake@redhat.com>
13054
13055         fts: introduce FTS_NOATIME
13056         * lib/fts_.h (FTS_NOATIME): New bit flag.
13057         (FTS_OPTIONMASK): Adjust.
13058         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
13059         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
13060
13061 2011-07-08  Bruno Haible  <bruno@clisp.org>
13062
13063         Tests for module 'thread'.
13064         * modules/thread-tests: New file.
13065         * tests/test-thread_self.c: New file.
13066         * tests/test-thread_create.cc: New file.
13067
13068 2011-07-08  Bruno Haible  <bruno@clisp.org>
13069
13070         thread: Avoid gcc warnings when using gl_thread_self().
13071         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
13072         'void *'.
13073         (gl_thread_self_pointer): Update.
13074
13075 2011-07-07  Bruno Haible  <bruno@clisp.org>
13076
13077         signal-c++-tests: Check declaration of pthread_sigmask.
13078         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
13079         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
13080         $(LIB_PTHREAD_SIGMASK).
13081
13082 2011-07-07  Bruno Haible  <bruno@clisp.org>
13083
13084         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
13085         * lib/signal.in.h (pthread_sigmask): Override if
13086         REPLACE_PTHREAD_SIGMASK is 1.
13087         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13088         REPLACE_PTHREAD_SIGMASK.
13089         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
13090         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
13091         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
13092         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13093         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
13094
13095 2011-07-07  Bruno Haible  <bruno@clisp.org>
13096
13097         pthread_sigmask: Ensure declaration in <signal.h>.
13098         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
13099         include <pthread.h>.
13100         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
13101         problem.
13102
13103 2011-07-07  Bruno Haible  <bruno@clisp.org>
13104
13105         pthread_sigmask: Document the module.
13106         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
13107
13108 2011-07-07  Bruno Haible  <bruno@clisp.org>
13109
13110         pthread_sigmask: Follow gnulib conventions.
13111         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
13112         gl_PTHREAD_SIGMASK.
13113         * modules/pthread_sigmask (configure.ac): Update.
13114
13115 2011-07-07  Bruno Haible  <bruno@clisp.org>
13116
13117         pthread_sigmask: Make declaration C++ safe.
13118         * lib/signal.in.h: In two special conditions, just do an #include_next.
13119         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13120         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
13121         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13122         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13123         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
13124         not REPLACE_PTHREAD_MASK.
13125         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
13126         not REPLACE_PTHREAD_MASK.
13127         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13128
13129 2011-07-07  Bruno Haible  <bruno@clisp.org>
13130
13131         pthread_sigmask: Fix return value.
13132         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13133         * lib/pthread_sigmask.c: New file.
13134         * modules/pthread_sigmask (Files): Add it.
13135         (configure.ac): Invoke AC_LIBOBJ.
13136
13137 2011-07-07  Eric Blake  <eblake@redhat.com>
13138
13139         getopt: more portable argv creation
13140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13141         const, use char arrays rather than strings.
13142         Suggested by Paul Eggert.
13143
13144 2011-07-07  Bruno Haible  <bruno@clisp.org>
13145
13146         Tests for module 'sigprocmask'.
13147         * modules/sigprocmask-tests: New file.
13148         * tests/test-sigprocmask.c: New file.
13149
13150 2011-07-07  Bruno Haible  <bruno@clisp.org>
13151
13152         float tests: Tweak.
13153         * tests/test-float.c (main): Tweak skip message.
13154
13155 2011-07-07  Eric Blake  <eblake@redhat.com>
13156
13157         getopt: avoid compiler warning during configure
13158         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13159         assigning string literals to non-const pointer.
13160
13161         getopt-gnu: avoid crash in glibc getopt
13162         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13163         * tests/test-getopt.h (test_getopt): Enhance test.
13164         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13165         * doc/posix-functions/getopt.texi (getopt): Document it.
13166         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13167         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13168         Likewise.
13169
13170 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13171
13172         getopt: handle W; without long options in getopt [BZ #12922]
13173         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13174         but no long options are defined, just return 'W'.
13175
13176 2011-07-07  Bruno Haible  <bruno@clisp.org>
13177
13178         Avoid literal tabs.
13179         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13180         variable containing a tab instead of a literal tab.
13181         Reported by Jim Meyering.
13182
13183 2011-07-07  Bruno Haible  <bruno@clisp.org>
13184
13185         Comments.
13186         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13187
13188 2011-07-06  Bruno Haible  <bruno@clisp.org>
13189
13190         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13191         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13192         <winsock2.h>.
13193         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13194         lib/sys_socket.in.h.
13195         (close, gethostname): Hide declarations from <winsock2.h>.
13196         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13197         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13198         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13199         (select): Don't override if gnulib's <sys/select.h> was already
13200         included.
13201         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13202         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13203         setsockopt, shutdown, select): Tweak indentation.
13204
13205 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13206
13207         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13208         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13209         in an application that does not use the sys_select module.
13210
13211 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13212
13213         poll: do not return 0 on timeout=-1
13214         * lib/poll.c: Loop with yield if no events occured
13215
13216 2011-07-06  Eric Blake  <eblake@redhat.com>
13217
13218         pthread_sigmask: always replace when not using pthread
13219         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13220         replacement when using some threading other than pthread.  Fix
13221         logic bug.
13222
13223 2011-07-06  Bruno Haible  <bruno@clisp.org>
13224
13225         Comments.
13226         * m4/printf.m4: Update comments about mingw.
13227
13228 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13229
13230         sys_select: define sigset_t more portably
13231         * lib/sys_select.in.h: Always include <sys/types.h>, since
13232         we now need sigset_t and mingw defines it there.
13233         Include <signal.h> before split inclusion guard, to avoid
13234         mishaps on Solaris, whose <signal.h> eventually includes us.
13235         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13236         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13237         which come from ...
13238         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13239         gl_CHECK_TYPE_SIGSET_T.
13240         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13241         does the real work.
13242         * modules/sys_select (Depends-on): Add 'signal'.
13243
13244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13245         Suggested by Bruno Haible.
13246
13247         pselect: Use pthread_sigmask, not sigprocmask.
13248         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13249         multithreaded apps better than sigprocmask does.
13250         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13251         sigprocmask directly.
13252
13253 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13254
13255         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13256         Don't #undef,  since we don't need any underlying pselect.
13257         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13258         (Depends-on): Add select.
13259         (Link): Add $(LIBSOCKET).
13260         These changes suggested by Bruno Haible.
13261
13262         pselect: document better
13263         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13264         * doc/posix-functions/pselect.texi (pselect): Document new module.
13265
13266         pthread_sigmask: new module
13267         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13268         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13269         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13270         This is done only as a macro; I don't know how well that'll
13271         work for C++.  Move <sys/types.h> include before the include_next,
13272         to avoid mishap on Solaris.
13273         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13274         * modules/signal (Makefile.am): Substitute the check's results.
13275         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13276
13277         test-pselect: new module
13278         * modules/pselect-tests, tests/test-pselect.c: New files.
13279         * tests/test-select.c, tests/test-sys_select-c++.cc:
13280         If TEST_PSELECT is defined, test pselect instead of testing select.
13281
13282         * tests/test-sys_select.c (sigset_t): Test for it, too.
13283         Suggested by Bruno Haible.
13284
13285 2011-07-05  Eric Blake  <eblake@redhat.com>
13286
13287         snprintf: guarantee %1$d, for libintl
13288         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13289         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13290         * doc/posix-functions/snprintf.texi (snprintf): Update.
13291         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13292         * tests/test-snprintf.c (main): Enhance test.
13293         * tests/test-vsnprintf.c (main): Likewise.
13294
13295 2011-07-05  Jim Meyering  <meyering@redhat.com>
13296
13297         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13298         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13299         per Bruno's request, to accommodate this idiom (no space after "#")
13300         even when the function is inside an #if block:
13301         char *
13302         gets (char *s)
13303         #undef gets
13304         {
13305           ...
13306         }
13307
13308 2011-07-04  Jim Meyering  <meyering@redhat.com>
13309
13310         maint: indent with spaces, not TABs, and add a rule to check this
13311         * tests/test-userspec.c: Indent with spaces, not TABs.
13312         * tests/test-argp.c: Likewise.
13313         * tests/test-c-stack2.sh: Likewise.
13314         * tests/test-parse-duration.sh: Likewise
13315         * m4/strtod.m4: Likewise.
13316         * m4/alloca.m4: Likewise.
13317         * m4/pselect.m4: Likewise.
13318         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13319
13320 2011-07-03  Jim Meyering  <meyering@redhat.com>
13321
13322         maint.mk: correct omissions in prohibit_argmatch_without_use check
13323         This rule would mistakenly report that argmatch.h is included without
13324         use even when both the argmatch and invalid_arg macro were used.
13325         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13326         of argmatch and invalid_arg.
13327
13328 2011-07-03  Bruno Haible  <bruno@clisp.org>
13329
13330         Comments about EINTR.
13331         * lib/safe-read.h: Explain the purpose of this module.
13332         * lib/safe-write.h: Likewise.
13333         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13334         module.
13335         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13336         module.
13337         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13338
13339 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13340
13341         xnanosleep: Rewrite to use new dtotimespec module.
13342         It has the conversion code that used to be in xnanosleep.
13343         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13344         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13345         (TIME_T_MAX): Remove.
13346         (xnanosleep): Rewrite in terms of dtotimespec.
13347         * modules/xnanosleep (Depends-on): Add dtotimespec.
13348         Remove intprops, stdbool.
13349
13350         timespec-add, timespec-sub: new modules
13351         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13352         * lib/timespec-add.c, lib/timespec-sub.c:
13353         * modules/timespec-add, modules/timespec-sub: New files.
13354
13355         dtotimespec: new module
13356         * lib/timespec.h (dtotimespec): New decl.
13357         * lib/dtotimespec.c, modules/dtotimespec: New files.
13358
13359         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13360
13361         pselect: new module
13362         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13363         (pselect): New decls.
13364         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13365         since the standard pselect decl uses 'restrict'.
13366         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13367         HAVE_PSELECT, REPLACE_PSELECT.
13368         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13369         HAVE_PSELECT, REPLACE_PSELECT.
13370         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13371
13372         sys_select: don't depend on sys_socket
13373         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13375         This fix works on GNU and GNU-like platforms, but has not been tested
13376         on native Windows.
13377         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13378         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13379         gl_HEADER_SYS_SOCKET.
13380         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13381         gl_PREREQ_SYS_H_WINSOCK2.
13382
13383 2011-06-29  Eric Blake  <eblake@redhat.com>
13384
13385         pipe2: fix C89 compile problem
13386         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13387         Reported by Bruno Haible.
13388
13389         pipe, pipe2: don't corrupt fd on error
13390         * lib/pipe.c (pipe): Leave fd unchanged on error.
13391         * lib/pipe2.c (pipe2): Likewise.
13392         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13393         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13394
13395 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13396
13397         mmap-anon: do not use regular expressions inadvertently
13398         * m4/mmap-anon.m4: Remove trailing period from strings sought
13399         in the output.
13400
13401 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13402
13403         nanosleep: fix integer overflow problem
13404         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13405         arithmetic wraps around on overflow.
13406
13407         nanosleep: simplify carrying
13408         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13409         first call to the underyling nanosleep, not for the last one.
13410         This doesn't fix any bugs, but it simplifies the computation of
13411         the remaining delay.  Found while auditing integer overflow issues.
13412
13413         dup2: remove test for existence of fcntl
13414         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13415         "#if HAVE_FCNTL", in the configure-time test program.
13416         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13417         and therefore speeds up "configure" a bit.  Found while
13418         adding the dup2 module to Emacs.
13419
13420 2011-06-24  Eric Blake  <eblake@redhat.com>
13421
13422         maint.mk: enhance useless header checks
13423         * top/maint.mk (_sc_header_without_use): Check both include
13424         styles.
13425         (sc_prohibit_assert_without_use)
13426         (sc_prohibit_close_stream_without_use)
13427         (sc_prohibit_getopt_without_use)
13428         (sc_prohibit_quotearg_without_use)
13429         (sc_prohibit_quote_without_use)
13430         (sc_prohibit_long_options_without_use)
13431         (sc_prohibit_inttostr_without_use)
13432         (sc_prohibit_ignore_value_without_use)
13433         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13434         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13435         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13436         (sc_prohibit_hash_pjw_without_use)
13437         (sc_prohibit_safe_read_without_use)
13438         (sc_prohibit_argmatch_without_use)
13439         (sc_prohibit_canonicalize_without_use)
13440         (sc_prohibit_root_dev_ino_without_use)
13441         (sc_prohibit_openat_without_use)
13442         (sc_prohibit_c_ctype_without_use)
13443         (sc_prohibit_signal_without_use)
13444         (sc_prohibit_stdio--_without_use)
13445         (sc_prohibit_stdio-safer_without_use)
13446         (sc_prohibit_strings_without_use)
13447         (sc_prohibit_intprops_without_use)
13448         (sc_prohibit_stddef_without_use)
13449         (sc_prohibit_xfreopen_without_use): Update clients.
13450
13451 2011-06-24  Jim Meyering  <meyering@redhat.com>
13452
13453         syntax-check: keep one maint.mk rule in sync with its header
13454         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13455         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13456         I prefer to avoid temporary files here, so use <(...), but that
13457         is not supported by /bin/sh, so...
13458         (SHELL): Define to /bin/bash.
13459
13460 2011-06-24  Eric Blake  <eblake@redhat.com>
13461
13462         maint.mk: update sc_prohibit_intprops_without_use
13463         * top/maint.mk (_intprops_names): Match recent changes.
13464
13465 2011-06-24  Bruno Haible  <bruno@clisp.org>
13466
13467         strerror-override: No-op tweak.
13468         * lib/strerror-override.h (strerror_override): Reorder conditions,
13469         for consistency with lib/strerror-override.c.
13470
13471 2011-06-23  Eric Blake  <eblake@redhat.com>
13472
13473         maint.mk: test further PATH_MAX issues
13474         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13475         (sc_prohibit_path_max_allocation): ...and also test alloca.
13476         Suggested by Jim Meyering.
13477
13478 2011-06-22  Eric Blake  <eblake@redhat.com>
13479
13480         maint.mk: add syntax-check to avoid char[PATH_MAX]
13481         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13482
13483         stat: be robust to PATH_MAX definition
13484         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13485         * modules/stat (Depends-on): Add verify.
13486
13487         link: work around IRIX bug
13488         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13489         * lib/link.c (rpl_link): Work around it.
13490         * tests/test-link.h (test_link): Enhance test.
13491         * doc/posix-functions/link.texi (link): Document the bug.
13492
13493         getopt: silence clang warning
13494         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13495         dereference.
13496         Reported by Gustavo Martin Domato.
13497
13498 2011-06-22  Jim Meyering  <meyering@redhat.com>
13499
13500         bootstrap: do not insert a blank line into each .gitignore file
13501         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13502
13503 2011-06-21  Eric Blake  <eblake@redhat.com>
13504
13505         perror: test for output mismatch
13506         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13507         perror on IRIX.
13508
13509         strerror_r: fix OpenBSD behavior on out-of-range
13510         * lib/strerror_r.c (strerror_r): Always use maximal string.
13511         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13512
13513         strerror_r: fix OpenBSD behavior on 0
13514         * lib/strerror-override.c (strerror_override): Also override 0
13515         when needed.
13516         * lib/strerror-override.h (strerror_override): Likewise.
13517         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13518         earlier.
13519         * lib/strerror_r.c (strerror_r): Likewise.
13520         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13521         behavior...
13522         (gl_FUNC_STRERROR_0): ...into new macro.
13523         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13524         is overridden.
13525         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13526         * modules/strerror-override (Files): Add strerror.m4.
13527         (configure.ac): Also provide override for 0 when needed.
13528         * doc/posix-functions/strerror.texi (strerror): Document this.
13529         * doc/posix-functions/perror.texi (perror): Likewise.
13530
13531         perror: adjust array size
13532         * modules/perror (Depends-on): Add strerror-override.
13533         * lib/perror.c (perror): Use it to avoid magic number.
13534
13535         strerror-override: reduce size
13536         * lib/strerror-override.c (strerror_override): Use fewer lines.
13537
13538 2011-06-20  Bruno Haible  <bruno@clisp.org>
13539
13540         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13541         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13542
13543 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13544
13545         alloca: port to compilers that can optimize like GCC 4.6.0
13546         * lib/alloca.c (find_stack_direction): New signature, taken from
13547         Autoconf git.  This works with GCC 4.6.0.  This code should never
13548         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13549         be used with other compilers that optimize as well as GCC 4.6.0 does.
13550         (alloca): Adjust to new signature.
13551         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13552         New macro, which patches Autoconf in a similar way.
13553
13554         c-stack: stop worrying about stack direction
13555         * lib/c-stack.c (find_stack_direction): Remove.
13556         (segv_handler): Don't worry about stack direction growth, as it's
13557         too much of a pain to configure this correctly, given how compilers
13558         are optimizing-away our stack-growth detection code.  Instead, assume
13559         that any access to just before or just after the stack is OK.
13560         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13561         Don't require AC_FUNC_ALLOCA; no longer needed.
13562
13563 2011-06-20  Eric Blake  <eblake@redhat.com>
13564
13565         test-stat: don't allocate PATH_MAX bytes
13566         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13567         PATH_MAX-sized buffer.
13568         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13569         * modules/stat-tests (Depends-on): Likewise.
13570         * tests/test-fstatat.c (includes): Drop pathmax.h.
13571         * tests/test-stat.c (includes): Likewise.
13572         Reported by Bruno Haible.
13573
13574 2011-06-20  Bruno Haible  <bruno@clisp.org>
13575
13576         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13577         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13578         * lib/float.c: New file.
13579         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13580         REPLACE_FLOAT_LDBL.
13581         * modules/float (Files): Add lib/float.c.
13582         (configure.ac): Invoke AC_LIBOBJ.
13583         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13584
13585 2011-06-20  Bruno Haible  <bruno@clisp.org>
13586
13587         Tests for module 'float'.
13588         * modules/float-tests: New file.
13589         * tests/test-float.c: New file.
13590
13591 2011-06-19  Bruno Haible  <bruno@clisp.org>
13592
13593         isinf: Coding style.
13594         * lib/isinf.c: Use GNU coding style.
13595
13596 2011-06-19  Bruno Haible  <bruno@clisp.org>
13597
13598         linkat test: Avoid test failure on AIX 7.1.
13599         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13600         * tests/test-link.h (test_link): Likewise.
13601
13602 2011-06-19  Bruno Haible  <bruno@clisp.org>
13603
13604         pread test: Avoid test failure on OpenBSD 4.9.
13605         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13606
13607 2011-06-19  Bruno Haible  <bruno@clisp.org>
13608
13609         sprintf-posix: Fix test failure on AIX 7.1.
13610         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13611         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13612         on AIX.
13613         * doc/posix-functions/fprintf.texi: Likewise.
13614         * doc/posix-functions/printf.texi: Likewise.
13615         * doc/posix-functions/snprintf.texi: Likewise.
13616         * doc/posix-functions/sprintf.texi: Likewise.
13617         * doc/posix-functions/vdprintf.texi: Likewise.
13618         * doc/posix-functions/vfprintf.texi: Likewise.
13619         * doc/posix-functions/vprintf.texi: Likewise.
13620         * doc/posix-functions/vsnprintf.texi: Likewise.
13621         * doc/posix-functions/vsprintf.texi: Likewise.
13622
13623 2011-06-19  Bruno Haible  <bruno@clisp.org>
13624
13625         roundl-ieee: Fix test failure on AIX 7.1.
13626         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13627         * doc/posix-functions/roundl.texi: Mention problem with negative
13628         arguments.
13629
13630 2011-06-19  Bruno Haible  <bruno@clisp.org>
13631
13632         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13633         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13634         * doc/posix-functions/round.texi: Mention problem with negative
13635         arguments.
13636         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13637
13638 2011-06-19  Bruno Haible  <bruno@clisp.org>
13639
13640         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13641         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13642         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13643         * doc/posix-functions/roundf.texi: Mention problem with negative
13644         arguments.
13645         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13646
13647 2011-06-19  Bruno Haible  <bruno@clisp.org>
13648
13649         ceilf-ieee: Work around bug on MacOS X 10.5.
13650         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13651
13652         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13653         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13654         IEEE compliant, avoid compiler optimizations.
13655         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13656         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13657         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13658         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13659         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13660         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13661         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13662         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13663         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13664         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13665
13666 2011-06-19  Bruno Haible  <bruno@clisp.org>
13667
13668         ceilf-ieee: Work around bug on AIX 7.1.
13669         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13670         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13671
13672 2011-06-19  Bruno Haible  <bruno@clisp.org>
13673
13674         ceil-ieee: Work around bug on AIX 7.1.
13675         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13676         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13677
13678 2011-06-18  Bruno Haible  <bruno@clisp.org>
13679
13680         fsync test: Avoid test failure on MacOS X and AIX.
13681         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13682         EINVAL.
13683
13684 2011-06-18  Bruno Haible  <bruno@clisp.org>
13685
13686         openat, fdopendir tests: Fix link errors.
13687         * modules/openat-tests (Depends-on): Add progname.
13688         * modules/fdopendir-tests (Depends-on): Likewise.
13689         * tests/test-fchownat.c: Include progname.h.
13690         (main): Call set_program_name.
13691         * tests/test-fstatat.c: Include progname.h.
13692         (main): Call set_program_name.
13693         * tests/test-mkdirat.c: Include progname.h.
13694         (main): Call set_program_name.
13695         * tests/test-openat.c: Include progname.h.
13696         (main): Call set_program_name.
13697         * tests/test-unlinkat.c: Include progname.h.
13698         (main): Call set_program_name.
13699         * tests/test-fdopendir.c: Include progname.h.
13700         (main): Call set_program_name.
13701
13702 2011-06-18  Bruno Haible  <bruno@clisp.org>
13703
13704         Doc update.
13705         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13706         HP-UX.
13707         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13708
13709 2011-06-18  Bruno Haible  <bruno@clisp.org>
13710
13711         getcwd tests: Avoid compilation error on HP-UX 11.31.
13712         * modules/getcwd-tests (Depends-on): Add pathmax.
13713         * tests/test-getcwd.c: Include pathmax.h.
13714
13715 2011-06-18  Bruno Haible  <bruno@clisp.org>
13716
13717         isfinite, isinf: Fix link error on AIX 6 and 7.
13718         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13719         needed, also test the macro with a 'float' argument.
13720         * m4/isinf.m4 (gl_ISINF): Likewise.
13721
13722 2011-06-18  Bruno Haible  <bruno@clisp.org>
13723
13724         getloadavg: Don't clobber LIBS. Regression from previous commit.
13725         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13726         AC_CHECK_LIB from here...
13727         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13728         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13729         gl_func_getloadavg_done.
13730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13731
13732 2011-06-18  Bruno Haible  <bruno@clisp.org>
13733
13734         clean-temp: Improve documentation.
13735         * lib/clean-temp.h: Explain better how to use this module.
13736         Reported by John Darrington <john@darrington.wattle.id.au>.
13737
13738 2011-06-17  Bruno Haible  <bruno@clisp.org>
13739
13740         pread, pwrite: Avoid cc warning on AIX.
13741         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13742         (pwrite): Likewise.
13743
13744 2011-06-17  Bruno Haible  <bruno@clisp.org>
13745
13746         spawn-pipe tests: Fix link error.
13747         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13749
13750 2011-06-17  Bruno Haible  <bruno@clisp.org>
13751
13752         Tests: Remove unnecessary dependency.
13753         * modules/canonicalize-tests (Depends-on): Remove progname.
13754         * modules/chown-tests (Depends-on): Likewise.
13755         * modules/dirname-tests (Depends-on): Likewise.
13756         * modules/fdopendir-tests (Depends-on): Likewise.
13757         * modules/fdutimensat-tests (Depends-on): Likewise.
13758         * modules/hash-tests (Depends-on): Likewise.
13759         * modules/lchown-tests (Depends-on): Likewise.
13760         * modules/linkat-tests (Depends-on): Likewise.
13761         * modules/renameat-tests (Depends-on): Likewise.
13762         * modules/spawn-pipe-tests (Depends-on): Likewise.
13763         * modules/utimensat-tests (Depends-on): Likewise.
13764
13765 2011-06-17  Bruno Haible  <bruno@clisp.org>
13766
13767         spawn-pipe tests: Fix link error.
13768         * tests/test-spawn-pipe-child.c: Undefine fflush.
13769
13770 2011-06-17  Bruno Haible  <bruno@clisp.org>
13771
13772         Fix tests link errors.
13773         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13774         * modules/chown-tests (Makefile.am): Don't link test-chown with
13775         LIBINTL.
13776         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13777         LIBINTL.
13778         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13779         LIBINTL.
13780         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13781         LIBINTL.
13782
13783 2011-06-16  Bruno Haible  <bruno@clisp.org>
13784
13785         crypto/gc-sha1: Fix recent regression.
13786         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13787         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13788
13789         crypto/gc-md5: Fix recent regression.
13790         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13791
13792         crypto/gc-md4: Fix recent regression.
13793         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13794         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13795
13796         crypto/gc-arctwo: Fix recent regression.
13797         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13798         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13799
13800         crypto/gc-rijndael: Fix recent regression.
13801         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13802         (configure.ac): Invoke AC_LIBOBJ here.
13803         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13805
13806         crypto/gc-hmac-sha1: Fix recent regression.
13807         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13808         (configure.ac): Invoke AC_LIBOBJ here.
13809         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13810         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13811
13812         crypto/gc-hmac-md5: Fix recent regression.
13813         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13814         (configure.ac): Invoke AC_LIBOBJ here.
13815         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13817
13818         crypto/gc-des: Fix recent regression.
13819         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13820         (configure.ac): Invoke AC_LIBOBJ here.
13821         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13822         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13823
13824         crypto/gc-arcfour: Fix recent regression.
13825         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13826         (configure.ac): Invoke AC_LIBOBJ here.
13827         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13828         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13829
13830 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13831
13832         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13833         After the 2011-05-21 change, this macro requires
13834         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13835         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13836
13837 2011-06-16  Bruno Haible  <bruno@clisp.org>
13838
13839         fprintftime: Move AC_LIBOBJ invocations to module description.
13840         * m4/fprintftime.m4: Remove file.
13841         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13842         (configure.ac): Remove gl_FPRINTFTIME call.
13843         (Makefile.am): Augment lib_SOURCES.
13844         Reported by Jim Meyering.
13845
13846 2011-06-16  Bruno Haible  <bruno@clisp.org>
13847
13848         tmpfile-safer: Finish 2011-05-23 commit.
13849         * m4/stdio-safer.m4: Really remove file.
13850         Reported by Jim Meyering.
13851
13852 2011-06-16  Bruno Haible  <bruno@clisp.org>
13853
13854         syntax-check: Fix typo.
13855         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13856         printf-posix.m4.
13857         Reported by Jim Meyering.
13858
13859 2011-06-13  Jim Meyering  <meyering@redhat.com>
13860
13861         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13862         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13863
13864 2011-05-23  Bruno Haible  <bruno@clisp.org>
13865
13866         yesno: Move AC_LIBOBJ invocations to module description.
13867         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13868         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13869
13870 2011-05-23  Bruno Haible  <bruno@clisp.org>
13871
13872         xstrtol: Move AC_LIBOBJ invocations to module description.
13873         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13874         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13875
13876 2011-05-23  Bruno Haible  <bruno@clisp.org>
13877
13878         xstrtold: Move AC_LIBOBJ invocations to module description.
13879         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13880         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13881
13882 2011-05-23  Bruno Haible  <bruno@clisp.org>
13883
13884         xstrtod: Move AC_LIBOBJ invocations to module description.
13885         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13886         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13887
13888 2011-05-23  Bruno Haible  <bruno@clisp.org>
13889
13890         xnanosleep: Move AC_LIBOBJ invocations to module description.
13891         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13892         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13893
13894 2011-05-23  Bruno Haible  <bruno@clisp.org>
13895
13896         xgetcwd: Move AC_LIBOBJ invocations to module description.
13897         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13898         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13899
13900 2011-05-23  Bruno Haible  <bruno@clisp.org>
13901
13902         xalloc: Move AC_LIBOBJ invocations to module description.
13903         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13904         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13905
13906 2011-05-23  Bruno Haible  <bruno@clisp.org>
13907
13908         write-any-file: Move AC_LIBOBJ invocations to module description.
13909         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13910         invocation.
13911         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13912
13913 2011-05-23  Bruno Haible  <bruno@clisp.org>
13914
13915         utimens: Move AC_LIBOBJ invocations to module description.
13916         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13917         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13918
13919 2011-05-23  Bruno Haible  <bruno@clisp.org>
13920
13921         utimecmp: Move AC_LIBOBJ invocations to module description.
13922         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13923         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13924
13925 2011-05-23  Bruno Haible  <bruno@clisp.org>
13926
13927         userspec: Move AC_LIBOBJ invocations to module description.
13928         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13929         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13930
13931 2011-05-23  Bruno Haible  <bruno@clisp.org>
13932
13933         unlinkdir: Move AC_LIBOBJ invocations to module description.
13934         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13935         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13936
13937 2011-05-23  Bruno Haible  <bruno@clisp.org>
13938
13939         unistd-safer: Move AC_LIBOBJ invocations to module description.
13940         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13941         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13942
13943 2011-05-23  Bruno Haible  <bruno@clisp.org>
13944
13945         tempname: Move AC_LIBOBJ invocations to module description.
13946         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13947         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13948
13949 2011-05-23  Bruno Haible  <bruno@clisp.org>
13950
13951         strftime: Move AC_LIBOBJ invocations to module description.
13952         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13953         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13954
13955 2011-05-23  Bruno Haible  <bruno@clisp.org>
13956
13957         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13958         * m4/stdlib-safer.m4: Remove file.
13959         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13960         (configure.ac): Remove gl_STDLIB_SAFER call.
13961         (Makefile.am): Augment lib_SOURCES.
13962
13963 2011-05-23  Bruno Haible  <bruno@clisp.org>
13964
13965         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13966         * m4/stdio-safer.m4: Remove file.
13967         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13968         (configure.ac): Remove gl_TMPFILE_SAFER call.
13969         (Makefile.am): Augment lib_SOURCES.
13970
13971 2011-05-23  Bruno Haible  <bruno@clisp.org>
13972
13973         popen-safer: Move AC_LIBOBJ invocations to module description.
13974         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13975         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13976         (configure.ac): Remove gl_POPEN_SAFER call.
13977         (Makefile.am): Augment lib_SOURCES.
13978
13979 2011-05-23  Bruno Haible  <bruno@clisp.org>
13980
13981         freopen-safer: Move AC_LIBOBJ invocations to module description.
13982         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13983         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13984         (configure.ac): Remove gl_FREOPEN_SAFER call.
13985         (Makefile.am): Augment lib_SOURCES.
13986
13987 2011-05-23  Bruno Haible  <bruno@clisp.org>
13988
13989         fopen-safer: Move AC_LIBOBJ invocations to module description.
13990         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13991         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13992         (configure.ac): Remove gl_FOPEN_SAFER call.
13993         (Makefile.am): Augment lib_SOURCES.
13994
13995 2011-05-23  Bruno Haible  <bruno@clisp.org>
13996
13997         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13998         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13999         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
14000
14001 2011-05-23  Bruno Haible  <bruno@clisp.org>
14002
14003         crypto/sha256: Move AC_LIBOBJ invocations to module description.
14004         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
14005         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
14006
14007 2011-05-23  Bruno Haible  <bruno@clisp.org>
14008
14009         crypto/sha1: Move AC_LIBOBJ invocations to module description.
14010         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
14011         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
14012
14013 2011-05-23  Bruno Haible  <bruno@clisp.org>
14014
14015         settime: Move AC_LIBOBJ invocations to module description.
14016         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
14017         * modules/settime (Makefile.am): Augment lib_SOURCES.
14018
14019 2011-05-23  Bruno Haible  <bruno@clisp.org>
14020
14021         savedir: Move AC_LIBOBJ invocations to module description.
14022         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
14023         * modules/savedir (Makefile.am): Augment lib_SOURCES.
14024
14025 2011-05-23  Bruno Haible  <bruno@clisp.org>
14026
14027         save-cwd: Move AC_LIBOBJ invocations to module description.
14028         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
14029         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
14030
14031 2011-05-23  Bruno Haible  <bruno@clisp.org>
14032
14033         same: Move AC_LIBOBJ invocations to module description.
14034         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
14035         * modules/same (Makefile.am): Augment lib_SOURCES.
14036
14037 2011-05-23  Bruno Haible  <bruno@clisp.org>
14038
14039         safe-write: Move AC_LIBOBJ invocations to module description.
14040         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
14041         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
14042         instead of gl_SAFE_WRITE.
14043         (Makefile.am): Augment lib_SOURCES.
14044
14045 2011-05-23  Bruno Haible  <bruno@clisp.org>
14046
14047         safe-read: Move AC_LIBOBJ invocations to module description.
14048         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
14049         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
14050         of gl_SAFE_READ.
14051         (Makefile.am): Augment lib_SOURCES.
14052
14053 2011-05-23  Bruno Haible  <bruno@clisp.org>
14054
14055         safe-alloc: Move AC_LIBOBJ invocations to module description.
14056         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
14057         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14058
14059 2011-05-23  Bruno Haible  <bruno@clisp.org>
14060
14061         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
14062         * m4/rijndael.m4: Remove file.
14063         * modules/crypto/rijndael (Files): Remove it.
14064         (configure.ac): Remove gl_RIJNDAEL call.
14065         (Makefile.am): Augment lib_SOURCES.
14066
14067 2011-05-23  Bruno Haible  <bruno@clisp.org>
14068
14069         readtokens: Move AC_LIBOBJ invocations to module description.
14070         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
14071         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
14072
14073 2011-05-23  Bruno Haible  <bruno@clisp.org>
14074
14075         read-file: Move AC_LIBOBJ invocations to module description.
14076         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
14077         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
14078         of gl_FUNC_READ_FILE.
14079         (Makefile.am): Augment lib_SOURCES.
14080
14081 2011-05-23  Bruno Haible  <bruno@clisp.org>
14082
14083         quotearg: Move AC_LIBOBJ invocations to module description.
14084         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
14085         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
14086
14087 2011-05-23  Bruno Haible  <bruno@clisp.org>
14088
14089         quote: Move AC_LIBOBJ invocations to module description.
14090         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
14091         * modules/quote (Makefile.am): Augment lib_SOURCES.
14092
14093 2011-05-23  Bruno Haible  <bruno@clisp.org>
14094
14095         posixver: Move AC_LIBOBJ invocations to module description.
14096         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
14097         * modules/posixver (Makefile.am): Augment lib_SOURCES.
14098
14099 2011-05-23  Bruno Haible  <bruno@clisp.org>
14100
14101         posixtm: Move AC_LIBOBJ invocations to module description.
14102         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
14103         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
14104
14105 2011-05-23  Bruno Haible  <bruno@clisp.org>
14106
14107         physmem: Move AC_LIBOBJ invocations to module description.
14108         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
14109         * modules/physmem (Makefile.am): Augment lib_SOURCES.
14110
14111 2011-05-23  Bruno Haible  <bruno@clisp.org>
14112
14113         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
14114         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
14115         invocation.
14116         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
14117
14118 2011-05-23  Bruno Haible  <bruno@clisp.org>
14119
14120         mpsort: Move AC_LIBOBJ invocations to module description.
14121         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
14122         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
14123
14124 2011-05-23  Bruno Haible  <bruno@clisp.org>
14125
14126         modechange: Move AC_LIBOBJ invocations to module description.
14127         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
14128         * modules/modechange (Makefile.am): Augment lib_SOURCES.
14129
14130 2011-05-23  Bruno Haible  <bruno@clisp.org>
14131
14132         mkdir-p: Move AC_LIBOBJ invocations to module description.
14133         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14134         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14135
14136 2011-05-23  Bruno Haible  <bruno@clisp.org>
14137
14138         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14139         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14140         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14141
14142 2011-05-23  Bruno Haible  <bruno@clisp.org>
14143
14144         mgetgroups: Move AC_LIBOBJ invocations to module description.
14145         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14146         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14147
14148 2011-05-23  Bruno Haible  <bruno@clisp.org>
14149
14150         memxor: Move AC_LIBOBJ invocations to module description.
14151         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14152         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14153
14154 2011-05-23  Bruno Haible  <bruno@clisp.org>
14155
14156         memcoll: Move AC_LIBOBJ invocations to module description.
14157         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14158         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14159
14160 2011-05-23  Bruno Haible  <bruno@clisp.org>
14161
14162         memcasecmp: Move AC_LIBOBJ invocations to module description.
14163         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14164         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14165
14166 2011-05-23  Bruno Haible  <bruno@clisp.org>
14167
14168         crypto/md5: Move AC_LIBOBJ invocations to module description.
14169         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14170         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14171
14172 2011-05-23  Bruno Haible  <bruno@clisp.org>
14173
14174         crypto/md4: Move AC_LIBOBJ invocations to module description.
14175         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14176         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14177
14178 2011-05-23  Bruno Haible  <bruno@clisp.org>
14179
14180         crypto/md2: Move AC_LIBOBJ invocations to module description.
14181         * m4/md2.m4: Remove file.
14182         * modules/crypto/md2 (Files): Remove it.
14183         (configure.ac): Remove gl_MD2 call.
14184         (Makefile.am): Augment lib_SOURCES.
14185
14186 2011-05-23  Bruno Haible  <bruno@clisp.org>
14187
14188         long-options: Move AC_LIBOBJ invocations to module description.
14189         * m4/long-options.m4: Remove file.
14190         * modules/long-options (Files): Remove it.
14191         (configure.ac): Remove gl_LONG_OPTIONS call.
14192         (Makefile.am): Augment lib_SOURCES.
14193
14194 2011-05-23  Bruno Haible  <bruno@clisp.org>
14195
14196         i-ring: Move AC_LIBOBJ invocations to module description.
14197         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14198         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14199
14200 2011-05-23  Bruno Haible  <bruno@clisp.org>
14201
14202         idcache: Move AC_LIBOBJ invocations to module description.
14203         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14204         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14205
14206 2011-05-23  Bruno Haible  <bruno@clisp.org>
14207
14208         human: Move AC_LIBOBJ invocations to module description.
14209         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14210         * modules/human (Makefile.am): Augment lib_SOURCES.
14211
14212 2011-05-23  Bruno Haible  <bruno@clisp.org>
14213
14214         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14215         * m4/hmac-sha1.m4: Remove file.
14216         * modules/crypto/hmac-sha1 (Files): Remove it.
14217         (configure.ac): Remove gl_HMAC_SHA1 call.
14218         (Makefile.am): Augment lib_SOURCES.
14219
14220 2011-05-23  Bruno Haible  <bruno@clisp.org>
14221
14222         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14223         * m4/hmac-md5.m4: Remove file.
14224         * modules/crypto/hmac-md5 (Files): Remove it.
14225         (configure.ac): Remove gl_HMAC_MD5 call.
14226         (Makefile.am): Augment lib_SOURCES.
14227
14228 2011-05-23  Bruno Haible  <bruno@clisp.org>
14229
14230         hash: Move AC_LIBOBJ invocations to module description.
14231         * m4/hash.m4: Remove file.
14232         * modules/hash (Files): Remove it.
14233         (configure.ac): Remove gl_HASH call.
14234         (Makefile.am): Augment lib_SOURCES.
14235
14236 2011-05-23  Bruno Haible  <bruno@clisp.org>
14237
14238         hard-locale: Move AC_LIBOBJ invocations to module description.
14239         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14240         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14241
14242 2011-05-23  Bruno Haible  <bruno@clisp.org>
14243
14244         getugroups: Move AC_LIBOBJ invocations to module description.
14245         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14246         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14247
14248 2011-05-23  Bruno Haible  <bruno@clisp.org>
14249
14250         gettime: Move AC_LIBOBJ invocations to module description.
14251         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14252         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14253
14254 2011-05-23  Bruno Haible  <bruno@clisp.org>
14255
14256         getndelim2: Move AC_LIBOBJ invocations to module description.
14257         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14258         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14259
14260 2011-05-23  Bruno Haible  <bruno@clisp.org>
14261
14262         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14263         * m4/gc-pbkdf2-sha1.m4: Remove file.
14264         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14265         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14266         (Makefile.am): Augment lib_SOURCES.
14267
14268 2011-05-23  Bruno Haible  <bruno@clisp.org>
14269
14270         fts: Move AC_LIBOBJ invocations to module description.
14271         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14272         * modules/fts (configure.ac): ... to here.
14273
14274 2011-05-23  Bruno Haible  <bruno@clisp.org>
14275
14276         file-type: Move AC_LIBOBJ invocations to module description.
14277         * m4/file-type.m4: Remove file.
14278         * modules/file-type (Files): Remove it.
14279         (configure.ac): Remove gl_FILE_TYPE call.
14280         (Makefile.am): Augment lib_SOURCES.
14281
14282 2011-05-23  Bruno Haible  <bruno@clisp.org>
14283
14284         filenamecat*: Respect rules for use of AC_LIBOBJ.
14285         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14286         Remove AC_LIBOBJ invocation.
14287         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14288         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14289
14290 2011-05-23  Bruno Haible  <bruno@clisp.org>
14291
14292         filemode: Move AC_LIBOBJ invocations to module description.
14293         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14294         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14295
14296 2011-05-23  Bruno Haible  <bruno@clisp.org>
14297
14298         openat-safer: Move AC_LIBOBJ invocations to module description.
14299         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14300         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14301
14302 2011-05-23  Bruno Haible  <bruno@clisp.org>
14303
14304         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14305         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14306         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14307
14308 2011-05-23  Bruno Haible  <bruno@clisp.org>
14309
14310         exclude: Move AC_LIBOBJ invocations to module description.
14311         * m4/exclude.m4: Remove file.
14312         * modules/exclude (Files): Remove it.
14313         (configure.ac): Remove gl_EXCLUDE call.
14314         (Makefile.am): Augment lib_SOURCES.
14315
14316 2011-05-23  Bruno Haible  <bruno@clisp.org>
14317
14318         dirname*: Respect rules for use of AC_LIBOBJ.
14319         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14320         invocations.
14321         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14322         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14323
14324 2011-05-23  Bruno Haible  <bruno@clisp.org>
14325
14326         dirent-safer: Move AC_LIBOBJ invocations to module description.
14327         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14328         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14329
14330 2011-05-23  Bruno Haible  <bruno@clisp.org>
14331
14332         crypto/des: Move AC_LIBOBJ invocations to module description.
14333         * m4/des.m4: Remove file.
14334         * modules/crypto/des (Files): Remove it.
14335         (configure.ac): Remove gl_DES call.
14336         (Makefile.am): Augment lib_SOURCES.
14337
14338 2011-05-23  Bruno Haible  <bruno@clisp.org>
14339
14340         cycle-check: Move AC_LIBOBJ invocations to module description.
14341         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14342         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14343
14344 2011-05-23  Bruno Haible  <bruno@clisp.org>
14345
14346         c-strtold: Move AC_LIBOBJ invocations to module description.
14347         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14348         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14349
14350 2011-05-23  Bruno Haible  <bruno@clisp.org>
14351
14352         c-strtod: Move AC_LIBOBJ invocations to module description.
14353         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14354         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14355
14356 2011-05-23  Bruno Haible  <bruno@clisp.org>
14357
14358         crc: Move AC_LIBOBJ invocations to module description.
14359         * m4/crc.m4: Remove file.
14360         * modules/crc (Files): Remove it.
14361         (configure.ac): Remove gl_CRC call.
14362         (Makefile.am): Augment lib_SOURCES.
14363
14364 2011-05-23  Bruno Haible  <bruno@clisp.org>
14365
14366         close-stream: Move AC_LIBOBJ invocations to module description.
14367         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14368         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14369
14370 2011-05-23  Bruno Haible  <bruno@clisp.org>
14371
14372         closeout: Move AC_LIBOBJ invocations to module description.
14373         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14374         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14375
14376 2011-05-23  Bruno Haible  <bruno@clisp.org>
14377
14378         closein: Move AC_LIBOBJ invocations to module description.
14379         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14380         * modules/closein (Makefile.am): Augment lib_SOURCES.
14381
14382 2011-05-23  Bruno Haible  <bruno@clisp.org>
14383
14384         cloexec: Move AC_LIBOBJ invocations to module description.
14385         * m4/cloexec.m4: Remove file.
14386         * modules/cloexec (Files): Remove it.
14387         (configure.ac): Remove gl_CLOEXEC call.
14388         (Makefile.am): Augment lib_SOURCES.
14389
14390 2011-05-23  Bruno Haible  <bruno@clisp.org>
14391
14392         check-version: Move AC_LIBOBJ invocations to module description.
14393         * m4/check-version.m4: Remove file.
14394         * modules/check-version (Files): Remove it.
14395         (configure.ac): Remove gl_CHECK_VERSION call.
14396         (Makefile.am): Augment lib_SOURCES.
14397
14398 2011-05-23  Bruno Haible  <bruno@clisp.org>
14399
14400         chdir-safer: Move AC_LIBOBJ invocations to module description.
14401         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14402         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14403
14404 2011-05-23  Bruno Haible  <bruno@clisp.org>
14405
14406         canonicalize: Move AC_LIBOBJ invocations to module description.
14407         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14408         AC_LIBOBJ invocation.
14409         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14410
14411 2011-05-23  Bruno Haible  <bruno@clisp.org>
14412
14413         canon-host: Move AC_LIBOBJ invocations to module description.
14414         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14415         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14416         instead of gl_CANON_HOST.
14417         (Makefile.am): Augment lib_SOURCES.
14418
14419 2011-05-23  Bruno Haible  <bruno@clisp.org>
14420
14421         backupfile: Move AC_LIBOBJ invocations to module description.
14422         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14423         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14424
14425 2011-05-23  Bruno Haible  <bruno@clisp.org>
14426
14427         argmatch: Move AC_LIBOBJ invocations to module description.
14428         * m4/argmatch.m4: Remove file.
14429         * modules/argmatch (Files): Remove it.
14430         (configure.ac): Remove gl_ARGMATCH call.
14431         (Makefile.am): Augment lib_SOURCES.
14432
14433 2011-05-23  Bruno Haible  <bruno@clisp.org>
14434
14435         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14436         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14437         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14438
14439 2011-05-23  Bruno Haible  <bruno@clisp.org>
14440
14441         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14442         * m4/arcfour.m4: Remove file.
14443         * modules/crypto/arcfour (Files): Remove it.
14444         (configure.ac): Remove gl_ARCFOUR call.
14445         (Makefile.am): Augment lib_SOURCES.
14446
14447 2011-05-22  Bruno Haible  <bruno@clisp.org>
14448
14449         write: Move AC_LIBOBJ invocations to module description.
14450         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14451         * modules/write (configure.ac): ... to here.
14452
14453 2011-05-22  Bruno Haible  <bruno@clisp.org>
14454
14455         wmemset: Move AC_LIBOBJ invocations to module description.
14456         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14457         here...
14458         * modules/wmemset (configure.ac): ... to here.
14459
14460 2011-05-22  Bruno Haible  <bruno@clisp.org>
14461
14462         wmemmove: Move AC_LIBOBJ invocations to module description.
14463         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14464         here...
14465         * modules/wmemmove (configure.ac): ... to here.
14466
14467 2011-05-22  Bruno Haible  <bruno@clisp.org>
14468
14469         wmemcpy: Move AC_LIBOBJ invocations to module description.
14470         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14471         here...
14472         * modules/wmemcpy (configure.ac): ... to here.
14473
14474 2011-05-22  Bruno Haible  <bruno@clisp.org>
14475
14476         wmemcmp: Move AC_LIBOBJ invocations to module description.
14477         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14478         here...
14479         * modules/wmemcmp (configure.ac): ... to here.
14480
14481 2011-05-22  Bruno Haible  <bruno@clisp.org>
14482
14483         wmemchr: Move AC_LIBOBJ invocations to module description.
14484         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14485         here...
14486         * modules/wmemchr (configure.ac): ... to here.
14487
14488 2011-05-22  Bruno Haible  <bruno@clisp.org>
14489
14490         wcswidth: Move AC_LIBOBJ invocations to module description.
14491         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14492         here...
14493         * modules/wcswidth (configure.ac): ... to here.
14494
14495 2011-05-22  Bruno Haible  <bruno@clisp.org>
14496
14497         wcwidth: Respect rules for use of AC_LIBOBJ.
14498         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14499         invocation from here...
14500         * modules/wcwidth (configure.ac): ... to here.
14501         (Depends-on): Update conditions.
14502
14503 2011-05-22  Bruno Haible  <bruno@clisp.org>
14504
14505         wctype: Move AC_LIBOBJ invocations to module description.
14506         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14507         invocation from here...
14508         * modules/wctype (configure.ac): ... to here.
14509         (Depends-on): Update conditions.
14510
14511 2011-05-22  Bruno Haible  <bruno@clisp.org>
14512
14513         wctrans: Move AC_LIBOBJ invocations to module description.
14514         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14515         invocation from here...
14516         * modules/wctrans (configure.ac): ... to here.
14517
14518 2011-05-22  Bruno Haible  <bruno@clisp.org>
14519
14520         wctomb: Move AC_LIBOBJ invocations to module description.
14521         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14522         invocations from here...
14523         * modules/wctomb (configure.ac): ... to here.
14524
14525 2011-05-22  Bruno Haible  <bruno@clisp.org>
14526
14527         wctob: Move AC_LIBOBJ invocations to module description.
14528         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14529         gl_PREREQ_WCTOB invocations from here...
14530         * modules/wctob (configure.ac): ... to here.
14531         (Depends-on): Update conditions.
14532
14533 2011-05-22  Bruno Haible  <bruno@clisp.org>
14534
14535         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14536         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14537         here...
14538         * modules/wcsxfrm (configure.ac): ... to here.
14539
14540 2011-05-22  Bruno Haible  <bruno@clisp.org>
14541
14542         wcstok: Move AC_LIBOBJ invocations to module description.
14543         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14544         * modules/wcstok (configure.ac): ... to here.
14545
14546 2011-05-22  Bruno Haible  <bruno@clisp.org>
14547
14548         wcsstr: Move AC_LIBOBJ invocations to module description.
14549         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14550         * modules/wcsstr (configure.ac): ... to here.
14551
14552 2011-05-22  Bruno Haible  <bruno@clisp.org>
14553
14554         wcsspn: Move AC_LIBOBJ invocations to module description.
14555         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14556         * modules/wcsspn (configure.ac): ... to here.
14557
14558 2011-05-22  Bruno Haible  <bruno@clisp.org>
14559
14560         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14561         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14562         gl_PREREQ_WCSRTOMBS invocations from here...
14563         * modules/wcsrtombs (configure.ac): ... to here.
14564
14565 2011-05-22  Bruno Haible  <bruno@clisp.org>
14566
14567         wcsrchr: Move AC_LIBOBJ invocations to module description.
14568         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14569         here...
14570         * modules/wcsrchr (configure.ac): ... to here.
14571
14572 2011-05-22  Bruno Haible  <bruno@clisp.org>
14573
14574         wcspbrk: Move AC_LIBOBJ invocations to module description.
14575         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14576         here...
14577         * modules/wcspbrk (configure.ac): ... to here.
14578
14579 2011-05-22  Bruno Haible  <bruno@clisp.org>
14580
14581         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14582         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14583         gl_PREREQ_WCSNRTOMBS invocations from here...
14584         * modules/wcsnrtombs (configure.ac): ... to here.
14585
14586 2011-05-22  Bruno Haible  <bruno@clisp.org>
14587
14588         wcsnlen: Move AC_LIBOBJ invocations to module description.
14589         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14590         here...
14591         * modules/wcsnlen (configure.ac): ... to here.
14592
14593 2011-05-22  Bruno Haible  <bruno@clisp.org>
14594
14595         wcsncpy: Move AC_LIBOBJ invocations to module description.
14596         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14597         here...
14598         * modules/wcsncpy (configure.ac): ... to here.
14599
14600 2011-05-22  Bruno Haible  <bruno@clisp.org>
14601
14602         wcsncmp: Move AC_LIBOBJ invocations to module description.
14603         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14604         here...
14605         * modules/wcsncmp (configure.ac): ... to here.
14606
14607 2011-05-22  Bruno Haible  <bruno@clisp.org>
14608
14609         wcsncat: Move AC_LIBOBJ invocations to module description.
14610         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14611         here...
14612         * modules/wcsncat (configure.ac): ... to here.
14613
14614 2011-05-22  Bruno Haible  <bruno@clisp.org>
14615
14616         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14617         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14618         from here...
14619         * modules/wcsncasecmp (configure.ac): ... to here.
14620
14621 2011-05-22  Bruno Haible  <bruno@clisp.org>
14622
14623         wcslen: Move AC_LIBOBJ invocations to module description.
14624         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14625         * modules/wcslen (configure.ac): ... to here.
14626
14627 2011-05-22  Bruno Haible  <bruno@clisp.org>
14628
14629         wcsdup: Move AC_LIBOBJ invocations to module description.
14630         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14631         * modules/wcsdup (configure.ac): ... to here.
14632
14633 2011-05-22  Bruno Haible  <bruno@clisp.org>
14634
14635         wcscspn: Move AC_LIBOBJ invocations to module description.
14636         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14637         here...
14638         * modules/wcscspn (configure.ac): ... to here.
14639
14640 2011-05-22  Bruno Haible  <bruno@clisp.org>
14641
14642         wcscpy: Move AC_LIBOBJ invocations to module description.
14643         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14644         * modules/wcscpy (configure.ac): ... to here.
14645
14646 2011-05-22  Bruno Haible  <bruno@clisp.org>
14647
14648         wcscoll: Move AC_LIBOBJ invocations to module description.
14649         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14650         here...
14651         * modules/wcscoll (configure.ac): ... to here.
14652
14653 2011-05-22  Bruno Haible  <bruno@clisp.org>
14654
14655         wcscmp: Move AC_LIBOBJ invocations to module description.
14656         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14657         * modules/wcscmp (configure.ac): ... to here.
14658
14659 2011-05-22  Bruno Haible  <bruno@clisp.org>
14660
14661         wcschr: Move AC_LIBOBJ invocations to module description.
14662         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14663         * modules/wcschr (configure.ac): ... to here.
14664
14665 2011-05-22  Bruno Haible  <bruno@clisp.org>
14666
14667         wcscat: Move AC_LIBOBJ invocations to module description.
14668         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14669         * modules/wcscat (configure.ac): ... to here.
14670
14671 2011-05-22  Bruno Haible  <bruno@clisp.org>
14672
14673         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14674         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14675         here...
14676         * modules/wcscasecmp (configure.ac): ... to here.
14677
14678 2011-05-22  Bruno Haible  <bruno@clisp.org>
14679
14680         wcrtomb: Move AC_LIBOBJ invocations to module description.
14681         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14682         invocations from here...
14683         * modules/wcrtomb (configure.ac): ... to here.
14684
14685 2011-05-22  Bruno Haible  <bruno@clisp.org>
14686
14687         wcpncpy: Move AC_LIBOBJ invocations to module description.
14688         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14689         here...
14690         * modules/wcpncpy (configure.ac): ... to here.
14691
14692 2011-05-22  Bruno Haible  <bruno@clisp.org>
14693
14694         wcpcpy: Move AC_LIBOBJ invocations to module description.
14695         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14696         * modules/wcpcpy (configure.ac): ... to here.
14697
14698 2011-05-22  Bruno Haible  <bruno@clisp.org>
14699
14700         waitpid: Move AC_LIBOBJ invocations to module description.
14701         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14702         invocation from here...
14703         * modules/waitpid (configure.ac): ... to here.
14704
14705 2011-05-22  Bruno Haible  <bruno@clisp.org>
14706
14707         utimensat: Move AC_LIBOBJ invocations to module description.
14708         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14709         here...
14710         * modules/utimensat (configure.ac): ... to here.
14711
14712 2011-05-22  Bruno Haible  <bruno@clisp.org>
14713
14714         usleep: Move AC_LIBOBJ invocations to module description.
14715         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14716         here...
14717         * modules/usleep (configure.ac): ... to here.
14718
14719 2011-05-22  Bruno Haible  <bruno@clisp.org>
14720
14721         unlockpt: Move AC_LIBOBJ invocations to module description.
14722         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14723         gl_PREREQ_UNLOCKPT invocations from here...
14724         * modules/unlockpt (configure.ac): ... to here.
14725
14726 2011-05-22  Bruno Haible  <bruno@clisp.org>
14727
14728         unlink: Respect rules for use of AC_LIBOBJ.
14729         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14730         * modules/unlink (configure.ac): ... to here.
14731
14732 2011-05-22  Bruno Haible  <bruno@clisp.org>
14733
14734         uname: Move AC_LIBOBJ invocations to module description.
14735         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14737         here...
14738         * modules/uname (configure.ac): ... to here.
14739
14740 2011-05-22  Bruno Haible  <bruno@clisp.org>
14741
14742         ttyname_r: Move AC_LIBOBJ invocations to module description.
14743         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14744         gl_PREREQ_TTYNAME_R invocations from here...
14745         * modules/ttyname_r (configure.ac): ... to here.
14746
14747 2011-05-22  Bruno Haible  <bruno@clisp.org>
14748
14749         tsearch: Move AC_LIBOBJ invocations to module description.
14750         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14751         invocations from here...
14752         * modules/tsearch (configure.ac): ... to here.
14753
14754 2011-05-22  Bruno Haible  <bruno@clisp.org>
14755
14756         towctrans: Move AC_LIBOBJ invocations to module description.
14757         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14758         AC_LIBOBJ invocation from here...
14759         * modules/towctrans (configure.ac): ... to here.
14760
14761 2011-05-22  Bruno Haible  <bruno@clisp.org>
14762
14763         tmpfile: Move AC_LIBOBJ invocations to module description.
14764         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14765         invocations from here...
14766         * modules/tmpfile (configure.ac): ... to here.
14767
14768 2011-05-22  Bruno Haible  <bruno@clisp.org>
14769
14770         times: Move AC_LIBOBJ invocations to module description.
14771         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14772         * modules/times (configure.ac): ... to here.
14773
14774 2011-05-22  Bruno Haible  <bruno@clisp.org>
14775
14776         time_r: Move AC_LIBOBJ invocations to module description.
14777         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14778         invocations from here...
14779         * modules/time_r (configure.ac): ... to here.
14780
14781 2011-05-22  Bruno Haible  <bruno@clisp.org>
14782
14783         timegm: Move AC_LIBOBJ invocations to module description.
14784         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14785         invocations from here...
14786         * modules/timegm (configure.ac): ... to here.
14787
14788 2011-05-22  Bruno Haible  <bruno@clisp.org>
14789
14790         tcgetsid: Move AC_LIBOBJ invocations to module description.
14791         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14792         and gl_PREREQ_TCGETSID invocations from here...
14793         * modules/tcgetsid (configure.ac): ... to here.
14794         (Depends-on): Update conditions.
14795
14796 2011-05-22  Bruno Haible  <bruno@clisp.org>
14797
14798         symlinkat: Move AC_LIBOBJ invocations to module description.
14799         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14800         here...
14801         * modules/symlinkat (configure.ac): ... to here.
14802
14803 2011-05-22  Bruno Haible  <bruno@clisp.org>
14804
14805         symlink: Move AC_LIBOBJ invocations to module description.
14806         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14807         here...
14808         * modules/symlink (configure.ac): ... to here.
14809
14810 2011-05-22  Bruno Haible  <bruno@clisp.org>
14811
14812         strverscmp: Move AC_LIBOBJ invocations to module description.
14813         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14815         from here...
14816         * modules/strverscmp (configure.ac): ... to here.
14817
14818 2011-05-22  Bruno Haible  <bruno@clisp.org>
14819
14820         strtok_r: Move AC_LIBOBJ invocations to module description.
14821         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14822         and gl_PREREQ_STRTOK_R invocations from here...
14823         * modules/strtok_r (configure.ac): ... to here.
14824         (Depends-on): Update conditions.
14825
14826 2011-05-22  Bruno Haible  <bruno@clisp.org>
14827
14828         strtoumax: Move AC_LIBOBJ invocations to module description.
14829         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14830         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14831         from here...
14832         * modules/strtoumax (configure.ac): ... to here.
14833
14834 2011-05-22  Bruno Haible  <bruno@clisp.org>
14835
14836         strtoimax: Move AC_LIBOBJ invocations to module description.
14837         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14838         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14839         from here...
14840         * modules/strtoimax (configure.ac): ... to here.
14841
14842 2011-05-22  Bruno Haible  <bruno@clisp.org>
14843
14844         strtoull: Move AC_LIBOBJ invocations to module description.
14845         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14846         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14847         from here...
14848         * modules/strtoull (configure.ac): ... to here.
14849
14850 2011-05-22  Bruno Haible  <bruno@clisp.org>
14851
14852         strtoll: Move AC_LIBOBJ invocations to module description.
14853         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14854         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14855         here...
14856         * modules/strtoll (configure.ac): ... to here.
14857
14858 2011-05-22  Bruno Haible  <bruno@clisp.org>
14859
14860         strtoul: Move AC_LIBOBJ invocations to module description.
14861         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14862         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14863         * modules/strtoul (configure.ac): ... to here.
14864
14865 2011-05-22  Bruno Haible  <bruno@clisp.org>
14866
14867         strtol: Move AC_LIBOBJ invocations to module description.
14868         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14869         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14870         * modules/strtol (configure.ac): ... to here.
14871
14872 2011-05-22  Bruno Haible  <bruno@clisp.org>
14873
14874         strtod: Move AC_LIBOBJ invocations to module description.
14875         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14876         invocations from here...
14877         * modules/strtod (configure.ac): ... to here.
14878
14879 2011-05-22  Bruno Haible  <bruno@clisp.org>
14880
14881         strstr*: Move AC_LIBOBJ invocations to module description.
14882         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14883         invocations from here...
14884         * modules/strstr-simple (configure.ac): ... to here.
14885         * modules/strstr (configure.ac): ... and here.
14886
14887 2011-05-22  Bruno Haible  <bruno@clisp.org>
14888
14889         strsignal: Move AC_LIBOBJ invocations to module description.
14890         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14891         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14892         * modules/strsignal (configure.ac): ... to here.
14893         (Depends-on): Update conditions.
14894
14895 2011-05-22  Bruno Haible  <bruno@clisp.org>
14896
14897         strsep: Move AC_LIBOBJ invocations to module description.
14898         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14899         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14900         here...
14901         * modules/strsep (configure.ac): ... to here.
14902
14903 2011-05-22  Bruno Haible  <bruno@clisp.org>
14904
14905         strptime: Move AC_LIBOBJ invocations to module description.
14906         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14907         gl_PREREQ_STRPTIME invocations from here...
14908         * modules/strptime (configure.ac): ... to here.
14909
14910 2011-05-22  Bruno Haible  <bruno@clisp.org>
14911
14912         strpbrk: Move AC_LIBOBJ invocations to module description.
14913         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14915         here...
14916         * modules/strpbrk (configure.ac): ... to here.
14917
14918 2011-05-22  Bruno Haible  <bruno@clisp.org>
14919
14920         strnlen: Move AC_LIBOBJ invocations to module description.
14921         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14922         invocations from here...
14923         * modules/strnlen (configure.ac): ... to here.
14924
14925 2011-05-22  Bruno Haible  <bruno@clisp.org>
14926
14927         strndup: Move AC_LIBOBJ invocations to module description.
14928         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14929         invocations from here...
14930         * modules/strndup (configure.ac): ... to here.
14931         (Depends-on): Update conditions.
14932
14933 2011-05-22  Bruno Haible  <bruno@clisp.org>
14934
14935         strncat: Move AC_LIBOBJ invocations to module description.
14936         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14937         invocations from here...
14938         * modules/strncat (configure.ac): ... to here.
14939
14940 2011-05-22  Bruno Haible  <bruno@clisp.org>
14941
14942         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14943         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14944         invocations from here...
14945         * modules/strdup (configure.ac): ... to here.
14946         * modules/strdup-posix (configure.ac): ... and here.
14947
14948 2011-05-22  Bruno Haible  <bruno@clisp.org>
14949
14950         strcspn: Move AC_LIBOBJ invocations to module description.
14951         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14952         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14953         here...
14954         * modules/strcspn (configure.ac): ... to here.
14955
14956 2011-05-22  Bruno Haible  <bruno@clisp.org>
14957
14958         strchrnul: Move AC_LIBOBJ invocations to module description.
14959         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14960         gl_PREREQ_STRCHRNUL invocations from here...
14961         * modules/strchrnul (configure.ac): ... to here.
14962
14963 2011-05-22  Bruno Haible  <bruno@clisp.org>
14964
14965         strcasestr*: Move AC_LIBOBJ invocations to module description.
14966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14967         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14968         * modules/strcasestr-simple (configure.ac): ... to here.
14969         * modules/strcasestr (configure.ac): ... and here.
14970
14971 2011-05-22  Bruno Haible  <bruno@clisp.org>
14972
14973         strcase: Move AC_LIBOBJ invocations to module description.
14974         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14975         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14976         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14977         gl_PREREQ_STRNCASECMP invocations from here...
14978         * modules/strcase (configure.ac): ... to here.
14979
14980 2011-05-22  Bruno Haible  <bruno@clisp.org>
14981
14982         stpncpy: Move AC_LIBOBJ invocations to module description.
14983         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14984         here...
14985         * modules/stpncpy (configure.ac): ... to here.
14986
14987 2011-05-22  Bruno Haible  <bruno@clisp.org>
14988
14989         stpcpy: Move AC_LIBOBJ invocations to module description.
14990         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14991         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14992         here...
14993         * modules/stpcpy (configure.ac): ... to here.
14994
14995 2011-05-21  Bruno Haible  <bruno@clisp.org>
14996
14997         stat: Move AC_LIBOBJ invocations to module description.
14998         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14999         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
15000         here...
15001         * modules/stat (configure.ac): ... to here.
15002
15003 2011-05-21  Bruno Haible  <bruno@clisp.org>
15004
15005         sleep: Move AC_LIBOBJ invocations to module description.
15006         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
15007         * modules/sleep (configure.ac): ... to here.
15008
15009 2011-05-21  Bruno Haible  <bruno@clisp.org>
15010
15011         signbit: Move AC_LIBOBJ invocations to module description.
15012         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
15013         * modules/signbit (configure.ac): ... to here.
15014
15015 2011-05-21  Bruno Haible  <bruno@clisp.org>
15016
15017         sigprocmask: Move AC_LIBOBJ invocations to module description.
15018         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
15019         gl_PREREQ_SIGPROMASK invocations from here...
15020         * modules/sigprocmask (configure.ac): ... to here.
15021
15022 2011-05-21  Bruno Haible  <bruno@clisp.org>
15023
15024         sigaction: Move AC_LIBOBJ invocations to module description.
15025         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
15026         gl_PREREQ_SIGACTION invocations from here...
15027         * modules/sigaction (configure.ac): ... to here.
15028
15029 2011-05-21  Bruno Haible  <bruno@clisp.org>
15030
15031         sig2str: Move AC_LIBOBJ invocations to module description.
15032         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
15033         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
15034         here...
15035         * modules/sig2str (configure.ac): ... to here.
15036
15037 2011-05-21  Bruno Haible  <bruno@clisp.org>
15038
15039         setlocale: Move AC_LIBOBJ invocations to module description.
15040         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
15041         gl_PREREQ_SETLOCALE invocations from here...
15042         * modules/setlocale (configure.ac): ... to here.
15043
15044 2011-05-21  Bruno Haible  <bruno@clisp.org>
15045
15046         unsetenv: Move AC_LIBOBJ invocations to module description.
15047         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
15048         and gl_PREREQ_UNSETENV invocations from here...
15049         * modules/unsetenv (configure.ac): ... to here.
15050         (Depends-on): Update.
15051
15052 2011-05-21  Bruno Haible  <bruno@clisp.org>
15053
15054         setenv: Move AC_LIBOBJ invocations to module description.
15055         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
15056         here...
15057         * modules/setenv (configure.ac): ... to here.
15058
15059 2011-05-21  Bruno Haible  <bruno@clisp.org>
15060
15061         selinux-h: Move AC_LIBOBJ invocations to module description.
15062         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
15063         AC_LIBOBJ invocation from here...
15064         * modules/selinux-h (configure.ac): ... to here.
15065
15066 2011-05-21  Bruno Haible  <bruno@clisp.org>
15067
15068         select: Respect rules for use of AC_LIBOBJ.
15069         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
15070         here...
15071         * modules/select (configure.ac): ... to here.
15072
15073 2011-05-21  Bruno Haible  <bruno@clisp.org>
15074
15075         scandir: Move AC_LIBOBJ invocations to module description.
15076         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
15077         invocations from here...
15078         * modules/scandir (configure.ac): ... to here.
15079
15080 2011-05-21  Bruno Haible  <bruno@clisp.org>
15081
15082         rpmatch: Move AC_LIBOBJ invocations to module description.
15083         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
15084         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
15085         here...
15086         * modules/rpmatch (configure.ac): ... to here.
15087
15088 2011-05-21  Bruno Haible  <bruno@clisp.org>
15089
15090         rmdir: Respect rules for use of AC_LIBOBJ.
15091         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
15092         * modules/rmdir (configure.ac): ... to here.
15093
15094 2011-05-21  Bruno Haible  <bruno@clisp.org>
15095
15096         renameat: Move AC_LIBOBJ invocations to module description.
15097         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
15098         here...
15099         * modules/renameat (configure.ac): ... to here.
15100
15101 2011-05-21  Bruno Haible  <bruno@clisp.org>
15102
15103         rename: Respect rules for use of AC_LIBOBJ.
15104         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
15105         here...
15106         * modules/rename (configure.ac): ... to here.
15107
15108 2011-05-21  Bruno Haible  <bruno@clisp.org>
15109
15110         remove: Move AC_LIBOBJ invocations to module description.
15111         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
15112         here...
15113         * modules/remove (configure.ac): ... to here.
15114
15115 2011-05-21  Bruno Haible  <bruno@clisp.org>
15116
15117         relocatable-lib: Move AC_LIBOBJ invocations to module description.
15118         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
15119         macro.
15120         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
15121         * modules/relocatable-lib (configure.ac): ... to here.
15122         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15123         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
15124
15125 2011-05-21  Bruno Haible  <bruno@clisp.org>
15126
15127         relocatable-prog: Move AC_LIBOBJ invocations to module description.
15128         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
15129         here...
15130         * modules/relocatable-prog (configure.ac): ... to here.
15131
15132 2011-05-21  Bruno Haible  <bruno@clisp.org>
15133
15134         regex: Move AC_LIBOBJ invocations to module description.
15135         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15136         invocations from here...
15137         * modules/regex (configure.ac): ... to here.
15138
15139 2011-05-21  Bruno Haible  <bruno@clisp.org>
15140
15141         realloc-*: Move AC_LIBOBJ invocations to module description.
15142         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15143         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15144         AC_LIBOBJ invocations from here...
15145         * modules/realloc-gnu (configure.ac): ... to here.
15146         * modules/realloc-posix (configure.ac): ... and here.
15147
15148 2011-05-21  Bruno Haible  <bruno@clisp.org>
15149
15150         readutmp: Move AC_LIBOBJ invocations to module description.
15151         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15152         * modules/readutmp (configure.ac): ... to here.
15153
15154 2011-05-21  Bruno Haible  <bruno@clisp.org>
15155
15156         readlinkat: Move AC_LIBOBJ invocations to module description.
15157         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15158         here...
15159         * modules/readlinkat (configure.ac): ... to here.
15160
15161 2011-05-21  Bruno Haible  <bruno@clisp.org>
15162
15163         readlink: Move AC_LIBOBJ invocations to module description.
15164         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15165         gl_PREREQ_READLINK invocations from here...
15166         * modules/readlink (configure.ac): ... to here.
15167
15168 2011-05-21  Bruno Haible  <bruno@clisp.org>
15169
15170         readline: Move AC_LIBOBJ invocations to module description.
15171         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15172         gl_PREREQ_READLINE invocations from here...
15173         * modules/readline (configure.ac): ... to here.
15174
15175 2011-05-21  Bruno Haible  <bruno@clisp.org>
15176
15177         read: Move AC_LIBOBJ invocations to module description.
15178         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15179         * modules/read (configure.ac): ... to here.
15180
15181 2011-05-21  Bruno Haible  <bruno@clisp.org>
15182
15183         rawmemchr: Move AC_LIBOBJ invocations to module description.
15184         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15185         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15186         from here...
15187         * modules/rawmemchr (configure.ac): ... to here.
15188
15189 2011-05-21  Bruno Haible  <bruno@clisp.org>
15190
15191         random_r: Move AC_LIBOBJ invocations to module description.
15192         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15193         gl_PREREQ_RANDOM_R invocations from here...
15194         * modules/random_r (configure.ac): ... to here.
15195
15196 2011-05-21  Bruno Haible  <bruno@clisp.org>
15197
15198         pwrite: Move AC_LIBOBJ invocations to module description.
15199         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15200         * modules/pwrite (configure.ac): ... to here.
15201
15202 2011-05-21  Bruno Haible  <bruno@clisp.org>
15203
15204         putenv: Move AC_LIBOBJ invocations to module description.
15205         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15206         * modules/putenv (configure.ac): ... to here.
15207
15208 2011-05-21  Bruno Haible  <bruno@clisp.org>
15209
15210         login_tty: Move AC_LIBOBJ invocations to module description.
15211         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15212         * modules/login_tty (configure.ac): ... to here.
15213
15214 2011-05-21  Bruno Haible  <bruno@clisp.org>
15215
15216         openpty: Move AC_LIBOBJ invocations to module description.
15217         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15218         * modules/openpty (configure.ac): ... to here.
15219
15220 2011-05-21  Bruno Haible  <bruno@clisp.org>
15221
15222         forkpty: Move AC_LIBOBJ invocations to module description.
15223         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15224         * modules/forkpty (configure.ac): ... to here.
15225
15226 2011-05-21  Bruno Haible  <bruno@clisp.org>
15227
15228         ptsname: Move AC_LIBOBJ invocations to module description.
15229         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15230         invocations from here...
15231         * modules/ptsname (configure.ac): ... to here.
15232
15233 2011-05-21  Bruno Haible  <bruno@clisp.org>
15234
15235         pread: Move AC_LIBOBJ invocations to module description.
15236         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15237         * modules/pread (configure.ac): ... to here.
15238
15239 2011-05-21  Bruno Haible  <bruno@clisp.org>
15240
15241         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15242         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15243         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15244         * modules/posix_spawn (configure.ac): ... to here.
15245         * modules/posix_spawnp (configure.ac): ... and here.
15246
15247 2011-05-21  Bruno Haible  <bruno@clisp.org>
15248
15249         popen: Move AC_LIBOBJ invocations to module description.
15250         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15251         invocations from here...
15252         * modules/popen (configure.ac): ... to here.
15253
15254 2011-05-21  Bruno Haible  <bruno@clisp.org>
15255
15256         poll: Move AC_LIBOBJ invocations to module description.
15257         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15258         invocations from here...
15259         * modules/poll (configure.ac): ... to here.
15260
15261 2011-05-21  Bruno Haible  <bruno@clisp.org>
15262
15263         pipe-posix: Move AC_LIBOBJ invocations to module description.
15264         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15265         * modules/pipe-posix (configure.ac): ... to here.
15266
15267 2011-05-21  Bruno Haible  <bruno@clisp.org>
15268
15269         openat: Respect rules for use of AC_LIBOBJ.
15270         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15271         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15272         * modules/openat (configure.ac): ... to here.
15273
15274 2011-05-21  Bruno Haible  <bruno@clisp.org>
15275
15276         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15277         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15278         invocation from here...
15279         * modules/obstack-printf (configure.ac): ... to here.
15280         * modules/obstack-printf-posix (configure.ac): ... and here.
15281
15282 2011-05-21  Bruno Haible  <bruno@clisp.org>
15283
15284         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15285         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15286         from here...
15287         * modules/nl_langinfo (configure.ac): ... to here.
15288
15289 2011-05-21  Bruno Haible  <bruno@clisp.org>
15290
15291         nanosleep: Move AC_LIBOBJ invocations to module description.
15292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15293         gl_PREREQ_NANOSLEEP invocations from here...
15294         * modules/nanosleep (configure.ac): ... to here.
15295
15296 2011-05-21  Bruno Haible  <bruno@clisp.org>
15297
15298         mountlist: Move AC_LIBOBJ invocations to module description.
15299         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15300         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15301         * modules/mountlist (configure.ac): ... to here.
15302
15303 2011-05-21  Bruno Haible  <bruno@clisp.org>
15304
15305         mktime: Respect rules for use of AC_LIBOBJ.
15306         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15307         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15308         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15309         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15310         * modules/mktime (configure.ac): ... to here.
15311         * modules/mktime-internal (configure.ac): ... and here.
15312         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15313
15314 2011-05-21  Bruno Haible  <bruno@clisp.org>
15315
15316         mkstemps: Move AC_LIBOBJ invocations to module description.
15317         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15318         here...
15319         * modules/mkstemps (configure.ac): ... to here.
15320
15321 2011-05-21  Bruno Haible  <bruno@clisp.org>
15322
15323         mkstemp: Move AC_LIBOBJ invocations to module description.
15324         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15325         gl_PREREQ_MKSTEMP invocations from here...
15326         * modules/mkstemp (configure.ac): ... to here.
15327
15328 2011-05-21  Bruno Haible  <bruno@clisp.org>
15329
15330         mkostemps: Move AC_LIBOBJ invocations to module description.
15331         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15332         here...
15333         * modules/mkostemps (configure.ac): ... to here.
15334
15335 2011-05-21  Bruno Haible  <bruno@clisp.org>
15336
15337         mkostemp: Move AC_LIBOBJ invocations to module description.
15338         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15339         gl_PREREQ_MKOSTEMP invocations from here...
15340         * modules/mkostemp (configure.ac): ... to here.
15341
15342 2011-05-21  Bruno Haible  <bruno@clisp.org>
15343
15344         mknod: Move AC_LIBOBJ invocations to module description.
15345         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15346         * modules/mknod (configure.ac): ... to here.
15347
15348 2011-05-21  Bruno Haible  <bruno@clisp.org>
15349
15350         mkfifoat: Move AC_LIBOBJ invocations to module description.
15351         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15352         here...
15353         * modules/mkfifoat (configure.ac): ... to here.
15354
15355 2011-05-21  Bruno Haible  <bruno@clisp.org>
15356
15357         mkfifo: Respect rules for use of AC_LIBOBJ.
15358         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15359         here...
15360         * modules/mkfifo (configure.ac): ... to here.
15361
15362 2011-05-21  Bruno Haible  <bruno@clisp.org>
15363
15364         mkdtemp: Move AC_LIBOBJ invocations to module description.
15365         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15366         invocations from here...
15367         * modules/mkdtemp (configure.ac): ... to here.
15368
15369 2011-05-21  Bruno Haible  <bruno@clisp.org>
15370
15371         mkdir: Move AC_LIBOBJ invocations to module description.
15372         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15373         * modules/mkdir (configure.ac): ... to here.
15374
15375 2011-05-21  Bruno Haible  <bruno@clisp.org>
15376
15377         memset: Move AC_LIBOBJ invocations to module description.
15378         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15380         here...
15381         * modules/memset (configure.ac): ... to here.
15382
15383 2011-05-21  Bruno Haible  <bruno@clisp.org>
15384
15385         memrchr: Move AC_LIBOBJ invocations to module description.
15386         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15387         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15388         here...
15389         * modules/memrchr (configure.ac): ... to here.
15390
15391 2011-05-21  Bruno Haible  <bruno@clisp.org>
15392
15393         mempcpy: Move AC_LIBOBJ invocations to module description.
15394         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15395         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15396         here...
15397         * modules/mempcpy (configure.ac): ... to here.
15398
15399 2011-05-21  Bruno Haible  <bruno@clisp.org>
15400
15401         memmove: Move AC_LIBOBJ invocations to module description.
15402         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15403         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15404         here...
15405         * modules/memmove (configure.ac): ... to here.
15406
15407 2011-05-21  Bruno Haible  <bruno@clisp.org>
15408
15409         memmem*: Move AC_LIBOBJ invocations to module description.
15410         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15411         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15412         here...
15413         (gl_FUNC_MEMMEM): ... and here...
15414         * modules/memmem-simple (configure.ac): ... to here.
15415         * modules/memmem (configure.ac): ... and here.
15416
15417 2011-05-21  Bruno Haible  <bruno@clisp.org>
15418
15419         memcpy: Move AC_LIBOBJ invocations to module description.
15420         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15421         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15422         here...
15423         * modules/memcpy (configure.ac): ... to here.
15424
15425 2011-05-21  Bruno Haible  <bruno@clisp.org>
15426
15427         memcmp: Simplify autoconf macro.
15428         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15429         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15430         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15431
15432 2011-05-21  Bruno Haible  <bruno@clisp.org>
15433
15434         memcmp: Move AC_LIBOBJ invocations to module description.
15435         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15436         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15437         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15438         * modules/memcmp (configure.ac): ... to here.
15439         (Depends-on): Update conditions.
15440
15441 2011-05-21  Bruno Haible  <bruno@clisp.org>
15442
15443         memchr: Respect rules for use of AC_LIBOBJ.
15444         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15445         invocations from here...
15446         * modules/memchr (configure.ac): ... to here.
15447
15448 2011-05-21  Bruno Haible  <bruno@clisp.org>
15449
15450         mbtowc: Move AC_LIBOBJ invocations to module description.
15451         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15452         invocations from here...
15453         * modules/mbtowc (configure.ac): ... to here.
15454
15455 2011-05-21  Bruno Haible  <bruno@clisp.org>
15456
15457         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15458         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15459         gl_PREREQ_MBSRTOWCS invocations from here...
15460         * modules/mbsrtowcs (configure.ac): ... to here.
15461
15462 2011-05-21  Bruno Haible  <bruno@clisp.org>
15463
15464         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15465         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15466         gl_PREREQ_MBSNRTOWCS invocations from here...
15467         * modules/mbsnrtowcs (configure.ac): ... to here.
15468
15469 2011-05-21  Bruno Haible  <bruno@clisp.org>
15470
15471         mbsinit: Move AC_LIBOBJ invocations to module description.
15472         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15473         invocations from here...
15474         * modules/mbsinit (configure.ac): ... to here.
15475
15476 2011-05-21  Bruno Haible  <bruno@clisp.org>
15477
15478         mbrlen: Move AC_LIBOBJ invocations to module description.
15479         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15480         invocations from here...
15481         * modules/mbrlen (configure.ac): ... to here.
15482
15483 2011-05-21  Bruno Haible  <bruno@clisp.org>
15484
15485         mbrtowc: Respect rules for use of AC_LIBOBJ.
15486         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15487         invocations from here...
15488         * modules/mbrtowc (configure.ac): ... to here.
15489
15490 2011-05-21  Bruno Haible  <bruno@clisp.org>
15491
15492         malloc-*: Move AC_LIBOBJ invocations to module description.
15493         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15494         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15495         AC_LIBOBJ invocations from here...
15496         * modules/malloc-gnu (configure.ac): ... to here.
15497         * modules/malloc-posix (configure.ac): ... and here.
15498
15499 2011-05-21  Bruno Haible  <bruno@clisp.org>
15500
15501         lstat, openat: Respect rules for use of AC_LIBOBJ.
15502         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15503         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15504         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15505         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15506         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15507         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15508         here.
15509         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15510
15511 2011-05-21  Bruno Haible  <bruno@clisp.org>
15512
15513         lseek: Move AC_LIBOBJ invocations to module description.
15514         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15515         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15516         * modules/lseek (configure.ac): ... to here.
15517
15518 2011-05-21  Bruno Haible  <bruno@clisp.org>
15519
15520         linkat: Move AC_LIBOBJ invocations to module description.
15521         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15522         here...
15523         * modules/linkat (configure.ac): ... to here.
15524
15525 2011-05-21  Bruno Haible  <bruno@clisp.org>
15526
15527         link: Respect rules for use of AC_LIBOBJ.
15528         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15529         * modules/link (configure.ac): ... to here.
15530
15531 2011-05-21  Bruno Haible  <bruno@clisp.org>
15532
15533         lchown: Move AC_LIBOBJ invocations to module description.
15534         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15535         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15536         * modules/lchown (configure.ac): ... to here.
15537
15538 2011-05-21  Bruno Haible  <bruno@clisp.org>
15539
15540         iswctype: Move AC_LIBOBJ invocations to module description.
15541         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15542         here...
15543         * modules/iswctype (configure.ac): ... to here.
15544
15545 2011-05-21  Bruno Haible  <bruno@clisp.org>
15546
15547         iswblank: Move AC_LIBOBJ invocations to module description.
15548         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15549         here...
15550         * modules/iswblank (configure.ac): ... to here.
15551
15552 2011-05-21  Bruno Haible  <bruno@clisp.org>
15553
15554         atanl: Move AC_LIBOBJ invocations to module description.
15555         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15556         * modules/atanl (configure.ac): ... to here.
15557
15558 2011-05-21  Bruno Haible  <bruno@clisp.org>
15559
15560         acosl: Move AC_LIBOBJ invocations to module description.
15561         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15562         * modules/acosl (configure.ac): ... to here.
15563
15564 2011-05-21  Bruno Haible  <bruno@clisp.org>
15565
15566         asinl: Respect rules for use of AC_LIBOBJ.
15567         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15568         * modules/asinl (configure.ac): ... to here.
15569
15570 2011-05-21  Bruno Haible  <bruno@clisp.org>
15571
15572         tanl: Move AC_LIBOBJ invocations to module description.
15573         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15574         * modules/tanl (configure.ac): ... to here.
15575
15576 2011-05-21  Bruno Haible  <bruno@clisp.org>
15577
15578         cosl: Move AC_LIBOBJ invocations to module description.
15579         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15580         * modules/cosl (configure.ac): ... to here.
15581
15582 2011-05-21  Bruno Haible  <bruno@clisp.org>
15583
15584         sinl: Move AC_LIBOBJ invocations to module description.
15585         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15586         * modules/sinl (configure.ac): ... to here.
15587
15588 2011-05-21  Bruno Haible  <bruno@clisp.org>
15589
15590         logl: Move AC_LIBOBJ invocations to module description.
15591         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15592         * modules/logl (configure.ac): ... to here.
15593
15594 2011-05-21  Bruno Haible  <bruno@clisp.org>
15595
15596         expl: Move AC_LIBOBJ invocations to module description.
15597         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15598         * modules/expl (configure.ac): ... to here.
15599
15600 2011-05-21  Bruno Haible  <bruno@clisp.org>
15601
15602         roundl: Move AC_LIBOBJ invocations to module description.
15603         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15604         * modules/roundl (configure.ac): ... to here.
15605
15606 2011-05-21  Bruno Haible  <bruno@clisp.org>
15607
15608         round: Move AC_LIBOBJ invocations to module description.
15609         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15610         * modules/round (configure.ac): ... to here.
15611
15612 2011-05-21  Bruno Haible  <bruno@clisp.org>
15613
15614         roundf: Move AC_LIBOBJ invocations to module description.
15615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15616         * modules/roundf (configure.ac): ... to here.
15617
15618 2011-05-21  Bruno Haible  <bruno@clisp.org>
15619
15620         truncl: Move AC_LIBOBJ invocations to module description.
15621         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15622         * modules/truncl (configure.ac): ... to here.
15623
15624 2011-05-21  Bruno Haible  <bruno@clisp.org>
15625
15626         trunc: Move AC_LIBOBJ invocations to module description.
15627         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15628         * modules/trunc (configure.ac): ... to here.
15629
15630 2011-05-21  Bruno Haible  <bruno@clisp.org>
15631
15632         truncf: Move AC_LIBOBJ invocations to module description.
15633         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15634         * modules/truncf (configure.ac): ... to here.
15635
15636 2011-05-21  Bruno Haible  <bruno@clisp.org>
15637
15638         ceill: Move AC_LIBOBJ invocations to module description.
15639         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15640         * modules/ceill (configure.ac): ... to here.
15641
15642 2011-05-21  Bruno Haible  <bruno@clisp.org>
15643
15644         ceil: Move AC_LIBOBJ invocations to module description.
15645         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15646         * modules/ceil (configure.ac): ... to here.
15647
15648 2011-05-21  Bruno Haible  <bruno@clisp.org>
15649
15650         ceilf: Move AC_LIBOBJ invocations to module description.
15651         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15652         * modules/ceilf (configure.ac): ... to here.
15653
15654 2011-05-21  Bruno Haible  <bruno@clisp.org>
15655
15656         floorl: Respect rules for use of AC_LIBOBJ.
15657         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15658         * modules/floorl (configure.ac): ... to here.
15659
15660 2011-05-21  Bruno Haible  <bruno@clisp.org>
15661
15662         floor: Respect rules for use of AC_LIBOBJ.
15663         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15664         * modules/floor (configure.ac): ... to here.
15665
15666 2011-05-21  Bruno Haible  <bruno@clisp.org>
15667
15668         floorf: Move AC_LIBOBJ invocations to module description.
15669         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15670         * modules/floorf (configure.ac): ... to here.
15671
15672 2011-05-20  Bruno Haible  <bruno@clisp.org>
15673
15674         sqrtl: Respect rules for use of AC_LIBOBJ.
15675         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15676         * modules/sqrtl (configure.ac): ... to here.
15677
15678 2011-05-20  Bruno Haible  <bruno@clisp.org>
15679
15680         ldexpl: Respect rules for use of AC_LIBOBJ.
15681         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15682         * modules/ldexpl (configure.ac): ... to here.
15683
15684 2011-05-20  Bruno Haible  <bruno@clisp.org>
15685
15686         frexpl*: Respect rules for use of AC_LIBOBJ.
15687         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15688         invocation from here...
15689         * modules/frexpl (configure.ac): ... to here.
15690         * modules/frexpl-nolibm (configure.ac): ... and here.
15691
15692 2011-05-20  Bruno Haible  <bruno@clisp.org>
15693
15694         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15695         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15696         invocation from here...
15697         * modules/frexp (configure.ac): ... to here.
15698         * modules/frexp-nolibm (configure.ac): ... and here.
15699
15700 2011-05-20  Bruno Haible  <bruno@clisp.org>
15701
15702         isnan: Respect rules for use of AC_LIBOBJ.
15703         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15704         invocations here.
15705         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15706         REPLACE_ISNAN.
15707         * modules/isnand (configure.ac): Likewise.
15708         * modules/isnanl (configure.ac): Likewise.
15709
15710 2011-05-20  Bruno Haible  <bruno@clisp.org>
15711
15712         isnanl*: Respect rules for use of AC_LIBOBJ.
15713         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15714         invocation from here...
15715         * modules/isnanl (configure.ac): ... to here.
15716         * modules/isnanl-nolibm (configure.ac): ... and here.
15717
15718 2011-05-20  Bruno Haible  <bruno@clisp.org>
15719
15720         isnand*: Move AC_LIBOBJ invocations to module description.
15721         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15722         invocation from here...
15723         * modules/isnand (configure.ac): ... to here.
15724         * modules/isnand-nolibm (configure.ac): ... and here.
15725
15726 2011-05-20  Bruno Haible  <bruno@clisp.org>
15727
15728         isnanf*: Move AC_LIBOBJ invocations to module description.
15729         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15730         invocation from here...
15731         * modules/isnanf (configure.ac): ... to here.
15732         * modules/isnanf-nolibm (configure.ac): ... and here.
15733
15734 2011-05-20  Bruno Haible  <bruno@clisp.org>
15735
15736         isnan*: Separate the AC_LIBOBJ invocations.
15737         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15738         AC_LIBOBJ invocation.
15739         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15740         here.
15741         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15742         AC_LIBOBJ invocation.
15743         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15744         here.
15745         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15746         AC_LIBOBJ invocation.
15747         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15748         here.
15749         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15750
15751 2011-05-08  Bruno Haible  <bruno@clisp.org>
15752
15753         isinf: Move AC_LIBOBJ invocations to module description.
15754         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15755         * modules/isinf (configure.ac): ... to here.
15756
15757 2011-05-08  Bruno Haible  <bruno@clisp.org>
15758
15759         isfinite: Move AC_LIBOBJ invocations to module description.
15760         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15761         * modules/isfinite (configure.ac): ... to here.
15762
15763 2011-05-08  Bruno Haible  <bruno@clisp.org>
15764
15765         isblank: Move AC_LIBOBJ invocations to module description.
15766         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15767         here...
15768         * modules/isblank (configure.ac): ... to here.
15769
15770 2011-05-08  Bruno Haible  <bruno@clisp.org>
15771
15772         isapipe: Move AC_LIBOBJ invocations to module description.
15773         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15774         gl_PREREQ_ISAPIPE invocations from here...
15775         * modules/isapipe (configure.ac): ... to here.
15776         (Depends-on): Update condition.
15777
15778 2011-05-08  Bruno Haible  <bruno@clisp.org>
15779
15780         ioctl: Move AC_LIBOBJ invocations to module description.
15781         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15782         invocations from here...
15783         * modules/ioctl (configure.ac): ... to here.
15784         (Depends-on): Update condition.
15785
15786 2011-05-08  Bruno Haible  <bruno@clisp.org>
15787
15788         imaxdiv: Move AC_LIBOBJ invocations to module description.
15789         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15790         invocations from here...
15791         * modules/imaxdiv (configure.ac): ... to here.
15792
15793 2011-05-08  Bruno Haible  <bruno@clisp.org>
15794
15795         imaxabs: Move AC_LIBOBJ invocations to module description.
15796         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15797         invocations from here...
15798         * modules/imaxabs (configure.ac): ... to here.
15799
15800 2011-05-08  Bruno Haible  <bruno@clisp.org>
15801
15802         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15803         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15804         AC_LIBOBJ invocations from here...
15805         * modules/getaddrinfo (configure.ac): ... to here.
15806         (Depends-on): Add conditions.
15807
15808 2011-05-08  Bruno Haible  <bruno@clisp.org>
15809
15810         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15811         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15812         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15813         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15814         (gl_PREREQ_INET_PTON): ... from here.
15815         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15816         gl_PREREQ_INET_PTON here.
15817         (Depends-on): Update condition.
15818
15819 2011-05-08  Bruno Haible  <bruno@clisp.org>
15820
15821         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15822         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15823         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15824         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15825         (gl_PREREQ_INET_NTOP): ... from here.
15826         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15827         gl_PREREQ_INET_NTOP here.
15828         (Depends-on): Update condition.
15829
15830 2011-05-08  Bruno Haible  <bruno@clisp.org>
15831
15832         iconv_open: Move AC_LIBOBJ invocations to module description.
15833         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15834         AC_LIBOBJ invocations from here...
15835         * modules/iconv_open (configure.ac): ... to here.
15836
15837 2011-05-08  Bruno Haible  <bruno@clisp.org>
15838
15839         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15840         If module 'iconv_open' is among the main modules and module
15841         'iconv_open-utf' is among the tests dependencies, then
15842         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15843         return the special iconv_t values. Therefore iconv() and iconv_close()
15844         must support these special iconv_t values, already in lib, not only in
15845         tests.
15846         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15847         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15848         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15849         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15850         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15851         (Depends-on): Add the dependencies of iconv_open-utf.
15852         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15853         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15854         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15855
15856 2011-05-08  Bruno Haible  <bruno@clisp.org>
15857
15858         group-member: Move AC_LIBOBJ invocations to module description.
15859         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15860         gl_PREREQ_GROUP_MEMBER invocations from here...
15861         * modules/group-member (configure.ac): ... to here.
15862
15863 2011-05-08  Bruno Haible  <bruno@clisp.org>
15864
15865         grantpt: Move AC_LIBOBJ invocations to module description.
15866         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15867         invocations from here...
15868         * modules/grantpt (configure.ac): ... to here.
15869
15870 2011-05-08  Bruno Haible  <bruno@clisp.org>
15871
15872         glob: Move AC_LIBOBJ invocations to module description.
15873         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15874         from here...
15875         * modules/glob (configure.ac): ... to here.
15876
15877 2011-05-08  Bruno Haible  <bruno@clisp.org>
15878
15879         getusershell: Move AC_LIBOBJ invocations to module description.
15880         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15881         Move AC_LIBOBJ invocation from here...
15882         * modules/getusershell (configure.ac): ... to here.
15883         (Depends-on): Update condition.
15884
15885 2011-05-08  Bruno Haible  <bruno@clisp.org>
15886
15887         gettimeofday: Move AC_LIBOBJ invocations to module description.
15888         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15889         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15890         gl_PREREQ_GETTIMEOFDAY invocations from here...
15891         * modules/gettimeofday (configure.ac): ... to here.
15892
15893 2011-05-08  Bruno Haible  <bruno@clisp.org>
15894
15895         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15896         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15897         just gl_FUNC_TZSET.
15898         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15899         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15900         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15901         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15902
15903 2011-05-08  Bruno Haible  <bruno@clisp.org>
15904
15905         getsubopt: Move AC_LIBOBJ invocations to module description.
15906         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15907         gl_PREREQ_GETSUBOPT invocations from here...
15908         * modules/getsubopt (configure.ac): ... to here.
15909
15910 2011-05-08  Bruno Haible  <bruno@clisp.org>
15911
15912         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15913         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15914         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15915         * modules/getpass-gnu (configure.ac): ... to here.
15916
15917 2011-05-08  Bruno Haible  <bruno@clisp.org>
15918
15919         getpass: Move AC_LIBOBJ invocations to module description.
15920         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15921         gl_PREREQ_GETPASS invocations from here...
15922         * modules/getpass (configure.ac): ... to here.
15923
15924 2011-05-08  Bruno Haible  <bruno@clisp.org>
15925
15926         getpagesize: Move AC_LIBOBJ invocations to module description.
15927         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15928         from here...
15929         * modules/getpagesize (configure.ac): ... to here.
15930
15931 2011-05-08  Bruno Haible  <bruno@clisp.org>
15932
15933         getopt: Move AC_LIBOBJ invocations to module description.
15934         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15935         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15936         invocations from here...
15937         * modules/getopt-gnu (configure.ac): ... to here.
15938         * modules/getopt-posix (configure.ac): ... and here.
15939         (Depends-on): Update condition.
15940
15941 2011-05-08  Bruno Haible  <bruno@clisp.org>
15942
15943         getopt, argp: Respect rules for use of AC_LIBOBJ.
15944         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15945         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15946         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15947         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15948
15949 2011-05-08  Bruno Haible  <bruno@clisp.org>
15950
15951         getlogin_r: Move AC_LIBOBJ invocations to module description.
15952         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15953         gl_PREREQ_GETLOGIN_R invocations from here...
15954         * modules/getlogin_r (configure.ac): ... to here.
15955
15956 2011-05-08  Bruno Haible  <bruno@clisp.org>
15957
15958         getlogin: Move AC_LIBOBJ invocations to module description.
15959         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15960         here...
15961         * modules/getlogin (configure.ac): ... to here.
15962
15963 2011-05-08  Bruno Haible  <bruno@clisp.org>
15964
15965         getloadavg: Move AC_LIBOBJ invocations to module description.
15966         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15967         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15968         * modules/getloadavg (configure.ac): ... to here.
15969
15970 2011-05-08  Bruno Haible  <bruno@clisp.org>
15971
15972         gethrxtime: Move AC_LIBOBJ invocations to module description.
15973         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15974         LIB_GETHRXTIME from here...
15975         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15976         invocations from here...
15977         * modules/gethrxtime (configure.ac): ... to here.
15978
15979 2011-05-08  Bruno Haible  <bruno@clisp.org>
15980
15981         gethostname: Move AC_LIBOBJ invocations to module description.
15982         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15983         gl_PREREQ_GETHOSTNAME invocations from here...
15984         * modules/gethostname (configure.ac): ... to here.
15985
15986 2011-05-08  Bruno Haible  <bruno@clisp.org>
15987
15988         getgroups: Move AC_LIBOBJ invocations to module description.
15989         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15990         here...
15991         * modules/getgroups (configure.ac): ... to here.
15992
15993 2011-05-08  Bruno Haible  <bruno@clisp.org>
15994
15995         getdtablesize: Move AC_LIBOBJ invocations to module description.
15996         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15997         invocation from here...
15998         * modules/getdtablesize (configure.ac): ... to here.
15999
16000 2011-05-08  Bruno Haible  <bruno@clisp.org>
16001
16002         getdomainname: Move AC_LIBOBJ invocations to module description.
16003         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
16004         gl_PREREQ_GETDOMAINNAME invocations from here...
16005         * modules/getdomainname (configure.ac): ... to here.
16006
16007 2011-05-08  Bruno Haible  <bruno@clisp.org>
16008
16009         getline: Move AC_LIBOBJ invocations to module description.
16010         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
16011         invocations from here...
16012         * modules/getline (configure.ac): ... to here.
16013
16014 2011-05-08  Bruno Haible  <bruno@clisp.org>
16015
16016         getline: Simplify.
16017         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
16018         It's already handled through the module dependency.
16019
16020 2011-05-08  Bruno Haible  <bruno@clisp.org>
16021
16022         getdelim: Move AC_LIBOBJ invocations to module description.
16023         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
16024         and gl_PREREQ_GETDELIM invocations from here...
16025         * modules/getdelim (configure.ac): ... to here.
16026         (Depends-on): Fix condition.
16027
16028 2011-05-08  Bruno Haible  <bruno@clisp.org>
16029
16030         getcwd: Move AC_LIBOBJ invocations to module description.
16031         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
16032         invocations from here...
16033         * modules/getcwd (configure.ac): ... to here.
16034
16035 2011-05-08  Bruno Haible  <bruno@clisp.org>
16036
16037         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
16038         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
16039         here...
16040         * modules/getcwd-lgpl (configure.ac): ... to here.
16041
16042 2011-05-07  Bruno Haible  <bruno@clisp.org>
16043
16044         crypto/gc: Move AC_LIBOBJ invocations to module description.
16045         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
16046         * modules/crypto/gc (configure.ac): ... to here.
16047
16048 2011-05-07  Bruno Haible  <bruno@clisp.org>
16049
16050         fwriting: Move AC_LIBOBJ invocations to module description.
16051         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
16052         here...
16053         * modules/fwriting (configure.ac): ... to here.
16054
16055 2011-05-07  Bruno Haible  <bruno@clisp.org>
16056
16057         fwritable: Move AC_LIBOBJ invocations to module description.
16058         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
16059         here...
16060         * modules/fwritable (configure.ac): ... to here.
16061
16062 2011-05-07  Bruno Haible  <bruno@clisp.org>
16063
16064         futimens: Move AC_LIBOBJ invocations to module description.
16065         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
16066         here...
16067         * modules/futimens (configure.ac): ... to here.
16068
16069 2011-05-07  Bruno Haible  <bruno@clisp.org>
16070
16071         ftruncate: Move AC_LIBOBJ invocations to module description.
16072         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
16073         gl_PREREQ_FTRUNCATE invocations from here...
16074         * modules/ftruncate (configure.ac): ... to here.
16075
16076 2011-05-07  Bruno Haible  <bruno@clisp.org>
16077
16078         fsync: Move AC_LIBOBJ invocations to module description.
16079         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
16080         invocations from here...
16081         * modules/fsync (configure.ac): ... to here.
16082
16083 2011-05-07  Bruno Haible  <bruno@clisp.org>
16084
16085         fsusage: Move AC_LIBOBJ invocations to module description.
16086         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
16087         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
16088         * modules/fsusage (configure.ac): ... to here.
16089
16090 2011-05-07  Bruno Haible  <bruno@clisp.org>
16091
16092         freopen: Move AC_LIBOBJ invocations to module description.
16093         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
16094         invocations from here...
16095         * modules/freopen (configure.ac): ... to here.
16096
16097 2011-05-07  Bruno Haible  <bruno@clisp.org>
16098
16099         free: Move AC_LIBOBJ invocations to module description.
16100         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
16101         invocations from here...
16102         * modules/free (configure.ac): ... to here.
16103
16104 2011-05-07  Bruno Haible  <bruno@clisp.org>
16105
16106         freadable: Move AC_LIBOBJ invocations to module description.
16107         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
16108         here...
16109         * modules/freadable (configure.ac): ... to here.
16110
16111 2011-05-07  Bruno Haible  <bruno@clisp.org>
16112
16113         fpurge: Move AC_LIBOBJ invocations to module description.
16114         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
16115         invocations from here...
16116         * modules/fpurge (configure.ac): ... to here.
16117
16118 2011-05-07  Bruno Haible  <bruno@clisp.org>
16119
16120         fpending: Move AC_LIBOBJ invocations to module description.
16121         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
16122         gl_FUNC_FPENDING.
16123         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
16124         invocations from here...
16125         * modules/fpending (configure.ac): ... to here.
16126
16127 2011-05-07  Bruno Haible  <bruno@clisp.org>
16128
16129         fopen: Move AC_LIBOBJ invocations to module description.
16130         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
16131         invocations from here...
16132         * modules/fopen (configure.ac): ... to here.
16133
16134 2011-05-07  Bruno Haible  <bruno@clisp.org>
16135
16136         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16137         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16138         gl_FUNC_FNMATCH_POSIX.
16139         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16140         invocations from here...
16141         * modules/fnmatch (configure.ac): ... to here.
16142         * modules/fnmatch-gnu (configure.ac): ... and here.
16143
16144 2011-05-07  Bruno Haible  <bruno@clisp.org>
16145
16146         flock: Move AC_LIBOBJ invocations to module description.
16147         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16148         invocations from here...
16149         * modules/flock (configure.ac): ... to here.
16150
16151 2011-05-07  Bruno Haible  <bruno@clisp.org>
16152
16153         fileblocks: Move AC_LIBOBJ invocations to module description.
16154         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16155         gl_PREREQ_FILEBLOCKS invocations from here...
16156         * modules/fileblocks (configure.ac): ... to here.
16157
16158 2011-05-06  Bruno Haible  <bruno@clisp.org>
16159
16160         fflush: Move AC_LIBOBJ invocations to module description.
16161         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16162         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16163         invocations from here...
16164         * modules/fflush (configure.ac): ... to here.
16165
16166 2011-05-06  Bruno Haible  <bruno@clisp.org>
16167
16168         fdopendir: Move AC_LIBOBJ invocations to module description.
16169         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16170         here...
16171         * modules/fdopendir (configure.ac): ... to here.
16172         (Depends-on): Improve conditions.
16173
16174 2011-05-06  Bruno Haible  <bruno@clisp.org>
16175
16176         _Exit: Move AC_LIBOBJ invocations to module description.
16177         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16178         invocations from here...
16179         * modules/_Exit (configure.ac): ... to here.
16180
16181 2011-05-21  Bruno Haible  <bruno@clisp.org>
16182
16183         euidaccess: Respect rules for use of AC_LIBOBJ.
16184         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16185         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16186         from here...
16187         * modules/euidaccess (configure.ac): ... to here.
16188
16189 2011-05-06  Bruno Haible  <bruno@clisp.org>
16190
16191         error: Move AC_LIBOBJ invocations to module description.
16192         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16193         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16194         invocations from here...
16195         * modules/error (configure.ac): ... to here.
16196
16197 2011-05-06  Bruno Haible  <bruno@clisp.org>
16198
16199         duplocale: Move AC_LIBOBJ invocations to module description.
16200         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16201         gl_PREREQ_DUPLOCALE invocations from here...
16202         * modules/duplocale (configure.ac): ... to here.
16203
16204 2011-05-05  Bruno Haible  <bruno@clisp.org>
16205
16206         dirfd: Move AC_LIBOBJ invocations to module description.
16207         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16208         gl_FUNC_DIRFD.
16209         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16210         here...
16211         * modules/dirfd (configure.ac): ... to here.
16212         (Depends-on): Fix condition.
16213
16214 2011-05-05  Bruno Haible  <bruno@clisp.org>
16215
16216         chown: Respect rules for use of AC_LIBOBJ.
16217         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16218         * modules/chown (configure.ac): ... to here.
16219
16220 2011-05-05  Bruno Haible  <bruno@clisp.org>
16221
16222         chdir-long: Move AC_LIBOBJ invocations to module description.
16223         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16224         gl_PREREQ_CHDIR_LONG invocations from here...
16225         * modules/chdir-long (configure.ac): ... to here.
16226
16227 2011-05-05  Bruno Haible  <bruno@clisp.org>
16228
16229         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16230         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16231         from here...
16232         * modules/canonicalize-lgpl (configure.ac): ... to here.
16233
16234 2011-05-05  Bruno Haible  <bruno@clisp.org>
16235
16236         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16237         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16238         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16239         REPLACE_CALLOC.
16240         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16241         * modules/calloc-gnu (configure.ac): Likewise.
16242
16243 2011-05-05  Bruno Haible  <bruno@clisp.org>
16244
16245         btowc: Move AC_LIBOBJ invocations to module description.
16246         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16247         invocations from here...
16248         * modules/btowc (configure.ac): ... to here.
16249
16250 2011-05-21  Bruno Haible  <bruno@clisp.org>
16251
16252         atexit: Move AC_LIBOBJ invocations to module description.
16253         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16254         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16255         here...
16256         * modules/atexit (configure.ac): ... to here.
16257
16258 2011-05-05  Bruno Haible  <bruno@clisp.org>
16259
16260         atoll: Move AC_LIBOBJ invocations to module description.
16261         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16262         invocations from here...
16263         * modules/atoll (configure.ac): ... to here.
16264
16265 2011-05-05  Bruno Haible  <bruno@clisp.org>
16266
16267         argz: Move AC_LIBOBJ invocations to module description.
16268         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16269         * modules/argz (configure.ac): ... to here.
16270
16271 2011-05-05  Bruno Haible  <bruno@clisp.org>
16272
16273         alphasort: Move AC_LIBOBJ invocations to module description.
16274         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16275         gl_PREREQ_ALPHASORT invocations from here...
16276         * modules/alphasort (configure.ac): ... to here.
16277
16278 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16279
16280         verify: new macro verify_expr; verify_true deprecated
16281         * NEWS: Mention this.
16282         * doc/verify.texi (Compile-time Assertions): Document this.
16283         * lib/verify.h (verify_true): Deprecate.
16284         (verify_expr): New macro.
16285         * tests/test-verify.c (function): Test verify_expr.
16286
16287 2011-06-14  Jim Meyering  <meyering@redhat.com>
16288
16289         init.sh: give more portable redirection-related advice in a comment
16290         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16291         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16292         for lots of discussion.  Stefano Lattarini suggested the solution
16293         of putting "9>&2" after the command.  Reported by Bruno Haible.
16294
16295 2011-06-13  Bruno Haible  <bruno@clisp.org>
16296
16297         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16298         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16299         'none'.
16300
16301 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16302
16303         ftoastr: use strtof only if HAVE_STRTOF
16304         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16306         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16307         * modules/ftoastr (configure.ac): Check for strtof.
16308
16309 2011-06-13  Bruno Haible  <bruno@clisp.org>
16310
16311         gnulib-tool: Addendum to 2011-06-08 commit.
16312         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16313         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16314
16315 2011-06-13  Bruno Haible  <bruno@clisp.org>
16316
16317         fseeko: Provide a non-inline replacement of fseek().
16318         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16319         * modules/fseeko (Depends-on): Add fseek.
16320         * modules/fseek (License): Change to LGPLv2+.
16321
16322 2011-06-13  Bruno Haible  <bruno@clisp.org>
16323
16324         ftello: Provide a non-inline replacement of ftell().
16325         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16326         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16327         not have ftello() (such as on mingw).
16328         * modules/ftello (Depends-on): Add ftell.
16329         * modules/ftell (License): Change to LGPLv2+.
16330
16331 2011-05-07  Bruno Haible  <bruno@clisp.org>
16332
16333         ftell: Move AC_LIBOBJ invocations to module description.
16334         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16335         * modules/ftell (configure.ac): ... to here.
16336
16337 2011-05-07  Bruno Haible  <bruno@clisp.org>
16338
16339         ftello: Respect rules for use of AC_LIBOBJ.
16340         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16341         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16342         here...
16343         * modules/ftello (configure.ac): ... to here.
16344
16345 2011-05-07  Bruno Haible  <bruno@clisp.org>
16346
16347         fseeko: Simplify.
16348         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16349         (gl_FUNC_FSEEKO): Inline it here.
16350
16351 2011-05-07  Bruno Haible  <bruno@clisp.org>
16352
16353         fseek: Move AC_LIBOBJ invocations to module description.
16354         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16355         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16356         * modules/fseek (configure.ac): ... to here.
16357
16358 2011-05-07  Bruno Haible  <bruno@clisp.org>
16359
16360         fseek: Respect rules for use of AC_LIBOBJ.
16361         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16362         here...
16363         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16364
16365 2011-05-07  Bruno Haible  <bruno@clisp.org>
16366
16367         fseeko: Respect rules for use of AC_LIBOBJ.
16368         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16369         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16370         here...
16371         * modules/fseeko (configure.ac): ... to here.
16372
16373 2011-06-13  Bruno Haible  <bruno@clisp.org>
16374
16375         gnulib-tool: Allow comments in the 'Depends-on' section.
16376         * doc/gnulib.texi (Module description): Mention comment syntax in the
16377         Depends-on section.
16378         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16379
16380 2011-06-13  Bruno Haible  <bruno@clisp.org>
16381
16382         file-set.h: guard __attibute__ use, now that it's not always defined
16383         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16384         versions that support it.  This fixes a coreutils build failure with
16385         the vendor cc on HP-UX 11.31.
16386
16387 2011-06-12  Bruno Haible  <bruno@clisp.org>
16388
16389         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16390         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16391         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16392         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16393         (acl, aclsort): New declarations.
16394         (aclv_nontrivial): New declaration.
16395         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16396         (file_has_acl): Read also the second kind of HP-UX ACLs.
16397         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16398         kind of HP-UX ACLs if the first kind fails.
16399         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16400         second kind of HP-UX ACLs.
16401         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16402         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16403         agree.
16404         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16405         hpuxjfs.
16406         Handle hpuxjfs.
16407         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16408         hpuxjfs.
16409         Handle hpuxjfs.
16410         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16411         (func_test_same_acls): Use both lsacl and getacl.
16412         Handle hpuxjfs.
16413         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16414         (func_test_same_acls): Use both lsacl and getacl.
16415         Handle hpuxjfs.
16416
16417 2011-06-12  Bruno Haible  <bruno@clisp.org>
16418
16419         acl: Complete the 2010-08-10 fix.
16420         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16421         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16422         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16423         explicitly.
16424         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16425         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16426
16427 2011-06-12  Bruno Haible  <bruno@clisp.org>
16428
16429         spawn-pipe tests: Comments.
16430         * tests/test-spawn-pipe-child.c (main): Update comment.
16431         Reported by James Youngman <jay@gnu.org>.
16432
16433 2011-06-11  James Youngman  <jay@gnu.org>
16434
16435         New module 'stat-size'.
16436         * modules/stat-size: New module.  Provides macros for accessing
16437         file size information in instances of struct stat.  Depends on the
16438         fileblocks module because it calls st_blocks.
16439         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16440         * doc/gnulib.texi: Include stat-size.texi.
16441         * doc/stat-size.texi: Documentation for this module.
16442         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16443         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16444         AC_STRUCT_ST_BLOCKS.
16445
16446 2011-06-09  Bruno Haible  <bruno@clisp.org>
16447
16448         thread: Support pthreads-win32.
16449         * lib/glthread/thread.h (gl_thread_self): Define differently on
16450         pthreads-win32.
16451         (gl_null_thread): New declaration.
16452         (gl_thread_self_pointer): New macro.
16453         * lib/glthread/thread.c (gl_null_thread): New constant.
16454         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16455         gl_thread_self.
16456         * tests/test-tls.c: Likewise.
16457         Suggested by Paul Eggert. Reported by Eric Blake.
16458
16459 2011-06-09  Bruno Haible  <bruno@clisp.org>
16460
16461         thread: Fix confusion between NULL and 0.
16462         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16463         Reported by Paul Eggert.
16464
16465 2011-06-09  Bruno Haible  <bruno@clisp.org>
16466
16467         spawn-pipe tests: Avoid test failure on HP-UX 11.
16468         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16469         is closed.
16470
16471 2011-06-09  Bruno Haible  <bruno@clisp.org>
16472
16473         acl tests: Fix compilation error on HP-UX 11.
16474         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16475
16476 2011-06-09  Bruno Haible  <bruno@clisp.org>
16477
16478         rmdir: Avoid test failure on HP-UX 10.20.
16479         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16480         EEXIST.
16481
16482 2011-06-08  Eric Blake  <eblake@redhat.com>
16483
16484         perror: fix test on mingw
16485         * modules/perror-tests (Depends-on): Add dup2.
16486
16487         strerror_r-posix: fix on MacOS
16488         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16489         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16490         logic bug.
16491         * lib/strerror_r.c (strerror_r): Fix the bug.
16492         * lib/strerror.c (strerror): Likewise.
16493         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16494         problem.
16495         * doc/posix-functions/strerror.texi (strerror): Likewise.
16496         * doc/posix-functions/perror.texi (perror): Likewise.
16497         * tests/test-strerror.c (main): Enhance test.
16498         * tests/test-strerror_r.c (main): Likewise.
16499
16500 2011-06-08  Bruno Haible  <bruno@clisp.org>
16501
16502         gnulib-tool: Better isolation between different gnulib-tool invocations.
16503         * gnulib-tool: New option --witness-c-macro.
16504         (witness_c_macro): New variable.
16505         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16506         AM_CPPFLAGS define it as a C macro.
16507         (func_emit_tests_Makefile_am): Likewise.
16508         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16509         read it from there.
16510         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16511         m4_define, not AC_DEFUN.
16512         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16513         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16514         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16515         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16516         s|...|...|, to substitute the values of the GNULIB_* module indicator
16517         variables.
16518         * modules/dirent (Makefile.am): Likewise.
16519         * modules/fcntl-h (Makefile.am): Likewise.
16520         * modules/iconv-h (Makefile.am): Likewise.
16521         * modules/langinfo (Makefile.am): Likewise.
16522         * modules/locale (Makefile.am): Likewise.
16523         * modules/math (Makefile.am): Likewise.
16524         * modules/netdb (Makefile.am): Likewise.
16525         * modules/poll-h (Makefile.am): Likewise.
16526         * modules/pty (Makefile.am): Likewise.
16527         * modules/search (Makefile.am): Likewise.
16528         * modules/signal (Makefile.am): Likewise.
16529         * modules/spawn (Makefile.am): Likewise.
16530         * modules/stdio (Makefile.am): Likewise.
16531         * modules/stdlib (Makefile.am): Likewise.
16532         * modules/string (Makefile.am): Likewise.
16533         * modules/sys_ioctl (Makefile.am): Likewise.
16534         * modules/sys_select (Makefile.am): Likewise.
16535         * modules/sys_socket (Makefile.am): Likewise.
16536         * modules/sys_stat (Makefile.am): Likewise.
16537         * modules/sys_times (Makefile.am): Likewise.
16538         * modules/sys_utsname (Makefile.am): Likewise.
16539         * modules/sys_wait (Makefile.am): Likewise.
16540         * modules/termios (Makefile.am): Likewise.
16541         * modules/time (Makefile.am): Likewise.
16542         * modules/unistd (Makefile.am): Likewise.
16543         * modules/wchar (Makefile.am): Likewise.
16544
16545 2011-06-08  Eric Blake  <eblake@redhat.com>
16546
16547         strerror: simplify replacement
16548         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16549         * modules/strerror (configure.ac): No prereqs needed here...
16550         * modules/strerror-override (configure.ac): ...but this needs it.
16551         (Files): Add file for needed prereq macro.
16552
16553 2011-06-08  Bruno Haible  <bruno@clisp.org>
16554
16555         strerror_r-posix: Tweaks.
16556         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16557         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16558         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16559         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16560         (gl_FUNC_STRERROR_R): ... to here.
16561         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16562
16563 2011-06-07  Eric Blake  <eblake@redhat.com>
16564
16565         perror: document fixed bugs
16566         * doc/posix-functions/perror.texi (perror): Document recent
16567         patches.
16568
16569 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16570
16571         stat-time: get_stat_birthtime failure is better-defined
16572         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16573         return a timestamp whose tv_sec and tv_nsec values are both -1.
16574         Previously, the spec said only that the tv_nsec value was negative.
16575         This upward-compatible change simplifies GNU tar a bit.
16576
16577 2011-06-07  Eric Blake  <eblake@redhat.com>
16578
16579         strerror_r-posix: work around cygwin 1.7.9
16580         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16581         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16582         bug without replacing strerror_r.
16583         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16584         strerror_r is buggy, but without requiring strerror_r compilation.
16585         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16586
16587         test-perror: relax test to ignore cygwin bug
16588         * tests/test-perror2.c (main): Relax test on requiring detection
16589         of stream errors, and use unbuffered stream.
16590         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16591         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16592         * doc/posix-functions/fputc.texi (fputc): Likewise.
16593         * doc/posix-functions/fputs.texi (fputs): Likewise.
16594         * doc/posix-functions/fputws.texi (fputws): Likewise.
16595         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16596         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16597         * doc/posix-functions/getopt.texi (getopt): Likewise.
16598         * doc/posix-functions/perror.texi (perror): Likewise.
16599         * doc/posix-functions/printf.texi (printf): Likewise.
16600         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16601         * doc/posix-functions/psignal.texi (psignal): Likewise.
16602         * doc/posix-functions/putc.texi (putc): Likewise.
16603         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16604         Likewise.
16605         * doc/posix-functions/putchar.texi (putchar): Likewise.
16606         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16607         Likewise.
16608         * doc/posix-functions/puts.texi (puts): Likewise.
16609         * doc/posix-functions/putwc.texi (putwc): Likewise.
16610         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16611         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16612         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16613         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16614         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16615         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16616         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16617         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16618
16619 2011-05-22  Bruno Haible  <bruno@clisp.org>
16620
16621         strerror: Move AC_LIBOBJ invocations to module description.
16622         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16623         gl_PREREQ_STRERROR invocations from here...
16624         * modules/strerror (configure.ac): ... to here.
16625
16626 2011-05-21  Bruno Haible  <bruno@clisp.org>
16627
16628         perror: Use common idiom.
16629         * modules/perror (configure.ac): Reorder statements.
16630
16631 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16632
16633         tests: fix usage message in 'mktempd_'
16634         * tests/init.sh (mktempd_): In the usage message, use literal
16635         'mktempd_', not '$ME' (which is even undefined), as the name of
16636         the subroutine.
16637
16638 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16639
16640         tests init: new function 'fatal_', for hard errors
16641         Before this patch, the only way offered by tests/init.sh to
16642         properly signal a hard error was the `framework_failure_'
16643         function.  But the error message issued by that function,
16644         as its name would suggest, refers to a set-up failure in the
16645         testsuite, while hard errors can obviously also be due to
16646         other reasons.  The best way to fix this inconsistency is to
16647         introduce a new function with a more general error message.
16648         * tests/init.sh (fatal_): New function.
16649
16650 2011-06-06  Eric Blake  <eblake@redhat.com>
16651
16652         canonicalize-lgpl: use common idiom
16653         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16654         over newer POSIX -Rf.
16655         Reported by Bruno Haible.
16656
16657         canonicalize-lgpl: work around AIX realpath bug
16658         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16659         * doc/posix-functions/realpath.texi (realpath): Document it.
16660         Reported by Bruno Haible.
16661
16662         strerror: work around FreeBSD bug
16663         * lib/strerror.c (strerror): Special case 0.
16664         Reported by Bruno Haible.
16665
16666         strerror-override: avoid bloating errno module
16667         * modules/errno (Files, configure.ac): Move replacement strings...
16668         * modules/strerror-override: ...to new module.
16669         * modules/strerror (Depends-on): Add strerror-override.
16670         * modules/strerror_r-posix (Depends-on): Likewise.
16671         * MODULES.html.sh: Document new module.
16672         Reported by Bruno Haible.
16673
16674 2011-06-06  Bruno Haible  <bruno@clisp.org>
16675
16676         spawn-pipe tests: Rename program.
16677         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16678         * tests/test-spawn-pipe-child.c: Update comment.
16679         * tests/test-spawn-pipe.sh: Update.
16680         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16681
16682         spawn-pipe tests: Link the child program only against libc.
16683         * tests/test-spawn-pipe-child.c: New file, extracted from
16684         tests/test-spawn-pipe.c.
16685         (main): Expect only one argument.
16686         (is_open): New function, copied from tests/test-pipe.c.
16687         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16688         (child_main): Remove function.
16689         (test_pipe): Pass only one argument to the child program.
16690         (main): Remove child process code. Expect the child program's name as
16691         first argument.
16692         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16693         argument.
16694         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16695         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16696         test-spawn-pipe-child against no libraries.
16697
16698 2011-06-06  Bruno Haible  <bruno@clisp.org>
16699
16700         careadlinkat: Avoid mismatch between ssize_t and int.
16701         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16702         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16703
16704 2011-06-06  Jim Meyering  <meyering@redhat.com>
16705
16706         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16707         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16708         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16709
16710 2011-06-05  Bruno Haible  <bruno@clisp.org>
16711
16712         ansi-c++-opt: Interoperability with libtool.
16713         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16714         set the variable to "no", not to ":".
16715         * NEWS: Mention the change.
16716
16717 2011-06-05  Bruno Haible  <bruno@clisp.org>
16718
16719         acl: Fix test failure on AIX 7.
16720         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16721         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16722
16723 2011-06-05  Bruno Haible  <bruno@clisp.org>
16724
16725         pipe-filter-ii: Fix test failure on AIX and IRIX.
16726         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16727         with EAGAIN, retry with a smaller buffer size.
16728
16729 2011-06-05  Bruno Haible  <bruno@clisp.org>
16730
16731         localename: Fix link dependencies.
16732         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16733         * modules/localename-tests (Makefile.am): Link test-localename with
16734         $(LIBTHREAD).
16735
16736 2011-06-05  Bruno Haible  <bruno@clisp.org>
16737
16738         error: Avoid gcc warning.
16739         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16740
16741 2011-06-05  Bruno Haible  <bruno@clisp.org>
16742
16743         unsetenv: Avoid gcc warning.
16744         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16745
16746 2011-06-05  Bruno Haible  <bruno@clisp.org>
16747
16748         setenv: Avoid gcc warning.
16749         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16750
16751 2011-06-05  Bruno Haible  <bruno@clisp.org>
16752
16753         sys_select: Ensure memset is declared also on AIX 7.
16754         * lib/sys_select.in.h: Include <string.h> also on AIX.
16755         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16756         self-contained also on AIX 7.1.
16757
16758 2011-06-04  Jim Meyering  <meyering@redhat.com>
16759
16760         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16761         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16762         function name, "error".
16763         (_gl_translatable_diag_func_re): New configurable variable.
16764
16765 2011-06-04  Bruno Haible  <bruno@clisp.org>
16766
16767         getopt: Avoid gcc warning.
16768         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16769
16770 2011-06-04  Bruno Haible  <bruno@clisp.org>
16771
16772         strerror_r: Fix comments.
16773         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16774         commit.
16775
16776 2011-06-04  Bruno Haible  <bruno@clisp.org>
16777
16778         perror: Fix compilation error.
16779         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16780         Undefine fprintf, not sprintf.
16781         * modules/perror (Depends-on): Remove intprops, verify.
16782
16783 2011-06-04  Bruno Haible  <bruno@clisp.org>
16784
16785         setlocale: Enable replacement on Cygwin 1.5.
16786         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16787         Cygwin 1.5.x.
16788         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16789         LC_CTYPE category also exists on Cygwin 1.5.x.
16790
16791 2011-06-04  Bruno Haible  <bruno@clisp.org>
16792
16793         strerror-override: Don't disable symbol renamings.
16794         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16795         * lib/strerror-override.c: Include config.h.
16796         (strerror_override): Don't undefine.
16797
16798 2011-06-03  Bruno Haible  <bruno@clisp.org>
16799
16800         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16801         * lib/localename.h: Update copyright header.
16802         * lib/localename.c: Likewise.
16803         * lib/relocatable.h: Likewise.
16804         * lib/relocatable.c: Likewise.
16805
16806 2011-06-02  Bruno Haible  <bruno@clisp.org>
16807
16808         doc: Fix a module name.
16809         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16810
16811 2011-06-02  Bruno Haible  <bruno@clisp.org>
16812
16813         pipe2: Remove dependency on 'nonblocking' module.
16814         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16815         O_NONBLOCK is defined by gnulib.
16816         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16817         is zero.
16818         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16819         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16820         defined by gnulib.
16821         (get_nonblocking_flag): New function.
16822         (main): Test O_NONBLOCK flag only if it is nonzero.
16823         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16824
16825 2011-06-03  Jim Meyering  <meyering@redhat.com>
16826
16827         maint: three new prohibit-header-without-use rules
16828         Prohibit use of cloexec.h, posixver.h, same.h without use.
16829         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16830         (sc_prohibit_posixver_without_use): Likewise.
16831         (sc_prohibit_same_without_use): Likewise.
16832
16833 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16834
16835         allocator: 'die' routine is now given requested size
16836         * lib/allocator.h (struct allocator.die): New size arg.
16837         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16838         If the actual problem is an ssize_t limitation, not a size_t or
16839         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16840
16841 2011-06-01  Eric Blake  <eblake@redhat.com>
16842
16843         strerror: drop strerror_r dependency
16844         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16845         * lib/strerror-override.c (strerror_override): ...to new file.
16846         * lib/strerror-override.h: Add prototype.
16847         * lib/strerror-impl.h: Delete.
16848         * lib/strerror.c (strerror): New implementation.
16849         * modules/errno (Files): Add new files.
16850         (configure.ac): Compile new file as appropriate.
16851         * modules/strerror (Files): Drop unused file.
16852         (Depends-on): Drop strerror_r-posix.
16853         * MODULES.html.sh: Document strerror_r-posix.
16854         Requested by Sam Steingold.
16855
16856         perror: call strerror_r directly
16857         * modules/perror (Files): Drop strerror-impl.h.
16858         * lib/perror.c (perror): Use our own stack buffer, rather than
16859         calling a wrapper that uses static storage.
16860         * doc/posix-functions/perror.texi (perror): Document a limitation
16861         of our replacement.
16862
16863         strerror_r: fix includes for FreeBSD
16864         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16865         since we use abort on some platforms.
16866         Reported by Matthias Bolte.
16867
16868 2011-05-31  Bruno Haible  <bruno@clisp.org>
16869
16870         Fix link errors in tests: openat-die uses gettext-h.
16871         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16872         against $(LIBINTL).
16873         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16874         against $(LIBINTL).
16875         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16876         $(LIBINTL).
16877         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16878         against $(LIBINTL).
16879         * modules/linkat-tests (Makefile.am): Link test-linkat against
16880         $(LIBINTL).
16881         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16882         $(LIBINTL).
16883         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16884         against $(LIBINTL).
16885         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16886         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16887         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16888         $(LIBINTL).
16889         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16890         $(LIBINTL).
16891         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16892         $(LIBINTL).
16893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16894
16895 2011-05-31  Bruno Haible  <bruno@clisp.org>
16896
16897         Fix link errors in tests: wait-process uses gettext-h.
16898         * modules/nonblocking-pipe-tests (Makefile.am): Set
16899         test_nonblocking_pipe_main_LDADD.
16900         * modules/nonblocking-socket-tests (Makefile.am): Link
16901         test-nonblocking-socket-main against $(LIBINTL).
16902         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16903
16904 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16905
16906         assert-h: work around 'verify' incompatibility
16907         * lib/verify.h: Use @...@ directives, not ifdef.
16908         * modules/assert-h (assert.h): Implement the directives.
16909         (assert.h): Substitute the symbol-prefix more consistently.
16910
16911 2011-05-29  Jim Meyering  <meyering@redhat.com>
16912
16913         trim: remove three superfluous assignments
16914         * lib/trim.c (trim2): Remove three superfluous assignments
16915         and correct brace positioning.
16916
16917 2011-05-29  Bruno Haible  <bruno@clisp.org>
16918
16919         wctype-h: Avoid namespace pollution on Solaris 2.6.
16920         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16921         identifiers.
16922         * doc/posix-headers/wctype.texi: Mention the problem.
16923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16924
16925 2011-05-28  Jim Meyering  <meyering@redhat.com>
16926
16927         parse-datetime.y: accommodate -Wstrict-overflow
16928         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16929         placate -Wstrict-overflow.
16930
16931         trim: avoid a warning from -O2 -Wstrict-overflow
16932         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16933
16934 2011-05-29  Bruno Haible  <bruno@clisp.org>
16935
16936         gnulib-tool: Fix bug in yesterday's commit.
16937         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16938         twice.
16939
16940 2011-05-29  Bruno Haible  <bruno@clisp.org>
16941
16942         Allow multiple gnulib generated include files to be combined.
16943         * gnulib-tool (func_compute_include_guard_prefix): New function.
16944         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16945         ${gl_include_guard_prefix} references.
16946         (func_import, func_create_testdir): Invoke
16947         func_compute_include_guard_prefix.
16948         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16949         * lib/ctype.in.h: Likewise.
16950         * lib/dirent.in.h: Likewise.
16951         * lib/errno.in.h: Likewise.
16952         * lib/fcntl.in.h: Likewise.
16953         * lib/float.in.h: Likewise.
16954         * lib/getopt.in.h: Likewise.
16955         * lib/iconv.in.h: Likewise.
16956         * lib/langinfo.in.h: Likewise.
16957         * lib/locale.in.h: Likewise.
16958         * lib/math.in.h: Likewise.
16959         * lib/netdb.in.h: Likewise.
16960         * lib/netinet_in.in.h: Likewise.
16961         * lib/poll.in.h: Likewise.
16962         * lib/pthread.in.h: Likewise.
16963         * lib/pty.in.h: Likewise.
16964         * lib/sched.in.h: Likewise.
16965         * lib/se-selinux.in.h: Likewise.
16966         * lib/search.in.h: Likewise.
16967         * lib/signal.in.h: Likewise.
16968         * lib/spawn.in.h: Likewise.
16969         * lib/stdarg.in.h: Likewise.
16970         * lib/stddef.in.h: Likewise.
16971         * lib/stdint.in.h: Likewise.
16972         * lib/stdio.in.h: Likewise.
16973         * lib/stdlib.in.h: Likewise.
16974         * lib/string.in.h: Likewise.
16975         * lib/strings.in.h: Likewise.
16976         * lib/sys_file.in.h: Likewise.
16977         * lib/sys_ioctl.in.h: Likewise.
16978         * lib/sys_select.in.h: Likewise.
16979         * lib/sys_socket.in.h: Likewise.
16980         * lib/sys_stat.in.h: Likewise.
16981         * lib/sys_time.in.h: Likewise.
16982         * lib/sys_times.in.h: Likewise.
16983         * lib/sys_uio.in.h: Likewise.
16984         * lib/sys_utsname.in.h: Likewise.
16985         * lib/sys_wait.in.h: Likewise.
16986         * lib/sysexits.in.h: Likewise.
16987         * lib/termios.in.h: Likewise.
16988         * lib/time.in.h: Likewise.
16989         * lib/unistd.in.h: Likewise.
16990         * lib/wchar.in.h: Likewise.
16991         * lib/wctype.in.h: Likewise.
16992         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16993         * modules/ctype (Makefile.am): Likewise.
16994         * modules/dirent (Makefile.am): Likewise.
16995         * modules/errno (Makefile.am): Likewise.
16996         * modules/fcntl-h (Makefile.am): Likewise.
16997         * modules/float (Makefile.am): Likewise.
16998         * modules/getopt-posix (Makefile.am): Likewise.
16999         * modules/iconv-h (Makefile.am): Likewise.
17000         * modules/langinfo (Makefile.am): Likewise.
17001         * modules/locale (Makefile.am): Likewise.
17002         * modules/math (Makefile.am): Likewise.
17003         * modules/netdb (Makefile.am): Likewise.
17004         * modules/netinet_in (Makefile.am): Likewise.
17005         * modules/poll-h (Makefile.am): Likewise.
17006         * modules/pthread (Makefile.am): Likewise.
17007         * modules/pty (Makefile.am): Likewise.
17008         * modules/sched (Makefile.am): Likewise.
17009         * modules/search (Makefile.am): Likewise.
17010         * modules/selinux-h (Makefile.am): Likewise.
17011         * modules/signal (Makefile.am): Likewise.
17012         * modules/spawn (Makefile.am): Likewise.
17013         * modules/stdarg (Makefile.am): Likewise.
17014         * modules/stddef (Makefile.am): Likewise.
17015         * modules/stdint (Makefile.am): Likewise.
17016         * modules/stdio (Makefile.am): Likewise.
17017         * modules/stdlib (Makefile.am): Likewise.
17018         * modules/string (Makefile.am): Likewise.
17019         * modules/strings (Makefile.am): Likewise.
17020         * modules/sys_file (Makefile.am): Likewise.
17021         * modules/sys_ioctl (Makefile.am): Likewise.
17022         * modules/sys_select (Makefile.am): Likewise.
17023         * modules/sys_socket (Makefile.am): Likewise.
17024         * modules/sys_stat (Makefile.am): Likewise.
17025         * modules/sys_time (Makefile.am): Likewise.
17026         * modules/sys_times (Makefile.am): Likewise.
17027         * modules/sys_uio (Makefile.am): Likewise.
17028         * modules/sys_utsname (Makefile.am): Likewise.
17029         * modules/sys_wait (Makefile.am): Likewise.
17030         * modules/sysexits (Makefile.am): Likewise.
17031         * modules/termios (Makefile.am): Likewise.
17032         * modules/time (Makefile.am): Likewise.
17033         * modules/unistd (Makefile.am): Likewise.
17034         * modules/wchar (Makefile.am): Likewise.
17035         * modules/wctype-h (Makefile.am): Likewise.
17036         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
17037
17038 2011-05-29  Bruno Haible  <bruno@clisp.org>
17039
17040         assert-h: Allow multiple gnulib generated replacements to coexist.
17041         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
17042
17043 2011-05-29  Bruno Haible  <bruno@clisp.org>
17044
17045         argp: Allow coexistence with strerror_r-posix module.
17046         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
17047         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
17048         by gnulib's <string.h> replacement), assume it has the POSIX signature,
17049         not the glibc signature.
17050
17051 2011-05-28  Bruno Haible  <bruno@clisp.org>
17052
17053         gnulib-tool: Alternative structure of testdirs, similar to --import.
17054         * gnulib-tool: New option --single-configure.
17055         (func_usage): Document it.
17056         (single_configure): New variable.
17057         (func_modules_transitive_closure_separately,
17058         func_modules_transitive_closure_separately,
17059         func_determine_use_libtests, func_modules_add_dummy_separately,
17060         func_modules_to_filelist_separately): New functions, extracted from
17061         func_import.
17062         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
17063         (func_import): Use the new functions.
17064         (func_create_testdir): Set final_modules. Handle $single_configure =
17065         true case.
17066
17067 2011-05-28  Bruno Haible  <bruno@clisp.org>
17068
17069         getloadavg: Remove an unreliable safety check.
17070         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
17071         getloadavg.c is in place.
17072         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
17073         Reported by Sam Steingold <sds@gnu.org>.
17074
17075 2011-05-28  Bruno Haible  <bruno@clisp.org>
17076
17077         doc: Cleanup yet another file produced by texinfo.tex.
17078         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
17079
17080 2011-05-28  Bruno Haible  <bruno@clisp.org>
17081
17082         Finish the conditional dependencies mechanism.
17083         * gnulib-tool: New option --no-conditional-dependencies.
17084         (func_usage): Document it. Don't mark --conditional-dependencies as
17085         experimental.
17086         (cond_dependencies): The possible values can now be true, false, empty.
17087         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
17088         (func_import): Store setting in gnulib-cache.m4 and read it from there.
17089         * doc/gnulib-tool.texi (Conditional dependencies): New section.
17090
17091 2011-05-28  Bruno Haible  <bruno@clisp.org>
17092
17093         doc: Use a recent texinfo.tex.
17094         * doc/Makefile (tex_opts): New variable.
17095         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
17096
17097 2011-05-28  Jim Meyering  <meyering@redhat.com>
17098
17099         intprops.h: adjust comment to match code change
17100         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
17101         only once, it *may* have side effects.  Also fix an unrelated typo.
17102         (_GL_INT_SIGNED): Likewise.
17103
17104 2011-05-26  Simon Josefsson  <simon@josefsson.org>
17105
17106         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
17107
17108 2011-05-26  Bruno Haible  <bruno@clisp.org>
17109
17110         mbsrchr: Avoid collision with system function on Interix.
17111         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
17112         Reported by Markus Duft <mduft@gentoo.org>.
17113
17114 2011-05-15  James Youngman  <jay@gnu.org>
17115
17116         getopt: for ambiguous options, enumerate the possibilities.
17117         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
17118         the ambiguous options when an ambiguous prefix is given. This was
17119         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
17120         glibc change was
17121         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
17122
17123 2011-05-25  Eric Blake  <eblake@redhat.com>
17124
17125         getcwd: work around mingw bug
17126         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
17127         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17128         Reported by Matthias Bolte.
17129
17130 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
17131
17132         test-intprops: disable -Wtype-limits diagnostics
17133         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17134         diagnostics.  Otherwise, the integer overflow macros generate many
17135         diagnostics.  Reported by Jim Meyering in
17136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17137
17138         intprops: shorten, to pacify gcc -Woverlength-strings
17139         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17140         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17141         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17142         likely to run afoul of C compiler limits for string constant lengths.
17143         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17144
17145 2011-05-24  Eric Blake  <eblake@redhat.com>
17146
17147         docs: document recently fixed glibc printf bug
17148         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17149         * doc/posix-functions/printf.texi (printf): Likewise.
17150         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17151         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17152
17153         closein-tests: convert to init.sh
17154         * modules/closein-tests (Files): Add init.sh
17155         * tests/test-closein.sh Use it.
17156
17157         yesno-tests: convert to init.sh
17158         * modules/yesno-tests (Files): Add init.sh.
17159         * tests/test-yesno.sh: Use it.
17160
17161         atexit-tests: ensure reliable exit status
17162         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17163         Reported by Bruno Haible.
17164
17165 2011-05-24  Bruno Haible  <bruno@clisp.org>
17166
17167         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17168         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17169         gl_PREREQ_STRERROR_R invocations from here...
17170         * modules/strerror_r-posix (configure.ac): ... to here.
17171
17172 2011-05-24  Eric Blake  <eblake@redhat.com>
17173
17174         strerror_r: fix missing header
17175         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17176
17177         strerror_r: fix AIX test failures
17178         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17179         ERANGE failure.
17180
17181         strerror_r: fix Solaris test failures
17182         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17183         failures.
17184         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17185
17186         strerror_r: enforce POSIX recommendations
17187         * lib/strerror_r.c (safe_copy): New helper method.
17188         (strerror_r): Guarantee a non-empty string.
17189         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17190         recent POSIX rulings and to match our strerror guarantees.
17191         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17192
17193 2011-05-24  Jim Meyering  <meyering@redhat.com>
17194
17195         test-perror2.c: avoid warning about unused variable
17196         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17197
17198 2011-05-24  Eric Blake  <eblake@redhat.com>
17199
17200         perror: avoid spurious test failure on HP-UX
17201         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17202
17203         tests: fix logic bug in init.sh
17204         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17205         shell.
17206
17207 2011-05-24  Jim Meyering  <meyering@redhat.com>
17208
17209         utimensat: do not reference an out-of-scope buffer
17210         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17211         declared in an inner scope, yet "times" would be dereferenced outside
17212         the scope in which "ts" was valid.
17213         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17214         of ts[2] "out/up", so that the use of aliased "times" (via
17215         "times = ts;") does not end up referencing an out-of-scope "ts"
17216
17217         opendir-safer.c: don't clobber errno; don't close negative FD
17218         * lib/opendir-safer.c (opendir_safer):
17219         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17220         file descriptor, and more importantly, don't clobber the
17221         offending errno value with EINVAL.  Before, upon failure
17222         of dup_safer, we would pass the negative file descriptor to
17223         fdopendir, which would clobber errno.
17224
17225 2011-05-23  Bruno Haible  <bruno@clisp.org>
17226
17227         idcache: Fix module description.
17228         * modules/idcache (Include): Set to "idcache.h".
17229
17230 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17231
17232         gnulib-tool: fix portability problem with MacOS sed
17233         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17234         before the "}".  Problem reported by Leo in
17235         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17236         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17237         sed_extract_condition1, sed_extract_condition2.
17238
17239 2011-05-23  Bruno Haible  <bruno@clisp.org>
17240
17241         hash: Simplify autoconf macro.
17242         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17243
17244 2011-05-23  Bruno Haible  <bruno@clisp.org>
17245
17246         getugroups: Fix module description.
17247         * modules/getugroups (Include): Set to "getugroups.h".
17248
17249 2011-05-23  Bruno Haible  <bruno@clisp.org>
17250
17251         linkat: Simplify autoconf macro.
17252         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17253
17254 2011-05-23  Bruno Haible  <bruno@clisp.org>
17255             Eric Blake  <eblake@redhat.com>
17256
17257         linkat, renameat: Update dependencies.
17258         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17259         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17260         symlinkat.
17261
17262 2011-05-23  Jim Meyering  <meyering@redhat.com>
17263
17264         maint.mk: more tight_scope improvements
17265         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17266         (_gl_TS_headers): Define only in if-0'd block.
17267         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17268         sometimes we must *not* use it.  Adjust uses accordingly.
17269         (sc_tight_scope): Use much simpler grep-based test to determine
17270         whether we skip this rule.
17271
17272         maint.mk: generalize/improve the tight-scope rule
17273         * top/maint.mk: Emit a warning when the test is skipped.
17274         (_gl_TS_dir): Add $(srcdir)/ prefix.
17275         (_gl_TS_function_match): Simplify, rather than trying
17276         to enumerate common types.  Otherwise, it would fail to match an
17277         "extern unsigned char const *" declaration in idutils.
17278         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17279         a way to support use of that type of macro.
17280         (_gl_TS_var_match): Simplify regexp.
17281         (_gl_TS_obj_files): New configurable variable.
17282         (_gl_TS_headers): Likewise.
17283
17284 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17285
17286         verify: fix bug when gnulib <assert.h> is also included
17287         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17288         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17289         Perhaps there's a better way, but this fixes the immediate problem.
17290         Problem reported by Bruno Haible in
17291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17292
17293 2011-05-22  Bruno Haible  <bruno@clisp.org>
17294
17295         xgetcwd: Simplify autoconf macro.
17296         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17297
17298 2011-05-22  Bruno Haible  <bruno@clisp.org>
17299
17300         New module 'mktime-internal'.
17301         * modules/mktime-internal: New file.
17302         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17303         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17304         mktime_internal as a C macro if libc has __mktime_internal.
17305         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17306         conditions.
17307         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17308
17309 2011-05-22  Bruno Haible  <bruno@clisp.org>
17310
17311         timegm: Correct mktime replacement statements.
17312         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17313         defining mktime as a C macro. This completes a 2009-07-28 commit.
17314
17315 2011-05-22  Bruno Haible  <bruno@clisp.org>
17316
17317         timegm: Simplify autoconf macro.
17318         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17319
17320 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17321
17322         clock-time: change to LGPLv2+.
17323         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17324         BSD-like but we have no mark for that; this is good enough for now.
17325
17326 2011-05-21  Bruno Haible  <bruno@clisp.org>
17327
17328         strerror_r: Fix comments.
17329         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17330
17331 2011-05-21  Bruno Haible  <bruno@clisp.org>
17332
17333         relocatable-prog-wrapper: Fix possible link error.
17334         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17335         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17336         (gl_FUNC_SETENV): ... to here.
17337         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17338         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17339
17340 2011-05-21  Bruno Haible  <bruno@clisp.org>
17341
17342         relocatable-prog-wrapper: Assume strerror() exists.
17343         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17344         m4/strerror.m4.
17345         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17346         * lib/relocwrapper.c: Remove mention of strerror module.
17347         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17348         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17349         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17350         C macro.
17351
17352 2011-05-21  Bruno Haible  <bruno@clisp.org>
17353
17354         select: Simplify replacement idiom.
17355         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17356         Win32 platforms.
17357         * lib/sys_select.in.h (select): Simplify accordingly.
17358         * modules/select (Depends-on): Likewise.
17359
17360 2011-05-21  Bruno Haible  <bruno@clisp.org>
17361
17362         mkdir-p: Simplify autoconf macro.
17363         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17364         gl_FUNC_LCHOWN.
17365
17366 2011-05-21  Eric Blake  <eblake@redhat.com>
17367
17368         strerror_r: avoid clobbering strerror on cygwin
17369         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17370         fall back instead to sys_errlist.
17371         * modules/strerror (configure.ac): Add witness.
17372         * tests/test-strerror_r.c (main): Enhance test.
17373         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17374         * tests/test-perror2.c (main): Free memory before exit.
17375
17376 2011-05-21  Bruno Haible  <bruno@clisp.org>
17377
17378         mkdtemp: Use gnulib naming conventions.
17379         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17380         * modules/mkdtemp (configure.ac): Update.
17381
17382 2011-05-20  Eric Blake  <eblake@redhat.com>
17383
17384         strerror_r: avoid corrupting errno on Solaris
17385         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17386         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17387
17388         strerror_r: avoid compiler warning
17389         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17390
17391         strerror_r: simplify AIX code
17392         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17393
17394         test-perror: avoid spurious failure on FreeBSD
17395         * modules/perror-tests (Depends-on): Add strerror, now that
17396         strerror_r no longer pulls it in.
17397
17398 2011-05-20  Bruno Haible  <bruno@clisp.org>
17399
17400         strerror_r-posix: Remove unused dependencies.
17401         * modules/strerror_r-posix (Depends-on): Remove strerror.
17402         Reported by Eric Blake.
17403
17404 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17405
17406         intprops: remove assumption about A|B representation
17407         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17408         is a valid integer if both A and B are.  Although this is true for
17409         all known practical hosts, the C standard doesn't guarantee it,
17410         and the code need not assume it.  Also, this change may work around
17411         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17413
17414 2011-05-20  Eric Blake  <eblake@redhat.com>
17415
17416         perror: work around FreeBSD bug
17417         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17418         is broken.  Move AC_LIBOBJ...
17419         * modules/perror (configure.ac): Here.
17420         * doc/posix-functions/perror.texi (perror): Document this.
17421         * tests/test-perror2.c (main): Enhance test.
17422
17423         test-perror: check for strerror interactions
17424         * tests/macros.h (STREQ): Add macro.
17425         * modules/perror-tests (Files): Add second test.
17426         * tests/test-perror2.c (main): New file.
17427         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17428
17429         test-perror: rewrite to use init script
17430         * modules/perror-tests (Files): Add init.sh.
17431         * tests/test-perror.sh: Use temporary directory.
17432
17433 2011-05-20  Jim Meyering  <meyering@redhat.com>
17434
17435         maint: replace misused "a" with "an"
17436         * doc/intprops.texi: "a integer"
17437         * doc/regex.texi: "a explanation"
17438         * lib/alignof.h: "a object"
17439         * lib/argmatch.h: "a explanation"
17440         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17441         * lib/stdint.in.h: "a integer"
17442         * lib/userspec.c: "a owner"
17443         * doc/gnulib.texi: Fix "a idea", and reword.
17444
17445 2011-05-19  Jim Meyering  <meyering@redhat.com>
17446
17447         maint: correct misuse of "a" and "an"
17448         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17449         * lib/argp-help.c: "an docum...": s/an/a/
17450         * lib/argp-parse.c: "An vector": s/An/A/
17451         * lib/execute.c: "an native": s/an/a/
17452         * lib/spawn-pipe.c: Likewise.
17453         * lib/gc.h: "an Gc_rc": s/an/a/
17454         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17455         * lib/fts.c: "an stat.st_dev": s/an/a/
17456
17457 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17458
17459         intprops-tests: work around HP-UX 11.23 cc bug with constants
17460         * tests/test-intprops.c (VERIFY): New macro.
17461         (main): Use it, instead of verify, to work around the compiler bug; see
17462         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17463
17464         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17465         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17466         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17467         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17468         (_GL_REMAINDER_OVERFLOW): Use it.
17469
17470         intprops-tests: revert unsigned part of previous change
17471         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17472         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17473         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17475
17476 2011-05-19  Bruno Haible  <bruno@clisp.org>
17477
17478         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17479         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17480         strerror_r() returned without filling the buffer.
17481         Reported by Eric Blake.
17482
17483 2011-05-19  Eric Blake  <eblake@redhat.com>
17484
17485         strerror_r: guarantee unchanged errno
17486         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17487         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17488         failure.
17489         * tests/test-strerror_r.c (main): Enhance test.
17490
17491 2011-05-19  Bruno Haible  <bruno@clisp.org>
17492
17493         strerror_r: Reorder #if blocks.
17494         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17495         for consistency with the previous commit.
17496
17497 2011-05-19  Bruno Haible  <bruno@clisp.org>
17498
17499         perror: Avoid clobbering the strerror buffer when possible.
17500         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17501         * lib/strerror.c: Include it.
17502         * modules/strerror (Files): Add lib/strerror-impl.h.
17503         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17504         (my_strerror): New function, defined through lib/strerror-impl.h.
17505         (perror): Use it instead of strerror.
17506         * modules/perror (Files): Add lib/strerror-impl.h.
17507         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17508
17509 2011-05-19  Eric Blake  <eblake@redhat.com>
17510
17511         strerror_r: fix on newer cygwin
17512         * lib/strerror_r.c (strerror_r): Cygwin now has
17513         __xpg_strerror_r, use it.
17514
17515 2011-05-19  Bruno Haible  <bruno@clisp.org>
17516
17517         strerror_r: Avoid clobbering the strerror buffer when possible.
17518         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17519         (sys_nerr, sys_errlist): New declarations.
17520         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17521         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17522         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17523
17524 2011-05-19  Bruno Haible  <bruno@clisp.org>
17525
17526         strerror_r: Fix test failure on mingw.
17527         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17528         EXTEND_STRERROR_R.
17529         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17530         macros from errno.in.h instead.
17531
17532 2011-05-19  Eric Blake  <eblake@redhat.com>
17533
17534         strerror: relax test for Solaris
17535         * tests/test-strerror.c (main): Permit Solaris behavior.
17536         * tests/test-strerror_r.c (main): Likewise.
17537
17538         strerror: enforce POSIX ruling on strerror(0)
17539         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17540         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17541         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17542         * doc/posix-functions/strerror.texi (strerror): Document it.
17543         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17544         * tests/test-strerror.c (main): Strengthen test.
17545         * tests/test-strerror_r.c (main): Likewise.
17546
17547 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17548
17549         intprop-tests: port to older and more-pedantic compilers
17550         * modules/intprops-tests (Files): Add tests/macros.h.
17551         * tests/test-intprops.c: Include macros.h.
17552         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17553         it's no longer documented to expand to an integer constant expression.
17554         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17555         argument is floating point, as it's no longer documented to expand
17556         to an integer constant expression in that case.
17557         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17558         compiler bugs reported by Bruno Haible.  See
17559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17560         (U0, U1): New constants, to work around the same bugs.  Also,
17561         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17562
17563         intprops: work around C compiler bugs
17564         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17565         bug in Sun C 5.11 2010/08/13 and other compilers; see
17566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17567
17568         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17569         * doc/intprops.texi (Integer Type Determination): Fix
17570         documentation for TYPE_IS_INTEGER: it returns an constant
17571         expression, not an integer constant expression.  Fix doc for
17572         TYPE_SIGNED: it returns an integer constant expression only if its
17573         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17574         hardly worth documented that way....)
17575
17576 2011-05-18  Bruno Haible  <bruno@clisp.org>
17577
17578         strerror_r: Avoid clobbering the strerror buffer when possible.
17579         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17580         Handle gnulib defined errno values here. When strerror() returns NULL
17581         or an empty string, return EINVAL.
17582         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17583         gnulib defined errno values here.
17584         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17585
17586 2011-05-18  Eric Blake  <eblake@redhat.com>
17587
17588         fnmatch: avoid compiler warning
17589         * lib/fnmatch_loop.c (FCT): Use correct type.
17590         Reported by Matthias Bolte.
17591
17592 2011-05-13  Jim Meyering  <meyering@redhat.com>
17593
17594         maint.mk: three new prohibit_<HDR>_without_use rules
17595         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17596         (sc_prohibit_stdio-safer_without_use): Likewise.
17597         (sc_prohibit_xfreopen_without_use): Likewise.
17598
17599 2011-05-17  Jim Meyering  <meyering@redhat.com>
17600
17601         announce-gen: fail if the NEWS delta is empty
17602         If there's nothing noteworthy in NEWS, then either you forgot
17603         or you shouldn't be releasing.
17604         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17605
17606 2011-05-17  Pádraig Brady <P@draigBrady.com>
17607
17608         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17609         reserved symbols starting with double underscore from the check.
17610
17611 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17612
17613         intprops: add doc
17614         * doc/intprops.texi: New file, documenting intprops.
17615         * doc/gnulib.texi (Particular Modules): Include it.
17616
17617         verify: add doc to gnulib manual and fix example
17618         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17619         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17620         (Compile-time Assertions): Fix example so it can't overflow.
17621
17622 2011-05-17  Jim Meyering  <meyering@redhat.com>
17623
17624         warnings.m4: don't usurp save_CPPFLAGS variable name
17625         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17626
17627         doc: fix typo
17628         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17629
17630 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17631             Bruno Haible  <bruno@clisp.org>
17632
17633         doc: Tweak recent change.
17634         * README (Portability guidelines): Tweak new text.
17635         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17636         Interix 6.1.
17637
17638 2011-05-16  Eric Blake  <eblake@redhat.com>
17639
17640         inttypes: avoid autoconf warning
17641         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17642         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17643
17644 2011-05-16  Sam Steingold <sds@gnu.org>
17645         and Eric Blake  <eblake@redhat.com>
17646
17647         vc-list-files: accept multiple directory operands
17648         * build-aux/vc-list-files: Iterate over all remaining operands.
17649
17650 2011-05-16  Bruno Haible  <bruno@clisp.org>
17651
17652         Fix confusion regarding deprecated modules.
17653         * modules/calloc (Status, Notice): Mark module as deprecated, not
17654         obsolete.
17655         * modules/fnmatch-posix (Status, Notice): Likewise.
17656         * modules/getdate (Status, Notice): Likewise.
17657         * modules/getopt (Status, Notice): Likewise.
17658         * modules/malloc (Status, Notice): Likewise.
17659         * modules/pipe (Status, Notice): Likewise.
17660         * modules/realloc (Status, Notice): Likewise.
17661         * modules/rename-dest-slash (Status, Notice): Likewise.
17662         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17663         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17664         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17665         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17666         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17667
17668 2011-05-16  Bruno Haible  <bruno@clisp.org>
17669
17670         doc: List the target platforms.
17671         * doc/gnulib-intro.texi (Target Platforms): New section.
17672         * doc/gnulib.texi (Introduction): Update menu.
17673         * README (Portability guidelines): Refer to the new section. Update
17674         statement about oldest supported environment. Remove rationale why
17675         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17676         unportable C89 function.
17677         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17678         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17679
17680 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17681
17682         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17683
17684 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17685
17686         intprops-tests: new module
17687         * modules/intprops-tests, tests/test-intprops.c: New files.
17688
17689         intprops: add safe, portable integer overflow checking
17690         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17691         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17692         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17693         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17694         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17695         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17696         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17697         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17698         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17699         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17700         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17701
17702 2011-05-12  James Youngman  <jay@gnu.org>
17703
17704         Add a test for glibc's Bugzilla bug #12378.
17705         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17706         doesn't allow the literal matching of a lone "[" (which is
17707         required by POSIX).
17708         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17709
17710 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17711
17712         Sync glibc change fixing Bugzilla bug #12378.
17713         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17714         beginning and fall back to matching as normal character if the
17715         string ends before the matching ']' is found.  This is what POSIX
17716         requires.
17717
17718 2011-05-13  Eric Blake  <eblake@redhat.com>
17719
17720         getcwd-lgpl: relax test for FreeBSD
17721         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17722         issue.
17723         * tests/test-getcwd-lgpl.c (main): Relax test.
17724         Reported by Matthias Bolte.
17725
17726 2011-05-11  Eric Blake  <eblake@redhat.com>
17727
17728         test-fflush: silence compiler warning
17729         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17730
17731 2011-05-11  Bruno Haible  <bruno@clisp.org>
17732
17733         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17734         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17735         * modules/canonicalize (Depends-on): Add 'nocrash'.
17736         * modules/canonicalize-lgpl (Depends-on): Likewise.
17737         * doc/posix-functions/realpath.texi: Update platforms list.
17738         Reported by Ryan Schmidt <ryandesign@macports.org>.
17739
17740 2011-05-11  Bruno Haible  <bruno@clisp.org>
17741
17742         group-member: Declare function in <unistd.h>.
17743         * lib/unistd.in.h (group_member): New declaration.
17744         * lib/group-member.h: Remove file.
17745         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17746         * tests/test-unistd-c++.cc: Check signature of group_member.
17747         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17748         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17749         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17750         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17751         HAVE_GROUP_MEMBER.
17752         * modules/group-member (Files): Remove lib/group-member.h.
17753         (Depends-on): Add unistd. Specify conditions.
17754         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17755         (Include): Change to <unistd.h>.
17756         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17757         HAVE_GROUP_MEMBER.
17758         * NEWS: Mention the change.
17759         * lib/euidaccess.c: Don't include group-member.h.
17760
17761 2011-05-11  Bruno Haible  <bruno@clisp.org>
17762
17763         group-member: Document module.
17764         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17765         module.
17766
17767 2011-05-11  Bruno Haible  <bruno@clisp.org>
17768
17769         fclose: Fix mistake earlier today.
17770         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17771
17772 2011-05-11  Eric Blake  <eblake@redhat.com>
17773
17774         fclose: preserve fflush errors
17775         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17776         Reported by Jim Meyering.
17777
17778         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17779         * build-aux/bootstrap (check_versions): When no specific version
17780         is required, merely check that the app produces an exit status
17781         that indicates its existence.
17782
17783         maint.mk: drop redundant check
17784         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17785         the same but better.
17786
17787 2011-05-11  Bruno Haible  <bruno@clisp.org>
17788
17789         fclose: Fix possible link error.
17790         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17791         unregister_shadow_fd. Improve comments.
17792         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17793         Eric Blake.
17794
17795 2011-05-11  Jim Meyering  <meyering@redhat.com>
17796
17797         maint.mk: improve "can not" detection and generalize rule name
17798         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17799         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17800         Use the same technique as in sc_prohibit_doubled_word, so that
17801         we recognize "can not" also when the words are separated by a newline.
17802         Suggested by Eric Blake.
17803         (perl_filename_lineno_text_): Define.  Factored out of...
17804         (prohibit_doubled_word_): ...here.  Use the new definition.
17805         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17806         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17807         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17808
17809 2011-05-10  Eric Blake  <eblake@redhat.com>
17810
17811         fclose: avoid double close race when possible
17812         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17813         all but WINDOWS_SOCKETS.
17814
17815 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17816
17817         openat: correct new comment
17818         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17819
17820 2011-05-10  Jim Meyering  <meyering@redhat.com>
17821
17822         openat: add comments
17823         * lib/openat-proc.c (openat_proc_name): Add comments,
17824         mostly from Eric Blake.
17825
17826 2011-05-09  Eric Blake  <eblake@redhat.com>
17827
17828         openat: reduce syscalls in first probe of /proc
17829         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17830         be a directory.  Simplify the probe for .. bugs.
17831         * modules/openat (Depends-on): Drop same-inode.
17832         Reported by Bastien ROUCARIES.
17833
17834 2011-05-09  Jim Meyering  <meyering@redhat.com>
17835
17836         maint.mk: change semantics/name of tight_scope variables
17837         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17838         Rename variables to align with semantics that make them more useful.
17839
17840         maint.mk: tweak new rule's name not to impinge
17841         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17842         (sc_tight_scope): Use new rule name rather than $@-0.
17843
17844         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17845         * top/maint.mk (sc_tight_scope): New rule.
17846         (sc_tight_scope-0): New rule, ifdef'd out.
17847         (_gl_TS_dir): Default.
17848         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17849         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17850
17851 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17852
17853         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17854         Haible <bruno@clisp.org>.
17855
17856 2011-05-08  Bruno Haible  <bruno@clisp.org>
17857
17858         Comments.
17859         * m4/isnanf.m4: Add comment.
17860         * m4/isnanl.m4: Likewise.
17861
17862 2011-05-08  Bruno Haible  <bruno@clisp.org>
17863
17864         glob: Remove obsolete macro.
17865         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17866
17867 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17868
17869         intprops: Sun C 5.11 supports __typeof__
17870         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17871         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17872         which is new.
17873         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17874
17875         intprops: switch to usual gnulib indenting and naming
17876         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17877         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17878
17879         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17880
17881 2011-05-08  Jim Meyering  <meyering@redhat.com>
17882
17883         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17884         * top/maint.mk (release-prep): Use make's --no-print-directory
17885         option when generating the announcement.  This eliminates the
17886         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17887         generated announcement template.
17888
17889 2011-05-08  Bruno Haible  <bruno@clisp.org>
17890
17891         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17892         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17893         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17894
17895 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17896
17897         ignore-value, verify: Omit include files from lib_SOURCES.
17898         * modules/ignore-value, modules/verify (Makefile.am):
17899         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17900         that leads Automake to duplicate use of am__objects_... variables
17901         in Makefile.in.  See
17902         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17903
17904 2011-05-07  Bruno Haible  <bruno@clisp.org>
17905
17906         fclose: Simplify autoconf macro.
17907         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17908         defined.
17909
17910 2011-05-07  Bruno Haible  <bruno@clisp.org>
17911
17912         canonicalize-lgpl: Fix autoconf macro ordering bug.
17913         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17914         gl_STDLIB_H_DEFAULTS.
17915
17916 2011-05-06  Eric Blake  <eblake@redhat.com>
17917
17918         maintainer-makefile: make sc_po_check easier to tune
17919         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17920         to probe for strings, such as an alternate location for gnulib.
17921
17922         fclose: guarantee behavior on seekable stdin
17923         * modules/fclose (Depends-on): Add fflush.
17924         * doc/posix-functions/fclose.texi (fclose): Document this.
17925         * tests/test-fclose.c (main): Make test for this unconditional.
17926
17927 2011-05-06  Bruno Haible  <bruno@clisp.org>
17928
17929         fflush, fpurge: Relicense under LGPLv2+.
17930         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17931         * modules/fpurge (License): Likewise.
17932         With permission from Eric Blake and Jim Meyering.
17933         Suggested by Eric Blake.
17934
17935 2011-05-06  Karl Berry  <karl@gnu.org>
17936
17937         * MODULES.html.sh (func_all_modules): remove exit.
17938
17939 2011-05-06  Jim Meyering  <meyering@redhat.com>
17940
17941         maint.mk: use info-gnu@ as the default only for a stable release
17942         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17943         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17944         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17945         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17946
17947 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17948
17949         assert-h: new module, which supports C1X-style static_assert
17950         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17951         * lib/verify.h: Revamp so that this can be copied into assert.h,
17952         while retaining the ability to use it standalone as before.
17953         Rename private identifiers so as not to encroach on the
17954         standard C namespace, since this is now used by assert.h.
17955         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17956         the old verify_true.
17957         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17958         the old verify_true.  Use _GL_VERIFY_TYPE.
17959         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17960         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17961         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17962         defined when this file is copied into the replacement assert.h.
17963         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17964         and _Static_assert is not built in.
17965         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17966         defined, and use the new macros mentioned above.
17967         * doc/posix-headers/assert.texi: Document this.
17968
17969 2011-05-05  Bruno Haible  <bruno@clisp.org>
17970
17971         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17972         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17973         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17974         gl_REPLACE_FCLOSE here.
17975         * modules/fflush (Depends-on): Remove fclose.
17976         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17977         combination with module 'fclose'.
17978
17979 2011-05-05  Bruno Haible  <bruno@clisp.org>
17980
17981         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17982         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17983         gl_FUNC_FFLUSH.
17984         (gl_FUNC_FFLUSH): Use it.
17985         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17986         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17987         gl_REPLACE_FSEEKO here.
17988
17989 2011-05-05  Bruno Haible  <bruno@clisp.org>
17990
17991         tzset: Relicense under LGPL.
17992         * modules/tzset (License): Change to LGPL.
17993         No agreement needed; it's a no-op.
17994
17995         strtoimax, strtoumax: Relicense under LGPL.
17996         * modules/strtoimax (License): Change to LGPL.
17997         * modules/strtoumax (License): Likewise.
17998         With permission from Jim Meyering, Paul Eggert:
17999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
18000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
18001
18002         getgroups: Relicense under LGPL.
18003         * modules/getgroups (License): Change to LGPL.
18004         With permission from Jim Meyering, Paul Eggert, Eric Blake:
18005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18008
18009         nanosleep: Relicense under LGPL.
18010         * modules/nanosleep (License): Change to LGPL.
18011         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
18012         Haible:
18013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18017
18018         futimens: Relicense under LGPL.
18019         * modules/futimens (License): Change to LGPL.
18020         With permission from Eric Blake:
18021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18022
18023         fflush: Relicense under LGPL.
18024         * modules/fflush (License): Change to LGPL.
18025         With permission from Eric Blake, Bruno Haible, Jim Meyering:
18026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
18029
18030         tmpfile: Relicense under LGPL.
18031         * modules/tmpfile (License): Change to LGPL.
18032         With permission from Ben Pfaff:
18033         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18034
18035         isfinite: Relicense under LGPL.
18036         * modules/isfinite (License): Change to LGPL.
18037         With permission from Ben Pfaff, Bruno Haible:
18038         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
18040
18041         acosl..tanl: Relicense under LGPL.
18042         * modules/acosl (License): Change to LGPL.
18043         * modules/asinl (License): Likewise.
18044         * modules/atanl (License): Likewise.
18045         * modules/cosl (License): Likewise.
18046         * modules/expl (License): Likewise.
18047         * modules/logl (License): Likewise.
18048         * modules/sinl (License): Likewise.
18049         * modules/sqrtl (License): Likewise.
18050         * modules/tanl (License): Likewise.
18051         Source code originally from glibc and Paolo Bonzini. Agreements:
18052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
18053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
18054
18055 2011-05-05  Bruno Haible  <bruno@clisp.org>
18056
18057         signal: Define sighandler_t.
18058         * lib/signal.in.h (sighandler_t): New type.
18059         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
18060         whether sighandler_t is defined.
18061         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
18062         * modules/signal (Depends-on): Add extensions.
18063         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
18064         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
18065         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
18066
18067 2011-05-05  Eric Blake  <eblake@redhat.com>
18068
18069         maint: remove useless REPLACE_*_H macros
18070         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
18071         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18072         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18073         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
18074         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18075         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18076         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
18077         * m4/btowc.m4: Update callers.
18078         * m4/dirfd.m4: Likewise.
18079         * m4/duplocale.m4: Likewise.
18080         * m4/fchdir.m4: Likewise.
18081         * m4/fdopendir.m4: Likewise.
18082         * m4/inet_ntop.m4: Likewise.
18083         * m4/inet_pton.m4: Likewise.
18084         * m4/ioctl.m4: Likewise.
18085         * m4/mbrlen.m4: Likewise.
18086         * m4/mbrtowc.m4: Likewise.
18087         * m4/mbsinit.m4: Likewise.
18088         * m4/mbsnrtowcs.m4: Likewise.
18089         * m4/mbsrtowcs.m4: Likewise.
18090         * m4/poll.m4: Likewise.
18091         * m4/setlocale.m4: Likewise.
18092         * m4/wcrtomb.m4: Likewise.
18093         * m4/wcsnrtombs.m4: Likewise.
18094         * m4/wcsrtombs.m4: Likewise.
18095         * m4/wctob.m4: Likewise.
18096         * m4/wcwidth.m4: Likewise.
18097         * modules/posix_spawn: Likewise.
18098         * modules/posix_spawn_file_actions_addclose: Likewise.
18099         * modules/posix_spawn_file_actions_adddup2: Likewise.
18100         * modules/posix_spawn_file_actions_addopen: Likewise.
18101         * modules/posix_spawn_file_actions_destroy: Likewise.
18102         * modules/posix_spawn_file_actions_init: Likewise.
18103         * modules/posix_spawnattr_destroy: Likewise.
18104         * modules/posix_spawnattr_getflags: Likewise.
18105         * modules/posix_spawnattr_getpgroup: Likewise.
18106         * modules/posix_spawnattr_getschedparam: Likewise.
18107         * modules/posix_spawnattr_getschedpolicy: Likewise.
18108         * modules/posix_spawnattr_getsigdefault: Likewise.
18109         * modules/posix_spawnattr_getsigmask: Likewise.
18110         * modules/posix_spawnattr_init: Likewise.
18111         * modules/posix_spawnattr_setflags: Likewise.
18112         * modules/posix_spawnattr_setpgroup: Likewise.
18113         * modules/posix_spawnattr_setschedparam: Likewise.
18114         * modules/posix_spawnattr_setschedpolicy: Likewise.
18115         * modules/posix_spawnattr_setsigdefault: Likewise.
18116         * modules/posix_spawnattr_setsigmask: Likewise.
18117         * modules/posix_spawnp: Likewise.
18118
18119 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
18120
18121         Add option to do-release-commit-and-tag to specify branch.
18122         * build-aux/do-release-commit-and-tag: Add --branch.
18123
18124 2011-05-03  Bruno Haible  <bruno@clisp.org>
18125
18126         Avoid unnecessary compilation units, through conditional dependencies.
18127         * modules/accept (Depends-on): Add conditions to the dependencies.
18128         * modules/acosl (Depends-on): Likewise.
18129         * modules/argz (Depends-on): Likewise.
18130         * modules/asinl (Depends-on): Likewise.
18131         * modules/atanl (Depends-on): Likewise.
18132         * modules/atoll (Depends-on): Likewise.
18133         * modules/bind (Depends-on): Likewise.
18134         * modules/btowc (Depends-on): Likewise.
18135         * modules/canonicalize-lgpl (Depends-on): Likewise.
18136         * modules/ceil (Depends-on): Likewise.
18137         * modules/ceilf (Depends-on): Likewise.
18138         * modules/ceill (Depends-on): Likewise.
18139         * modules/chdir-long (Depends-on): Likewise.
18140         * modules/chown (Depends-on): Likewise.
18141         * modules/close (Depends-on): Likewise.
18142         * modules/connect (Depends-on): Likewise.
18143         * modules/cosl (Depends-on): Likewise.
18144         * modules/dirfd (Depends-on): Likewise.
18145         * modules/dprintf (Depends-on): Likewise.
18146         * modules/dprintf-posix (Depends-on): Likewise.
18147         * modules/error (Depends-on): Likewise.
18148         * modules/euidaccess (Depends-on): Likewise.
18149         * modules/expl (Depends-on): Likewise.
18150         * modules/faccessat (Depends-on): Likewise.
18151         * modules/fchdir (Depends-on): Likewise.
18152         * modules/fclose (Depends-on): Likewise.
18153         * modules/fcntl (Depends-on): Likewise.
18154         * modules/fdopendir (Depends-on): Likewise.
18155         * modules/fflush (Depends-on): Likewise.
18156         * modules/floor (Depends-on): Likewise.
18157         * modules/floorf (Depends-on): Likewise.
18158         * modules/floorl (Depends-on): Likewise.
18159         * modules/fnmatch (Depends-on): Likewise.
18160         * modules/fopen (Depends-on): Likewise.
18161         * modules/fprintf-posix (Depends-on): Likewise.
18162         * modules/frexp (Depends-on): Likewise.
18163         * modules/frexp-nolibm (Depends-on): Likewise.
18164         * modules/frexpl (Depends-on): Likewise.
18165         * modules/frexpl-nolibm (Depends-on): Likewise.
18166         * modules/fseek (Depends-on): Likewise.
18167         * modules/fsusage (Depends-on): Likewise.
18168         * modules/ftell (Depends-on): Likewise.
18169         * modules/ftello (Depends-on): Likewise.
18170         * modules/futimens (Depends-on): Likewise.
18171         * modules/getcwd (Depends-on): Likewise.
18172         * modules/getcwd-lgpl (Depends-on): Likewise.
18173         * modules/getdelim (Depends-on): Likewise.
18174         * modules/getdomainname (Depends-on): Likewise.
18175         * modules/getgroups (Depends-on): Likewise.
18176         * modules/gethostname (Depends-on): Likewise.
18177         * modules/getline (Depends-on): Likewise.
18178         * modules/getlogin_r (Depends-on): Likewise.
18179         * modules/getopt-posix (Depends-on): Likewise.
18180         * modules/getpeername (Depends-on): Likewise.
18181         * modules/getsockname (Depends-on): Likewise.
18182         * modules/getsockopt (Depends-on): Likewise.
18183         * modules/getsubopt (Depends-on): Likewise.
18184         * modules/getusershell (Depends-on): Likewise.
18185         * modules/glob (Depends-on): Likewise.
18186         * modules/grantpt (Depends-on): Likewise.
18187         * modules/iconv_open (Depends-on): Likewise.
18188         * modules/iconv_open-utf (Depends-on): Likewise.
18189         * modules/inet_ntop (Depends-on): Likewise.
18190         * modules/inet_pton (Depends-on): Likewise.
18191         * modules/ioctl (Depends-on): Likewise.
18192         * modules/isapipe (Depends-on): Likewise.
18193         * modules/isfinite (Depends-on): Likewise.
18194         * modules/isinf (Depends-on): Likewise.
18195         * modules/lchown (Depends-on): Likewise.
18196         * modules/ldexpl (Depends-on): Likewise.
18197         * modules/link (Depends-on): Likewise.
18198         * modules/linkat (Depends-on): Likewise.
18199         * modules/listen (Depends-on): Likewise.
18200         * modules/logl (Depends-on): Likewise.
18201         * modules/lstat (Depends-on): Likewise.
18202         * modules/mbrlen (Depends-on): Likewise.
18203         * modules/mbrtowc (Depends-on): Likewise.
18204         * modules/mbsinit (Depends-on): Likewise.
18205         * modules/mbsnrtowcs (Depends-on): Likewise.
18206         * modules/mbsrtowcs (Depends-on): Likewise.
18207         * modules/mbtowc (Depends-on): Likewise.
18208         * modules/memcmp (Depends-on): Likewise.
18209         * modules/mkdir (Depends-on): Likewise.
18210         * modules/mkdtemp (Depends-on): Likewise.
18211         * modules/mkfifo (Depends-on): Likewise.
18212         * modules/mkfifoat (Depends-on): Likewise.
18213         * modules/mknod (Depends-on): Likewise.
18214         * modules/mkostemp (Depends-on): Likewise.
18215         * modules/mkostemps (Depends-on): Likewise.
18216         * modules/mkstemp (Depends-on): Likewise.
18217         * modules/mkstemps (Depends-on): Likewise.
18218         * modules/mktime (Depends-on): Likewise.
18219         * modules/nanosleep (Depends-on): Likewise.
18220         * modules/open (Depends-on): Likewise.
18221         * modules/openat (Depends-on): Likewise.
18222         * modules/perror (Depends-on): Likewise.
18223         * modules/poll (Depends-on): Likewise.
18224         * modules/popen (Depends-on): Likewise.
18225         * modules/posix_spawn (Depends-on): Likewise.
18226         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18227         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18228         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18229         * modules/posix_spawnp (Depends-on): Likewise.
18230         * modules/pread (Depends-on): Likewise.
18231         * modules/printf-posix (Depends-on): Likewise.
18232         * modules/ptsname (Depends-on): Likewise.
18233         * modules/putenv (Depends-on): Likewise.
18234         * modules/pwrite (Depends-on): Likewise.
18235         * modules/readline (Depends-on): Likewise.
18236         * modules/readlink (Depends-on): Likewise.
18237         * modules/readlinkat (Depends-on): Likewise.
18238         * modules/recv (Depends-on): Likewise.
18239         * modules/recvfrom (Depends-on): Likewise.
18240         * modules/regex (Depends-on): Likewise.
18241         * modules/remove (Depends-on): Likewise.
18242         * modules/rename (Depends-on): Likewise.
18243         * modules/renameat (Depends-on): Likewise.
18244         * modules/rmdir (Depends-on): Likewise.
18245         * modules/round (Depends-on): Likewise.
18246         * modules/roundf (Depends-on): Likewise.
18247         * modules/roundl (Depends-on): Likewise.
18248         * modules/rpmatch (Depends-on): Likewise.
18249         * modules/select (Depends-on): Likewise.
18250         * modules/send (Depends-on): Likewise.
18251         * modules/sendto (Depends-on): Likewise.
18252         * modules/setenv (Depends-on): Likewise.
18253         * modules/setlocale (Depends-on): Likewise.
18254         * modules/setsockopt (Depends-on): Likewise.
18255         * modules/shutdown (Depends-on): Likewise.
18256         * modules/sigaction (Depends-on): Likewise.
18257         * modules/signbit (Depends-on): Likewise.
18258         * modules/sigprocmask (Depends-on): Likewise.
18259         * modules/sinl (Depends-on): Likewise.
18260         * modules/sleep (Depends-on): Likewise.
18261         * modules/snprintf (Depends-on): Likewise.
18262         * modules/snprintf-posix (Depends-on): Likewise.
18263         * modules/socket (Depends-on): Likewise.
18264         * modules/sprintf-posix (Depends-on): Likewise.
18265         * modules/sqrtl (Depends-on): Likewise.
18266         * modules/stat (Depends-on): Likewise.
18267         * modules/strchrnul (Depends-on): Likewise.
18268         * modules/strdup-posix (Depends-on): Likewise.
18269         * modules/strerror (Depends-on): Likewise.
18270         * modules/strerror_r-posix (Depends-on): Likewise.
18271         * modules/strndup (Depends-on): Likewise.
18272         * modules/strnlen (Depends-on): Likewise.
18273         * modules/strptime (Depends-on): Likewise.
18274         * modules/strsep (Depends-on): Likewise.
18275         * modules/strsignal (Depends-on): Likewise.
18276         * modules/strstr-simple (Depends-on): Likewise.
18277         * modules/strtod (Depends-on): Likewise.
18278         * modules/strtoimax (Depends-on): Likewise.
18279         * modules/strtok_r (Depends-on): Likewise.
18280         * modules/strtoumax (Depends-on): Likewise.
18281         * modules/symlink (Depends-on): Likewise.
18282         * modules/symlinkat (Depends-on): Likewise.
18283         * modules/tanl (Depends-on): Likewise.
18284         * modules/tcgetsid (Depends-on): Likewise.
18285         * modules/tmpfile (Depends-on): Likewise.
18286         * modules/trunc (Depends-on): Likewise.
18287         * modules/truncf (Depends-on): Likewise.
18288         * modules/truncl (Depends-on): Likewise.
18289         * modules/uname (Depends-on): Likewise.
18290         * modules/unlink (Depends-on): Likewise.
18291         * modules/unlockpt (Depends-on): Likewise.
18292         * modules/unsetenv (Depends-on): Likewise.
18293         * modules/usleep (Depends-on): Likewise.
18294         * modules/utimensat (Depends-on): Likewise.
18295         * modules/vasprintf (Depends-on): Likewise.
18296         * modules/vdprintf (Depends-on): Likewise.
18297         * modules/vdprintf-posix (Depends-on): Likewise.
18298         * modules/vfprintf-posix (Depends-on): Likewise.
18299         * modules/vprintf-posix (Depends-on): Likewise.
18300         * modules/vsnprintf (Depends-on): Likewise.
18301         * modules/vsnprintf-posix (Depends-on): Likewise.
18302         * modules/vsprintf-posix (Depends-on): Likewise.
18303         * modules/wcrtomb (Depends-on): Likewise.
18304         * modules/wcscasecmp (Depends-on): Likewise.
18305         * modules/wcscspn (Depends-on): Likewise.
18306         * modules/wcsdup (Depends-on): Likewise.
18307         * modules/wcsncasecmp (Depends-on): Likewise.
18308         * modules/wcsnrtombs (Depends-on): Likewise.
18309         * modules/wcspbrk (Depends-on): Likewise.
18310         * modules/wcsrtombs (Depends-on): Likewise.
18311         * modules/wcsspn (Depends-on): Likewise.
18312         * modules/wcsstr (Depends-on): Likewise.
18313         * modules/wcstok (Depends-on): Likewise.
18314         * modules/wcswidth (Depends-on): Likewise.
18315         * modules/wctob (Depends-on): Likewise.
18316         * modules/wctomb (Depends-on): Likewise.
18317         * modules/wctype (Depends-on): Likewise.
18318         * modules/wcwidth (Depends-on): Likewise.
18319         * modules/write (Depends-on): Likewise.
18320
18321 2011-05-03  Bruno Haible  <bruno@clisp.org>
18322
18323         Support for conditional dependencies.
18324         * doc/gnulib.texi (Module description): Document the syntax of
18325         conditional dependencies.
18326         * gnulib-tool: New option --conditional-dependencies.
18327         (func_usage): Document it.
18328         (cond_dependencies): New variable.
18329         (func_get_automake_snippet_conditional,
18330         func_get_automake_snippet_unconditional): New functions, extracted from
18331         func_get_automake_snippet.
18332         (func_get_automake_snippet): Use them.
18333         (sed_first_32_chars): New variable.
18334         (func_module_shellfunc_name): New function.
18335         (func_module_shellvar_name): New function.
18336         (func_module_conditional_name): New function.
18337         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18338         func_cond_module_condition): New functions.
18339         (func_modules_transitive_closure): Add support for conditional
18340         dependencies.
18341         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18342         conditional automake snippet in an automake conditional.
18343         (func_emit_autoconf_snippets): Emit shell functions that contain the
18344         code for conditional modules.
18345         (func_import, func_create_testdir): Update specification.
18346
18347 2011-05-03  Eric Blake  <eblake@redhat.com>
18348
18349         test-getaddrinfo: report error information
18350         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18351
18352 2011-05-03  Jim Meyering  <meyering@redhat.com>
18353
18354         bootstrap: avoid build failure when $GZIP is set
18355         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18356         program name.  If defined at all, it is supposed to list gzip options.
18357         Reported by Alan Curry in http://debbugs.gnu.org/8609
18358
18359 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18360
18361         readme-release: new module with release instructions
18362         * modules/readme-release: New module.
18363         * top/README-release: New file, from coreutils, grep, diffutils.
18364         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18365
18366 2011-05-02  Eric Blake  <eblake@redhat.com>
18367
18368         fflush: also replace fclose when fixing fflush
18369         * modules/fflush (Depends-on): Add fclose.
18370         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18371         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18372         memstreams with no backing fd.
18373         * doc/posix-functions/fclose.texi (fclose): Document the use of
18374         fflush module to fix the bug.
18375         * tests/test-fclose.c (main): Relax test when fclose is used in
18376         isolation.
18377
18378         fclose: add some tests
18379         * modules/fclose-tests: New test module.
18380         * tests/test-fclose.c: New file.
18381         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18382
18383         fclose: reduced dependencies
18384         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18385         simpler lseek.
18386         * lib/fclose.c (rpl_fclose): Likewise.
18387         Reported by Simon Josefsson.
18388
18389         exit: drop remaining clients
18390         * modules/argmatch (Depends-on): Replace exit with stdlib.
18391         * modules/copy-file (Depends-on): Likewise.
18392         * modules/execute (Depends-on): Likewise.
18393         * modules/exitfail (Depends-on): Likewise.
18394         * modules/obstack (Depends-on): Likewise.
18395         * modules/pagealign_alloc (Depends-on): Likewise.
18396         * modules/pipe-filter-gi (Depends-on): Likewise.
18397         * modules/pipe-filter-ii (Depends-on): Likewise.
18398         * modules/savewd (Depends-on): Likewise.
18399         * modules/spawn-pipe (Depends-on): Likewise.
18400         * modules/wait-process (Depends-on): Likewise.
18401         * modules/xsetenv (Depends-on): Likewise.
18402         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18403         * modules/git-merge-changelog (Depends-on): Likewise.
18404         * modules/long-options (Depends-on): Likewise.
18405         * modules/pt_chown (Depends-on): Likewise.
18406         * modules/sysexits (Depends-on): Likewise.
18407
18408         freading: relax license from LGPLv3+ to LGPLv2+
18409         * modules/freading (License): Relax LGPL version.
18410
18411 2011-05-02  Bruno Haible  <bruno@clisp.org>
18412
18413         fchdir: Remove unused dependencies.
18414         * modules/fchdir (Depends-on): Remove include_next.
18415
18416 2011-05-02  Bruno Haible  <bruno@clisp.org>
18417
18418         gnulib-tool: Refactor.
18419         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18420         from func_emit_autoconf_snippets.
18421         (func_emit_autoconf_snippets): Use it.
18422
18423 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18424
18425         * NEWS: Document removal of 'exit'.
18426         * modules/exit: Remove file.
18427
18428 2011-05-01  Bruno Haible  <bruno@clisp.org>
18429
18430         Update DEPENDENCIES.
18431         * DEPENDENCIES (gettext): Recommend the newest release.
18432         Reported by Simon Josefsson.
18433
18434 2011-05-01  Bruno Haible  <bruno@clisp.org>
18435
18436         gnulib-tool: Reduce code duplication.
18437         * gnulib-tool (func_emit_autoconf_snippets): New function.
18438         (func_import, func_create_testdir): Use it.
18439
18440 2011-04-30  Eric Blake  <eblake@redhat.com>
18441
18442         fclose: don't fail on non-seekable input stream
18443         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18444         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18445         since fflush is allowed to fail in that case.
18446
18447 2011-04-30  Bruno Haible  <bruno@clisp.org>
18448
18449         dup3: cleanup
18450         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18451
18452 2011-04-30  Bruno Haible  <bruno@clisp.org>
18453
18454         netdb: Make it work in C++ mode.
18455         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18456         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18457         module.
18458         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18459         gl_MODULE_INDICATOR_FOR_TESTS.
18460         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18461         * modules/netdb-c++-tests: New file.
18462         * tests/test-netdb-c++.cc: New file.
18463
18464 2011-04-30  Bruno Haible  <bruno@clisp.org>
18465
18466         New modules 'vfscanf', 'vscanf'.
18467         * modules/vfscanf: New file.
18468         * modules/vscanf: New file.
18469         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18470         here.
18471         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18472         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18473
18474 2011-04-30  Bruno Haible  <bruno@clisp.org>
18475
18476         passfd: Add comments.
18477         * lib/passfd.c: Add comments about platforms.
18478
18479 2011-04-30  Bruno Haible  <bruno@clisp.org>
18480
18481         sys_uio: Make <sys/uio.h> self-contained.
18482         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18483         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18484
18485 2011-04-30  Bruno Haible  <bruno@clisp.org>
18486
18487         sys_socket: Ensure 'struct iovec' definition.
18488         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18489         <sys/socket.h>.
18490         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18491
18492 2011-04-30  Bruno Haible  <bruno@clisp.org>
18493
18494         sys_uio: Protect definition of 'struct iovec'.
18495         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18496         it as a C struct.
18497
18498 2011-04-30  Bruno Haible  <bruno@clisp.org>
18499
18500         manywarnings: fix indentation
18501         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18502
18503 2011-04-30  Pádraig Brady <P@draigBrady.com>
18504
18505         manywarnings: add -Wno-missing-field-initializers if needed.
18506         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18507         option if it's needed to allow initialization with { 0, }
18508
18509 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18510
18511         announce-gen: cosmetic improvement
18512         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18513
18514 2011-04-29  Jim Meyering  <meyering@redhat.com>
18515
18516         vc-list-files: indent with spaces, not TABs
18517         * build-aux/vc-list-files: Convert leading TABs to spaces,
18518         to match the style of most other files in gnulib.
18519
18520         announce-gen: indent with spaces, not TABs
18521         * build-aux/announce-gen: Convert all TABs to spaces, to match
18522         the style of most other files in gnulib.
18523
18524 2011-04-29  Eric Blake  <eblake@redhat.com>
18525
18526         quotearg: avoid uninitialized variable use
18527         * lib/quotearg.c (quoting_options_from_style): Initialize
18528         remaining fields, and ensure that custom styles are only used via
18529         quoting_options rather than quoting_style.
18530
18531 2011-04-29  Jim Meyering  <meyering@redhat.com>
18532
18533         maint.mk: remove unused VC-tag variable
18534         * top/maint.mk (VC-tag): Remove unused variable.
18535
18536 2011-04-29  Bruno Haible  <bruno@clisp.org>
18537
18538         netdb: fix gai_strerror replacements
18539         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18540         * modules/netdb: Substitute it.
18541
18542 2011-04-29  Jim Meyering  <meyering@redhat.com>
18543
18544         test-getcwd.c: avoid new set-but-not-used warning
18545         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18546         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18547         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18548         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18549
18550         test-hash.c: avoid a new shadowing warning
18551         * tests/test-hash.c (main): Don't shadow "dup".
18552
18553 2011-04-28  Eric Blake  <eblake@redhat.com>
18554
18555         getaddrinfo: fix gai_strerror signature
18556         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18557         and work around mingw with UNICODE defined.
18558         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18559         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18560         * modules/netdb (Makefile.am): Substitute it.
18561         * lib/netdb.in.h (gai_strerror): Declare replacement.
18562         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18563         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18564         the fix.
18565
18566         getsockopt: avoid compiler warning
18567         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18568         Reported by Matthias Bolte.
18569
18570         tests: drop unused link dependency
18571         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18572         * modules/dirent-safer-tests (Makefile.am): Likewise.
18573         * modules/fdopendir-tests (Makefile.am): Likewise.
18574         * modules/mkfifoat-tests (Makefile.am): Likewise.
18575         * modules/openat-safer-tests (Makefile.am): Likewise.
18576         * modules/openat-tests (Makefile.am): Likewise.
18577         * modules/readlinkat-tests (Makefile.am): Likewise.
18578         * modules/symlinkat-tests (Makefile.am): Likewise.
18579         * modules/linkat-tests (Makefile.am): Likewise.
18580         (Depends-on): Switch to filenamecat-lgpl.
18581         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18582         LIBINTL.
18583         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18584         * tests/test-linkat.c (main): Don't require xalloc.
18585
18586         hash, mgetgroups: drop xalloc dependency
18587         * lib/hash.c (includes): Adjust includes.
18588         * lib/mgetgroups.c (includes): Likewise.
18589         (xgetgroups): Move...
18590         * lib/xgetgroups.c: ...to new file.
18591         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18592         * modules/xgetgroups: New file, split from...
18593         * modules/mgetgroups: ...here.
18594         (Depends-on): Add xalloc-oversized.
18595         * modules/hash (Depends-on): Likewise.
18596         * modules/hash-tests (Depends-on): Drop xalloc.
18597         (test_hash_LDADD): Drop unused library.
18598         * tests/test-hash.c (main): Break xalloc dependency.
18599         (includes): Drop unused include.
18600
18601         xalloc-oversized: new module
18602         * modules/xalloc-oversized: New module.
18603         * modules/xalloc (Depends-on): Add it.
18604         * lib/xalloc.h (xalloc_oversized): Move...
18605         * lib/xalloc-oversized.h: ...into new file.
18606
18607         utimecmp: drop dependency on xmalloc
18608         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18609         due to memory pressure.
18610         * modules/utimecmp (Depends-on): Drop xalloc.
18611
18612 2011-04-27  Eric Blake  <eblake@redhat.com>
18613
18614         getcwd: fix mingw bugs
18615         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18616         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18617         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18618
18619 2011-04-27  Bruno Haible  <bruno@clisp.org>
18620
18621         mkstemps: Ensure declaration on MacOS X 10.5.
18622         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18623         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18624         MacOS X.
18625
18626 2011-04-27  Bruno Haible  <bruno@clisp.org>
18627
18628         mkstemp: More documentation.
18629         * doc/posix-functions/mkstemp.texi: Document header file problem on
18630         MacOS X.
18631
18632 2011-04-27  Bruno Haible  <bruno@clisp.org>
18633
18634         mkstemp: Tweak configure message when cross-compiling.
18635         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18636         result as a guess.
18637
18638 2011-04-27  Bruno Haible  <bruno@clisp.org>
18639
18640         clean-temp: Clarify what it does.
18641         * lib/clean-temp.h: Add more comments.
18642         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18643         module.
18644         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18645         * doc/glibc-functions/mkstemps.texi: Likewise.
18646         * doc/glibc-functions/mkostemps.texi: Likewise.
18647
18648 2011-04-27  Eric Blake  <eblake@redhat.com>
18649
18650         fchdir: avoid extra chdir and fix test
18651         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18652         getcwd-lgpl.
18653         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18654         have to be canonical.
18655         (canonicalize_file_name): Drop unused macro.
18656         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18657
18658         filenamecat-lgpl: fix licence
18659         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18660         when it was first created.
18661
18662         linkat, renameat: add missing dependency
18663         * modules/linkat (Depends-on): Require getcwd-lgpl.
18664         * modules/renameat (Depends-on): Likewise.
18665
18666         tests: reduce dependencies
18667         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18668         * tests/test-renameat.c (main): Likewise.
18669         * modules/linkat-tests (Depends-on): Relax dependency.
18670         * modules/renameat-tests (Depends-on): Likewise.
18671         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18672         dependency explicit.
18673
18674         save-cwd: reduce default dependency
18675         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18676         * lib/save-cwd.c: Update comments.
18677         * NEWS: Document the semantic change.
18678
18679         getcwd: enhance tests
18680         * tests/test-getcwd-lgpl.c: New file, taken from...
18681         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18682         repeat long path stress tests from m4 probe.
18683         * modules/getcwd-lgpl-tests: New module.
18684         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18685         * m4/getcwd-abort-bug.m4: Update comment.
18686         * m4/getcwd-path-max.m4: Likewise.
18687
18688         getcwd-lgpl: new module
18689         * modules/getcwd-lgpl: New module.
18690         * lib/getcwd-lgpl.c: New file.
18691         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18692         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18693         * modules/getcwd (configure.ac): Set C witness.
18694         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18695
18696         getcwd: tweak comments
18697         * m4/getcwd-abort-bug.m4: Fix comments.
18698         * m4/getcwd-path-max.m4: Likewise.
18699         * m4/getcwd.m4: Likewise.
18700
18701 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18702         and Eric Blake  <eblake@redhat.com>
18703
18704         mkstemp: replace if system version uses wrong permissions
18705         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18706         read/write mode bits set in file created by mkstemp.
18707         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18708
18709 2011-04-27  Eric Blake  <eblake@redhat.com>
18710
18711         passfd: avoid compiler warning
18712         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18713         Reported by Laine Stump.
18714
18715 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18716
18717         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18718         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18719
18720 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18721         and Eric Blake  <eblake@redhat.com>
18722
18723         mkstemp: mention clean-temp module
18724         * lib/mkstemp.c: Add comment.
18725         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18726
18727 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18728
18729         inttypes: also provide default values for 32-bit tests
18730         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18731         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18732
18733 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18734
18735         strtoumax: remove dependency on strtoimax
18736         This is like the strtoull change of yesterday.
18737         * modules/strtoumax (Files): Add lib/strtoimax.c.
18738         (Depends-on): Remove strtoimax and add verify.
18739
18740         inttypes-incomplete: new module
18741         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18742         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18743         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18744         of gl_INTTYPES_H.
18745         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18746         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18747         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18748         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18749         * modules/strtoumax, modules/xstrtol (Depends-on):
18750         Depend on inttypes-incomplete, not inttypes.
18751         * modules/inttypes-incomplete: New module, containing the contents
18752         of the old modules/inttypes module, except that the Files: section
18753         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18754         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18755         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18756         (Depends-on): Depend only on inttypes-incomplete.
18757         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18758
18759         inttypes: omit now-redundant strtoimax and strtoumax work
18760         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18761         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18762
18763         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18764         This supports apps that need pointers to strtoimax and strtoumax,
18765         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18766         nonexistent functions.  See
18767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18768         et seq.
18769         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18770         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18771         a macro.
18772         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18773
18774 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18775
18776         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18777
18778 2011-04-25  Bruno Haible  <bruno@clisp.org>
18779
18780         strtol, strtoul: Mark modules as obsolete.
18781         * modules/strtol (Status, Notice): New sections.
18782         * modules/strtoul (Status, Notice): New sections.
18783
18784 2011-04-25  Bruno Haible  <bruno@clisp.org>
18785
18786         strtod: Remove check for strtod, unless supporting old platforms.
18787         * modules/strtod-obsolete: New file.
18788         * m4/strtod-obsolete.m4: New file.
18789         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18790         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18791         * modules/strtod (Depends-on): Add strtod-obsolete.
18792         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18793
18794 2011-04-25  Bruno Haible  <bruno@clisp.org>
18795
18796         strcase: Make module obsolete.
18797         * modules/strcase (Status, Notice): New sections.
18798
18799 2011-04-25  Bruno Haible  <bruno@clisp.org>
18800
18801         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18802         * modules/dup2-obsolete: New file.
18803         * m4/dup2-obsolete.m4: New file.
18804         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18805         gl_FUNC_DUP2_OBSOLETE is not also defined.
18806         * modules/dup2 (Depends-on): Add dup2-obsolete.
18807         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18808
18809 2011-04-25  Bruno Haible  <bruno@clisp.org>
18810
18811         strnlen: Avoid memchr related link error on old obsolete platforms.
18812         * modules/memchr-obsolete: New file.
18813         * m4/memchr-obsolete.m4: New file.
18814         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18815         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18816         * modules/memchr (Depends-on): Add memchr-obsolete.
18817         * modules/strnlen (Depends-on): Likewise.
18818         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18819
18820 2011-04-25  Jim Meyering  <meyering@redhat.com>
18821
18822         maint.mk: makefile_at_at_check extend and clean up
18823         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18824         in addition to */Makefile.am.
18825         Exempt legitimate uses of @VAR@ notation, e.g.,
18826         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18827         Remove obsolete coreutils-specific comment.
18828         Prompted by discussion here:
18829         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18830
18831 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18832
18833         strtoul: remove dependency on strtol
18834         This is so that 'configure' need not check for strtol merely because
18835         the application needs strtoul.
18836         * modules/strtoul (Files): Add lib/strtol.c.
18837         (Depends-on): Remove strtol.
18838
18839         strtoull: remove dependency on strtoul
18840         This is like the strtoll change.
18841         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18842         (Depends-on): Remove strtoul.
18843
18844         strtoll: remove dependency on strtol
18845         This is so that 'configure' need not check for strtol merely because
18846         the application needs strtoll.
18847         * modules/strtoll (Files): Add lib/strtol.c.
18848         (Depends-on): Remove strtol.
18849
18850 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18851
18852         inttypes: Move some configure check to module 'imaxdiv'.
18853         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18854         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18855         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18856
18857 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18858
18859         inttypes: Move some configure check to module 'imaxabs'.
18860         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18861         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18862         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18863
18864 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18865
18866         inttypes: Remove configure tests that are not needed since 2009-12-31.
18867         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18868         gl_cv_header_working_inttypes_h.
18869
18870 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18871
18872         * modules/strnlen (Depends-on): Remove memchr.
18873         The strnlen implementation doesn't need the memchr module's fixes; see
18874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18875
18876         strtol: remove dependency on wchar
18877         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18878         * modules/strtol (Depends-on): Remove wchar.
18879
18880 2011-04-21  Eric Blake  <eblake@redhat.com>
18881
18882         passfd: fix test regression on Linux
18883         * modules/passfd-tests (configure.ac): Correct socketpair check.
18884
18885         passfd: speed up configure and drop unused code
18886         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18887         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18888         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18889         Instead of probing at configure for unix_scm_rights_bsd44_way,
18890         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18891         check to a struct member probe.
18892         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18893         (sendfd, recvfd): Update preprocessor checks.
18894         * modules/passfd (Files): Reflect rename, and drop unused file.
18895         (Depends-on): Drop unused dependency.
18896
18897         passfd: allow compilation on mingw
18898         * modules/sys_socket (Depends-on): Add sys_uio.
18899         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18900         iovec and a minimal struct msghdr.
18901         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18902         * tests/test-sys_socket.c (main): Enhance test.
18903         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18904         guaranteed to provide what we need.
18905         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18906         * modules/passfd-tests (Depends-on): Add sys_wait.
18907         * tests/test-passfd.c (main): Skip test on mingw, for now.
18908         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18909         partial 'struct msghdr' implementation.
18910
18911         sys_uio: new module
18912         * modules/sys_uio: New module.
18913         * modules/sys_uio-tests: Likewise.
18914         * lib/sys_uio.in.h: New file.
18915         * m4/sys_uio_h.m4: Likewise.
18916         * tests/test-sys_uio.c: Likewise.
18917         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18918         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18919
18920 2011-04-20  Jim Meyering  <meyering@redhat.com>
18921
18922         useless-if-before-free: avoid false-positive
18923         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18924         disjunct so that it too requires a terminating ";".  Without that,
18925         this script would identify as useless one statement from gcc that
18926         was not:
18927           if (aligned_ptr)
18928             free (((void **) aligned_ptr) [-1]);
18929
18930 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18931
18932         doc: update users.txt.
18933         * users.txt: Add barcode.
18934
18935 2011-04-19  Bruno Haible  <bruno@clisp.org>
18936
18937         ioctl: Remove link dependency on native Windows.
18938         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18939         (gl_close_fn, gl_ioctl_fn): New types.
18940         (struct fd_hook): Renamed from struct close_hook. Change type of
18941         private_close_fn field. Add private_ioctl_fn field.
18942         (close_hook_fn): Add parameter for primary close method.
18943         (execute_close_hooks, execute_all_close_hooks): Likewise.
18944         (ioctl_hook_fn): New type.
18945         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18946         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18947         argument.
18948         (unregister_fd_hook): Renamed from unregister_close_hook.
18949         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18950         Don't include <unistd.h>.
18951         (close): Remove undef.
18952         (anchor): Update.
18953         (execute_close_hooks): Add argument for primary close method.
18954         (execute_all_close_hooks): Likewise.
18955         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18956         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18957         argument. Allow each argument to be NULL.
18958         (unregister_fd_hook): Renamed from unregister_close_hook.
18959         * lib/close.c (rpl_close): Pass 'close' function pointer to
18960         execute_all_close_hooks.
18961         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18962         (primary_ioctl): New function.
18963         (ioctl): Don't call ioctlsocket here. Instead, call
18964         execute_all_ioctl_hooks.
18965         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18966         close method.
18967         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18968         (fd_sockets_hook): Renamed from close_sockets_hook.
18969         (gl_sockets_startup, gl_sockets_cleanup): Update.
18970         * modules/fd-hook: Renamed from modules/close-hook. Update.
18971         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18972         * modules/sockets (Depends-on): Likewise.
18973         * modules/ioctl (Depends-on): Add fd-hook.
18974         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18975         GNULIB_SOCKET.
18976
18977 2011-04-19  Bruno Haible  <bruno@clisp.org>
18978
18979         Move the support of O_NONBLOCK in open() to the 'open' module.
18980         * modules/nonblocking (Depends-on): Remove 'open'.
18981         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18982         gl_cv_have_open_O_NONBLOCK.
18983         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18984         O_NONBLOCK support.
18985         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18986
18987 2011-04-17  Bruno Haible  <bruno@clisp.org>
18988
18989         pipe2: Simplify code.
18990         * lib/pipe2.c (pipe2): Reduce code duplication.
18991
18992 2011-04-17  Bruno Haible  <bruno@clisp.org>
18993
18994         nonblocking: Add comment.
18995         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18996
18997 2011-04-17  Bruno Haible  <bruno@clisp.org>
18998
18999         nonblocking: Add tests for sockets.
19000         * tests/test-nonblocking-socket.sh: New file.
19001         * tests/test-nonblocking-socket-main.c: New file.
19002         * tests/test-nonblocking-socket-child.c: New file.
19003         * tests/test-nonblocking-socket.h: New file.
19004         * tests/socket-server.h: New file.
19005         * tests/socket-client.h: New file.
19006         * modules/nonblocking-socket-tests: New file.
19007         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
19008
19009 2011-04-17  Bruno Haible  <bruno@clisp.org>
19010
19011         nonblocking: Add tests for pipes.
19012         * tests/test-nonblocking-pipe.sh: New file.
19013         * tests/test-nonblocking-pipe-main.c: New file.
19014         * tests/test-nonblocking-pipe-child.c: New file.
19015         * tests/test-nonblocking-pipe.h: New file.
19016         * tests/test-nonblocking-writer.h: New file.
19017         * tests/test-nonblocking-reader.h: New file.
19018         * tests/test-nonblocking-misc.h: New file.
19019         * modules/nonblocking-pipe-tests: New file.
19020         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
19021
19022 2011-04-16  Bruno Haible  <bruno@clisp.org>
19023
19024         gettext: Clarify the needed programmer actions.
19025         * modules/gettext (Notice): New field.
19026         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
19027
19028 2011-04-16  Bruno Haible  <bruno@clisp.org>
19029
19030         strchrnul: Tweak last commit.
19031         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
19032         bug.
19033         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
19034         as in _GL_FUNCDECL_SYS.
19035         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
19036         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
19037
19038 2011-04-15  Eric Blake  <eblake@redhat.com>
19039
19040         strchrnul: work around cygwin bug
19041         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
19042         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
19043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
19044         * modules/string (Makefile.am): Substitute it.
19045         * lib/string.in.h (strchrnul): Use it.
19046
19047 2011-04-15  Bruno Haible  <bruno@clisp.org>
19048
19049         Don't require lib/stdio-write.c when only module 'stdio' is used.
19050         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
19051         invocation.
19052         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
19053
19054 2011-04-14  Bruno Haible  <bruno@clisp.org>
19055
19056         Support non-blocking pipe I/O in read() on native Windows.
19057         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
19058         (read): New declaration.
19059         * lib/read.c: New file.
19060         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
19061         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
19062         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
19063         vscanf): New declarations.
19064         * lib/stdio-read.c: New file.
19065         * m4/read.m4: New file.
19066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
19067         REPLACE_READ.
19068         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
19069         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19070         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
19071         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
19072         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
19073         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19074         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19075         * modules/read: New file.
19076         * modules/nonblocking (Files): Add lib/stdio-read.c.
19077         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
19078         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
19079         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19080         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19081         * modules/pread (Depends-on): Add read.
19082         * modules/safe-read (Depends-on): Likewise.
19083         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
19084         gets, scanf, vfscanf, vscanf): Verify signatures.
19085         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
19086         problem with non-blocking pipes.
19087         * doc/posix-functions/fgetc.texi: Likewise.
19088         * doc/posix-functions/fgets.texi: Likewise.
19089         * doc/posix-functions/fread.texi: Likewise.
19090         * doc/posix-functions/fscanf.texi: Likewise.
19091         * doc/posix-functions/getc.texi: Likewise.
19092         * doc/posix-functions/getchar.texi: Likewise.
19093         * doc/posix-functions/gets.texi: Likewise.
19094         * doc/posix-functions/scanf.texi: Likewise.
19095         * doc/posix-functions/vfscanf.texi: Likewise.
19096         * doc/posix-functions/vscanf.texi: Likewise.
19097
19098 2011-04-14  Bruno Haible  <bruno@clisp.org>
19099
19100         Support non-blocking pipe I/O in write() on native Windows.
19101         * lib/write.c (rpl_write): Split a write request that failed merely
19102         because the byte count was larger than the pipe buffer's size.
19103         * doc/posix-functions/write.texi: Mention the problem with large byte
19104         counts.
19105
19106 2011-04-14  Bruno Haible  <bruno@clisp.org>
19107
19108         wchar: Ensure that wchar_t gets defined on uClibc.
19109         * lib/wchar.in.h: On uClibc, include <stddef.h>.
19110         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
19111
19112 2011-04-13  Bruno Haible  <bruno@clisp.org>
19113
19114         safe-write, full-read: Avoid unnecessary compilation units.
19115         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
19116         (Depends-on): Remove safe-read. Add ssize_t.
19117         * modules/full-read (Files): Add lib/full-write.c.
19118         (Depends-on): Add full-write.
19119
19120 2011-04-13  Bruno Haible  <bruno@clisp.org>
19121
19122         Support non-blocking pipe I/O and SIGPIPE in pwrite().
19123         * modules/pwrite (Depends-on): Add 'write'.
19124
19125 2011-04-13  Bruno Haible  <bruno@clisp.org>
19126
19127         Support non-blocking pipe I/O in write() on native Windows.
19128         * lib/unistd.in.h (write): Enable replacement also if
19129         GNULIB_UNISTD_H_NONBLOCKING is 1.
19130         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
19131         (rpl_write): When failing to write on a non-blocking pipe, change
19132         errno from ENOSPC to EAGAIN.
19133         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19134         putchar, puts, vfprintf, vprintf): Enable replacement also if
19135         GNULIB_STDIO_H_NONBLOCKING is 1.
19136         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19137         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19138         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19139         CALL_WITH_SIGPIPE_EMULATION.
19140         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19141         * m4/nonblocking.m4: New file.
19142         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19143         for non-blocking I/O support.
19144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19145         GNULIB_UNISTD_H_NONBLOCKING.
19146         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19147         required for non-blocking I/O support.
19148         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19149         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19150         lib/stdio-write.c, m4/asm-underscore.m4.
19151         (Depends-on): Add stdio, unistd.
19152         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19153         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19154         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19155         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19156         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19157         problem with non-blocking pipes.
19158         * doc/posix-functions/fputc.texi: Likewise.
19159         * doc/posix-functions/fputs.texi: Likewise.
19160         * doc/posix-functions/fwrite.texi: Likewise.
19161         * doc/posix-functions/printf.texi: Likewise.
19162         * doc/posix-functions/putc.texi: Likewise.
19163         * doc/posix-functions/putchar.texi: Likewise.
19164         * doc/posix-functions/puts.texi: Likewise.
19165         * doc/posix-functions/vfprintf.texi: Likewise.
19166         * doc/posix-functions/vprintf.texi: Likewise.
19167         * doc/posix-functions/write.texi: Likewise.
19168
19169 2011-04-10  Jim Meyering  <meyering@redhat.com>
19170
19171         maint.mk: prohibit doubled words
19172         Detect them also when they're separated by a newline.
19173         There are 3 ways to customize it:
19174           - disable the test on a per file basis, as usual with rules using
19175             $(VC_LIST_EXCEPT)
19176           - replace the default doubled-word-selecting regexp (affects all files)
19177           - ignore a particular file-vs-doubled-word match
19178         I nearly used that last one to ignore the "is is" match in
19179         coreutils' NEWS file, since the text was "ls -is is ..."
19180         To do that, I would have added this line to cfg.mk:
19181           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19182         but it would have ignored any "is is" match in NEWS.
19183         Low probability, but still...
19184         Instead, I changed the text, slightly:
19185           -  ls -is is now consistent with ls -lis in ignoring values returned
19186           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19187         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19188         (prohibit_doubled_word_): Define.
19189         (sc_prohibit_doubled_word): New rule.
19190         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19191
19192 2011-04-10  Jim Meyering  <meyering@redhat.com>
19193
19194         maint: fix doubled-word typo in comment
19195         * m4/gethostname.m4: s/is is/it is/
19196         * m4/getdomainname.m4: Likewise.
19197
19198 2011-04-10  Jim Meyering  <meyering@redhat.com>
19199
19200         maint: remove doubled word: s/it it/it/
19201         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19202
19203 2011-04-10  Jim Meyering  <meyering@redhat.com>
19204
19205         maint.mk: remove useless semicolon and backslash
19206         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19207         semicolon and backslash.
19208
19209 2011-04-10  Bruno Haible  <bruno@clisp.org>
19210
19211         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19212         * modules/stdint-tests (Depends-on): Add wchar.
19213
19214 2011-04-10  Jim Meyering  <meyering@redhat.com>
19215
19216         maint: remove doubled words in comments, e.g., s/a a/a/
19217         * lib/strptime.c (day_of_the_week): s/the the/the/
19218         * tests/test-chown.h (test_chown): s/a a/a/
19219
19220         test-chown.h: correct a cast
19221         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19222         when the destination is a stat.st_gid.
19223
19224 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19225
19226         getaddrinfo: Fix test for sa_len member.
19227         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19228         include <sys/types.h> before <sys/socket.h>.
19229
19230 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19231
19232         maint: change "can not" to "cannot"
19233         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19234         boundaries.
19235
19236 2011-04-09  Jim Meyering  <meyering@redhat.com>
19237
19238         maint: change "a a" to "a"
19239         * tests/test-lchown.h (test_lchown): s/a a/a/
19240
19241         maint.mk: prohibit \<the the\>
19242         * top/maint.mk (sc_prohibit_the_the): New rule.
19243
19244         maint: fix "the the" in comment
19245         * lib/count-one-bits.h: s/the the/the/
19246
19247         maint: change "can not" to "cannot"
19248         But do not change the occurrences in maintain.texi or in
19249         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19250         * doc/gnulib-tool.texi: s/can not/cannot/
19251         * doc/posix-functions/accept.texi (accept): Likewise.
19252         * doc/posix-functions/socket.texi (socket): Likewise.
19253         * lib/mbrtowc.c: Likewise.
19254
19255         maint.mk: prohibit use of "can not"
19256         * top/maint.mk (sc_prohibit_can_not): New rule.
19257         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19258
19259 2011-04-09  Bruno Haible  <bruno@clisp.org>
19260
19261         careadlinkat: Guard against misuse of careadlinkatcwd.
19262         * lib/careadlinkat.c: Include <stdlib.h>.
19263         (careadlinkatcwd): Check that the fd argument is as expected.
19264
19265 2011-04-09  Bruno Haible  <bruno@clisp.org>
19266
19267         careadlinkat: Use common coding style.
19268         * lib/careadlinkat.c: Move gnulib includes after system includes.
19269
19270 2011-04-09  Bruno Haible  <bruno@clisp.org>
19271
19272         careadlinkat: Clarify specification.
19273         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19274         (careadlinkatcwd): Add comment.
19275         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19276
19277 2011-04-09  Bruno Haible  <bruno@clisp.org>
19278
19279         areadlinkat: Avoid link error on many platforms.
19280         * modules/areadlinkat (Depends-on): Add areadlink.
19281
19282 2011-04-09  Bruno Haible  <bruno@clisp.org>
19283
19284         allocator, careadlinkat: Fix double-inclusion guard.
19285         * lib/allocator.h: Fix double-inclusion guard.
19286         * lib/careadlinkat.h: Likewise.
19287
19288 2011-04-09  Bruno Haible  <bruno@clisp.org>
19289
19290         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19291         * lib/relocwrapper.c: Update dependencies hierarchy.
19292         * build-aux/install-reloc: Update list of files to be compiled.
19293         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19294         lib/allocator.[hc].
19295
19296 2011-04-08  Eric Blake  <eblake@redhat.com>
19297
19298         strftime: silence gnulib-tool warning
19299         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19300
19301 2011-04-08  Bruno Haible  <bruno@clisp.org>
19302
19303         verify: Fix syntax error with GCC 4.6 in C++ mode.
19304         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19305         (HAVE_STATIC_ASSERT): New macro.
19306         (verify_true, verify): Use 'static_assert' if it is supported and
19307         '_Static_assert' is not supported.
19308
19309 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19310
19311         allocator: New module.
19312         * modules/allocator, lib/allocator.c: New files.
19313         * lib/allocator.h (stdlib_allocator): New decl.
19314         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19315         Remove.  Do not include <stdlib.h>.
19316         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19317         * modules/careadlinkat (Files): Remove lib/allocator.h.
19318         (Depends-on): Add allocator.
19319
19320         stdlib: let modules use system malloc, realloc
19321         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19322         if !_GL_USE_STDLIB_ALLOC.
19323         (malloc, realloc): Limit this change to a smaller scope.
19324
19325         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19326         (malloc, realloc): Don't #undef; no longer needed.
19327         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19328         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19329         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19330         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19331         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19332         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19333         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19334         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19335
19336         careadlinkat: rename members to avoid problem
19337         * lib/allocator.h (struct allocator): Rename members from
19338         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19339         and realloc are #define'd.  Reported by Eric Blake in
19340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19341         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19342
19343 2011-04-08  Eric Blake  <eblake@redhat.com>
19344
19345         nonblocking: reduce dependency
19346         * tests/test-nonblocking.c: Only test sockets when in use.
19347         * modules/nonblocking-tests (Depends-on): Drop socket.
19348         (Makefile.am): Link even if sockets are not present.
19349         * modules/pipe2-tests (Makefile.am): Likewise.
19350         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19351
19352         pipe2: fix O_NONBLOCK support on mingw
19353         * modules/pipe2 (Depends-on): Add nonblocking.
19354         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19355         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19356         * tests/test-nonblocking.c (main): Likewise.
19357         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19358
19359         fcntl-h: fix O_ACCMODE on cygwin
19360         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19361         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19362
19363         pipe-filter: drop O_NONBLOCK workarounds
19364         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19365         * modules/pipe-filter-ii (Depends-on): Likewise.
19366         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19367
19368         nonblocking: provide O_NONBLOCK for mingw
19369         * modules/nonblocking (Depends-on): Add open.
19370         (configure.ac): Set new witness macro.
19371         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19372         * modules/fcntl-h (Makefile.am): Substitute it.
19373         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19374         nonblocking module is in use.
19375         * lib/nonblocking.c: Adjust portability test.
19376         * lib/open.c (open): Don't let native open see gnulib flag.
19377         * tests/test-fcntl-h.c (main): Enhance test.
19378         * tests/test-open.h (test_open): Likewise.
19379         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19380
19381         careadlinkat: fix compilation error on mingw
19382         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19383         within struct allocator.
19384
19385 2011-04-06  Eric Blake  <eblake@redhat.com>
19386
19387         binary-io: relicense under LGPLv2+
19388         * modules/binary-io (License): Relax to LGPLv2+.
19389         Requested for libvirt, and required by pipe2.
19390
19391 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19392
19393         verify: use _Static_assert if available
19394         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19395         (verify_true, verify): Use it if available.  This generates better
19396         diagnostics with GCC 4.6.0 and later.
19397
19398 2011-04-05  Bruno Haible  <bruno@clisp.org>
19399
19400         Remove leftover generated .h files after config.status changed.
19401
19402         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19403         GL_GENERATE_ALLOCA_H.
19404         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19405         GL_GENERATE_ALLOCA_H evaluates to false.
19406
19407         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19408         GL_GENERATE_ARGZ_H.
19409         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19410         evaluates to false.
19411
19412         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19413         GL_GENERATE_BYTESWAP_H.
19414         * modules/byteswap (Makefile.am): Remove byteswap.h if
19415         GL_GENERATE_BYTESWAP_H evaluates to false.
19416
19417         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19418         GL_GENERATE_ERRNO_H.
19419         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19420         evaluates to false.
19421
19422         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19423         GL_GENERATE_FLOAT_H.
19424         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19425         evaluates to false.
19426
19427         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19428         GL_GENERATE_FNMATCH_H.
19429         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19430         GL_GENERATE_FNMATCH_H evaluates to false.
19431
19432         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19433         GL_GENERATE_GLOB_H.
19434         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19435         evaluates to false.
19436
19437         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19438         automake conditional GL_GENERATE_ICONV_H.
19439         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19440         evaluates to false.
19441
19442         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19443         GL_GENERATE_NETINET_IN_H.
19444         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19445         GL_GENERATE_NETINET_IN_H evaluates to false.
19446
19447         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19448         conditional GL_GENERATE_PTHREAD_H.
19449         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19450         * modules/pthread (Makefile.am): Remove pthread.h if
19451         GL_GENERATE_PTHREAD_H evaluates to false.
19452
19453         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19454         GL_GENERATE_SCHED_H.
19455         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19456         evaluates to false.
19457
19458         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19459         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19460         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19461         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19462
19463         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19464         GL_GENERATE_STDARG_H.
19465         * modules/stdarg (Makefile.am): Remove stdarg.h if
19466         GL_GENERATE_STDARG_H evaluates to false.
19467
19468         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19469         GL_GENERATE_STDBOOL_H.
19470         * modules/stdbool (Makefile.am): Remove stdbool.h if
19471         GL_GENERATE_STDBOOL_H evaluates to false.
19472
19473         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19474         conditional GL_GENERATE_STDDEF_H.
19475         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19476         * modules/stddef (Makefile.am): Remove stddef.h if
19477         GL_GENERATE_STDDEF_H evaluates to false.
19478
19479         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19480         GL_GENERATE_STDINT_H.
19481         * modules/stdint (Makefile.am): Remove stdint.h if
19482         GL_GENERATE_STDINT_H evaluates to false.
19483
19484         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19485         GL_GENERATE_SYSEXITS_H.
19486         * modules/sysexits (Makefile.am): Remove sysexits.h if
19487         GL_GENERATE_SYSEXITS_H evaluates to false.
19488
19489         Reported by Karl Berry and Ralf Wildenhues.
19490
19491 2011-04-05  Bruno Haible  <bruno@clisp.org>
19492
19493         Ensure to rebuild generated .h files when config.status has changed.
19494         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19495         config.status.
19496         * modules/ctype (Makefile.am): Likewise.
19497         * modules/dirent (Makefile.am): Likewise.
19498         * modules/errno (Makefile.am): Likewise.
19499         * modules/fcntl-h (Makefile.am): Likewise.
19500         * modules/float (Makefile.am): Likewise.
19501         * modules/getopt-posix (Makefile.am): Likewise.
19502         * modules/glob (Makefile.am): Likewise.
19503         * modules/iconv-h (Makefile.am): Likewise.
19504         * modules/inttypes (Makefile.am): Likewise.
19505         * modules/langinfo (Makefile.am): Likewise.
19506         * modules/locale (Makefile.am): Likewise.
19507         * modules/math (Makefile.am): Likewise.
19508         * modules/netdb (Makefile.am): Likewise.
19509         * modules/netinet_in (Makefile.am): Likewise.
19510         * modules/poll-h (Makefile.am): Likewise.
19511         * modules/pthread (Makefile.am): Likewise.
19512         * modules/pty (Makefile.am): Likewise.
19513         * modules/sched (Makefile.am): Likewise.
19514         * modules/search (Makefile.am): Likewise.
19515         * modules/selinux-h (Makefile.am): Likewise.
19516         * modules/signal (Makefile.am): Likewise.
19517         * modules/spawn (Makefile.am): Likewise.
19518         * modules/stdarg (Makefile.am): Likewise.
19519         * modules/stdbool (Makefile.am): Likewise.
19520         * modules/stddef (Makefile.am): Likewise.
19521         * modules/stdint (Makefile.am): Likewise.
19522         * modules/stdio (Makefile.am): Likewise.
19523         * modules/stdlib (Makefile.am): Likewise.
19524         * modules/string (Makefile.am): Likewise.
19525         * modules/strings (Makefile.am): Likewise.
19526         * modules/sys_file (Makefile.am): Likewise.
19527         * modules/sys_ioctl (Makefile.am): Likewise.
19528         * modules/sys_select (Makefile.am): Likewise.
19529         * modules/sys_socket (Makefile.am): Likewise.
19530         * modules/sys_stat (Makefile.am): Likewise.
19531         * modules/sys_time (Makefile.am): Likewise.
19532         * modules/sys_times (Makefile.am): Likewise.
19533         * modules/sys_utsname (Makefile.am): Likewise.
19534         * modules/sys_wait (Makefile.am): Likewise.
19535         * modules/sysexits (Makefile.am): Likewise.
19536         * modules/termios (Makefile.am): Likewise.
19537         * modules/time (Makefile.am): Likewise.
19538         * modules/unistd (Makefile.am): Likewise.
19539         * modules/wchar (Makefile.am): Likewise.
19540         * modules/wctype-h (Makefile.am): Likewise.
19541         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19542
19543 2011-04-05  Bruno Haible  <bruno@clisp.org>
19544
19545         pipe2: Relicense under LGPLv2+.
19546         * modules/pipe2 (License): Change to LGPLv2+.
19547         Requested by Eric Blake, for libvirt.
19548
19549 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19550
19551         bootstrap: compute gnulib_extra_files after updating build_aux
19552         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19553         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19554
19555 2011-04-05  Eric Blake  <eblake@redhat.com>
19556
19557         bootstrap: preserve git whitelist item sorting
19558         * build-aux/bootstrap (sort_patterns): New function.
19559         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19560
19561 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19562
19563         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19564         sc_space_tab check.
19565
19566 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19567
19568         areadlink, areadlinkat: rewrite in terms of careadlinkat
19569         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19570         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19571         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19572         (malloc, realloc): Remove #undefs.
19573         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19574         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19575         readlink, ssize_t, stdint, unistd.
19576         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19577         areadlink, stdint.
19578
19579         careadlinkat: new module
19580         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19581         * modules/careadlinkat: New files, written by me with
19582         a review and feedback from Ben Pfaff in
19583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19584
19585 2011-04-01  Bruno Haible  <bruno@clisp.org>
19586
19587         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19588         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19589         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19590         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19591         Reported by Bruce Korb <bruce.korb@gmail.com>.
19592
19593 2011-04-01  Bruno Haible  <bruno@clisp.org>
19594
19595         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19596         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19597         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19598         * modules/wcpcpy (Depends-on): Add extensions.
19599         * modules/wcpncpy (Depends-on): Likewise.
19600         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19601         systems.
19602         * doc/posix-functions/wcpncpy.texi: Likewise.
19603         * doc/posix-functions/wcwidth.texi: Likewise.
19604
19605 2011-03-31  Eric Blake  <eblake@redhat.com>
19606
19607         nonblocking: fix mingw test failures
19608         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19609         non-blocking flag on regular file.
19610         (get_nonblocking_flag): Set errno on invalid fd.
19611         * tests/test-nonblocking.c (main): Avoid test failure on
19612         directories if fchdir is not active.
19613         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19614
19615 2011-03-31  Bruno Haible  <bruno@clisp.org>
19616
19617         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19618         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19619         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19620         Reported by Simon Josefsson <simon@josefsson.org>.
19621
19622 2011-03-31  Bruno Haible  <bruno@clisp.org>
19623         and Eric Blake  <eblake@redhat.com>
19624
19625         nonblocking: new module
19626         * modules/nonblocking: New module.
19627         * modules/nonblocking-tests: Likewise.
19628         * lib/nonblocking.h: New file.
19629         * lib/nonblocking.c: Likewise.
19630         * tests/test-nonblocking.c: New test.
19631         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19632
19633 2011-03-30  Bruno Haible  <bruno@clisp.org>
19634
19635         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19636         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19637         instead of 'printf' format for GCC >= 4.4.
19638         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19639         (fprintf, printf, vfprintf, vprintf): Declare with
19640         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19641         the system's vfprintf() function.
19642         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19643
19644 2011-03-30  Eric Blake  <eblake@redhat.com>
19645
19646         passfd: fix scoping bug
19647         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19648         before sendmsg/recvmsg.
19649
19650         passfd: standardize coding conventions
19651         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19652         can be learned at compile time.
19653         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19654         ifdefs.
19655         (sendfd, recvfd): Follow gnulib code conventions.
19656
19657         passfd: fix incorrect sendmsg arguments
19658         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19659         incorrect msg_controllen value.
19660         * modules/passfd-tests (Depends-on): Check for alarm.
19661         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19662         Reported by Bastien ROUCARIES.
19663
19664 2011-03-30  Bruno Haible  <bruno@clisp.org>
19665
19666         c-strcasestr: Relicense under LGPLv2+.
19667         * modules/c-strcasestr (License): Change to LGPLv2+.
19668         Requested by Eric Blake, for libvirt.
19669
19670 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19671
19672         * users.txt: Add libidn2.  Fix libtasn1 link.
19673
19674 2011-03-30  Jim Meyering  <meyering@redhat.com>
19675
19676         tests: readlink* ("",... fails with EINVAL on newer kernels
19677         readlink and readlinkat have typically failed with ENOENT for
19678         the invalid, empty file name,  "".  However, with the advent
19679         of linux-2.6.39, they fail with EINVAL.
19680         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19681         when operating on the empty file name.
19682         * tests/test-readlink.h (test_readlink): Likewise.
19683
19684 2011-03-29  Bruno Haible  <bruno@clisp.org>
19685
19686         Relicense some modules under LGPLv2+, for libidn2.
19687         * modules/array-mergesort (License): Change to LGPLv2+.
19688         * modules/c-strcaseeq (License): Likewise.
19689         * modules/striconveh (License): Likewise.
19690         * modules/striconveha (License): Likewise.
19691         * modules/uniconv/base (License): Likewise.
19692         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19693         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19694         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19695         * modules/unictype/base (License): Likewise.
19696         * modules/unictype/bidiclass-of (License): Likewise.
19697         * modules/unictype/category-M (License): Likewise.
19698         * modules/unictype/category-none (License): Likewise.
19699         * modules/unictype/category-of (License): Likewise.
19700         * modules/unictype/category-test (License): Likewise.
19701         * modules/unictype/category-test-withtable (License): Likewise.
19702         * modules/unictype/combining-class (License): Likewise.
19703         * modules/unictype/joiningtype-of (License): Likewise.
19704         * modules/unictype/scripts (License): Likewise.
19705         * modules/uninorm/base (License): Likewise.
19706         * modules/uninorm/canonical-decomposition (License): Likewise.
19707         * modules/uninorm/composition (License): Likewise.
19708         * modules/uninorm/decompose-internal (License): Likewise.
19709         * modules/uninorm/decomposition-table (License): Likewise.
19710         * modules/uninorm/nfc (License): Likewise.
19711         * modules/uninorm/nfd (License): Likewise.
19712         * modules/uninorm/u32-normalize (License): Likewise.
19713         * modules/unistr/base (License): Likewise.
19714         * modules/unistr/u32-cpy (License): Likewise.
19715         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19716         * modules/unistr/u32-to-u8 (License): Likewise.
19717         * modules/unistr/u32-uctomb (License): Likewise.
19718         * modules/unistr/u8-check (License): Likewise.
19719         * modules/unistr/u8-mblen (License): Likewise.
19720         * modules/unistr/u8-mbtouc (License): Likewise.
19721         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19722         * modules/unistr/u8-mbtoucr (License): Likewise.
19723         * modules/unistr/u8-prev (License): Likewise.
19724         * modules/unistr/u8-strlen (License): Likewise.
19725         * modules/unistr/u8-to-u32 (License): Likewise.
19726         * modules/unistr/u8-uctomb (License): Likewise.
19727         * modules/unitypes (License): Likewise.
19728         Requested by Simon Josefsson.
19729
19730 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19731
19732         lib-symbol-visibility: Add a notice.
19733         * modules/lib-symbol-visibility (Notice): New field.
19734
19735 2011-03-29  Bruno Haible  <bruno@clisp.org>
19736
19737         getaddrinfo: Doc fix.
19738         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19739         section "fixed in Gnulib".
19740
19741 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19742
19743         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19744         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19745
19746 2011-03-26  Bruno Haible  <bruno@clisp.org>
19747
19748         unictype/property-byname: Reduce the number of load-time relocations.
19749         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19750         (UC_PROPERTY_INDEX_*): New enumeration values.
19751         (uc_property_byname): Convert an index from the lookup table to an
19752         uc_property_t.
19753         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19754         values.
19755
19756 2011-03-26  Bruno Haible  <bruno@clisp.org>
19757
19758         unictype/property-byname: Allow omitted word separators and aliases.
19759         * lib/unictype/pr_byname.gperf: Add property names without word
19760         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19761         for 'space'.
19762
19763 2011-03-26  Bruno Haible  <bruno@clisp.org>
19764
19765         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19766         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19767         also hyphens to space.
19768         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19769         without spaces.
19770         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19771
19772 2011-03-26  Bruno Haible  <bruno@clisp.org>
19773
19774         unictype/joiningtype-byname: Recognize long names as well.
19775         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19776         a long name.
19777         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19778         unictype/joiningtype_byname.h.
19779         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19780         * lib/unictype/joiningtype_byname.gperf: New file.
19781         * modules/unictype/joiningtype-byname (Files): Add
19782         lib/unictype/joiningtype_byname.gperf.
19783         (Depends-on): Add gperf.
19784         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19785         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19786         long names.
19787
19788         Tests for module 'unictype/joiningtype-longname'.
19789         * modules/unictype/joiningtype-longname-tests: New file.
19790         * tests/unictype/test-joiningtype_longname.c: New file.
19791
19792         New module 'unictype/joiningtype-longname'.
19793         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19794         * lib/unictype/joiningtype_longname.c: New file.
19795         * modules/unictype/joiningtype-longname: New file.
19796         * modules/unictype/joiningtype-all (Depends-on): Add
19797         unictype/joiningtype-longname.
19798
19799 2011-03-26  Bruno Haible  <bruno@clisp.org>
19800
19801         unictype/bidiclass-byname: Recognize long names as well.
19802         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19803         name.
19804         * lib/unictype/bidi_byname.c: Include <string.h>,
19805         unictype/bidi_byname.h.
19806         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19807         * lib/unictype/bidi_byname.gperf: New file.
19808         * modules/unictype/bidiclass-byname (Files): Add
19809         lib/unictype/bidi_byname.gperf.
19810         (Depends-on): Add gperf.
19811         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19812         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19813         long names.
19814
19815         Tests for module 'unictype/bidiclass-longname'.
19816         * modules/unictype/bidiclass-longname-tests: New file.
19817         * tests/unictype/test-bidi_longname.c: New file.
19818
19819         New module 'unictype/bidiclass-longname'.
19820         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19821         * lib/unictype/bidi_longname.c: New file.
19822         * modules/unictype/bidiclass-longname: New file.
19823         * modules/unictype/bidiclass-all (Depends-on): Add
19824         unictype/bidiclass-longname.
19825
19826 2011-03-26  Bruno Haible  <bruno@clisp.org>
19827
19828         unictype/bidi*: Rename modules.
19829         * modules/unictype/bidiclass-all: Renamed from
19830         modules/unictype/bidicategory-all.
19831         * modules/unictype/bidiclass-name: Renamed from
19832         modules/unictype/bidiclass-name.
19833         (Description): Update.
19834         * modules/unictype/bidiclass-name-tests: Renamed from
19835         modules/unictype/bidicategory-name-tests.
19836         * modules/unictype/bidiclass-byname: Renamed from
19837         modules/unictype/bidicategory-byname.
19838         (Description): Update.
19839         * modules/unictype/bidiclass-byname-tests: Renamed from
19840         modules/unictype/bidicategory-byname-tests.
19841         * modules/unictype/bidiclass-of: Renamed from
19842         modules/unictype/bidicategory-of.
19843         (Description): Update.
19844         * modules/unictype/bidiclass-of-tests: Renamed from
19845         modules/unictype/bidicategory-of-tests.
19846         * modules/unictype/bidiclass-test: Renamed from
19847         modules/unictype/bidicategory-test.
19848         (Description): Update.
19849         * modules/unictype/bidiclass-test-tests: Renamed from
19850         modules/unictype/bidicategory-test-tests.
19851         * modules/unictype/bidicategory-all: New file, a simple redirection.
19852         * modules/unictype/bidicategory-name: Likewise.
19853         * modules/unictype/bidicategory-byname: Likewise.
19854         * modules/unictype/bidicategory-of: Likewise.
19855         * modules/unictype/bidicategory-test: Likewise.
19856         * modules/unictype/property-bidi-* (Dependencies): Update.
19857         * lib/unictype/bidi_*.c: Update comment.
19858
19859 2011-03-26  Bruno Haible  <bruno@clisp.org>
19860
19861         unictype/bidi*: Rename functions, part 2.
19862         * modules/unictype/bidicategory-name (configure.ac): Update required
19863         libunistring version.
19864         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19865
19866 2011-03-25  Bruno Haible  <bruno@clisp.org>
19867
19868         New module 'unictype/combining-class-all'.
19869         * modules/unictype/combining-class-all: New file.
19870
19871         Tests for module 'unictype/combining-class-byname'.
19872         * modules/unictype/combining-class-byname-tests: New file.
19873         * tests/unictype/test-combiningclass_byname.c: New file.
19874
19875         New module 'unictype/combining-class-byname'.
19876         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19877         * lib/unictype/combiningclass_byname.c: New file.
19878         * lib/unictype/combiningclass_byname.gperf: New file.
19879         * modules/unictype/combining-class-byname: New file.
19880
19881         Tests for module 'unictype/combining-class-longname'.
19882         * modules/unictype/combining-class-longname-tests: New file.
19883         * tests/unictype/test-combiningclass_longname.c: New file.
19884
19885         New module 'unictype/combining-class-longname'.
19886         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19887         * lib/unictype/combiningclass_longname.c: New file.
19888         * modules/unictype/combining-class-longname: New file.
19889
19890         Tests for module 'unictype/combining-class-name'.
19891         * modules/unictype/combining-class-name-tests: New file.
19892         * tests/unictype/test-combiningclass_name.c: New file.
19893
19894         New module 'unictype/combining-class-name'.
19895         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19896         * lib/unictype/combiningclass_name.c: New file.
19897         * modules/unictype/combining-class-name: New file.
19898
19899 2011-03-25  Bruno Haible  <bruno@clisp.org>
19900
19901         unictype/combining-class: Rename source files.
19902         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19903         of unictype/combining.h.
19904         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19905         Update.
19906         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19907         * modules/unictype/combining-class (Description): Fix.
19908         (Files, Makefile.am): Update.
19909         * tests/unictype/test-combiningclass.c: Renamed from
19910         tests/unictype/test-combining.c.
19911         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19912
19913 2011-03-25  Bruno Haible  <bruno@clisp.org>
19914
19915         unictype: Update list of canonical combining classes.
19916         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19917
19918 2011-03-25  Bruno Haible  <bruno@clisp.org>
19919
19920         unictype/category-byname: Recognize long names as well.
19921         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19922         a long name.
19923         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19924         unictype/categ_byname.h.
19925         (UC_CATEGORY_INDEX_*): New enumeration values.
19926         (uc_general_category_byname): Use uc_general_category_lookup and
19927         convert from index to value.
19928         * lib/unictype/categ_byname.gperf: New file.
19929         * modules/unictype/category-byname (Files): Add
19930         lib/unictype/categ_byname.gperf.
19931         (Depends-on): Add gperf.
19932         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19933         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19934         long names.
19935
19936         Tests for module 'unictype/category-longname'.
19937         * modules/unictype/category-longname-tests: New file.
19938         * tests/unictype/test-categ_longname.c: New file.
19939
19940         New module 'unictype/category-longname'.
19941         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19942         * lib/unictype/categ_longname.c: New file.
19943         * modules/unictype/category-longname: New file.
19944         * modules/unictype/category-all (Depends-on): Add it.
19945
19946 2011-03-25  Bruno Haible  <bruno@clisp.org>
19947
19948         Tests for module 'unictype/category-LC'.
19949         * modules/unictype/category-LC-tests: New file.
19950         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19951
19952         New module 'unictype/category-LC'.
19953         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19954         (UC_CATEGORY_LC): New declaration.
19955         (UC_CASED_LETTER): New macro.
19956         * lib/gen-uni-tables.c (is_category_LC): New function.
19957         (output_categories): Also handle category LC.
19958         (UC_CATEGORY_MASK_LC): New enumeration value.
19959         (general_category_byname): Also handle category LC.
19960         * lib/unictype/categ_LC.c: New file.
19961         * lib/unictype/categ_LC.h: New file, automatically generated.
19962         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19963         category LC.
19964         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19965         * modules/unictype/category-LC: New file.
19966         * modules/unictype/category-byname (Depends-on): Add
19967         unictype/category-LC.
19968         * modules/unictype/category-all (Depends-on): Likewise.
19969
19970 2011-03-25  Eric Blake  <eblake@redhat.com>
19971
19972         xmalloc: revert yesterday's regression
19973         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19974         realloc's underlying behavior (allowing allocation of zero-size
19975         objects, especially if malloc-gnu is also in use).
19976
19977 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19978
19979         maint.mk: add missing version to VC-tag
19980         * top/maint.mk: git tag was missing actual tag name; add it.
19981
19982         valgrind: do leak checking, and exit with code 1 on error (not 0)
19983         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19984         to VALGRIND.
19985
19986 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19987
19988         posix-modules: say what it does.
19989         * posix-modules: Add a line to the --help output saying what it does.
19990
19991 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19992
19993         xmalloc: Do not leak if underlying realloc is C99 compatible.
19994         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19995         This avoids a leak on C99-based systems.  See
19996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19997
19998 2011-03-24  Eric Blake  <eblake@redhat.com>
19999
20000         realloc: document portability problem
20001         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
20002         passing 0 size to realloc.
20003
20004 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
20005
20006         doc: update users.txt
20007         * users.txt: Add cvsps, tmpwatch
20008
20009 2011-03-23  Matt Rice  <ratmice@gmail.com>
20010
20011         doc: update users.txt
20012         * users.txt: Add gdb.
20013
20014 2011-03-23  Jim Meyering  <meyering@redhat.com>
20015
20016         doc: update users.txt
20017         Looking through matches up to the following URL (there are still
20018         several more pages), I found several projects that use gnulib:
20019         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
20020         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
20021         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
20022
20023 2011-03-22  Bruno Haible  <bruno@clisp.org>
20024
20025         unictype/bidi*: Rename functions.
20026         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
20027         uc_bidi_class, uc_is_bidi_class): New declarations.
20028         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
20029         uc_bidi_category_byname.
20030         (uc_bidi_category_byname): New function.
20031         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
20032         u_bidi_category_name.
20033         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
20034         (uc_bidi_category_name): New function.
20035         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
20036         uc_bidi_category.
20037         (uc_bidi_category): New function.
20038         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
20039         uc_is_bidi_category. Invoke uc_bidi_class.
20040         (uc_is_bidi_category): New function.
20041         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
20042         instead of uc_bidi_category_byname.
20043         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
20044         instead of uc_bidi_category_name.
20045         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
20046         uc_bidi_category.
20047         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
20048         instead of uc_is_bidi_category.
20049
20050 2011-03-21  Bruno Haible  <bruno@clisp.org>
20051
20052         New module 'unictype/joininggroup-all'.
20053         * modules/unictype/joininggroup-all: New file.
20054
20055         Tests for module 'unictype/joininggroup-of'.
20056         * modules/unictype/joininggroup-of-tests: New file.
20057         * tests/unictype/test-joininggroup_of.c: New file.
20058         * tests/unictype/test-joininggroup_of.h: New file, automatically
20059         generated by gen-uni-tables.
20060
20061         New module 'unictype/joininggroup-of'.
20062         * modules/unictype/joininggroup-of: New file.
20063         * lib/unictype/joininggroup_of.c: New file.
20064         * lib/unictype/joininggroup_of.h: New file, automatically generated by
20065         gen-uni-tables.
20066
20067         Tests for module 'unictype/joininggroup-byname'.
20068         * modules/unictype/joininggroup-byname-tests: New file.
20069         * tests/unictype/test-joininggroup_byname.c: New file.
20070
20071         New module 'unictype/joininggroup-byname'.
20072         * modules/unictype/joininggroup-byname: New file.
20073         * lib/unictype/joininggroup_byname.c: New file.
20074         * lib/unictype/joininggroup_byname.gperf: New file.
20075
20076         Tests for module 'unictype/joininggroup-name'.
20077         * modules/unictype/joininggroup-name-tests: New file.
20078         * tests/unictype/test-joininggroup_name.c: New file.
20079
20080         New module 'unictype/joininggroup-name'.
20081         * modules/unictype/joininggroup-name: New file.
20082         * lib/unictype/joininggroup_name.c: New file.
20083         * lib/unictype/joininggroup_name.h: New file.
20084
20085         New module 'unictype/joiningtype-all'.
20086         * modules/unictype/joiningtype-all: New file.
20087
20088         Tests for module 'unictype/joiningtype-of'.
20089         * modules/unictype/joiningtype-of-tests: New file.
20090         * tests/unictype/test-joiningtype_of.c: New file.
20091         * tests/unictype/test-joiningtype_of.h: New file, automatically
20092         generated by gen-uni-tables.
20093
20094         New module 'unictype/joiningtype-of'.
20095         * modules/unictype/joiningtype-of: New file.
20096         * lib/unictype/joiningtype_of.c: New file.
20097         * lib/unictype/joiningtype_of.h: New file, automatically generated by
20098         gen-uni-tables.
20099
20100         Tests for module 'unictype/joiningtype-byname'.
20101         * modules/unictype/joiningtype-byname-tests: New file.
20102         * tests/unictype/test-joiningtype_byname.c: New file.
20103
20104         New module 'unictype/joiningtype-byname'.
20105         * modules/unictype/joiningtype-byname: New file.
20106         * lib/unictype/joiningtype_byname.c: New file.
20107
20108         Tests for module 'unictype/joiningtype-name'.
20109         * modules/unictype/joiningtype-name-tests: New file.
20110         * tests/unictype/test-joiningtype_name.c: New file.
20111
20112         New module 'unictype/joiningtype-name'.
20113         * modules/unictype/joiningtype-name: New file.
20114         * lib/unictype/joiningtype_name.c: New file.
20115
20116         unictype: Add support for Arabic shaping properties.
20117         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
20118         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
20119         declarations.
20120         (UC_JOINING_GROUP_*): New enumeration values.
20121         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
20122         declarations.
20123         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
20124         (unicode_joining_type): New variable.
20125         (UC_JOINING_GROUP_*): New enumeration values.
20126         (unicode_joining_group): New variable.
20127         (fill_arabicshaping, joining_type_as_c_identifier,
20128         output_joining_type_test, output_joining_type,
20129         joining_group_as_c_identifier, output_joining_group_test,
20130         output_joining_group): New functions.
20131         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
20132         fill_arabicshaping and output_joining_type_test, output_joining_type,
20133         output_joining_group_test, output_joining_group.
20134         Reported by Simon Josefsson.
20135
20136 2011-03-21  Jim Meyering  <meyering@redhat.com>
20137
20138         strftime: fix a bug in yesterday's change
20139         * lib/strftime.c (add): Accommodate width's initial value of -1.
20140         Otherwise, nstrftime would copy uninitialized data into
20141         the result buffer.
20142
20143 2011-03-21  Jim Meyering  <meyering@redhat.com>
20144
20145         tests: add strftime-tests module
20146         * tests/test-strftime.c: New file.
20147         * modules/strftime-tests: New module.
20148
20149 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20150
20151         strftime: don't assume a byte count fits in 'int'
20152         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20153         found this problem by static analysis, using gcc -Wstrict-overflow
20154         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20155         on an integer overflow having undefined behavior, but it turns out
20156         that the argument is a size, which might not fit in 'int' anyway,
20157
20158 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20159
20160         stdio: don't require ignore_value around fwrite
20161
20162         This patch works around libc bug 11959
20163         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20164         Without this patch, applications must often write
20165         ignore_value (fwrite (...)) even though the ignore_value is
20166         not helpful here.  It's common to write many objects, using
20167         fwrite/printf/etc., and then use ferror to detect output error.
20168
20169         I considered making this patch optional, but decided against it,
20170         because libc is obviously being inconsistent here: there is no
20171         reason libc should insist that user code must inspect fwrite
20172         return's value without also insisting that it inspect printf's,
20173         putchar's, etc.  If user code wants to have a strict style where
20174         all these functions' values are checked (so that ferror need not
20175         be checked), we could add support for that style in a new gnulib
20176         module, but in the meantime it's better to be consistent and to
20177         support common usage.
20178
20179         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20180         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20181         that we are compiling in checking mode, and if not C++, and
20182         if not already wrapping fwrite for some other reason.
20183         (fwrite): #define to rpl_fwrite if the latter is defined.
20184
20185 2011-03-20  Bruno Haible  <bruno@clisp.org>
20186
20187         verror: Fix compilation error introduced on 2011-02-13.
20188         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20189         instead of __attribute__.
20190         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20191
20192 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20193             Bruno Haible  <bruno@clisp.org>
20194
20195         socklen: do not depend on sys_socket
20196         While trying to modify Emacs to use gnulib's socklen module,
20197         I discovered a circular dependency: socklen depends on sys_socket
20198         and vice versa.  Emacs can use socklen, but it does not need
20199         sys_socket because it has its own substitute for sys/socket.h.
20200         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20201         gl_TYPE_SOCKLEN_T.
20202         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20203         gl_PREREQ_SYS_H_SOCKET.
20204         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20205         gl_PREREQ_SYS_H_SOCKET.
20206         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20207         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20208         * modules/socklen (Depends-on): Do not depend on sys_socket.
20209         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20210
20211 2011-03-20  Jim Meyering  <meyering@redhat.com>
20212
20213         maint.mk: sort file names *after* new transformation
20214         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20215         prefix would have led to an unwarranted failure in GNU parted.
20216         Sort after that transformation.
20217
20218 2011-03-19  Jim Meyering  <meyering@redhat.com>
20219
20220         maint.mk: fix po-file syntax-check rule
20221         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20222         Patch by Bruno Haible.
20223
20224 2011-03-19  Bruno Haible  <bruno@clisp.org>
20225
20226         socklen: Update comment.
20227         * m4/socklen.m4: Update comment about platforms.
20228
20229 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20230             Bruno Haible  <bruno@clisp.org>
20231
20232         inet_ntop, inet_pton: Simplify.
20233         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20234         documented to provide socklen_t and we already depend on sys_socket.
20235         * modules/inet_pton (Depends-on): Likewise.
20236         * lib/arpa_inet.in.h: Adjust comment.
20237
20238 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20239             Bruno Haible  <bruno@clisp.org>
20240
20241         netdb: Simplify.
20242         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20243         documented to provide socklen_t and we already depend on sys_socket.
20244         * lib/netdb.in.h: Adjust comment.
20245
20246 2011-03-19  Bruno Haible  <bruno@clisp.org>
20247
20248         sys_socket, netdb: Document problem with socklen_t.
20249         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20250         platforms.
20251         * doc/posix-headers/netdb.texi: Likewise.
20252
20253 2011-03-18  Eric Blake  <eblake@redhat.com>
20254
20255         maint.mk: let po check work in VPATH build
20256         * top/maint.mk (po_file): Allow cfg.mk override.
20257         (sc_po_check): Allow VPATH use.
20258         Reported by Jiri Denemark.
20259
20260 2011-03-16  Jim Meyering  <meyering@redhat.com>
20261
20262         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20263         Before, you would have had to create one .x-sc_ file per rule in order
20264         to exempt offending files.  Now, you may instead use a Make variable --
20265         usually defined in cfg.mk -- whose name identifies the affected rule.
20266         * top/maint.mk (_sc_excl): Define.
20267         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20268         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20269
20270 2011-03-13  Bruno Haible  <bruno@clisp.org>
20271
20272         ignore-value tests: Avoid warnings.
20273         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20274         empty for gcc < 3.4.
20275
20276 2011-03-13  Bruno Haible  <bruno@clisp.org>
20277
20278         passfd: Fix link error on Solaris.
20279         * modules/passfd (Description): Correct.
20280         (Depends-on): Add socketlib.
20281         (Link): New section.
20282         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20283
20284 2011-03-13  Bruno Haible  <bruno@clisp.org>
20285
20286         passfd: Fix link error on AIX 5.2.
20287         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20288
20289 2011-03-13  Bruno Haible  <bruno@clisp.org>
20290
20291         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20292         * lib/sys_socket.in.h: Include <stddef.h>.
20293         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20294         CMSG_FIRSTHDR. Remove unused variable.
20295
20296 2011-03-13  Bruno Haible  <bruno@clisp.org>
20297
20298         passfd: Fix compilation error on OpenBSD.
20299         * lib/passfd.c: Include <sys/uio.h>.
20300
20301 2011-03-13  Bruno Haible  <bruno@clisp.org>
20302
20303         passfd test: Fix warnings.
20304         * tests/test-passfd.c: Include <sys/wait.h>.
20305         (main): Fix typo.
20306
20307 2011-03-13  Bruno Haible  <bruno@clisp.org>
20308
20309         passfd module, part 4, tweaks.
20310         * tests/test-passfd.c: Reorder includes.
20311         (main): Fix perror and printf calls.
20312
20313 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20314
20315         passfd module, part 4.
20316         * modules/passfd-tests: New file.
20317         * tests/test-passfd.c: New file.
20318
20319 2011-03-13  Jim Meyering  <meyering@redhat.com>
20320
20321         Makefile: rely on GNU make; derive syntax-check rule names
20322         Rather than requiring that each sc_ rule be listed as a dependent
20323         of "check", use features of GNU make to derive the list.
20324         * Makefile (syntax-check-rules): Define.
20325         (check): Depend on the new variable, not the hard-coded list.
20326
20327 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20328             Bruno Haible  <bruno@clisp.org>
20329
20330         passfd module, part 3.
20331         * lib/passfd.h (recvfd): Add a flags argument.
20332         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20333         (recvfd): Add a flags argument.
20334         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20335         exists.
20336         * modules/passfd (Depends-on): Add cloexec.
20337         Suggested by Eric Blake.
20338
20339 2011-03-13  Bruno Haible  <bruno@clisp.org>
20340
20341         passfd module, part 2, tweaks.
20342         * modules/passfd (Files): Reorder.
20343         (Depends-on): Remove errno.
20344         (Include): Remove <sys/socket.h>, <sys/un.h>.
20345         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20346         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20347         specification header. Include <sys/socket.h> always. Don't include
20348         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20349         (sendfd): Clarify that it sets errno when it fails.
20350         (recvfd): Fix specification.
20351
20352 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20353
20354         passfd module, part 2.
20355         * modules/passfd: New file.
20356         * lib/passfd.h: New file.
20357         * lib/passfd.c: New file.
20358
20359 2011-03-12  Bruno Haible  <bruno@clisp.org>
20360
20361         wcswidth, mbswidth: Avoid integer overflow.
20362         * lib/wcswidth.c: Include <limits.h>.
20363         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20364         * lib/mbswidth.c: Include <limits.h>.
20365         (mbsnwidth): Avoid 'int' overflow.
20366         Reported by Jim Meyering.
20367
20368 2011-03-12  Bruno Haible  <bruno@clisp.org>
20369
20370         futimens, utimensat: Avoid endless recursion on Solaris 10.
20371         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20372         Solaris.
20373         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20374         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20375
20376 2011-03-11  Jim Meyering  <meyering@redhat.com>
20377
20378         maint.mk: relax a regexp to accommodate other formatting styles
20379         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20380         between "ngettext" and the following "(".
20381
20382 2011-03-11  Pádraig Brady <P@draigBrady.com>
20383
20384         maint.mk: suppress a false positive warning
20385         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20386         diagnostics are marked with ngettext.
20387
20388 2011-03-10  Eric Blake  <eblake@redhat.com>
20389
20390         wchar: add explicit dependencies, for Tru64
20391         * modules/mbmemcasecoll (Depends-on): Add wchar.
20392         * modules/mbtowc (Depends-on): Likewise.
20393         * modules/vasnprintf (Depends-on): Likewise.
20394         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20395         * modules/wctomb (Depends-on): Likewise.
20396         Reported by Peter O'Gorman.
20397
20398 2011-03-08  Bruno Haible  <bruno@clisp.org>
20399
20400         passfd module, part 1, tweaks.
20401         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20402         Improve indentation. Improve AC_MSG_CHECKING messages.
20403         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20404         gl_SOCKET_FAMILIES.
20405
20406 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20407
20408         passfd module, part 1.
20409         * m4/afunix.m4: New file.
20410         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20411         sockets.
20412
20413 2011-03-08  Bruno Haible  <bruno@clisp.org>
20414
20415         regex-quote: New API.
20416         * lib/regex-quote.h: Include <stdbool.h>.
20417         (struct regex_quote_spec): New type.
20418         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20419         New declarations.
20420         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20421         'const struct regex_quote_spec *' argument.
20422         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20423         (pcre_special): New constant.
20424         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20425         New functions.
20426         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20427         'const struct regex_quote_spec *' argument.
20428         * modules/regex-quote (Depends-on): Add stdbool.
20429         * tests/test-regex-quote.c (check): Update for new API. Add test for
20430         anchored results.
20431         * NEWS: Mention the API change.
20432         Reported by Reuben Thomas and Eric Blake.
20433
20434 2011-03-06  Bruno Haible  <bruno@clisp.org>
20435
20436         regex-quote: Fix creation of POSIX extended regular expressions.
20437         * lib/regex-quote.c (ere_special): Add grouping and alternation
20438         operators.
20439
20440 2011-03-05  Bruno Haible  <bruno@clisp.org>
20441
20442         doc: Improve doc regarding autopoint vs. gnulib.
20443         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20444         disable autopoint while running autoreconf.
20445         Suggested by Ralf Wildenhues.
20446
20447 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20448
20449         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20450         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20451
20452 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20453
20454         parse-duration: remove xalloc.h dependency
20455         * lib/parse-duration.c (parse_period): handle NULL return from
20456         strdup instead of calling xstrdup().
20457         * modules/parse-duration: remove "xalloc" dependency
20458
20459 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20460
20461         bootstrap: honor m4_base when running aclocal
20462         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20463
20464 2011-03-02  Jim Meyering  <meyering@redhat.com>
20465
20466         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20467         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20468         on request from Matt Booth.
20469
20470 2011-03-01  Eric Blake  <eblake@redhat.com>
20471
20472         test-link: work on Hurd
20473         * tests/test-link.h (test_link): Hurd rejects linking directories
20474         with EISDIR instead of the POSIX-mandated EPERM.
20475
20476 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20477
20478         stdio: simplify by moving files to printf-posix, sigpipe
20479         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20480         since this symbol is needed only if printf is replaced.
20481         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20482         Require gl_ASM_SYMBOL_PREFIX.
20483         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20484         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20485         (Depends-on): Add 'raise'.
20486         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20487         * modules/stdio (Files): Remove lib/stdio-write.c,
20488         m4/asm-underscore.m4.
20489         (Depends-on): Remove 'raise'.
20490
20491         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20492         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20493         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20494         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20495
20496 2011-02-28  Bruno Haible  <bruno@clisp.org>
20497
20498         localcharset: Assume ANSI C behaviour of free().
20499         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20500         calling free().
20501         Suggested by Simon Josefsson <simon@josefsson.org>.
20502
20503 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20504             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20505             Bruno Haible  <bruno@clisp.org>  (tiny change)
20506
20507         On Cygwin, use /proc file system instead of win32 API.
20508         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20509         Win32 file names.
20510         (DllMain): Simplify by removing Cygwin specific code.
20511         (find_shared_library_fullname): Use Linux specific implementation also
20512         for Cygwin.
20513         (get_shared_library_fullname): Update accordingly.
20514         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20515         Win32 file names.
20516         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20517         Cygwin specific code.
20518
20519 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20520             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20521
20522         Fix OpenMP flag detection for various Fortran compilers.
20523         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20524         OpenMP-conditional compilation construct, to force compile
20525         failure with missing OpenMP flag.
20526         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20527
20528 2011-02-25  Eric Blake  <eblake@redhat.com>
20529
20530         strstr: expand test coverage
20531         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20532         compilation.
20533         * tests/test-memmem.c (main): Duplicate tests.
20534         * tests/test-strcasestr.c (main): Likewise.
20535         * tests/test-c-strcasestr.c (main): Likewise.
20536
20537 2011-02-25  Jim Meyering  <meyering@redhat.com>
20538
20539         maint.mk: detect missing-NL-at-EOF, too
20540         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20541         it also detects when a file lacks a newline at EOF.
20542         (require_exactly_one_NL_at_EOF_): Renamed from
20543         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20544         since people may well have .x-sc_... file names tied to the
20545         existing name.  Suggested by Eric Blake.
20546
20547 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20548
20549         dirname: move m4/dos.m4 functionality into lib/dosname.h
20550
20551         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20552         extracts symbols from it, puts them into config.h; but it's much
20553         easier to use the symbols directly.  filename.h already does this,
20554         but it disagrees with dos.m4 in some respects.  This patch
20555         introduces a different include file dosname.h that packages up
20556         dos.m4, and then later we can work on merging filename.h and
20557         dosname.h.  Applications that need only the easy-to-configure
20558         symbols should consider including dosname.h rather than dirname.h.
20559         * NEWS: Mention incompatible changes.
20560         * m4/dos.m4: Remove.
20561         * lib/dosname.h, modules/dosname: New files.
20562         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20563         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20564         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20565         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20566         Include dosname.h, not dirname.h.
20567         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20568         Include dosname.h, for definitions of symbols like ISSLASH
20569         that used to be in config.h.
20570         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20571         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20572         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20573         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20574         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20575         * modules/rmdir (Files): Likewise.
20576         * modules/stat (Files): Likewise.
20577         * modules/unlink (Files): Likewise.
20578         * modules/dirname-lgpl (Depends-on): Add dosname.
20579         * modules/lstat (Depends-on): Likewise.
20580         * modules/openat (Depends-on): Likewise.
20581         * modules/rmdir (Depends-on): Likewise.
20582         * modules/savewd (Depends-on): Likewise.
20583         * modules/stat (Depends-on): Likewise.
20584         * modules/unlink (Depends-on): Likewise.
20585         * modules/openat (Depends-on): Remove dirname-lgpl.
20586         * modules/savewd (Depends-on): Likewise.
20587         * tests/test-dirname.c: Do not use removed symbols like
20588         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20589         the remaining symbols, e.g., ISSLASH ('\\').
20590
20591 2011-02-25  Eric Blake  <eblake@redhat.com>
20592
20593         strstr: revert patches that introduced bug and pessimization
20594         * lib/str-two-way.h: Add another reference.
20595         (two_way_short_needle, two_way_long_needle): Revert changes from
20596         2011-02-24; they pessimize search speed.
20597         (critical_factorization): Partially revert changes from
20598         2010-06-22; they violate the requirement that the left half of the
20599         needle be smaller than the period of the needle.
20600
20601 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20602
20603         filenamecat: remove unnecessary dependency on dirname-lgpl
20604         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20605         is no direct dependency, just an indirect one via filenamecat-lgpl.
20606
20607         remove: remove unnecessary use of m4/dos.m4
20608         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20609         * modules/remove (FILES): Remove m4/dos.m4.
20610
20611         * lib/openat-proc.c: Don't include dirname.h; not needed.
20612
20613         backupfile: remove unnecessary use of m4/dos.m4
20614         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20615         of its symbols are used by the backupfile code.  backupfile.c does
20616         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20617         for the rare case of programs that want all their backup file
20618         names to live within 8+3 limits, and dos.m4 doesn't address that.
20619         * modules/backupfile (Files): Remove m4/dos.m4.
20620
20621 2011-02-24  Jim Meyering  <meyering@redhat.com>
20622
20623         strstr: fix a bug whereby strstr would mistakenly return NULL
20624         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20625         in period calculation.
20626         (two_way_long_needle): Likewise.
20627         The original problem was reported by Mike Stump in
20628         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20629         Ralf Wildenhues provided the short needle and haystack.
20630         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20631         Add a more involved test to trigger the bug in two_way_long_needle.
20632
20633 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20634
20635         gnulib-tool: remove use of bold display in help screen
20636         * gnulib-tool (func_usage): Do not use bold display anymore in the
20637         help screen.  That was just meant to be a temporary emphasis for a
20638         backward-incompatible change.
20639
20640 2011-02-23  Bruno Haible  <bruno@clisp.org>
20641
20642         Fix misindentation of preprocessor directives.
20643         * lib/argp-namefrob.h: Reindent preprocessor directives.
20644         * lib/getopt_int.h (struct _getopt_data): Likewise.
20645         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20646         * lib/vasnprintf.c (decode_long_double): Likewise.
20647         * tests/test-argmatch.c: Insert blank lines, for clarity.
20648         * tests/test-exclude.c: Likewise.
20649
20650 2011-02-22  Bruno Haible  <bruno@clisp.org>
20651
20652         ioctl: Fix for MacOS X in 64-bit mode.
20653         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20654         value.
20655         Suggested by Eric Blake.
20656         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20657
20658 2011-02-22  Jim Meyering  <meyering@redhat.com>
20659
20660         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20661         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20662         in lib/.
20663
20664 2011-02-22  Eric Blake  <eblake@redhat.com>
20665
20666         maint: avoid any CDPATH issue
20667         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20668
20669         maint: adjust cpp indentation for my modules, as well
20670         * Makefile (sc_cpp_indent_check): Add my name.
20671         * lib/fbufmode.c: Filter through cppi.
20672         * lib/fpurge.c: Likewise.
20673         * lib/freadable.c: Likewise.
20674         * lib/freading.c: Likewise.
20675         * lib/fwritable.c: Likewise.
20676         * lib/fwriting.c: Likewise.
20677         * lib/sigaction.c: Likewise.
20678
20679 2011-02-22  Jim Meyering  <meyering@redhat.com>
20680
20681         maint: adjust cpp indentation to reflect nesting depth
20682         I.e., in a block of code that begins with an unnested "#if",
20683         put one space between the "#" in column 1 and following token.
20684         For example,
20685         -#include <sys/vfs.h>
20686         +# include <sys/vfs.h>
20687         Do this only in .c files that are part of a module I maintain.
20688         * lib/linkat.c: Filter through cppi.
20689         * lib/nanosleep.c: Likewise.
20690         * lib/openat.c: Likewise.
20691         * lib/openat-die.c: Likewise.
20692         * lib/dup3.c: Likewise.
20693         * lib/fchownat.c: Likewise.
20694         * lib/flock.c: Likewise.
20695         * lib/fsync.c: Likewise.
20696         * lib/fts.c: Likewise.
20697         * lib/getpass.c: Likewise.
20698         * lib/gettimeofday.c: Likewise.
20699         * lib/userspec.c: Likewise.
20700         * Makefile (sc_cpp_indent_check): New rule, to check this.
20701
20702 2011-02-22  Bruno Haible  <bruno@clisp.org>
20703
20704         New module 'wctomb'.
20705         * lib/stdlib.in.h (wctomb): New declaration.
20706         * lib/wctomb.c: New file.
20707         * lib/wctomb-impl.h: New file.
20708         * m4/wctomb.m4: New file.
20709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20710         REPLACE_WCTOMB.
20711         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20712         REPLACE_WCTOMB.
20713         * modules/wctomb: New file.
20714         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20715         * doc/posix-functions/wctomb.texi: Mention the new module.
20716         * modules/wctob (Depends-on): Add wctomb.
20717
20718 2011-02-22  Bruno Haible  <bruno@clisp.org>
20719
20720         New module 'mbtowc'.
20721         * lib/stdlib.in.h (mbtowc): New declaration.
20722         * lib/mbtowc.c: New file.
20723         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20724         * m4/mbtowc.m4: New file.
20725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20726         REPLACE_MBTOWC.
20727         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20728         REPLACE_MBTOWC.
20729         * modules/mbtowc: New file.
20730         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20731         * doc/posix-functions/mbtowc.texi: Mention the new module.
20732         * modules/btowc (Depends-on): Add mbtowc.
20733
20734 2011-02-22  Bruno Haible  <bruno@clisp.org>
20735
20736         wcrtomb: Add more tests for native Windows platforms.
20737         * tests/test-wcrtomb-w32-1.sh: New file.
20738         * tests/test-wcrtomb-w32-2.sh: New file.
20739         * tests/test-wcrtomb-w32-3.sh: New file.
20740         * tests/test-wcrtomb-w32-4.sh: New file.
20741         * tests/test-wcrtomb-w32-5.sh: New file.
20742         * tests/test-wcrtomb-w32.c: New file.
20743         * modules/wcrtomb-tests (Files): Add them.
20744         (Makefile.am): Arrange to run these tests.
20745         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20746         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20747
20748 2011-02-20  Bruno Haible  <bruno@clisp.org>
20749
20750         wcrtomb: Enhance test.
20751         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20752
20753 2011-02-20  Bruno Haible  <bruno@clisp.org>
20754
20755         mbrtowc: Tiny optimization.
20756         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20757
20758 2011-02-20  Jim Meyering  <meyering@redhat.com>
20759
20760         test-exclude.c: remove unmatched #endif
20761         * tests/test-exclude.c: Remove stray #endif, left over from
20762         the change of a week ago.
20763
20764 2011-02-19  Jim Meyering  <meyering@redhat.com>
20765
20766         git-version-gen: skip "-dirty" check when appropriate
20767         * build-aux/git-version-gen: Don't run any git commands when the
20768         version string comes from .tarball-version.  Prior to this, we
20769         would run git update-index --refresh even from a just-unpacked
20770         tarball directory, and that could affect a .git/ directory in a
20771         parent of the build directory.  Reported by Mike Frysinger.
20772
20773 2011-02-19  Bruno Haible  <bruno@clisp.org>
20774
20775         unictype/property-byname: Reduce the size of the 'data' segment.
20776         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20777
20778 2011-02-19  Bruno Haible  <bruno@clisp.org>
20779
20780         unictype/scripts: Reduce the size of the 'data' segment.
20781         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20782         '%pic'.
20783         * lib/unictype/scripts_byname.gperf: Regenerated.
20784
20785 2011-02-19  Bruno Haible  <bruno@clisp.org>
20786
20787         stdint: Update documentation.
20788         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20789
20790 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20791
20792         stdint: omit redundant check for wchar.h
20793         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20794         always tests whether wchar.h exists, so remove the now-redundant test.
20795
20796 2011-02-18  Bruno Haible  <bruno@clisp.org>
20797
20798         stdint: Cut dependency to module 'wchar'.
20799         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20800         include the necessary prerequisites.
20801         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20802         * modules/stdint (Depends-on): Remove wchar.
20803         (Makefile.am): Substitute HAVE_WCHAR_H.
20804         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20805
20806 2011-02-18  Eric Blake  <eblake@redhat.com>
20807
20808         longlong: skip, rather than fail, on cross-compilation
20809         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20810         when cross-compiling; regression from 2011-02-16.
20811
20812 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20813
20814         * NEWS: Mention 2011-02-08 change to stdlib.
20815
20816 2011-02-17  Bruno Haible  <bruno@clisp.org>
20817
20818         getloadavg: Add comments about platforms.
20819         * m4/getloadavg.m4: Add comment.
20820         * lib/getloadavg.c: Likewise.
20821
20822 2011-02-17  Bruno Haible  <bruno@clisp.org>
20823
20824         getloadavg: Fix link error on Solaris 2.6.
20825         * modules/getloadavg (Link): New section.
20826         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20827         linking test-getloadavg.
20828         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20829         getloadavg.
20830
20831 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20832
20833         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20834         It was 'int', but this doesn't match the IRIX 6.5 manual.
20835         Suggested by Bruno Haible in
20836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20837
20838 2011-02-17  Bruno Haible  <bruno@clisp.org>
20839
20840         havelib: Fix comments.
20841         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20842         change.
20843
20844 2011-02-17  Bruno Haible  <bruno@clisp.org>
20845
20846         havelib: Update config.rpath.
20847         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20848
20849 2011-02-17  Bruno Haible  <bruno@clisp.org>
20850
20851         getloadavg test: Add some plausibility checks.
20852         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20853         is improbable.
20854
20855 2011-02-16  Eric Blake  <eblake@redhat.com>
20856
20857         maintainer-makefile: make syntax-check a no-op from tarballs
20858         * top/maint.mk (no-vc-detected): New rule.
20859         (local-checks-available): Use it to avoid hanging if someone tries
20860         'make syntax-check' from a tarball.  Also append to any non-syntax
20861         checks already defined in cfg.mk.
20862
20863 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20864
20865         longlong: tune, particularly for common case of c99
20866
20867         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20868         or running anything if c99, or if unsigned long long int does not
20869         work.  In either case, we know the answer without further tests.
20870         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20871         it at most once, and use its results for both long long int and
20872         unsigned long long int.  This is more likely to be efficient in
20873         the common case where the program wants to check for both long
20874         long int and unsigned long long int.
20875         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20876         since the answer is already known.
20877
20878 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20879
20880         getloadavg: set errno
20881         * lib/getloadavg.c: Set errno when returning -1.  If no other
20882         error number looks appropriate, set it to ENOSYS if the getloadavg
20883         looks like it can't possibly ever work, ENOTSUP otherwise.
20884         Suggested by Bruno Haible in
20885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20886
20887         getloadavg: trim unused parts and speed up 'configure'
20888         * NEWS: Document this.
20889         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20890         always compiled if getloadavg is absent.
20891         Move test code to ...
20892         * tests/test-getloadavg.c: New file, containing previous
20893         contents of test from lib/getloadavg.c.  It also contains
20894         suggestions by Bruno Haible in
20895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20896         * modules/getloadavg-tests: New file.
20897         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20898         Do tests in the same order as they're needed for getloadavg.c.
20899         Omit setgid-related tests that generate symbols KMEM_GROUP,
20900         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20901         Do only the tests that are needed to see whether the system has
20902         getloadavg, moving the other tests into ...
20903         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20904         NLIST_NAME_UNION; nobody should be using it.  Do not define
20905         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20906         relevant, as the user of this module shouldn't care how getloadavg
20907         is implemented.
20908
20909         getloadavg: omit unused var
20910         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20911
20912 2011-02-15  Jim Meyering  <meyering@redhat.com>
20913
20914         doc: update users.txt
20915         * users.txt: Update iwhd's URL.
20916
20917 2011-02-13  Bruno Haible  <bruno@clisp.org>
20918
20919         Consistent macro naming for macros that use GCC __attribute__.
20920         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20921         _ATTRIBUTE_NONNULL_.
20922         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20923         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20924         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20925         ATTRIBUTE_DEPRECATED.
20926         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20927         ATTRIBUTE_NORETURN.
20928         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20929         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20930         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20931         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20932         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20933         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20934         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20935         ATTRIBUTE_SENTINEL.
20936         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20937         ATTRIBUTE_RETURN_CHECK.
20938         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20939         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20940         ATTRIBUTE_NORETURN.
20941         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20942         Reported by Paul Eggert.
20943
20944 2011-02-13  Bruno Haible  <bruno@clisp.org>
20945
20946         Don't interfere with a program's definition of __attribute__.
20947         * lib/argp.h (__attribute__): Remove definition.
20948         (_GL_ATTRIBUTE_FORMAT): New macro.
20949         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20950         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20951         (_GL_ATTRIBUTE_FORMAT): New macro.
20952         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20953         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20954         GCC 3 or newer.
20955         * lib/error.h (__attribute__): Remove definition.
20956         (_GL_ATTRIBUTE_FORMAT): New macro.
20957         (error, error_at_line): Use it.
20958         * lib/hash.h (__attribute__): Remove definition.
20959         (ATTRIBUTE_WUR): Update definition. Define always.
20960         * lib/openat.h (__attribute__): Remove definition.
20961         (ATTRIBUTE_NORETURN): Update definition. Define always.
20962         * lib/sigpipe-die.h (__attribute__): Remove definition.
20963         (ATTRIBUTE_NORETURN): Update definition. Define always.
20964         * lib/vasnprintf.h (__attribute__): Remove definition.
20965         (_GL_ATTRIBUTE_FORMAT): New macro.
20966         (asnprintf, vasnprintf): Use it.
20967         * lib/xalloc.h (__attribute__): Remove definition.
20968         (ATTRIBUTE_NORETURN): Update definition. Define always.
20969         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20970         * lib/xmemdup0.h (__attribute__): Remove definition.
20971         (ATTRIBUTE_NORETURN): Update definition. Define always.
20972         * lib/xprintf.h (__attribute__): Remove definition.
20973         (_GL_ATTRIBUTE_FORMAT): New macro.
20974         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20975         * lib/xstrtol.h (__attribute__): Remove definition.
20976         (ATTRIBUTE_NORETURN): Update definition. Define always.
20977         * lib/xvasprintf.h (__attribute__): Remove definition.
20978         (_GL_ATTRIBUTE_FORMAT): New macro.
20979         (xasprintf, xvasprintf): Use it.
20980         * tests/test-argmatch.c (__attribute__): Remove definition.
20981         (ATTRIBUTE_NORETURN): Update definition. Define always.
20982         * tests/test-exclude.c (__attribute__): Remove definition.
20983         (ATTRIBUTE_NORETURN): Update definition. Define always.
20984         Reported by Paul Eggert.
20985
20986 2011-02-13  Bruno Haible  <bruno@clisp.org>
20987
20988         mbrtowc: Add more tests for native Windows platforms.
20989         * tests/test-mbrtowc-w32-1.sh: New file.
20990         * tests/test-mbrtowc-w32-2.sh: New file.
20991         * tests/test-mbrtowc-w32-3.sh: New file.
20992         * tests/test-mbrtowc-w32-4.sh: New file.
20993         * tests/test-mbrtowc-w32-5.sh: New file.
20994         * tests/test-mbrtowc-w32.c: New file.
20995         * modules/mbrtowc-tests (Files): Add them.
20996         (Makefile.am): Arrange to run these tests.
20997         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20998         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20999
21000 2011-02-13  Bruno Haible  <bruno@clisp.org>
21001
21002         mbrtowc: Work around native Windows bug.
21003         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
21004         guess when no suitable locale for testing was found.
21005         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
21006
21007 2011-02-13  Bruno Haible  <bruno@clisp.org>
21008
21009         mbsinit: Work around mingw bug.
21010         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
21011         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
21012         Windows.
21013         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
21014
21015 2011-02-13  Bruno Haible  <bruno@clisp.org>
21016
21017         mbsinit: Don't crash for a NULL argument.
21018         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
21019         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
21020
21021 2011-02-13  Bruno Haible  <bruno@clisp.org>
21022
21023         Don't interfere with a program's definition of __attribute__.
21024         * lib/stdio.in.h (__attribute__): Remove definition.
21025         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
21026         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
21027         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
21028         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
21029         * lib/string.in.h (__attribute__): Remove definition.
21030         Reported by Paul Eggert.
21031
21032 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21033
21034         stdlib: don't get in the way of non-GCC __attribute__
21035         See thread starting at
21036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
21037         Revert previous stdlib change, installing the following instead:
21038         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
21039         to get in the way of a non-GCC compiler that supports __attribute__.
21040         (_GL_ATTRIBUTE_RETURN): New macro.
21041         (_Exit): Use it instead of __attribute__.
21042
21043 2011-02-12  Bruno Haible  <bruno@clisp.org>
21044
21045         quotearg test: Avoid test failure on mingw.
21046         * tests/test-quotearg.sh: Convert the locale identifier from native
21047         Windows syntax to Unix syntax.
21048
21049 2011-02-12  Bruno Haible  <bruno@clisp.org>
21050
21051         setlocale: Prefer gnulib's override over libintl's override.
21052         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
21053         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
21054         GNULIB_defined_setlocale is set.
21055
21056 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21057
21058         stdlib: support non-GCC __attribute__
21059
21060         Fix a serious and tricky problem encountered when attempting to
21061         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
21062         5.5, but it crashed due to memory corruption on Solaris 10 with
21063         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
21064         bits that are otherwise zero.  This tagging is optional inside
21065         Emacs but is preferred and is used when __attribute__ ((__aligned
21066         (8))) works, as it does with both recent-enough GCC and with Sun C
21067         5.11.  However, Sun C 5.11 is not GCC and does not #define
21068         __GNUC__ and __GNUC_MINOR__.
21069
21070         When I added the getloadavg module to Emacs, it brought in
21071         stdlib.in.h, which contained this fragment:
21072
21073            #ifndef __attribute__
21074            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
21075            #  define __attribute__(Spec)   /* empty */
21076            # endif
21077            #endif
21078
21079         When files that include <stdlib.h> were compiled with Sun C 5.11,
21080         the above code disabled __attribute__ ((__aligned (8))), which
21081         caused variables to not be properly aligned, which eventually led
21082         to the pointer corruption mentioned above.  (This was a bit hard
21083         to diagnose, unfortunately.)
21084
21085         Several "#define __attribute__(X) /* empty */" code snippets need
21086         to be eradicated from Gnulib to work with non-GCC compilers that
21087         support __attribute__.  The Autoconf way to do this is to test for
21088         each kind of attribute that we want support for, and selectively
21089         enable that in source code.
21090
21091         Fix this problem just for stdlib.h, by adding a test for the
21092         __noreturn__ attribute, and change stdlib.in.h to use that test
21093         when needed.  This technique can be easily generalized to the
21094         other *.in.h files and attributes, and a similar technique can be
21095         used for *.h and *.c files.  This patch is enough to solve the
21096         problem for Emacs + getloadavg, and I thought I'd publish it for
21097         feedback before undertaking further, similar fixes in other
21098         modules.
21099
21100         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
21101         because it's not needed for stdlib.h.  It merely substitutes the
21102         value directly into stdlib.h.  We may well need to #define it, or
21103         similar symbols, for other modules, but it's nice to also have an
21104         option to not #define it for applications like Emacs that do not
21105         need it.
21106
21107         * lib/stdlib.in.h (__attribute__): Do not #define.
21108         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
21109         be defined only if the _Exit module is also used.
21110         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
21111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
21112         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
21113         platforms.
21114         * modules/_Exit (Files): Add m4/attribute.m4.
21115         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
21116         * m4/attribute.m4: New file.
21117
21118 2011-02-12  Bruno Haible  <bruno@clisp.org>
21119
21120         wcsrtombs: Work around bug on native Windows.
21121         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
21122         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
21123         instead of len.
21124         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
21125
21126 2011-02-12  Bruno Haible  <bruno@clisp.org>
21127
21128         mbsrtowcs: Work around bug on native Windows.
21129         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
21130         against mingw bug.
21131         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
21132
21133 2011-02-12  Bruno Haible  <bruno@clisp.org>
21134
21135         Avoid setlocale bugs in tests.
21136         * modules/btowc (Dependencies): Add setlocale.
21137         * modules/c-strcase (Dependencies): Likewise.
21138         * modules/mbmemcasecmp (Dependencies): Likewise.
21139         * modules/mbmemcasecoll (Dependencies): Likewise.
21140         * modules/mbrtowc (Dependencies): Likewise.
21141         * modules/mbscasecmp (Dependencies): Likewise.
21142         * modules/mbscasestr (Dependencies): Likewise.
21143         * modules/mbschr (Dependencies): Likewise.
21144         * modules/mbscspn (Dependencies): Likewise.
21145         * modules/mbsinit (Dependencies): Likewise.
21146         * modules/mbsncasecmp (Dependencies): Likewise.
21147         * modules/mbsnrtowcs (Dependencies): Likewise.
21148         * modules/mbspbrk (Dependencies): Likewise.
21149         * modules/mbspcasecmp (Dependencies): Likewise.
21150         * modules/mbsrchr (Dependencies): Likewise.
21151         * modules/mbsrtowcs (Dependencies): Likewise.
21152         * modules/mbsspn (Dependencies): Likewise.
21153         * modules/mbsstr (Dependencies): Likewise.
21154         * modules/nl_langinfo (Dependencies): Likewise.
21155         * modules/quotearg (Dependencies): Likewise.
21156         * modules/unicase/locale-language (Dependencies): Likewise.
21157         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21158         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21159         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21160         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21161         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21162         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21163         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21164         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21165         * modules/vasnprintf-posix (Dependencies): Likewise.
21166         * modules/wcrtomb (Dependencies): Likewise.
21167         * modules/wcsnrtombs (Dependencies): Likewise.
21168         * modules/wcsrtombs (Dependencies): Likewise.
21169
21170 2011-02-12  Bruno Haible  <bruno@clisp.org>
21171
21172         setlocale: Workaround native Windows bug.
21173         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21174         succeeds but sets LC_CTYPE to "C", report a failure.
21175         * tests/test-setlocale2.sh: New file.
21176         * tests/test-setlocale2.c: New file.
21177         * modules/setlocale-tests (Files): Add the new files.
21178         (Makefile.am): Enable test-setlocale2.sh test.
21179         * doc/posix-functions/setlocale.texi: Mention workaround.
21180
21181 2011-02-11  Bruno Haible  <bruno@clisp.org>
21182
21183         Tests for module 'setlocale'.
21184         * modules/setlocale-tests: New file.
21185         * tests/test-setlocale1.sh: New file.
21186         * tests/test-setlocale1.c: New file.
21187
21188         New module 'setlocale'.
21189         * lib/locale.in.h (setlocale): New declaration.
21190         * lib/setlocale.c: New file, based on
21191         gettext/gettext-runtime/intl/setlocale.c.
21192         * m4/setlocale.m4: New file.
21193         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21194         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21195         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21196         REPLACE_SETLOCALE.
21197         * modules/setlocale: New file.
21198         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21199         * doc/posix-functions/setlocale.texi: Mention the new module.
21200
21201 2011-02-11  Bruno Haible  <bruno@clisp.org>
21202
21203         Prepare for locale dependent tests on mingw.
21204         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21205         because it has the wrong locale encoding.
21206         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21207         French_France.1252 instead of "fr".
21208         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21209         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21210         because it has the wrong locale encoding.
21211         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21212         native Windows, try Turkish_Turkey.65001.
21213         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21214         Chinese_China.54936.
21215
21216         Prepare for locale dependent tests on mingw.
21217         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21218         differently.
21219         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21220         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21221         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21222         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21223
21224 2011-02-11  Eric Blake  <eblake@redhat.com>
21225
21226         strptime: avoid compiler warnings
21227         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21228         compiler warnings about dead code.
21229         Reported by Daniel P. Berrange.
21230
21231 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21232
21233         doc: update users.txt
21234         * users.txt: Add rcs.
21235
21236 2011-02-10  John W. Eaton  <jwe@gnu.org>
21237
21238         doc: update users.txt
21239         * users.txt: Add octave.
21240
21241 2011-02-10  Jim Meyering  <meyering@redhat.com>
21242
21243         doc: update users.txt
21244         * users.txt: Add iwhd.
21245
21246 2011-02-09  Bruno Haible  <bruno@clisp.org>
21247
21248         gnulib-tool: Make copyright notice adjustment more robust.
21249         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21250         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21251         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21252         License".
21253         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21254
21255 2011-02-06  Bruno Haible  <bruno@clisp.org>
21256
21257         New module 'towctrans'.
21258         * modules/towctrans: New file.
21259         * lib/wctype.in.h (towctrans): New declaration.
21260         * lib/towctrans.c: New file.
21261         * lib/towctrans-impl.h: New file.
21262         * m4/towctrans.m4: New file.
21263         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21264         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21265         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21266         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21267         * doc/posix-functions/towctrans.texi: Mention the new module.
21268
21269 2011-02-06  Bruno Haible  <bruno@clisp.org>
21270
21271         New module 'wctrans'.
21272         * modules/wctrans: New file.
21273         * lib/wctype.in.h (wctrans): New declaration.
21274         * lib/wctrans.c: New file.
21275         * lib/wctrans-impl.h: New file.
21276         * m4/wctrans.m4: New file.
21277         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21278         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21279         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21280         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21281         * doc/posix-functions/wctrans.texi: Mention the new module.
21282
21283 2011-02-06  Bruno Haible  <bruno@clisp.org>
21284
21285         New module 'iswctype'.
21286         * modules/iswctype: New file.
21287         * lib/wctype.in.h (iswctype): New declaration.
21288         * lib/iswctype.c: New file.
21289         * lib/iswctype-impl.h: New file.
21290         * m4/iswctype.m4: New file.
21291         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21292         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21293         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21294         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21295         * doc/posix-functions/iswctype.texi: Mention the new module and the
21296         HP-UX 11.00 problem.
21297
21298 2011-02-06  Bruno Haible  <bruno@clisp.org>
21299
21300         New module 'wctype'.
21301         * modules/wctype: Change to represent the wctype() substitute.
21302         * lib/wctype.in.h (wctype): New declaration.
21303         * lib/wctype.c: New file.
21304         * lib/wctype-impl.h: New file.
21305         * m4/wctype.m4: New file.
21306         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21307         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21308         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21309         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21310         * doc/posix-functions/wctype.texi: Mention the new module and the
21311         HP-UX 11.00 problem.
21312
21313 2011-02-06  Bruno Haible  <bruno@clisp.org>
21314
21315         wctype-h: Ensure wctype_t and wctrans_t are defined.
21316         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21317         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21318         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21319         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21320         HAVE_WCTRANS_T.
21321         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21322
21323 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21324
21325         flock: fix license typo
21326
21327         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21328         omitted.
21329
21330 2011-02-08  Bruno Haible  <bruno@clisp.org>
21331
21332         Split large sed scripts, for HP-UX sed.
21333         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21334         to avoid HP-UX limit of 99 commands, in the near future.
21335         * modules/stdlib (Makefile.am): Likewise.
21336         * modules/unistd (Makefile.am): Likewise.
21337         * modules/wchar (Makefile.am): Likewise.
21338         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21339         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21340         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21341
21342 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21343             Bruno Haible  <bruno@clisp.org>
21344
21345         stdlib: improve random_r modularization
21346         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21347         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21348         you also need the random_r module to get this material right.
21349         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21350         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21351         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21352
21353 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21354
21355         stdlib: don't depend on stdint
21356         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21357         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21358         be independent of whether stdint.h is needed.
21359         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21360         here, instead of ...
21361         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21362         struct random_data should be using the random_r module, not just
21363         the stdlib module (which wouldn't make sense: what package needs
21364         just struct random_data without also needing random_r?).
21365         * modules/stdlib (Depends-on): Remove stdint.
21366
21367         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21368         See the thread rooted at
21369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21370         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21371         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21372         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21373         __VMS)); previously it was always included (via fcntl--.h).
21374         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21375         hand; this is good enough for load averages.  Also, do not use
21376         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21377         flags directly if available and don't bother otherwise.  (Packages
21378         that need the extra reliability should use the modules that define
21379         these flags on older platforms that lack them.)
21380         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21381         fcntl-safer.
21382
21383 2011-02-08  Jim Meyering  <meyering@redhat.com>
21384
21385         di-set.h, ino-map.h: add multiple-inclusion guard
21386         Technically, the guard is required only for ino-map.h, due to its
21387         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21388         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21389         * lib/ino-map.h: Likewise.
21390
21391 2011-02-06  Bruno Haible  <bruno@clisp.org>
21392
21393         iswblank: Ensure declaration on glibc systems.
21394         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21395         * modules/iswblank (Dependencies): Add 'extensions'.
21396         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21397
21398 2011-02-06  Bruno Haible  <bruno@clisp.org>
21399
21400         New module 'iswblank'.
21401         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21402         * modules/iswblank: New file.
21403         * modules/wctype-h (Files): Remove lib/iswblank.c.
21404         (Makefile.am): Substitute GNULIB_ISWBLANK.
21405         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21406         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21407         (gl_WCTYPE_H_DEFAULTS): New macro.
21408         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21409         * modules/iswblank-tests: New file.
21410         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21411         * tests/test-wctype-h.c (main): Remove iswblank tests.
21412         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21413         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21414         of 'wctype-h'.
21415         * NEWS: Mention the change.
21416         * modules/mbchar (Depends-on): Add iswblank.
21417
21418 2011-02-08  Bruno Haible  <bruno@clisp.org>
21419
21420         di-set tests: Refactor.
21421         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21422         unnecessary includes.
21423         (ASSERT): Remove macro.
21424         (main): Make C90 compliant by avoiding variable declaration after
21425         statement.
21426         * modules/di-set-tests (Files): Add tests/macros.h.
21427
21428 2011-02-08  Bruno Haible  <bruno@clisp.org>
21429
21430         ino-map tests: Refactor.
21431         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21432         unnecessary includes.
21433         (ASSERT): Remove macro.
21434         (main): Make C90 compliant by avoiding variable declaration after
21435         statement.
21436         * modules/ino-map-tests (Files): Add tests/macros.h.
21437
21438 2011-02-08  Jim Meyering  <meyering@redhat.com>
21439
21440         di-set: add "const" to a cast
21441         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21442         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21443
21444 2011-02-06  Bruno Haible  <bruno@clisp.org>
21445
21446         Rename module 'wctype' to 'wctype-h'.
21447         * modules/wctype-h: Renamed from modules/wctype.
21448         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21449         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21450         (Files, Depends-on, Makefile.am): Update.
21451         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21452         (Files, Makefile.am): Update.
21453         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21454         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21455         * doc/posix-headers/wctype.texi: Update.
21456         * doc/posix-functions/iswalnum.texi: Update.
21457         * doc/posix-functions/iswalpha.texi: Update.
21458         * doc/posix-functions/iswblank.texi: Update.
21459         * doc/posix-functions/iswcntrl.texi: Update.
21460         * doc/posix-functions/iswdigit.texi: Update.
21461         * doc/posix-functions/iswgraph.texi: Update.
21462         * doc/posix-functions/iswlower.texi: Update.
21463         * doc/posix-functions/iswprint.texi: Update.
21464         * doc/posix-functions/iswpunct.texi: Update.
21465         * doc/posix-functions/iswspace.texi: Update.
21466         * doc/posix-functions/iswupper.texi: Update.
21467         * doc/posix-functions/iswxdigit.texi: Update.
21468         * doc/posix-functions/towlower.texi: Update.
21469         * doc/posix-functions/towupper.texi: Update.
21470         * NEWS: Mention the change.
21471         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21472         * modules/mbchar (Dependencies): Likewise.
21473         * modules/mbswidth (Dependencies): Likewise.
21474         * modules/quotearg (Dependencies): Likewise.
21475         * modules/regex (Dependencies): Likewise.
21476         * modules/wcscasecmp (Dependencies): Likewise.
21477         * modules/wcsncasecmp (Dependencies): Likewise.
21478         * modules/wcwidth (Dependencies): Likewise.
21479
21480 2011-02-06  Bruno Haible  <bruno@clisp.org>
21481
21482         New module 'wcswidth'.
21483         * modules/wcswidth: New file.
21484         * lib/wchar.in.h (wcswidth): New declaration.
21485         * lib/wcswidth.c: New file.
21486         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21487         * m4/wcswidth.m4: New file.
21488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21490         REPLACE_WCSWIDTH.
21491         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21492         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21493         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21494         * doc/posix-functions/wcswidth.texi: Mention the new module.
21495
21496 2011-02-06  Bruno Haible  <bruno@clisp.org>
21497
21498         New module 'wcstok'.
21499         * modules/wcstok: New file.
21500         * lib/wchar.in.h (wcstok): New declaration.
21501         * lib/wcstok.c: New file.
21502         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21503         * m4/wcstok.m4: New file.
21504         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21505         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21506         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21507         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21508         * doc/posix-functions/wcstok.texi: Mention the new module.
21509
21510 2011-02-06  Bruno Haible  <bruno@clisp.org>
21511
21512         New module 'wcsstr'.
21513         * modules/wcsstr: New file.
21514         * lib/wchar.in.h (wcsstr): New declaration.
21515         * lib/wcsstr.c: New file.
21516         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21517         * m4/wcsstr.m4: New file.
21518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21520         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21521         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21522         * doc/posix-functions/wcsstr.texi: Mention the new module.
21523
21524 2011-02-06  Bruno Haible  <bruno@clisp.org>
21525
21526         New module 'wcspbrk'.
21527         * modules/wcspbrk: New file.
21528         * lib/wchar.in.h (wcspbrk): New declaration.
21529         * lib/wcspbrk.c: New file.
21530         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21531         * m4/wcspbrk.m4: New file.
21532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21534         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21535         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21536         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21537
21538 2011-02-06  Bruno Haible  <bruno@clisp.org>
21539
21540         New module 'wcsspn'.
21541         * modules/wcsspn: New file.
21542         * lib/wchar.in.h (wcsspn): New declaration.
21543         * lib/wcsspn.c: New file.
21544         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21545         * m4/wcsspn.m4: New file.
21546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21549         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21550         * doc/posix-functions/wcsspn.texi: Mention the new module.
21551
21552 2011-02-06  Bruno Haible  <bruno@clisp.org>
21553
21554         New module 'wcscspn'.
21555         * modules/wcscspn: New file.
21556         * lib/wchar.in.h (wcscspn): New declaration.
21557         * lib/wcscspn.c: New file.
21558         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21559         * m4/wcscspn.m4: New file.
21560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21563         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21564         * doc/posix-functions/wcscspn.texi: Mention the new module.
21565
21566 2011-02-06  Bruno Haible  <bruno@clisp.org>
21567
21568         New module 'wcsrchr'.
21569         * modules/wcsrchr: New file.
21570         * lib/wchar.in.h (wcsrchr): New declaration.
21571         * lib/wcsrchr.c: New file.
21572         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21573         * m4/wcsrchr.m4: New file.
21574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21577         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21578         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21579
21580 2011-02-06  Bruno Haible  <bruno@clisp.org>
21581
21582         New module 'wcschr'.
21583         * modules/wcschr: New file.
21584         * lib/wchar.in.h (wcschr): New declaration.
21585         * lib/wcschr.c: New file.
21586         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21587         * m4/wcschr.m4: New file.
21588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21591         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21592         * doc/posix-functions/wcschr.texi: Mention the new module.
21593
21594 2011-02-06  Bruno Haible  <bruno@clisp.org>
21595
21596         New module 'wcsdup'.
21597         * modules/wcsdup: New file.
21598         * lib/wchar.in.h (wcsdup): New declaration.
21599         * lib/wcsdup.c: New file.
21600         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21601         * m4/wcsdup.m4: New file.
21602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21605         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21606         * doc/posix-functions/wcsdup.texi: Mention the new module.
21607
21608 2011-02-06  Bruno Haible  <bruno@clisp.org>
21609
21610         New module 'wcsxfrm'.
21611         * modules/wcsxfrm: New file.
21612         * lib/wchar.in.h (wcsxfrm): New declaration.
21613         * lib/wcsxfrm.c: New file.
21614         * lib/wcsxfrm-impl.h: New file.
21615         * m4/wcsxfrm.m4: New file.
21616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21619         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21620         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21621
21622 2011-02-06  Bruno Haible  <bruno@clisp.org>
21623
21624         New module 'wcscoll'.
21625         * modules/wcscoll: New file.
21626         * lib/wchar.in.h (wcscoll): New declaration.
21627         * lib/wcscoll.c: New file.
21628         * lib/wcscoll-impl.h: New file.
21629         * m4/wcscoll.m4: New file.
21630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21633         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21634         * doc/posix-functions/wcscoll.texi: Mention the new module.
21635
21636 2011-02-06  Bruno Haible  <bruno@clisp.org>
21637
21638         New module 'wcsncasecmp'.
21639         * modules/wcsncasecmp: New file.
21640         * lib/wchar.in.h (wcsncasecmp): New declaration.
21641         * lib/wcsncasecmp.c: New file.
21642         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21643         * m4/wcsncasecmp.m4: New file.
21644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21647         HAVE_WCSNCASECMP.
21648         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21649         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21650
21651 2011-02-06  Bruno Haible  <bruno@clisp.org>
21652
21653         New module 'wcscasecmp'.
21654         * modules/wcscasecmp: New file.
21655         * lib/wchar.in.h (wcscasecmp): New declaration.
21656         * lib/wcscasecmp.c: New file.
21657         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21658         * m4/wcscasecmp.m4: New file.
21659         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21660         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21661         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21662         HAVE_WCSCASECMP.
21663         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21664         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21665
21666 2011-02-05  Bruno Haible  <bruno@clisp.org>
21667
21668         New module 'wcsncmp'.
21669         * modules/wcsncmp: New file.
21670         * lib/wchar.in.h (wcsncmp): New declaration.
21671         * lib/wcsncmp.c: New file.
21672         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21673         * m4/wcsncmp.m4: New file.
21674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21677         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21678         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21679
21680 2011-02-05  Bruno Haible  <bruno@clisp.org>
21681
21682         New module 'wcscmp'.
21683         * modules/wcscmp: New file.
21684         * lib/wchar.in.h (wcscmp): New declaration.
21685         * lib/wcscmp.c: New file.
21686         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21687         * m4/wcscmp.m4: New file.
21688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21691         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21692         * doc/posix-functions/wcscmp.texi: Mention the new module.
21693
21694 2011-02-05  Bruno Haible  <bruno@clisp.org>
21695
21696         New module 'wcsncat'.
21697         * modules/wcsncat: New file.
21698         * lib/wchar.in.h (wcsncat): New declaration.
21699         * lib/wcsncat.c: New file.
21700         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21701         * m4/wcsncat.m4: New file.
21702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21705         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21706         * doc/posix-functions/wcsncat.texi: Mention the new module.
21707
21708 2011-02-05  Bruno Haible  <bruno@clisp.org>
21709
21710         New module 'wcscat'.
21711         * modules/wcscat: New file.
21712         * lib/wchar.in.h (wcscat): New declaration.
21713         * lib/wcscat.c: New file.
21714         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21715         * m4/wcscat.m4: New file.
21716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21719         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21720         * doc/posix-functions/wcscat.texi: Mention the new module.
21721
21722 2011-02-05  Bruno Haible  <bruno@clisp.org>
21723
21724         New module 'wcpncpy'.
21725         * modules/wcpncpy: New file.
21726         * lib/wchar.in.h (wcpncpy): New declaration.
21727         * lib/wcpncpy.c: New file.
21728         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21729         * m4/wcpncpy.m4: New file.
21730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21732         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21733         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21734         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21735
21736 2011-02-05  Bruno Haible  <bruno@clisp.org>
21737
21738         New module 'wcsncpy'.
21739         * modules/wcsncpy: New file.
21740         * lib/wchar.in.h (wcsncpy): New declaration.
21741         * lib/wcsncpy.c: New file.
21742         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21743         * m4/wcsncpy.m4: New file.
21744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21747         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21748         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21749
21750 2011-02-05  Bruno Haible  <bruno@clisp.org>
21751
21752         New module 'wcpcpy'.
21753         * modules/wcpcpy: New file.
21754         * lib/wchar.in.h (wcpcpy): New declaration.
21755         * lib/wcpcpy.c: New file.
21756         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21757         * m4/wcpcpy.m4: New file.
21758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21760         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21761         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21762         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21763
21764 2011-02-05  Bruno Haible  <bruno@clisp.org>
21765
21766         New module 'wcscpy'.
21767         * modules/wcscpy: New file.
21768         * lib/wchar.in.h (wcscpy): New declaration.
21769         * lib/wcscpy.c: New file.
21770         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21771         * m4/wcscpy.m4: New file.
21772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21774         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21775         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21776         * doc/posix-functions/wcscpy.texi: Mention the new module.
21777
21778 2011-02-05  Bruno Haible  <bruno@clisp.org>
21779
21780         New module 'wcsnlen'.
21781         * modules/wcsnlen: New file.
21782         * lib/wchar.in.h (wcsnlen): New declaration.
21783         * lib/wcsnlen.c: New file.
21784         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21785         * m4/wcsnlen.m4: New file.
21786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21789         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21790         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21791
21792 2011-02-05  Bruno Haible  <bruno@clisp.org>
21793
21794         New module 'wcslen'.
21795         * modules/wcslen: New file.
21796         * lib/wchar.in.h (wcslen): New declaration.
21797         * lib/wcslen.c: New file.
21798         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21799         * m4/wcslen.m4: New file.
21800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21802         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21803         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21804         * doc/posix-functions/wcslen.texi: Mention the new module.
21805
21806 2011-02-05  Bruno Haible  <bruno@clisp.org>
21807
21808         New module 'wmemset'.
21809         * modules/wmemset: New file.
21810         * lib/wchar.in.h (wmemset): New declaration.
21811         * lib/wmemset.c: New file.
21812         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21813         * m4/wmemset.m4: New file.
21814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21816         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21817         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21818         * doc/posix-functions/wmemset.texi: Mention the new module.
21819
21820 2011-02-05  Bruno Haible  <bruno@clisp.org>
21821
21822         New module 'wmemmove'.
21823         * modules/wmemmove: New file.
21824         * lib/wchar.in.h (wmemmove): New declaration.
21825         * lib/wmemmove.c: New file.
21826         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21827         * m4/wmemmove.m4: New file.
21828         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21829         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21830         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21831         HAVE_WMEMMOVE.
21832         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21833         * doc/posix-functions/wmemmove.texi: Mention the new module.
21834
21835 2011-02-05  Bruno Haible  <bruno@clisp.org>
21836
21837         New module 'wmemcpy'.
21838         * modules/wmemcpy: New file.
21839         * lib/wchar.in.h (wmemcpy): New declaration.
21840         * lib/wmemcpy.c: New file.
21841         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21842         * m4/wmemcpy.m4: New file.
21843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21845         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21846         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21847         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21848
21849 2011-02-05  Bruno Haible  <bruno@clisp.org>
21850
21851         New module 'wmemcmp'.
21852         * modules/wmemcmp: New file.
21853         * lib/wchar.in.h (wmemcmp): New declaration.
21854         * lib/wmemcmp.c: New file.
21855         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21856         * m4/wmemcmp.m4: New file.
21857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21859         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21860         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21861         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21862
21863 2011-02-07  Jim Meyering  <meyering@redhat.com>
21864
21865         di-set, ino-map: new modules, from coreutils
21866         * lib/di-set.c: New file.
21867         * lib/di-set.h: Likewise.
21868         * lib/ino-map.c: Likewise.
21869         * lib/ino-map.h: Likewise.
21870         * modules/di-set: Likewise.
21871         * modules/di-set-tests: Likewise.
21872         * modules/ino-map: Likewise.
21873         * modules/ino-map-tests: Likewise.
21874         * tests/test-di-set.c: Likewise.
21875         * tests/test-ino-map.c: Likewise.
21876
21877 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21878
21879         getloadavg: merge minor changes from Emacs
21880
21881         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21882         (getloadavg): Use memset, not bzero.
21883
21884         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21885         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21886         clash (bug#86).
21887
21888 2010-11-14  Bruno Haible  <bruno@clisp.org>
21889
21890         Allow multiple gnulib generated replacements to coexist.
21891         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21892         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21893         * lib/langinfo.in.h (nl_item): Likewise.
21894         * lib/math.in.h (_NaN, NAN): Likewise.
21895         * lib/netdb.in.h (struct addrinfo): Likewise.
21896         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21897         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21898         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21899         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21900         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21901         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21902         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21903         pthread_mutexattr_init, pthread_mutexattr_settype,
21904         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21905         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21906         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21907         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21908         * lib/sched.in.h (struct sched_param): Likewise.
21909         * lib/se-selinux.in.h (security_class_t, security_context_t,
21910         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21911         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21912         lsetfilecon, fsetfilecon, security_check_context,
21913         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21914         Likewise.
21915         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21916         Likewise.
21917         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21918         _gl_function_taking_int_returning_void_t, union sigval,
21919         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21920         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21921         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21922         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21923         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21924         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21925         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21926         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21927         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21928         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21929         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21930         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21931         socklen_t, rpl_fd_isset): Likewise.
21932         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21933         * lib/sys_time.in.h (struct timeval): Likewise.
21934         * lib/sys_times.in.h (struct tms): Likewise.
21935         * lib/sys_utsname.in.h (struct utsname):
21936         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21937         * lib/unistd.in.h (getpagesize): Likewise.
21938         * lib/wchar.in.h (mbstate_t): Likewise.
21939         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21940         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21941         towlower, towupper): Likewise.
21942         Reported by Sam Steingold <sds@gnu.org>.
21943
21944 2011-02-05  Eric Blake  <eblake@redhat.com>
21945
21946         unsetenv: work around Haiku issues
21947         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21948         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21949
21950 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21951
21952         libposix: avoid calling error() within libposix
21953         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21954         is defined.
21955
21956 2011-02-05  Eric Blake  <eblake@redhat.com>
21957
21958         strerror_r-posix: port to cygwin
21959         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21960         implementation.
21961         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21962         * tests/test-strerror_r.c (main): Fix test.
21963         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21964         issue.
21965
21966 2011-02-05  Bruno Haible  <bruno@clisp.org>
21967
21968         New module 'wmemchr'.
21969         * modules/wmemchr: New file.
21970         * lib/wchar.in.h (wmemchr): New declaration.
21971         * lib/wmemchr.c: New file.
21972         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21973         * m4/wmemchr.m4: New file.
21974         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21975         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21976         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21977         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21978         * doc/posix-functions/wmemchr.texi: Mention the new module.
21979
21980 2011-02-04  Eric Blake  <eblake@redhat.com>
21981
21982         fdopendir: detect FreeBSD bug
21983         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21984         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21985
21986 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21987
21988         stdbool: do not define HAVE_STDBOOL_H
21989         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21990         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21991         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21992         imported from the latest Autoconf git.  It was motivated by Emacs,
21993         which uses gnulib but does not need HAVE_STDBOOL_H.
21994
21995 2011-02-04  Bruno Haible  <bruno@clisp.org>
21996
21997         wcsnrtombs: Prepare for new module wwcsnrtombs.
21998         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21999         * lib/wcsnrtombs.c: Include it.
22000         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
22001
22002         wcsrtombs: Prepare for new module wwcsrtombs.
22003         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
22004         * lib/wcsrtombs.c: Include it.
22005         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
22006
22007         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
22008         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
22009         * lib/mbsnrtowcs.c: Include it.
22010         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
22011
22012         mbsrtowcs: Prepare for new module mbsrtowwcs.
22013         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
22014         * lib/mbsrtowcs.c: Include it.
22015         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
22016
22017 2011-02-04  Bruno Haible  <bruno@clisp.org>
22018
22019         vasnprintf: Reduce use of malloc for small format strings.
22020         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
22021         (arguments): Add room for the first 7 arguments.
22022         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
22023         (char_directives, u8_directives, u16_directives, u32_directives): Add
22024         room for the first 7 directives.
22025         * lib/printf-parse.c: Include <string.h>.
22026         (PRINTF_PARSE): Change memory handling code so that it uses the first
22027         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
22028         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
22029         Reported by Pádraig Brady <P@draigbrady.com>.
22030
22031 2011-01-31  Eric Blake  <eblake@redhat.com>
22032
22033         dup2: work around Haiku bug
22034         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
22035         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
22036         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22037         * tests/test-dup2.c (main): Enhance test.
22038
22039 2011-01-31  Simon Josefsson  <simon@josefsson.org>
22040
22041         doc: off_t is not available in eglibc 2.11.2 stdio.h.
22042         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
22043         declared by eglibc 2.11.2.
22044         * lib/stdio.in.h: Likewise.
22045
22046 2011-01-31  Eric Blake  <eblake@redhat.com>
22047
22048         ignore-value: add missing test dependency
22049         * tests/test-ignore-value.c: Revert previous change; stdio.h
22050         provides off_t.
22051         * modules/ignore-value-tests (Depends-on): Add missing dependency.
22052
22053 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22054
22055         mktime: clarify long_int width checking
22056         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
22057         the top level, to make it clearer that the assumption about
22058         long_int width is being checked.  See
22059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
22060
22061 2011-01-30  Simon Josefsson  <simon@josefsson.org>
22062
22063         ignore-value: Fix self-test.
22064         * tests/test-ignore-value.c: Include sys/types.h for off_t.
22065
22066 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
22067
22068         TYPE_MAXIMUM: avoid theoretically undefined behavior
22069         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
22070         negative number, which the C Standard says has undefined behavior.
22071         In practice this is not a problem, but might as well do it by the book.
22072         Reported by Rich Felker and Eric Blake; see
22073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
22074         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
22075         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22077         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
22078         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22079         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
22080
22081         mktime: #undef mktime before #defining it
22082         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
22083
22084         mktime: systematically normalize tm_isdst comparisons
22085         * lib/mktime.c (isdst_differ): New function.
22086         (__mktime_internal): Use it systematically for all isdst comparisons.
22087         This completes the fix for libc BZ #6723, and removes the need for
22088         normalizing tm_isdst.  See
22089         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
22090         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
22091
22092         mktime: fix some integer overflow issues and sidestep the rest
22093
22094         This was prompted by a bug report by Benjamin Lindner for MinGW
22095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
22096         His bug is due to signed integer overflow (0 - INT_MIN), and I
22097         I scanned through mktime.c looking for other integer overflow
22098         problems, fixing all the bugs I found.
22099
22100         Although the C Standard says the resulting code is still not safe
22101         in the presence of integer overflow, in practice it should be good
22102         enough for all real-world two's-complement implementations, except
22103         for debugging environments that deliberately trap on integer
22104         overflow (e.g., gcc -ftrapv).
22105
22106         * lib/mktime.c (WRAPV): New macro.
22107         (SHR): Also check that long_int and time_t shift right in the
22108         usual way, before using the fast-but-unportable method.
22109         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
22110         used.  The code already assumed two's complement, so there's
22111         no need to test for alternatives.  All uses removed.
22112         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
22113         the C standard.  Problem reported by Rich Felker in
22114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
22115         (twos_complement_arithmetic): Also check long_int and time_t.
22116         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
22117         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
22118         (__mktime_internal): Avoid integer overflow with unary subtraction
22119         in two instances where -1 - X is an adequate replacement for -X,
22120         since the calculations are approximate.
22121
22122 2011-01-29  Eric Blake  <eblake@redhat.com>
22123
22124         mktime: avoid infinite loop
22125         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
22126         type; behavior is still undefined but portable to all known targets.
22127         Reported by Rich Felker.
22128
22129 2011-01-29  Simon Josefsson  <simon@josefsson.org>
22130
22131         rename, unlink, same-inode: Relicense.
22132         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22133         * modules/unlink (License): Likewise.
22134         * modules/same-inode (License): Likewise.
22135
22136 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22137
22138         mktime: avoid problems on NetBSD 5 / i386
22139         * lib/mktime.c (long_int): New type.  This works around a problem
22140         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22141         but time_t is 64 bits, and where I expect the existing code is
22142         wrong in some cases.
22143         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22144         (ydhms_diff): Bring back the compile-time check for wide-enough
22145         year and yday.
22146
22147         mktime: fix misspelling in comment
22148         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22149         This merges all recent glibc changes of importance.
22150
22151 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22152
22153         move-if-change: cope with concurrent mv of identical file.
22154         * build-aux/move-if-change (CMPPROG): Accept environment
22155         variable as an override for `cmp'.
22156         (usage): Document CMPPROG.
22157         Adjust comparison to drop stdout.  Cope with failure of mv if
22158         the target file exists and is identical to the source, for
22159         parallel builds.
22160         Report from H.J. Lu against binutils in PR binutils/12283.
22161
22162 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22163
22164         * users.txt: Mention sharutils.
22165
22166 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22167
22168         * users.txt: Mention OATH Toolkit.
22169
22170 2011-01-27  Bruno Haible  <bruno@clisp.org>
22171
22172         Prepare for supporting FreeBSD 10.
22173         * build-aux/config.libpath: Remove handling of freebsd1*.
22174
22175 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22176
22177         Prepare for supporting FreeBSD 10.
22178         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22179         match FreeBSD 10.0.
22180
22181 2011-01-27  Bruno Haible  <bruno@clisp.org>
22182
22183         vma-iter, get-rusage-as: Add OpenBSD support.
22184         * modules/vma-iter (configure.ac): Test for mquery.
22185         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22186         * lib/vma-iter.c: Include <sys/mman.h>.
22187         (vma_iterate): Add an implementation based on mquery().
22188         * lib/resource-ext.h (get_rusage_as): Update comments.
22189         * lib/get-rusage-as.c: Likewise.
22190         * lib/get-rusage-data.c: Likewise.
22191
22192 2011-01-26  Karl Berry  <karl@gnu.org>
22193
22194         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22195         variables to make it easier to override the makeinfo program used.
22196
22197 2011-01-26  Eric Blake  <eblake@redhat.com>
22198
22199         fcntl: work around Haiku F_DUPFD bugs
22200         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22201         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22202         cloexec bit on duplication.
22203         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22204
22205 2011-01-26  Bruno Haible  <bruno@clisp.org>
22206
22207         Enable memory leak tests on AIX.
22208         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22209         * tests/test-fprintf-posix3.c (main): Likewise.
22210
22211 2011-01-26  Bruno Haible  <bruno@clisp.org>
22212
22213         Tests for module 'get-rusage-data'.
22214         * modules/get-rusage-data-tests: New file.
22215         * tests/test-get-rusage-data.c: New file.
22216
22217         New module 'get-rusage-data'.
22218         * lib/resource-ext.h (get_rusage_data): New declaration.
22219         * lib/get-rusage-data.c: New file.
22220         * modules/get-rusage-data: New file.
22221
22222 2011-01-25  Bruno Haible  <bruno@clisp.org>
22223
22224         get-rusage-as: Allow for easier testing.
22225         * lib/resource-ext.h (get_rusage_as): Add comment.
22226         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22227         (main): New function for interactive testing.
22228
22229 2011-01-25  Bruno Haible  <bruno@clisp.org>
22230
22231         vma-iter: Treat Haiku like BeOS.
22232         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22233         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22234
22235 2011-01-25  Eric Blake  <eblake@redhat.com>
22236
22237         c-stack: fix regression on cygwin when libsigsegv is present
22238         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22239
22240 2011-01-24  Bruno Haible  <bruno@clisp.org>
22241
22242         vma-iter: Avoid empty intervals.
22243         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22244         on an empty interval.
22245
22246 2011-01-24  Jim Meyering  <meyering@redhat.com>
22247
22248         u64: remove unnecessary #include
22249         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22250
22251 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22252
22253         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22254         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22255
22256 2011-01-23  Bruno Haible  <bruno@clisp.org>
22257
22258         New module 'vma-iter'.
22259         * lib/vma-iter.h: New file.
22260         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22261         * modules/vma-iter: New file.
22262         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22263         for get_rusage_as_via_iterator.
22264         (vma_iterate_callback): New function.
22265         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22266         * modules/get-rusage-as (Depends-on): Add vma-iter.
22267
22268 2011-01-23  Bruno Haible  <bruno@clisp.org>
22269
22270         uninorm: Tweak includes.
22271         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22272         Reported by Jim Meyering.
22273
22274 2011-01-23  Bruno Haible  <bruno@clisp.org>
22275
22276         get-rusage-as: Improve on NetBSD.
22277         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22278         /proc, like on FreeBSD.
22279
22280 2011-01-23  Jim Meyering  <meyering@redhat.com>
22281
22282         xreadlink.h: remove unnecessary #include
22283         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22284
22285         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22286         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22287
22288 2011-01-23  Bruno Haible  <bruno@clisp.org>
22289
22290         get-rusage-as: Fix bug.
22291         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22292         original limit when aborting the first loop.
22293
22294 2011-01-23  Bruno Haible  <bruno@clisp.org>
22295
22296         wctype: Ensure valid C syntax.
22297         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22298         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22299
22300 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22301
22302         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22304         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22305         as they are needed only for configure's test case.
22306         This removes two unnecessary symbols from config.h.
22307
22308         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22309         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22311         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22312         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22313         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22314         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22315         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22316         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22317         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22318         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22319         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22320         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22321         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22322         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22323         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22324         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22325         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22326
22327 2011-01-21  Eric Blake  <eblake@redhat.com>
22328
22329         maintainer-makefile: work with older git for submodule check
22330         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22331         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22332         Reported by Matthias Bolte.
22333
22334         bootstrap: minor portability fixes
22335         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22336         (usage): Omit leading capital and trailing . on help phrases, per
22337         GNU Coding Standards.
22338         (check_versions, top level): Prefix messages with script name.
22339
22340 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22341
22342         bootstrap: support --no-git option
22343         * build-aux/bootstrap: Add --no-git option, to be used when
22344         --gnulib-srcdir points to the exact desired checkout.
22345
22346 2011-01-21  Eric Blake  <eblake@redhat.com>
22347
22348         strerror_r-posix: work with glibc 2.13
22349         * lib/strerror_r.c (strerror_r): Fix return type.
22350
22351 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22352             Bruno Haible  <bruno@clisp.org>
22353
22354         uN_strstr: New unit tests.
22355         * modules/unistr/u8-strstr-tests: New file.
22356         * modules/unistr/u16-strstr-tests: New file.
22357         * modules/unistr/u32-strstr-tests: New file.
22358         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22359         * tests/unistr/test-u8-strstr.c: New file.
22360         * tests/unistr/test-u16-strstr.c: New file.
22361         * tests/unistr/test-u32-strstr.c: New file.
22362
22363 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22364             Bruno Haible  <bruno@clisp.org>
22365
22366         Make uN_strstr functions O(n) worst-case.
22367         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22368         16-bit and 32-bit unit cases, use the unibyte algorithm from
22369         lib/mbsstr.c.
22370         * lib/unistr/u8-strstr.c: Include <string.h>.
22371         (UNIT_IS_UINT8_T): New macro.
22372         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22373         (U_STRLEN, U_STRNLEN): New macros.
22374         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22375         (U_STRLEN, U_STRNLEN): New macros.
22376         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22377         (configure.ac): Update required libunistring version.
22378         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22379         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22380         malloca.
22381         (configure.ac): Update required libunistring version.
22382         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22383         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22384         malloca.
22385         (configure.ac): Update required libunistring version.
22386
22387 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22388             Bruno Haible  <bruno@clisp.org>
22389
22390         Prepare for faster uN_strstr functions.
22391         * lib/str-kmp.h: Support definable UNITs.
22392         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22393         needle_len argument.
22394         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22395         * lib/mbscasestr.c (mbscasestr): Likewise.
22396
22397 2011-01-21  Pádraig Brady <P@draigBrady.com>
22398
22399         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22400         * tests/test-malloca.c (main): Unset the environment variable
22401         to greatly speed up the test.
22402         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22403         * modules/malloca-tests: Depend on unsetenv.
22404
22405 2011-01-21  Pádraig Brady <P@draigBrady.com>
22406
22407         ignore-value: remove stdint dependency
22408         * lib/ignore-value.h: Remove <stdint.h>
22409         * modules/ignore-value: Remove stdint dependency.
22410
22411 2011-01-21  Jim Meyering  <meyering@redhat.com>
22412
22413         maint.mk: adjust variable name to be consistent with other gl_ vars
22414         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22415         to be lower case.
22416
22417 2011-01-20  Jim Meyering  <meyering@redhat.com>
22418
22419         maint.mk: make "check" depend on public-submodule-commit by default
22420         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22421
22422 2011-01-20  Bruno Haible  <bruno@clisp.org>
22423
22424         mbfile, mbiter: Complete change from 2008-12-21.
22425         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22426         * m4/mbiter.m4 (gl_MBITER): Likewise.
22427
22428 2011-01-20  Jim Meyering  <meyering@redhat.com>
22429
22430         init.sh: insert space between each function name and "()"
22431         * tests/init.sh: Make it a little easier to see that a function's
22432         name is "warn_", and not "warn" when looking at the first part of
22433         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22434
22435 2011-01-20  Jim Meyering  <meyering@redhat.com>
22436
22437         mountlist: clean up code formatting
22438         * lib/mountlist.c (read_file_system_list): Split a long line,
22439         correct bracing style, use NULL in place of "(struct statfs *)0",
22440         don't parenthesize return value, add spaces around "=" and after
22441         ";-in-for-stmt".
22442
22443 2011-01-14  Markus Duft <mduft@gentoo.org>
22444
22445         mountlist: add support for Interix
22446         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22447         Apply statvfs to all entries of /dev/fs.
22448         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22449         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22450
22451 2011-01-20  Jim Meyering  <meyering@redhat.com>
22452
22453         maint.mk: improve the public-submodule-commit rule
22454         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22455         to suppress printing of its commands... unless V=1.
22456         Add git submodule's --quiet option to suppress printing of e.g.,
22457         "Entering gnulib" output.
22458         "cd" into $(srcdir) before running git submodule.
22459
22460 2011-01-20  Bruno Haible  <bruno@clisp.org>
22461
22462         include_next: Fix bug introduced on 2011-01-18.
22463         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22464         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22465         ac_cv_header_... variable if the second argument is not 'check'.
22466         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22467         gl_NEXT_HEADERS_INTERNAL.
22468
22469 2011-01-20  Bruno Haible  <bruno@clisp.org>
22470
22471         Allow the user to avoid the GNULIB_TEST_* macros.
22472         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22473         Suggested by Paul Eggert.
22474
22475 2011-01-14  Jim Meyering  <meyering@redhat.com>
22476
22477         bootstrap: avoid failure when there is no .gitmodules file
22478         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22479         has been assigned to, even when its value is the empty string.
22480         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22481         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22482         Reported by John W. Eaton <jwe@gnu.org>.
22483
22484 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22485
22486         assume <ctype.h>, ..., <time.h> exist
22487         For years gnulib has been assuming the existence of the headers
22488         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22489         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22490         them, since they don't appear to be needed.
22491         * README (Portability guidelines): Document this.
22492         * lib/flock.c: Assume <fcntl.h> exists.
22493         * lib/regex_internal.h: Assume <locale.h> exists.
22494         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22495         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22496         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22497         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22498         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22499         * m4/regex.m4 (gl_REGEX): Likewise.
22500         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22501         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22502         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22503         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22504         * tests/test-argp.c: Likewise.
22505         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22506
22507         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22508         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22509         AA_APPLE_UNIVERSAL_BUILD.  See
22510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22511         * NEWS: Document this.
22512
22513 2011-01-19  Eric Blake  <eblake@redhat.com>
22514
22515         c-stack: assume stack overflow if SA_SIGINFO unsupported
22516         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22517         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22518         sigaction will work.
22519         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22520         behavior match Linux.
22521         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22522
22523         stdbool-tests: accommodate Haiku
22524         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22525
22526         binary-io: fix O_TEXT on Haiku
22527         * modules/binary-io (Depends-on): Add fcntl-h.
22528         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22529         than blindly undefining O_TEXT.
22530         Reported by Scott McCreary.
22531
22532 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22533
22534         include_next: do not check for standard headers like stddef.h
22535
22536         I found this problem when modifying Emacs to use gnulib.
22537         I noticed that it added HAVE_STDDEF_H to config.h, even though
22538         gnulib always assumes <stddef.h> exists as per README and this
22539         symbol is unnecessary.
22540         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22541         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22542         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22543         faster for headers like stddef.h that are known to exist.
22544         (gl_CHECK_NEXT_HEADERS): Use it.
22545         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22546         rather than gl_CHECK_NEXT_HEADERS.
22547         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22548         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22549
22550 2011-01-18  Eric Blake  <eblake@redhat.com>
22551
22552         ansi-c++-opt: skip C++ dependency style if C++ is unused
22553         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22554         tests when we know C++ compilation is not desired.
22555         Reported by Scott McCreary.
22556
22557 2011-01-18  Bruno Haible  <bruno@clisp.org>
22558
22559         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22560         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22561         (main): Perform test also when getrlimit and setrlimit don't exist or
22562         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22563         limiting the address space size using setrlimit, compare the address
22564         space size before and after the the test.
22565         * tests/test-dprintf-posix2.c: Likewise.
22566         * tests/test-fprintf-posix3.sh: Update skip messages.
22567         * tests/test-dprintf-posix2.sh: Likewise.
22568         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22569         * modules/dprintf-posix-tests (Depends-on): Likewise.
22570         Reported by Bruce Korb <bkorb@gnu.org> and
22571         Gary V. Vaughan <gary@gnu.org>.
22572
22573 2011-01-18  Bruno Haible  <bruno@clisp.org>
22574
22575         get-rusage-as: Improvement for Cygwin.
22576         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22577         areas that are merely reserved.
22578
22579 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22580
22581         strftime: remove dependencies on multibyte modules
22582
22583         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22584         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22585         only if __osf__ is defined, and I suspect OSF doesn't need these
22586         other modules.  If my guess is wrong, we'll need to come up with a
22587         variant of strftime that doesn't need the multibyte modules.
22588
22589         I discovered this problem when attempting modify Emacs to use the
22590         strftime module.  With the previous gnulib, this caused Emacs to
22591         need 31 new files, ranging from lib/config.charset to
22592         m4/wint_t.m4.  This was overkill and I expect would be offputting
22593         to the Emacs maintainers.  After this change, only 6 new files are
22594         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22595         stdbool.m4, and tm_gmtoff.m4.
22596
22597         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22598         Suggested by Bruno Haible in
22599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22600         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22601         and do not check for wchar.h.
22602         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22603         (Depends-on): Remove mbrlen, mbsinit, wchar.
22604
22605 2011-01-18  Bruno Haible  <bruno@clisp.org>
22606
22607         Tests for module 'get-rusage-as'.
22608         * modules/get-rusage-as-tests: New file.
22609         * tests/test-get-rusage-as.c: New file.
22610
22611         New module 'get-rusage-as'.
22612         * modules/get-rusage-as: New file.
22613         * lib/resource-ext.h: New file.
22614         * lib/get-rusage-as.c: New file.
22615
22616 2011-01-17  Eric Blake  <eblake@redhat.com>
22617
22618         sigaction: relax license from LGPLv3+ to LGPLv2+
22619         * modules/sigaction (License): Relax to LGPLv2+.
22620
22621 2011-01-14  Bruno Haible  <bruno@clisp.org>
22622
22623         filemode: Make function declarations usable in C++ mode.
22624         * lib/filemode.h: Enclose function declarations in extern "C" block.
22625         Reported by John W. Eaton <jwe@gnu.org>.
22626
22627 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22628
22629         save-cwd: no longer include "xgetcwd.h"
22630         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22631         This avoids a compilation failure in projects that use save-cwd
22632         without also using the xgetcwd module.
22633
22634 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22635
22636         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22637         This is so that a program like Emacs, which needs only dtoastr,
22638         does not have to bother with distributing and compiling ftoastr
22639         and ldtoastr.
22640         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22641         * modules/dtoastr, modules/ldtoastr: New files.
22642         * modules/ftoastr: Now works just for 'float'.
22643         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22644         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22645         dtoastr.c, ldtoastr.c.
22646
22647 2011-01-11  Jim Meyering  <meyering@redhat.com>
22648
22649         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22650         There is no need to work around the lack of the fchdir function,
22651         since gnulib can now provide a replacement when required.
22652         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22653         * modules/save-cwd (Depends-on): Add fchdir.
22654
22655 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22656
22657         openat, save-cwd: avoid xmalloc
22658
22659         This removes a direct (but undocumented) dependency of openat on
22660         xalloc, along with an indirect dependency via save-cwd.  It also
22661         removes a dependency of save-cwd on xgetcwd, and thereby
22662         indirectly on xalloc.  This change causes the openat substitute
22663         to fall back on save_cwd when memory is tight, and for save_cwd to
22664         fail instead of dying when memory is tight, but that's good enough.
22665         Problem and initial idea for fix reported by Bastien Roucaries in
22666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22667
22668         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22669         xalloc.h (for xmalloc).
22670         (openat_proc_name): Use malloc, not xmalloc.
22671         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22672         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22673
22674         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22675         This avoids heap allocation for file names whose lengths are in
22676         the range 512..1023, with the upper bound increasing to at most
22677         4031 depending on the platform's PATH_MAX.  (We do not want
22678         pathmax.h here as it might supply a non-constant PATH_MAX.)
22679         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22680         Perhaps they should be moved to malloca.h?
22681         (OPENAT_BUFFER_SIZE): Use them.
22682
22683 2011-01-10  Bruno Haible  <bruno@clisp.org>
22684
22685         doc: Update users.txt.
22686         * users.txt: Add recutils.
22687
22688 2011-01-09  Karl Berry  <karl@gnu.org>
22689
22690         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22691
22692         * doc/configmake.texi: New file.
22693         * doc/gnulib.texi: Include it.
22694         * modules/configmake: Move documentation from here.
22695
22696 2011-01-09  Bruno Haible  <bruno@clisp.org>
22697
22698         Update to Unicode 6.0.0.
22699         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22700         (get_lbp): Update for Unicode 6.0.0.
22701         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22702         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22703         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22704         U+11001, U+11038..U+11046. Remove U+06DE.
22705         (uc_width): Fix bounds of planes.
22706         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22707         lib/uniwidth/width.c.
22708         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22709         trailing whitespace removed.
22710         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22711         without comments, but with the original copyright notice.
22712         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22713         * lib/unicase/ignorable.h: Likewise.
22714         * lib/unicase/tocasefold.h: Likewise.
22715         * lib/unicase/tolower.h: Likewise.
22716         * lib/unicase/totitle.h: Likewise.
22717         * lib/unicase/toupper.h: Likewise.
22718         * lib/unictype/bidi_of.h: Likewise.
22719         * lib/unictype/blocks.h: Likewise.
22720         * lib/unictype/categ_C.h: Likewise.
22721         * lib/unictype/categ_Cn.h: Likewise.
22722         * lib/unictype/categ_L.h: Likewise.
22723         * lib/unictype/categ_Ll.h: Likewise.
22724         * lib/unictype/categ_Lm.h: Likewise.
22725         * lib/unictype/categ_Lo.h: Likewise.
22726         * lib/unictype/categ_Lu.h: Likewise.
22727         * lib/unictype/categ_M.h: Likewise.
22728         * lib/unictype/categ_Mc.h: Likewise.
22729         * lib/unictype/categ_Me.h: Likewise.
22730         * lib/unictype/categ_Mn.h: Likewise.
22731         * lib/unictype/categ_N.h: Likewise.
22732         * lib/unictype/categ_Nd.h: Likewise.
22733         * lib/unictype/categ_No.h: Likewise.
22734         * lib/unictype/categ_P.h: Likewise.
22735         * lib/unictype/categ_Po.h: Likewise.
22736         * lib/unictype/categ_S.h: Likewise.
22737         * lib/unictype/categ_Sc.h: Likewise.
22738         * lib/unictype/categ_Sk.h: Likewise.
22739         * lib/unictype/categ_Sm.h: Likewise.
22740         * lib/unictype/categ_So.h: Likewise.
22741         * lib/unictype/categ_of.h: Likewise.
22742         * lib/unictype/combining.h: Likewise.
22743         * lib/unictype/ctype_alnum.h: Likewise.
22744         * lib/unictype/ctype_alpha.h: Likewise.
22745         * lib/unictype/ctype_graph.h: Likewise.
22746         * lib/unictype/ctype_lower.h: Likewise.
22747         * lib/unictype/ctype_print.h: Likewise.
22748         * lib/unictype/ctype_punct.h: Likewise.
22749         * lib/unictype/ctype_upper.h: Likewise.
22750         * lib/unictype/decdigit.h: Likewise.
22751         * lib/unictype/digit.h: Likewise.
22752         * lib/unictype/numeric.h: Likewise.
22753         * lib/unictype/pr_alphabetic.h: Likewise.
22754         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22755         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22756         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22757         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22758         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22759         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22760         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22761         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22762         * lib/unictype/pr_case_ignorable.h: Likewise.
22763         * lib/unictype/pr_cased.h: Likewise.
22764         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22765         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22766         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22767         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22768         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22769         * lib/unictype/pr_combining.h: Likewise.
22770         * lib/unictype/pr_composite.h: Likewise.
22771         * lib/unictype/pr_currency_symbol.h: Likewise.
22772         * lib/unictype/pr_decimal_digit.h: Likewise.
22773         * lib/unictype/pr_deprecated.h: Likewise.
22774         * lib/unictype/pr_format_control.h: Likewise.
22775         * lib/unictype/pr_grapheme_base.h: Likewise.
22776         * lib/unictype/pr_grapheme_extend.h: Likewise.
22777         * lib/unictype/pr_grapheme_link.h: Likewise.
22778         * lib/unictype/pr_id_continue.h: Likewise.
22779         * lib/unictype/pr_id_start.h: Likewise.
22780         * lib/unictype/pr_ideographic.h: Likewise.
22781         * lib/unictype/pr_lowercase.h: Likewise.
22782         * lib/unictype/pr_math.h: Likewise.
22783         * lib/unictype/pr_numeric.h: Likewise.
22784         * lib/unictype/pr_other_alphabetic.h: Likewise.
22785         * lib/unictype/pr_other_id_continue.h: Likewise.
22786         * lib/unictype/pr_other_math.h: Likewise.
22787         * lib/unictype/pr_punctuation.h: Likewise.
22788         * lib/unictype/pr_sentence_terminal.h: Likewise.
22789         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22790         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22791         * lib/unictype/pr_unified_ideograph.h: Likewise.
22792         * lib/unictype/pr_uppercase.h: Likewise.
22793         * lib/unictype/pr_xid_continue.h: Likewise.
22794         * lib/unictype/pr_xid_start.h: Likewise.
22795         * lib/unictype/scripts.h: Likewise.
22796         * lib/unictype/scripts_byname.gperf: Likewise.
22797         * lib/unictype/sy_java_ident.h: Likewise.
22798         * lib/unigbrk/gbrkprop.h: Likewise.
22799         * lib/unilbrk/lbrkprop1.h: Likewise.
22800         * lib/unilbrk/lbrkprop2.h: Likewise.
22801         * lib/uninorm/decomposition-table2.h: Likewise.
22802         * lib/uniwbrk/wbrkprop.h: Likewise.
22803         * tests/unicase/test-cased.c: Likewise.
22804         * tests/unicase/test-ignorable.c: Likewise.
22805         * tests/unicase/test-uc_tolower.c: Likewise.
22806         * tests/unicase/test-uc_totitle.c: Likewise.
22807         * tests/unicase/test-uc_toupper.c: Likewise.
22808         * tests/unictype/test-categ_C.c: Likewise.
22809         * tests/unictype/test-categ_Cn.c: Likewise.
22810         * tests/unictype/test-categ_L.c: Likewise.
22811         * tests/unictype/test-categ_Ll.c: Likewise.
22812         * tests/unictype/test-categ_Lm.c: Likewise.
22813         * tests/unictype/test-categ_Lo.c: Likewise.
22814         * tests/unictype/test-categ_Lu.c: Likewise.
22815         * tests/unictype/test-categ_M.c: Likewise.
22816         * tests/unictype/test-categ_Mc.c: Likewise.
22817         * tests/unictype/test-categ_Me.c: Likewise.
22818         * tests/unictype/test-categ_Mn.c: Likewise.
22819         * tests/unictype/test-categ_N.c: Likewise.
22820         * tests/unictype/test-categ_Nd.c: Likewise.
22821         * tests/unictype/test-categ_No.c: Likewise.
22822         * tests/unictype/test-categ_P.c: Likewise.
22823         * tests/unictype/test-categ_Po.c: Likewise.
22824         * tests/unictype/test-categ_S.c: Likewise.
22825         * tests/unictype/test-categ_Sc.c: Likewise.
22826         * tests/unictype/test-categ_Sk.c: Likewise.
22827         * tests/unictype/test-categ_Sm.c: Likewise.
22828         * tests/unictype/test-categ_So.c: Likewise.
22829         * tests/unictype/test-ctype_alnum.c: Likewise.
22830         * tests/unictype/test-ctype_alpha.c: Likewise.
22831         * tests/unictype/test-ctype_graph.c: Likewise.
22832         * tests/unictype/test-ctype_lower.c: Likewise.
22833         * tests/unictype/test-ctype_print.c: Likewise.
22834         * tests/unictype/test-ctype_punct.c: Likewise.
22835         * tests/unictype/test-ctype_upper.c: Likewise.
22836         * tests/unictype/test-decdigit.h: Likewise.
22837         * tests/unictype/test-digit.h: Likewise.
22838         * tests/unictype/test-numeric.h: Likewise.
22839         * tests/unictype/test-pr_alphabetic.c: Likewise.
22840         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22841         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22842         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22843         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22844         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22845         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22846         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22847         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22848         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22849         * tests/unictype/test-pr_cased.c: Likewise.
22850         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22851         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22852         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22853         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22854         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22855         * tests/unictype/test-pr_combining.c: Likewise.
22856         * tests/unictype/test-pr_composite.c: Likewise.
22857         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22858         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22859         * tests/unictype/test-pr_deprecated.c: Likewise.
22860         * tests/unictype/test-pr_format_control.c: Likewise.
22861         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22862         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22863         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22864         * tests/unictype/test-pr_id_continue.c: Likewise.
22865         * tests/unictype/test-pr_id_start.c: Likewise.
22866         * tests/unictype/test-pr_ideographic.c: Likewise.
22867         * tests/unictype/test-pr_lowercase.c: Likewise.
22868         * tests/unictype/test-pr_math.c: Likewise.
22869         * tests/unictype/test-pr_numeric.c: Likewise.
22870         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22871         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22872         * tests/unictype/test-pr_other_math.c: Likewise.
22873         * tests/unictype/test-pr_punctuation.c: Likewise.
22874         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22875         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22876         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22877         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22878         * tests/unictype/test-pr_uppercase.c: Likewise.
22879         * tests/unictype/test-pr_xid_continue.c: Likewise.
22880         * tests/unictype/test-pr_xid_start.c: Likewise.
22881         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22882         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22883         changes.
22884         * lib/unictype/categ_Cc.h: Likewise.
22885         * lib/unictype/categ_Cf.h: Likewise.
22886         * lib/unictype/categ_Co.h: Likewise.
22887         * lib/unictype/categ_Cs.h: Likewise.
22888         * lib/unictype/categ_Lt.h: Likewise.
22889         * lib/unictype/categ_Nl.h: Likewise.
22890         * lib/unictype/categ_Pc.h: Likewise.
22891         * lib/unictype/categ_Pd.h: Likewise.
22892         * lib/unictype/categ_Pe.h: Likewise.
22893         * lib/unictype/categ_Pf.h: Likewise.
22894         * lib/unictype/categ_Pi.h: Likewise.
22895         * lib/unictype/categ_Ps.h: Likewise.
22896         * lib/unictype/categ_Z.h: Likewise.
22897         * lib/unictype/categ_Zl.h: Likewise.
22898         * lib/unictype/categ_Zp.h: Likewise.
22899         * lib/unictype/categ_Zs.h: Likewise.
22900         * lib/unictype/ctype_blank.h: Likewise.
22901         * lib/unictype/ctype_cntrl.h: Likewise.
22902         * lib/unictype/ctype_digit.h: Likewise.
22903         * lib/unictype/ctype_space.h: Likewise.
22904         * lib/unictype/ctype_xdigit.h: Likewise.
22905         * lib/unictype/mirror.h: Likewise.
22906         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22907         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22908         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22909         * lib/unictype/pr_bidi_control.h: Likewise.
22910         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22911         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22912         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22913         * lib/unictype/pr_bidi_pdf.h: Likewise.
22914         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22915         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22916         * lib/unictype/pr_dash.h: Likewise.
22917         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22918         * lib/unictype/pr_diacritic.h: Likewise.
22919         * lib/unictype/pr_extender.h: Likewise.
22920         * lib/unictype/pr_hex_digit.h: Likewise.
22921         * lib/unictype/pr_hyphen.h: Likewise.
22922         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22923         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22924         * lib/unictype/pr_ignorable_control.h: Likewise.
22925         * lib/unictype/pr_iso_control.h: Likewise.
22926         * lib/unictype/pr_join_control.h: Likewise.
22927         * lib/unictype/pr_left_of_pair.h: Likewise.
22928         * lib/unictype/pr_line_separator.h: Likewise.
22929         * lib/unictype/pr_logical_order_exception.h: Likewise.
22930         * lib/unictype/pr_non_break.h: Likewise.
22931         * lib/unictype/pr_not_a_character.h: Likewise.
22932         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22933         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22934         * lib/unictype/pr_other_id_start.h: Likewise.
22935         * lib/unictype/pr_other_lowercase.h: Likewise.
22936         * lib/unictype/pr_other_uppercase.h: Likewise.
22937         * lib/unictype/pr_paired_punctuation.h: Likewise.
22938         * lib/unictype/pr_paragraph_separator.h: Likewise.
22939         * lib/unictype/pr_pattern_syntax.h: Likewise.
22940         * lib/unictype/pr_pattern_white_space.h: Likewise.
22941         * lib/unictype/pr_private_use.h: Likewise.
22942         * lib/unictype/pr_quotation_mark.h: Likewise.
22943         * lib/unictype/pr_radical.h: Likewise.
22944         * lib/unictype/pr_soft_dotted.h: Likewise.
22945         * lib/unictype/pr_space.h: Likewise.
22946         * lib/unictype/pr_titlecase.h: Likewise.
22947         * lib/unictype/pr_variation_selector.h: Likewise.
22948         * lib/unictype/pr_white_space.h: Likewise.
22949         * lib/unictype/pr_zero_width.h: Likewise.
22950         * lib/unictype/sy_c_ident.h: Likewise.
22951         * lib/unictype/sy_c_whitespace.h: Likewise.
22952         * lib/unictype/sy_java_whitespace.h: Likewise.
22953         * lib/uninorm/composition-table.gperf: Likewise.
22954         * lib/uninorm/decomposition-table1.h: Likewise.
22955         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22956         LB8.
22957         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22958         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22959         * modules/unictype/*: Bump version number of expected libunistring
22960         version.
22961
22962 2011-01-09  Bruno Haible  <bruno@clisp.org>
22963
22964         Update to Unicode 5.2.0.
22965         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22966         trailing whitespace removed.
22967
22968 2011-01-09  Bruno Haible  <bruno@clisp.org>
22969
22970         New Unicode character properties, from Unicode 5.2.0.
22971         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22972         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22973         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22974         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22975         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22976         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22977         uc_is_property_cased, uc_is_property_case_ignorable,
22978         uc_is_property_changes_when_lowercased,
22979         uc_is_property_changes_when_uppercased,
22980         uc_is_property_changes_when_titlecased,
22981         uc_is_property_changes_when_casefolded,
22982         uc_is_property_changes_when_casemapped): New declarations.
22983         * lib/unictype/pr_byname.gperf: Add the new properties.
22984         * modules/unictype/property-byname (Depends-on): Depend on the new
22985         properties modules.
22986         * modules/unictype/property-all (Depends-on): Likewise.
22987         * MODULES.html.sh (Unicode string functions): Add
22988         unictype/property-case-ignorable, unictype/property-cased,
22989         unictype/property-changes-when-casefolded,
22990         unictype/property-changes-when-casemapped,
22991         unictype/property-changes-when-lowercased,
22992         unictype/property-changes-when-titlecased,
22993         unictype/property-changes-when-uppercased.
22994
22995         New module 'unictype/property-changes-when-casemapped'.
22996         * modules/unictype/property-changes-when-casemapped: New file.
22997         * lib/unictype/pr_changes_when_casemapped.c: New file.
22998         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22999         generated by gen-uni-tables.
23000         * modules/unictype/property-changes-when-casemapped-tests: New file.
23001         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
23002         automatically generated by gen-uni-tables.
23003
23004         New module 'unictype/property-changes-when-casefolded'.
23005         * modules/unictype/property-changes-when-casefolded: New file.
23006         * lib/unictype/pr_changes_when_casefolded.c: New file.
23007         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
23008         generated by gen-uni-tables.
23009         * modules/unictype/property-changes-when-casefolded-tests: New file.
23010         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
23011         automatically generated by gen-uni-tables.
23012
23013         New module 'unictype/property-changes-when-titlecased'.
23014         * modules/unictype/property-changes-when-titlecased: New file.
23015         * lib/unictype/pr_changes_when_titlecased.c: New file.
23016         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
23017         generated by gen-uni-tables.
23018         * modules/unictype/property-changes-when-titlecased-tests: New file.
23019         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
23020         automatically generated by gen-uni-tables.
23021
23022         New module 'unictype/property-changes-when-uppercased'.
23023         * modules/unictype/property-changes-when-uppercased: New file.
23024         * lib/unictype/pr_changes_when_uppercased.c: New file.
23025         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
23026         generated by gen-uni-tables.
23027         * modules/unictype/property-changes-when-uppercased-tests: New file.
23028         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
23029         automatically generated by gen-uni-tables.
23030
23031         New module 'unictype/property-changes-when-lowercased'.
23032         * modules/unictype/property-changes-when-lowercased: New file.
23033         * lib/unictype/pr_changes_when_lowercased.c: New file.
23034         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
23035         generated by gen-uni-tables.
23036         * modules/unictype/property-changes-when-lowercased-tests: New file.
23037         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
23038         automatically generated by gen-uni-tables.
23039
23040         New module 'unictype/property-case-ignorable'.
23041         * modules/unictype/property-case-ignorable: New file.
23042         * lib/unictype/pr_case_ignorable.c: New file.
23043         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
23044         by gen-uni-tables.
23045         * modules/unictype/property-case-ignorable-tests: New file.
23046         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
23047         generated by gen-uni-tables.
23048
23049         New module 'unictype/property-cased'.
23050         * modules/unictype/property-cased: New file.
23051         * lib/unictype/pr_cased.c: New file.
23052         * lib/unictype/pr_cased.h: New file, automatically generated by
23053         gen-uni-tables.
23054         * modules/unictype/property-cased-tests: New file.
23055         * tests/unictype/test-pr_cased.c: New file, automatically generated by
23056         gen-uni-tables.
23057
23058 2011-01-09  Bruno Haible  <bruno@clisp.org>
23059
23060         Update to Unicode 5.2.0.
23061         * lib/gen-uni-tables.c (output_predicate, output_category,
23062         output_combclass, output_bidi_category, output_decimal_digit_test,
23063         output_decimal_digit, output_digit_test, output_digit,
23064         output_numeric_test, output_numeric, output_mirror, output_scripts,
23065         output_scripts_byname, output_blocks, output_ident_category): Fix
23066         comment header.
23067         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
23068         get_wbp.
23069         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
23070         items.
23071         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
23072         Changes_When_Lowercased, Changes_When_Uppercased,
23073         Changes_When_Titlecased, Changes_When_Casefolded,
23074         Changes_When_Casemapped.
23075         (is_property_alphabetic, is_property_default_ignorable_code_point):
23076         Update for Unicode 5.2.0.
23077         (is_property_cased, is_property_case_ignorable,
23078         is_property_changes_when_lowercased,
23079         is_property_changes_when_uppercased,
23080         is_property_changes_when_titlecased,
23081         is_property_changes_when_casefolded,
23082         is_property_changes_when_casemapped): New functions.
23083         (output_properties): Output also the properties cased, case_ignorable,
23084         changes_when_lowercased, changes_when_uppercased,
23085         changes_when_titlecased, changes_when_casefolded,
23086         changes_when_casemapped.
23087         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
23088         Unicode TR#11 revision 17 -> 19.
23089         (LBP_CP): New enumeration value.
23090         (LBP_*): Adjust values accordingly.
23091         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23092         TR#14 revision 22 -> 24.
23093         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
23094         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
23095         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23096         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
23097         is_WBP_MIDLETTER.
23098         (output_composition_tables): Allow for 24 bits instead of 16 bits in
23099         the code1 and code2 of each composition rule.
23100         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
23101         * lib/unicase/ignorable.h: Likewise.
23102         * lib/unicase/tocasefold.h: Likewise.
23103         * lib/unicase/tolower.h: Likewise.
23104         * lib/unicase/totitle.h: Likewise.
23105         * lib/unicase/toupper.h: Likewise.
23106         * lib/unictype/bidi_of.h: Likewise.
23107         * lib/unictype/blocks.h: Likewise.
23108         * lib/unictype/categ_C.h: Likewise.
23109         * lib/unictype/categ_Cf.h: Likewise.
23110         * lib/unictype/categ_Cn.h: Likewise.
23111         * lib/unictype/categ_L.h: Likewise.
23112         * lib/unictype/categ_Ll.h: Likewise.
23113         * lib/unictype/categ_Lm.h: Likewise.
23114         * lib/unictype/categ_Lo.h: Likewise.
23115         * lib/unictype/categ_Lu.h: Likewise.
23116         * lib/unictype/categ_M.h: Likewise.
23117         * lib/unictype/categ_Mc.h: Likewise.
23118         * lib/unictype/categ_Mn.h: Likewise.
23119         * lib/unictype/categ_N.h: Likewise.
23120         * lib/unictype/categ_Nd.h: Likewise.
23121         * lib/unictype/categ_Nl.h: Likewise.
23122         * lib/unictype/categ_No.h: Likewise.
23123         * lib/unictype/categ_P.h: Likewise.
23124         * lib/unictype/categ_Pd.h: Likewise.
23125         * lib/unictype/categ_Po.h: Likewise.
23126         * lib/unictype/categ_S.h: Likewise.
23127         * lib/unictype/categ_Sc.h: Likewise.
23128         * lib/unictype/categ_So.h: Likewise.
23129         * lib/unictype/categ_of.h: Likewise.
23130         * lib/unictype/combining.h: Likewise.
23131         * lib/unictype/ctype_alnum.h: Likewise.
23132         * lib/unictype/ctype_alpha.h: Likewise.
23133         * lib/unictype/ctype_graph.h: Likewise.
23134         * lib/unictype/ctype_lower.h: Likewise.
23135         * lib/unictype/ctype_print.h: Likewise.
23136         * lib/unictype/ctype_punct.h: Likewise.
23137         * lib/unictype/ctype_upper.h: Likewise.
23138         * lib/unictype/decdigit.h: Likewise.
23139         * lib/unictype/digit.h: Likewise.
23140         * lib/unictype/numeric.h: Likewise.
23141         * lib/unictype/pr_alphabetic.h: Likewise.
23142         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23143         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23144         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23145         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23146         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23147         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23148         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23149         * lib/unictype/pr_combining.h: Likewise.
23150         * lib/unictype/pr_composite.h: Likewise.
23151         * lib/unictype/pr_currency_symbol.h: Likewise.
23152         * lib/unictype/pr_dash.h: Likewise.
23153         * lib/unictype/pr_decimal_digit.h: Likewise.
23154         * lib/unictype/pr_deprecated.h: Likewise.
23155         * lib/unictype/pr_diacritic.h: Likewise.
23156         * lib/unictype/pr_extender.h: Likewise.
23157         * lib/unictype/pr_grapheme_base.h: Likewise.
23158         * lib/unictype/pr_grapheme_extend.h: Likewise.
23159         * lib/unictype/pr_grapheme_link.h: Likewise.
23160         * lib/unictype/pr_id_continue.h: Likewise.
23161         * lib/unictype/pr_id_start.h: Likewise.
23162         * lib/unictype/pr_ideographic.h: Likewise.
23163         * lib/unictype/pr_ignorable_control.h: Likewise.
23164         * lib/unictype/pr_logical_order_exception.h: Likewise.
23165         * lib/unictype/pr_lowercase.h: Likewise.
23166         * lib/unictype/pr_numeric.h: Likewise.
23167         * lib/unictype/pr_other_alphabetic.h: Likewise.
23168         * lib/unictype/pr_punctuation.h: Likewise.
23169         * lib/unictype/pr_sentence_terminal.h: Likewise.
23170         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23171         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23172         * lib/unictype/pr_unified_ideograph.h: Likewise.
23173         * lib/unictype/pr_uppercase.h: Likewise.
23174         * lib/unictype/pr_xid_continue.h: Likewise.
23175         * lib/unictype/pr_xid_start.h: Likewise.
23176         * lib/unictype/pr_zero_width.h: Likewise.
23177         * lib/unictype/scripts.h: Likewise.
23178         * lib/unictype/scripts_byname.gperf: Likewise.
23179         * lib/unictype/sy_java_ident.h: Likewise.
23180         * lib/unigbrk/gbrkprop.h: Likewise.
23181         * lib/unilbrk/lbrkprop1.h: Likewise.
23182         * lib/unilbrk/lbrkprop2.h: Likewise.
23183         * lib/unilbrk/lbrktables.h: Likewise.
23184         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23185         LBP_CP. Implement rule LB30.
23186         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23187         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23188         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23189         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23190         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23191         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23192         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23193         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23194         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23195         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23196         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23197         bits instead of 16 bits in the code1 and code2 of each composition
23198         rule.
23199         (uc_composition): Update for Unicode 5.2.0.
23200         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23201         * lib/uninorm/decomposition-table2.h: Likewise.
23202         * lib/uniwbrk/wbrkprop.h: Likewise.
23203         * tests/unicase/test-cased.c: Likewise.
23204         * tests/unicase/test-ignorable.c: Likewise.
23205         * tests/unicase/test-uc_tolower.c: Likewise.
23206         * tests/unicase/test-uc_totitle.c: Likewise.
23207         * tests/unicase/test-uc_toupper.c: Likewise.
23208         * tests/unictype/test-categ_C.c: Likewise.
23209         * tests/unictype/test-categ_Cf.c: Likewise.
23210         * tests/unictype/test-categ_Cn.c: Likewise.
23211         * tests/unictype/test-categ_L.c: Likewise.
23212         * tests/unictype/test-categ_Ll.c: Likewise.
23213         * tests/unictype/test-categ_Lm.c: Likewise.
23214         * tests/unictype/test-categ_Lo.c: Likewise.
23215         * tests/unictype/test-categ_Lu.c: Likewise.
23216         * tests/unictype/test-categ_M.c: Likewise.
23217         * tests/unictype/test-categ_Mc.c: Likewise.
23218         * tests/unictype/test-categ_Mn.c: Likewise.
23219         * tests/unictype/test-categ_N.c: Likewise.
23220         * tests/unictype/test-categ_Nd.c: Likewise.
23221         * tests/unictype/test-categ_Nl.c: Likewise.
23222         * tests/unictype/test-categ_No.c: Likewise.
23223         * tests/unictype/test-categ_P.c: Likewise.
23224         * tests/unictype/test-categ_Pd.c: Likewise.
23225         * tests/unictype/test-categ_Po.c: Likewise.
23226         * tests/unictype/test-categ_S.c: Likewise.
23227         * tests/unictype/test-categ_Sc.c: Likewise.
23228         * tests/unictype/test-categ_So.c: Likewise.
23229         * tests/unictype/test-ctype_alnum.c: Likewise.
23230         * tests/unictype/test-ctype_alpha.c: Likewise.
23231         * tests/unictype/test-ctype_graph.c: Likewise.
23232         * tests/unictype/test-ctype_lower.c: Likewise.
23233         * tests/unictype/test-ctype_print.c: Likewise.
23234         * tests/unictype/test-ctype_punct.c: Likewise.
23235         * tests/unictype/test-ctype_upper.c: Likewise.
23236         * tests/unictype/test-decdigit.h: Likewise.
23237         * tests/unictype/test-digit.h: Likewise.
23238         * tests/unictype/test-numeric.h: Likewise.
23239         * tests/unictype/test-pr_alphabetic.c: Likewise.
23240         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23241         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23242         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23243         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23244         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23245         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23246         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23247         * tests/unictype/test-pr_combining.c: Likewise.
23248         * tests/unictype/test-pr_composite.c: Likewise.
23249         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23250         * tests/unictype/test-pr_dash.c: Likewise.
23251         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23252         * tests/unictype/test-pr_deprecated.c: Likewise.
23253         * tests/unictype/test-pr_diacritic.c: Likewise.
23254         * tests/unictype/test-pr_extender.c: Likewise.
23255         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23256         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23257         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23258         * tests/unictype/test-pr_id_continue.c: Likewise.
23259         * tests/unictype/test-pr_id_start.c: Likewise.
23260         * tests/unictype/test-pr_ideographic.c: Likewise.
23261         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23262         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23263         * tests/unictype/test-pr_lowercase.c: Likewise.
23264         * tests/unictype/test-pr_numeric.c: Likewise.
23265         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23266         * tests/unictype/test-pr_punctuation.c: Likewise.
23267         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23268         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23269         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23270         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23271         * tests/unictype/test-pr_uppercase.c: Likewise.
23272         * tests/unictype/test-pr_xid_continue.c: Likewise.
23273         * tests/unictype/test-pr_xid_start.c: Likewise.
23274         * tests/unictype/test-pr_zero_width.c: Likewise.
23275         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23276         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23277         changed behaviour: line breaking is now disallowed between a letter
23278         or '=' and '('.
23279         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23280         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23281         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23282         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23283         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23284         lib/uniwidth/width.c.
23285         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23286         without comments, but with the original copyright notice.
23287         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23288         changes.
23289         * lib/unictype/categ_Cc.h: Likewise.
23290         * lib/unictype/categ_Co.h: Likewise.
23291         * lib/unictype/categ_Cs.h: Likewise.
23292         * lib/unictype/categ_Lt.h: Likewise.
23293         * lib/unictype/categ_Me.h: Likewise.
23294         * lib/unictype/categ_Pc.h: Likewise.
23295         * lib/unictype/categ_Pe.h: Likewise.
23296         * lib/unictype/categ_Pf.h: Likewise.
23297         * lib/unictype/categ_Pi.h: Likewise.
23298         * lib/unictype/categ_Ps.h: Likewise.
23299         * lib/unictype/categ_Sk.h: Likewise.
23300         * lib/unictype/categ_Sm.h: Likewise.
23301         * lib/unictype/categ_Z.h: Likewise.
23302         * lib/unictype/categ_Zl.h: Likewise.
23303         * lib/unictype/categ_Zp.h: Likewise.
23304         * lib/unictype/categ_Zs.h: Likewise.
23305         * lib/unictype/ctype_blank.h: Likewise.
23306         * lib/unictype/ctype_cntrl.h: Likewise.
23307         * lib/unictype/ctype_digit.h: Likewise.
23308         * lib/unictype/ctype_space.h: Likewise.
23309         * lib/unictype/ctype_xdigit.h: Likewise.
23310         * lib/unictype/mirror.h: Likewise.
23311         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23312         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23313         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23314         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23315         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23316         * lib/unictype/pr_bidi_control.h: Likewise.
23317         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23318         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23319         * lib/unictype/pr_bidi_pdf.h: Likewise.
23320         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23321         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23322         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23323         * lib/unictype/pr_format_control.h: Likewise.
23324         * lib/unictype/pr_hex_digit.h: Likewise.
23325         * lib/unictype/pr_hyphen.h: Likewise.
23326         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23327         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23328         * lib/unictype/pr_iso_control.h: Likewise.
23329         * lib/unictype/pr_join_control.h: Likewise.
23330         * lib/unictype/pr_left_of_pair.h: Likewise.
23331         * lib/unictype/pr_line_separator.h: Likewise.
23332         * lib/unictype/pr_math.h: Likewise.
23333         * lib/unictype/pr_non_break.h: Likewise.
23334         * lib/unictype/pr_not_a_character.h: Likewise.
23335         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23336         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23337         * lib/unictype/pr_other_id_continue.h: Likewise.
23338         * lib/unictype/pr_other_id_start.h: Likewise.
23339         * lib/unictype/pr_other_lowercase.h: Likewise.
23340         * lib/unictype/pr_other_math.h: Likewise.
23341         * lib/unictype/pr_other_uppercase.h: Likewise.
23342         * lib/unictype/pr_paired_punctuation.h: Likewise.
23343         * lib/unictype/pr_paragraph_separator.h: Likewise.
23344         * lib/unictype/pr_pattern_syntax.h: Likewise.
23345         * lib/unictype/pr_pattern_white_space.h: Likewise.
23346         * lib/unictype/pr_private_use.h: Likewise.
23347         * lib/unictype/pr_quotation_mark.h: Likewise.
23348         * lib/unictype/pr_radical.h: Likewise.
23349         * lib/unictype/pr_soft_dotted.h: Likewise.
23350         * lib/unictype/pr_space.h: Likewise.
23351         * lib/unictype/pr_titlecase.h: Likewise.
23352         * lib/unictype/pr_variation_selector.h: Likewise.
23353         * lib/unictype/pr_white_space.h: Likewise.
23354         * lib/unictype/sy_c_ident.h: Likewise.
23355         * lib/unictype/sy_c_whitespace.h: Likewise.
23356         * lib/unictype/sy_java_whitespace.h: Likewise.
23357         * modules/uni*/*: Bump version number of expected libunistring version.
23358         Reported by Simon Josefsson.
23359
23360 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23361
23362         useless-if-before-free: fix typo in --help and make the internal,
23363         automatic version date update process work once again.
23364         --help output contained a NUL character instead of the
23365         backslash-zero that was intended.  Also, the "must lie within
23366         the first 8 lines" line is on line 9, and hence not getting
23367         automatically updated.
23368         * build-aux/useless-if-before-free: Fix the former by adding a
23369         backslash, and the latter by condensing the three lines of what-it-does
23370         to a single line, leaving one line of slack for the future.
23371
23372 2011-01-09  Bruno Haible  <bruno@clisp.org>
23373
23374         uniwidth/width: Fix width of U+1D173..U+1D17A.
23375         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23376         symbolic_width, output_width_property_test): New functions.
23377         (main): Invoke output_nonspacing_property, output_width_property_test.
23378         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23379         U+1D173..U+1D17A.
23380         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23381         1.
23382         * modules/uniwidth/*: Bump version number of expected libunistring
23383         version.
23384         * modules/unilbrk/*: Likewise.
23385
23386 2011-01-08  Bruno Haible  <bruno@clisp.org>
23387
23388         uninorm tests: Preserve copyright of Unicode data file.
23389         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23390         Mention modifications.
23391
23392 2011-01-08  Bruno Haible  <bruno@clisp.org>
23393
23394         gen-uni-tables: Prepare for Unicode 5.2.0.
23395         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23396         (debug_output_lbp, output_lbp): Update.
23397
23398 2011-01-08  Bruno Haible  <bruno@clisp.org>
23399
23400         unilbrk: Clarify gen-uni-tables.c code.
23401         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23402         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23403         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23404
23405 2011-01-07  Bruno Haible  <bruno@clisp.org>
23406
23407         strtod: Restore errno when successfully parsing Infinity or NaN.
23408         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23409         restore the original errno.
23410
23411 2011-01-07  Bruno Haible  <bruno@clisp.org>
23412
23413         remove test: Avoid failure on HP-UX 11.
23414         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23415
23416 2011-01-07  Bruno Haible  <bruno@clisp.org>
23417
23418         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23419         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23420         error code.
23421
23422 2011-01-07  Pádraig Brady <P@draigBrady.com>
23423
23424         ignore-value: fixup comments, and add Eric Blake
23425         as an author since he rewrote the macros.
23426         * lib/ignore-value.h (ignore_value):  State that
23427         we now support aggregates.  Also specify exactly
23428         when the GCC warn_unused_result feature was added.
23429
23430 2011-01-06  Eric Blake  <eblake@redhat.com>
23431
23432         ignore-value: support aggregate types
23433         * lib/ignore-value.h (ignore_value): Provide separate gcc
23434         definition.
23435         * modules/ignore-value-tests: New test module.
23436         * tests/test-ignore-value.c: New test.
23437
23438         maint.mk: improve sc_prohibit_strcmp regex
23439         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23440         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23441         definition of STRNEQ.
23442
23443         signal: work around Haiku issue with SIGBUS
23444         * lib/siglist.h: Add comment.
23445         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23446         strsignal's favoring of SIGSEGV.
23447         * tests/test-signal.c (main): Avoid test failure.
23448         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23449         Reported by Scott McCreary.
23450
23451         maint.mk: add pre-release check to ensure submodule commits are public
23452         * top/maint.mk (public-submodule-commit): New rule.
23453         (submodule-checks): New variable.
23454         (alpha beta stable): Depend on the variable.
23455
23456 2011-01-05  Pádraig Brady <P@draigBrady.com>
23457         and Jim Meyering  <meyering@redhat.com>
23458
23459         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23460         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23461         (ATTRIBUTE_DEPRECATED): Define.
23462         (_ignore_case): New function.
23463         (ignore_value): New macro, to replace the old function.
23464         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23465         * modules/ignore-value (Depends-on): Add stdint.
23466
23467 2011-01-04  Eric Blake  <eblake@redhat.com>
23468
23469         doc: regenerate INSTALL
23470         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23471         @firstparagraphindent support, now that autoconf dropped it.
23472         (INSTALL_PRELUDE): Reinstate old macro.
23473         * doc/install.texi: Resync from autoconf.
23474         * doc/INSTALL: Reflect recent autoconf update.
23475         * doc/INSTALL.ISO: Likewise.
23476         * doc/INSTALL.UTF-8: Likewise.
23477         Reported by Karl Berry.
23478
23479 2011-01-04  Bruce Korb  <address@hidden>
23480
23481         git-version-gen: avoid a sub-shell
23482         * build-aux/git-version-gen: Redirect stderr in `...` via
23483         "exec 2>...", rather than via an added sub-shell.
23484
23485 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23486
23487         git-version-gen: use (...) rather than sh -c '...'
23488         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23489         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23490
23491 2011-01-03  Jim Meyering  <meyering@redhat.com>
23492
23493         git-version-gen: convert leading TABs to spaces
23494         * build-aux/git-version-gen: Expand leading TABs.
23495
23496         git-version-gen: handle failed "git rev-list"
23497         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23498         from git and proceeding as if it had succeeded but printed no SHA1
23499         checksums, suppress the diagnostic and handle the failure.
23500         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23501
23502         git-version-gen: include command name in one more diagnostic
23503         * build-aux/git-version-gen: When the required .tarball-version file
23504         was missing or unreadable, you might see the diagnostic from "cat",
23505         but no trace of the name of the invoking script.  Now, you still see
23506         the diagnostic from cat, but also get one from "git-version-gen: ".
23507         Inspired by a patch from Bruce Korb.
23508
23509         update-copyright: adjust test to match changed code
23510         * tests/test-update-copyright.sh: Change test's expected output
23511         to match new actual output.
23512
23513 2011-01-02  Bruno Haible  <bruno@clisp.org>
23514
23515         getlogin_r: Avoid test failure on HP-UX 11.
23516         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23517         ERANGE when the second argument is zero.
23518         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23519         portability problem.
23520
23521 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23522
23523         * build-aux/update-copyright: doc Simon's changes
23524
23525 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23526
23527         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23528         environment variable.
23529
23530 2011-01-02  Bruno Haible  <bruno@clisp.org>
23531
23532         unigbrk: Avoid gcc warnings.
23533         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23534         unused variable.
23535         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23536         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23537         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23538         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23539         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23540         Change type of first argument to 'const char *'.
23541         (main): Remove unused variable.
23542         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23543         type of first argument to 'const char *'.
23544         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23545         Likewise.
23546         (main): Change type of variable 's'.
23547         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23548         to 'int'.
23549
23550 2011-01-02  Bruno Haible  <bruno@clisp.org>
23551
23552         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23553         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23554         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23555         bug.
23556         * lib/pwrite.c: Undo 2010-12-31 patch.
23557         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23558
23559 2011-01-02  Bruno Haible  <bruno@clisp.org>
23560
23561         pread: Fix test whether it works.
23562         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23563
23564 2011-01-02  Bruno Haible  <bruno@clisp.org>
23565
23566         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23567         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23568         ends in "6". Don't require a specific month name. Try also the locale
23569         names found on HP-UX 11 and Solaris 7.
23570
23571 2011-01-02  Bruno Haible  <bruno@clisp.org>
23572
23573         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23574         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23575         C linkage.
23576         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23577
23578 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23579
23580         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23581         for consistency, since the "cluster" term is not used elsewhere.
23582         * lib/unigbrk.in.h: Update name.
23583         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23584         * lib/unigbrk/u16-grapheme-next.c: Update name.
23585         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23586         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23587         * lib/unigbrk/u32-grapheme-next.c: Update name.
23588         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23589         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23590         * lib/unigbrk/u8-grapheme-next.c: Update name.
23591         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23592         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23593         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23594         Suggested by Bruno Haible.
23595
23596 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23597
23598         Remove module 'u8-grapheme-len' as too redundant with
23599         'u8-grapheme-next'.
23600         * modules/unigbrk/u8-grapheme-len: Delete file.
23601         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23602         * lib/unigbrk.in.h: Remove prototype for deleted function.
23603         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23604         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23605
23606         Remove module 'u16-grapheme-len' as too redundant with
23607         'u16-grapheme-next'.
23608         * modules/unigbrk/u16-grapheme-len: Delete file.
23609         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23610         * lib/unigbrk.in.h: Remove prototype for deleted function.
23611         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23612         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23613
23614         Remove module 'u32-grapheme-len' as too redundant with
23615         'u32-grapheme-next'.
23616         * modules/unigbrk/u32-grapheme-len: Delete file.
23617         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23618         * lib/unigbrk.in.h: Remove prototype for deleted function.
23619         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23620         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23621
23622         Suggested by Bruno Haible.
23623
23624 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23625
23626         * unigbrk.in.h: Fix typo: "ben" => "been".
23627         Reported by Bruno Haible.
23628
23629 2011-01-01  Jim Meyering  <meyering@redhat.com>
23630
23631         maint: update almost all copyright ranges to include 2011
23632         Run the new "make update-copyright" rule.
23633
23634 2011-01-01  Jim Meyering  <meyering@redhat.com>
23635
23636         maint: update-copyright: exempt doc/INSTALL*
23637         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23638         since they are generated.  Suggested by Bruno Haible.
23639
23640 2011-01-01  Jim Meyering  <meyering@redhat.com>
23641
23642         maint: refine the update-copyright rule
23643         * Makefile (update-copyright): Also exclude any file that includes
23644         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23645         code that merely generates the comment.
23646
23647 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23648
23649         New module 'u8-grapheme-len'.
23650         * modules/unigbrk/u8-grapheme-len: New file.
23651         * modules/unigbrk/u8-grapheme-len-tests: New file.
23652         * lib/unigbrk.in.h: Add prototype for new function.
23653         * lib/unigbrk/u8-grapheme-len.c: New file.
23654         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23655
23656         New module 'u16-grapheme-len'.
23657         * modules/unigbrk/u16-grapheme-len: New file.
23658         * modules/unigbrk/u16-grapheme-len-tests: New file.
23659         * lib/unigbrk.in.h: Add prototype for new function.
23660         * lib/unigbrk/u16-grapheme-len.c: New file.
23661         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23662
23663         New module 'u32-grapheme-len'.
23664         * modules/unigbrk/u32-grapheme-len: New file.
23665         * modules/unigbrk/u32-grapheme-len-tests: New file.
23666         * lib/unigbrk.in.h: Add prototype for new function.
23667         * lib/unigbrk/u32-grapheme-len.c: New file.
23668         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23669
23670         New module 'u8-grapheme-next'.
23671         * modules/unigbrk/u8-grapheme-next: New file.
23672         * modules/unigbrk/u8-grapheme-next-tests: New file.
23673         * lib/unigbrk.in.h: Add prototype for new function.
23674         * lib/unigbrk/u8-grapheme-next.c: New file.
23675         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23676
23677         New module 'u16-grapheme-next'.
23678         * modules/unigbrk/u16-grapheme-next: New file.
23679         * modules/unigbrk/u16-grapheme-next-tests: New file.
23680         * lib/unigbrk.in.h: Add prototype for new function.
23681         * lib/unigbrk/u16-grapheme-next.c: New file.
23682         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23683
23684         New module 'u32-grapheme-next'.
23685         * modules/unigbrk/u32-grapheme-next: New file.
23686         * modules/unigbrk/u32-grapheme-next-tests: New file.
23687         * lib/unigbrk.in.h: Add prototype for new function.
23688         * lib/unigbrk/u32-grapheme-next.c: New file.
23689         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23690
23691         New module 'u8-grapheme-prev'.
23692         * modules/unigbrk/u8-grapheme-prev: New file.
23693         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23694         * lib/unigbrk.in.h: Add prototype for new function.
23695         * lib/unigbrk/u8-grapheme-prev.c: New file.
23696         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23697
23698         New module 'u16-grapheme-prev'.
23699         * modules/unigbrk/u16-grapheme-prev: New file.
23700         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23701         * lib/unigbrk.in.h: Add prototype for new function.
23702         * lib/unigbrk/u16-grapheme-prev.c: New file.
23703         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23704
23705         New module 'u32-grapheme-prev'.
23706         * modules/unigbrk/u32-grapheme-prev: New file.
23707         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23708         * lib/unigbrk.in.h: Add prototype for new function.
23709         * lib/unigbrk/u32-grapheme-prev.c: New file.
23710         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23711
23712         New module 'u8-grapheme-breaks'.
23713         * modules/unigbrk/u8-grapheme-breaks: New file.
23714         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23715         * lib/unigbrk.in.h: Add prototype for new function.
23716         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23717         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23718
23719         New module 'u16-grapheme-breaks'.
23720         * modules/unigbrk/u16-grapheme-breaks: New file.
23721         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23722         * lib/unigbrk.in.h: Add prototype for new function.
23723         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23724         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23725
23726         New module 'u32-grapheme-breaks'.
23727         * modules/unigbrk/u32-grapheme-breaks: New file.
23728         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23729         * lib/unigbrk.in.h: Add prototype for new function.
23730         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23731         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23732
23733         New module 'ulc-grapheme-breaks'.
23734         * modules/unigbrk/ulc-grapheme-breaks: New file.
23735         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23736         * m4/locale-ar.m4: New file.
23737         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23738         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23739         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23740
23741 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23742
23743         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23744         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23745         modified how this file was generated before I initially submitted
23746         the module, but failed to regenerate it.  This meant that several
23747         of the level2 entries were wrong.
23748         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23749         Remove the division-by-2 that is folded into the table now that
23750         gbrkprop.h has been regenerated properly.  Now -1 entries are
23751         handled correctly.
23752
23753         New module 'unigbrk/uc-gbrk-prop-tests'.
23754         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23755         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23756         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23757         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23758
23759 2011-01-01  Bruno Haible  <bruno@clisp.org>
23760
23761         Avoid use of hexadecimal escapes.
23762         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23763         instead of hexadecimal escapes.
23764
23765 2011-01-01  Jim Meyering  <meyering@redhat.com>
23766
23767         maint: new rule to update copyright year ranges
23768         * Makefile (update-copyright): New rule.
23769
23770         maint: indent with TABs in Makefile
23771         * Makefile: Expand leading sequences of spaces to TABs
23772
23773         version-etc: update the copyright year it reports
23774         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23775
23776 2010-12-31  Bruno Haible  <bruno@clisp.org>
23777
23778         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23779         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23780         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23781         zero.
23782
23783 2010-12-31  Bruno Haible  <bruno@clisp.org>
23784
23785         pwrite: Work around HP-UX 11.11 bug.
23786         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23787         works and set REPLACE_PWRITE if not.
23788         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23789         function.
23790         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23791
23792 2010-12-31  Bruno Haible  <bruno@clisp.org>
23793
23794         pread: Work around HP-UX 11 bugs.
23795         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23796         and set REPLACE_PREAD if not.
23797         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23798
23799 2010-12-31  Eric Blake  <eblake@redhat.com>
23800
23801         nl_langinfo: fix YESEXPR on Irix 6.5
23802         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23803         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23804         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23805         it.
23806
23807 2010-12-31  Bruno Haible  <bruno@clisp.org>
23808
23809         iconv: Document HP-UX 11 bug.
23810         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23811
23812 2010-12-31  Bruno Haible  <bruno@clisp.org>
23813
23814         ldexpl: Fix link error on HP-UX 11.
23815         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23816         LDEXPL_LIBM, using $ISNANL_LIBM.
23817
23818 2010-12-31  Eric Blake  <eblake@redhat.com>
23819
23820         ftello: avoid compilation failure with SunStudio c89
23821         * lib/ftello.c (ftello): Use lseek, not llseek.
23822
23823         tests: avoid failing coreutils tests on cygwin
23824         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23825         (create_exe_shims_): Return 0 when skipping.
23826
23827 2010-12-31  Bruno Haible  <bruno@clisp.org>
23828
23829         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23830         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23831
23832 2010-12-31  Bruno Haible  <bruno@clisp.org>
23833
23834         waitpid: Fix link error in C++ mode.
23835         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23836
23837 2010-12-31  Bruno Haible  <bruno@clisp.org>
23838
23839         isnan: Use GCC built-ins when possible.
23840         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23841         __builtin_isnan.
23842         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23843         (isnan): Define using GCC built-ins for GCC >= 4.0.
23844
23845 2010-12-31  Bruno Haible  <bruno@clisp.org>
23846
23847         isnand: Fix mistake.
23848         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23849         __builtin_isnand.
23850
23851 2010-12-31  Bruno Haible  <bruno@clisp.org>
23852
23853         open: Avoid C++ error on HP-UX 11.
23854         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23855
23856 2010-12-31  Bruno Haible  <bruno@clisp.org>
23857
23858         time_r: Add missing declarations on HP-UX 11.
23859         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23860         instead of HAVE_LOCALTIME_R.
23861         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23862         HAVE_LOCALTIME_R always.
23863         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23864         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23865         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23866         HAVE_LOCALTIME_R.
23867         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23868         * doc/posix-functions/localtime_r.texi: Likewise.
23869
23870 2010-12-29  Eric Blake  <eblake@redhat.com>
23871
23872         mountlist: tweak previous commit
23873         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23874         Reported by Paul Eggert.
23875
23876         mountlist: fix local drive detection on cygwin
23877         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23878         that works for cygwin.
23879
23880 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23881
23882         ftoastr, snprintf: ftoastr + snprintf module
23883         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23884         since the snprintf module now should be good enough here.
23885         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23886         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23887         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23888         GNULIB_SNPRINTF only for the test directory, and the latter
23889         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23890         seems to suffice by itself.
23891
23892 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23893
23894         alloca: one step towards thread-safety
23895         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23896         need for a static variable.  All callers changed.  This does not
23897         make the alloca replacement thread-safe, but it's one step.
23898
23899         tests: minor indenting change
23900         * tests/init.sh: Sync from coreutils housekeeping patch
23901         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23902         to keep lines within 80 columns.
23903
23904 2010-12-28  Jim Meyering  <meyering@redhat.com>
23905
23906         regex: don't infloop on persistent failing calloc
23907         * lib/regexec.c (build_trtable): Return failure indication upon
23908         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23909         In glibc, this was fixed for version 2.13:
23910         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23911
23912 2010-12-28  Bruno Haible  <bruno@clisp.org>
23913             Paul Eggert <eggert@cs.ucla.edu>
23914
23915         linkat: Make implementation robust against system behaviour variations.
23916         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23917         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23918         way, and to -2 if it needs a generic runtime test.
23919         * lib/linkat.c (solaris_optimized_link_immediate,
23920         solaris_optimized_link_follow): New functions.
23921         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23922         (check_same_link): Use it.
23923
23924 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23925
23926         New module 'unigbrk/base'.
23927         * modules/unigbrk/base: New file.
23928         * lib/unigbrk.in.h: New file.
23929
23930         New module 'unigbrk/uc-gbrk-prop'.
23931         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23932         * modules/unigbrk/uc-gbrk-prop: New file.
23933         * lib/unigbrk/gbrkprop.h: New file.
23934         * lib/unigbrk/uc-gbrk-prop.c: New file.
23935
23936         New module 'unigbrk/uc-is-grapheme-break'.
23937         * modules/unigbrk/uc-is-grapheme-break: New file.
23938         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23939         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23940         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23941         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23942         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23943
23944         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23945
23946 2010-12-27  Bruno Haible  <bruno@clisp.org>
23947
23948         linkat test: Avoid failure on Solaris 11 2010-11.
23949         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23950
23951 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23952
23953         utimens: work around glibc rounding bug on more platforms
23954         * lib/utimens.c (fdutimens): Work around rounding bug even if
23955         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23956         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23957
23958 2010-12-27  Bruno Haible  <bruno@clisp.org>
23959
23960         select tests: Improve comments.
23961         * tests/test-select.c (do_select): Add comments.
23962
23963 2010-12-27  Bruno Haible  <bruno@clisp.org>
23964
23965         select tests: Safer way of handling timeout.
23966         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23967         at every invocation.
23968
23969 2010-12-27  Bruno Haible  <bruno@clisp.org>
23970
23971         select tests: Use 'bool' where appropriate.
23972         * tests/test-select.c (connect_to_socket): Change argument type to
23973         'bool'.
23974
23975 2010-12-27  Bruno Haible  <bruno@clisp.org>
23976
23977         select tests: Use existing modules.
23978         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23979         (configure.ac): Don't test for unistd.h.
23980         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23981         declared in <unistd.h>.
23982
23983 2010-12-27  Bruno Haible  <bruno@clisp.org>
23984
23985         mbrtowc: Work around a Solaris 7 bug.
23986         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23987         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23988         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23989         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23990         MBRTOWC_NULL_ARG1_BUG.
23991         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23992         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23993         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23994         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23995
23996 2010-12-27  Jim Meyering  <meyering@redhat.com>
23997
23998         read-file.c: tweak syntax
23999         * lib/read-file.c (fread_file): Remove space after "*" in function
24000         definitions.
24001
24002 2010-12-27  Bruno Haible  <bruno@clisp.org>
24003
24004         times test: Avoid gcc warnings on OSF/1.
24005         * tests/test-times.c (main): Cast printf arguments from clock_t to
24006         'long int'.
24007
24008 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24009
24010         utimens: work around glibc rounding bug on older Linux kernels
24011         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
24012         on Linux with a glibc whose utimes might not work, then work
24013         around a longstanding glibc bug involving rounding rather than
24014         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
24015         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24016
24017 2010-12-26  Bruno Haible  <bruno@clisp.org>
24018
24019         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
24020         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
24021         _GL_CXXALIAS_SYS.
24022         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24023
24024 2010-12-26  Bruno Haible  <bruno@clisp.org>
24025
24026         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
24027         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
24028         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24029         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
24030         looking for the declaration.
24031         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24032         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
24033         problem.
24034         * doc/posix-functions/inet_pton.texi: Likewise.
24035
24036 2010-12-26  Bruno Haible  <bruno@clisp.org>
24037
24038         arpa_inet: Use the common idioms with C++ support.
24039         * lib/arpa_inet.in.h: Include c++defs.h.
24040         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
24041         support.
24042         * modules/arpa_inet (Depends-on): Add c++defs.
24043         (Makefile.am): Substitute the contents of c++defs.h.
24044         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
24045         * modules/arpa_inet-c++-tests: New file.
24046         * tests/test-arpa_inet-c++.cc: New file.
24047
24048 2010-12-25  Bruno Haible  <bruno@clisp.org>
24049
24050         Fix more C++ link errors on Solaris 8.
24051         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
24052         $(LIB_EACCESS).
24053         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
24054         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
24055         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
24056         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
24057         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
24058
24059 2010-12-25  Bruno Haible  <bruno@clisp.org>
24060
24061         printf-posix: Fix link error when a non-GCC compiler is used.
24062         * lib/stdio.in.h (printf): When not using GCC, override printf
24063         correctly.
24064         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24065
24066 2010-12-25  Bruno Haible  <bruno@clisp.org>
24067
24068         strerror_r-posix: Update doc.
24069         * doc/posix-functions/strerror_r.texi: Update doc about the return
24070         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
24071
24072 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24073
24074         utimens: simplify the logic of the previous change
24075         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
24076         This should not affect whether the test succeeds or fails.
24077
24078         utimens: configure better on hosts with NFS clock skew
24079         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
24080         uses the clock of the local host.  It might use the clock of the
24081         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
24082         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24083
24084 2010-12-25  Bruno Haible  <bruno@clisp.org>
24085
24086         ptsname test: Avoid failure on Solaris.
24087         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
24088         open a pseudo-terminal; don't use BSD-style ptys.
24089         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
24090
24091 2010-12-25  Bruno Haible  <bruno@clisp.org>
24092
24093         ptsname: Avoid ERANGE failure on some systems.
24094         * lib/ptsname.c (buffer): Increase size.
24095
24096 2010-12-25  Bruno Haible  <bruno@clisp.org>
24097
24098         rename, renameat: Avoid test failures at NFS mounted locations.
24099         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
24100         so that subsequent mkdir calls succeed.
24101
24102 2010-12-25  Bruno Haible  <bruno@clisp.org>
24103
24104         iswblank: Fix C++ link error on Solaris 8.
24105         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
24106         _GL_FUNCDECL_SYS.
24107
24108 2010-12-25  Bruno Haible  <bruno@clisp.org>
24109
24110         unistd: Fix C++ link error on Solaris 8.
24111         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
24112
24113 2010-12-25  Bruno Haible  <bruno@clisp.org>
24114
24115         readlink doc: Mention an old glibc bug.
24116         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
24117
24118 2010-12-25  Bruno Haible  <bruno@clisp.org>
24119
24120         fcntl-h: Fix for use of C++ on glibc systems.
24121         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24122         also on glibc systems in C++ mode.
24123         Reported by Gary V. Vaughan <gary@gnu.org>.
24124
24125 2010-12-25  Bruno Haible  <bruno@clisp.org>
24126
24127         roundl-ieee: Make it work on OSF/1 5.1 with cc.
24128         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
24129
24130 2010-12-25  Bruno Haible  <bruno@clisp.org>
24131
24132         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24133         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24134         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24135         test whether truncl works according to ISO C 99 with IEC 60559.
24136         * m4/truncl-ieee.m4: New file.
24137         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24138         m4/signbit.m4.
24139         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24140
24141 2010-12-25  Bruno Haible  <bruno@clisp.org>
24142
24143         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24144         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24145         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24146         test whether ceill works according to ISO C 99 with IEC 60559.
24147         * m4/ceill-ieee.m4: New file.
24148         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24149         m4/signbit.m4.
24150         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24151
24152 2010-12-25  Bruno Haible  <bruno@clisp.org>
24153
24154         Ensure all prerequisites of <wchar.h> are included.
24155         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24156         before <wchar.h>.
24157         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24158         gl_MBRLEN_NUL_RETVAL): Likewise.
24159         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24160         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24161         AC_FUNC_MBRTOWC): Likewise.
24162         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24163         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24164         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24165         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24166         Likewise.
24167         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24168         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24169         (gl_WCHAR_H): Improve comments.
24170         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24171
24172 2010-12-25  Bruno Haible  <bruno@clisp.org>
24173
24174         strtok_r: Fix C syntax error in autoconf macro.
24175         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24176         characters in test program.
24177
24178 2010-12-24  Bruno Haible  <bruno@clisp.org>
24179
24180         ceil, trunc, round: Fix gcc warnings.
24181         * lib/ceil.c (MIN): Undefine before redefining.
24182         * lib/trunc.c (MIN): Likewise.
24183         * lib/round.c (MIN): Likewise.
24184         Include <math.h> first.
24185
24186 2010-12-24  Bruno Haible  <bruno@clisp.org>
24187
24188         select tests: Avoid failures on OSF/1 5.1.
24189         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24190         failure of closing the last socket; it may fail with ECONNRESET.
24191
24192 2010-12-24  Eric Blake  <eblake@redhat.com>
24193
24194         stdint: avoid HP-UX 10.20 preprocessor bug
24195         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24196         than #if.
24197         * tests/test-floor2.c (main): Likewise.
24198         Reported by Peter O'Gorman.
24199
24200         pipe: make obsoletion transition easier
24201         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24202         * modules/pipe (Files): Include revived file.
24203         (Include): Drop reference, to mirror getdate's behavior.
24204
24205 2010-12-24  Bruno Haible  <bruno@clisp.org>
24206
24207         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24208         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24209         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24210         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24211
24212 2010-12-24  Bruno Haible  <bruno@clisp.org>
24213
24214         gethostname: Ensure declaration on NonStop Kernel.
24215         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24216         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24217
24218 2010-12-24  Bruno Haible  <bruno@clisp.org>
24219
24220         sys_select: Ensure all necessary types on NonStop Kernel.
24221         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24222         include <sys/time.h>.
24223         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24224         NonStop Kernel.
24225         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24226
24227 2010-12-24  Bruno Haible  <bruno@clisp.org>
24228
24229         sys_select: Remove unneeded include.
24230         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24231         have <sys/select.h>.
24232
24233 2010-12-24  Bruno Haible  <bruno@clisp.org>
24234
24235         gethostname: Provide a fallback for HOST_NAME_MAX.
24236         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24237         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24238         instead.
24239         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24240
24241 2010-12-24  Bruno Haible  <bruno@clisp.org>
24242
24243         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24244         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24245         (SA_RESTART): Likewise.
24246         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24247
24248 2010-12-24  Bruno Haible  <bruno@clisp.org>
24249
24250         signal: Define NSIG.
24251         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24252         * tests/test-signal.c (nsig): New variable.
24253         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24254
24255 2010-12-24  Bruno Haible  <bruno@clisp.org>
24256
24257         rename, renameat: Avoid test failures on OSF/1 5.1.
24258         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24259         alternative error codes.
24260         * tests/test-renameat.c (main): Likewise.
24261
24262 2010-12-24  Bruno Haible  <bruno@clisp.org>
24263
24264         *printf: Detect large precisions bug on Solaris 10/SPARC.
24265         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24266         by Paul Eggert.
24267         * tests/test-snprintf-posix.h (test_function): Add this test code here
24268         too.
24269         * tests/test-sprintf-posix.h (test_function): Likewise.
24270         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24271         * tests/test-vasprintf-posix.c (test_function): Likewise.
24272         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24273         around by gnulib.
24274         * doc/posix-functions/printf.texi: Likewise.
24275         * doc/posix-functions/snprintf.texi: Likewise.
24276         * doc/posix-functions/sprintf.texi: Likewise.
24277         * doc/posix-functions/vfprintf.texi: Likewise.
24278         * doc/posix-functions/vprintf.texi: Likewise.
24279         * doc/posix-functions/vsnprintf.texi: Likewise.
24280         * doc/posix-functions/vsprintf.texi: Likewise.
24281         * doc/posix-functions/dprintf.texi: Undo last commit.
24282         * doc/posix-functions/vdprintf.texi: Likewise.
24283
24284 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24285
24286         tests: port test-fdutimensat.c to Solaris 8
24287         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24288         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24289         On Solaris 8, it fails with errno == ENOSYS, because there is no
24290         futimens (so it can't use the fd), and there is no lutimens (so it
24291         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24292
24293         vsnprintf: make more consistent with snprintf; doc fixes
24294
24295         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24296         the byte count return problem was promoted from the snprintf-posix
24297         to the snprintf module.
24298         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24299         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24300         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24301         * tests/test-snprintf.c (main): Check the byte count returned.
24302         * tests/test-vsnprintf.c (main): Likewise.
24303
24304 2010-12-23  Eric Blake  <eblake@redhat.com>
24305
24306         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24307         * modules/sigpipe (License): Relax license.
24308
24309 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24310
24311         doc: document Solaris printf bug with large float precisions
24312         * doc/posix-functions/dprintf.texi (dprintf):
24313         * doc/posix-functions/fprintf.texi (fprintf):
24314         * doc/posix-functions/printf.texi (printf):
24315         * doc/posix-functions/snprintf.texi (snprintf):
24316         * doc/posix-functions/sprintf.texi (sprintf):
24317         * doc/posix-functions/vdprintf.texi (vdprintf):
24318         * doc/posix-functions/vfprintf.texi (vfprintf):
24319         * doc/posix-functions/vprintf.texi (vprintf):
24320         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24321         * doc/posix-functions/vsprintf.texi (vsprintf):
24322         Mention that these functions mishandle large floating point
24323         precisions on Solaris 10.  The same bug is also present in Solaris
24324         8, and I assume earlier.  This causes "cd gnulib-tests; make
24325         check" to fail on Solaris 8 (and I assume, later) when building
24326         the latest coreutils, in test-vasprintf-posix's call to
24327         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24328         the wide flavors (e.g., wprintf) so this patch just updates the
24329         documentation for the narrow ones.
24330
24331         test-posixtm.c: add two tests
24332         * tests/test-posixtm.c: Add two tests, to highlight the
24333         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24334         around this bug; this is merely to document it.
24335
24336 2010-12-22  Bruno Haible  <bruno@clisp.org>
24337
24338         getlogin_r: Work around portability problem on OSF/1.
24339         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24340         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24341         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24342         test for a truncated result.
24343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24344         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24345         * modules/getlogin_r (Depends-on): Add memchr.
24346         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24347
24348 2010-12-22  Bruno Haible  <bruno@clisp.org>
24349
24350         ptsname: Avoid test failure on OSF/1 5.1.
24351         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24352         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24353         (same_slave): New function.
24354         (main): Use it to compare ptsname's result with the expected file name.
24355
24356 2010-12-22  Bruno Haible  <bruno@clisp.org>
24357
24358         Port extended stdio modules to HP NonStop Kernel.
24359         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24360         macros.
24361         * lib/fbufmode.c: Update comments.
24362         * lib/fflush.c: Likewise.
24363         * lib/fpurge.c: Likewise.
24364         * lib/freadable.c: Likewise.
24365         * lib/freadahead.c: Likewise.
24366         * lib/freading.c: Likewise.
24367         * lib/freadptr.c: Likewise.
24368         * lib/freadseek.c: Likewise.
24369         * lib/fseeko.c: Likewise.
24370         * lib/fseterr.c: Likewise.
24371         * lib/fwritable.c: Likewise.
24372         * lib/fwriting.c: Likewise.
24373         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24374
24375 2010-12-22  Bruno Haible  <bruno@clisp.org>
24376
24377         ttyname_r: Work around bug on OSF/1 5.1.
24378         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24379         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24380         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24381         present.
24382         * lib/ttyname_r.c (ttyname_r): Update comments.
24383
24384 2010-12-22  Bruno Haible  <bruno@clisp.org>
24385
24386         round: Implement result sign according to IEEE 754.
24387         * lib/round.c (MIN, MINUS_ZERO): New macros.
24388         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24389         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24390         * tests/test-round-ieee.c (main): Likewise.
24391         * tests/test-roundl-ieee.c (main): Likewise.
24392
24393         trunc: Implement result sign according to IEEE 754.
24394         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24395         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24396         * tests/test-trunc2.c: Include minus-zero.h.
24397         (MINUS_ZERO): New macro.
24398         (trunc_reference): Keep in sync with lib/trunc.c.
24399         * tests/test-truncf2.c: Include minus-zero.h.
24400         (MINUS_ZERO): New macro.
24401         (truncf_reference): Keep in sync with lib/trunc.c.
24402         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24403         * tests/test-trunc-ieee.c (main): Likewise.
24404         * tests/test-truncl-ieee.c (main): Likewise.
24405
24406         ceil: Implement result sign according to IEEE 754.
24407         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24408         (FUNC): Return -0.0 for -1 < x < 0.
24409         * tests/test-ceil2.c: Include minus-zero.h.
24410         (MINUS_ZERO): New macro.
24411         (ceil_reference): Keep in sync with lib/ceil.c.
24412         * tests/test-ceilf2.c: Include minus-zero.h.
24413         (MINUS_ZERO): New macro.
24414         (ceilf_reference): Keep in sync with lib/ceil.c.
24415         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24416         * tests/test-ceil-ieee.c (main): Likewise.
24417         * tests/test-ceill-ieee.c (main): Likewise.
24418
24419         floor: Implement result sign according to IEEE 754.
24420         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24421         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24422         * tests/test-floorf2.c (floorf_reference): Likewise.
24423         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24424         * tests/test-floor-ieee.c (main): Likewise.
24425         * tests/test-floorl-ieee.c (main): Likewise.
24426
24427 2010-12-22  Bruno Haible  <bruno@clisp.org>
24428
24429         getaddrinfo: Update doc.
24430         * doc/posix-functions/gai_strerror.texi: Return type is also different
24431         on AIX and HP-UX.
24432
24433 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24434
24435         getaddrinfo, inet_ntop: Update doc for Solaris.
24436         * doc/posix-functions/gai_strerror.texi: Return type is also an
24437         issue on Solaris 9 and earlier.
24438         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24439         on Solaris 10 and earlier.
24440
24441 2010-12-21  Bruno Haible  <bruno@clisp.org>
24442
24443         New module 'roundl-ieee'.
24444         * modules/roundl-ieee: New file.
24445         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24446         test whether roundl works according to ISO C 99 with IEC 60559.
24447         * m4/roundl-ieee.m4: New file.
24448         * modules/roundl-ieee-tests: New file.
24449         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24450         * tests/test-roundl.c (main): Remove signbit tests.
24451         * modules/roundl-tests (Depends-on): Remove signbit.
24452         * doc/posix-functions/roundl.texi: Mention the new module.
24453
24454 2010-12-21  Bruno Haible  <bruno@clisp.org>
24455
24456         New module 'truncl-ieee'.
24457         * modules/truncl-ieee: New file.
24458         * modules/truncl-ieee-tests: New file.
24459         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24460         * tests/test-truncl.c (main): Remove signbit tests.
24461         * modules/truncl-tests (Depends-on): Remove signbit.
24462         * doc/posix-functions/truncl.texi: Mention the new module.
24463
24464 2010-12-21  Bruno Haible  <bruno@clisp.org>
24465
24466         New module 'ceill-ieee'.
24467         * modules/ceill-ieee: New file.
24468         * modules/ceill-ieee-tests: New file.
24469         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24470         * tests/test-ceill.c (main): Remove signbit tests.
24471         * modules/ceill-tests (Depends-on): Remove signbit.
24472         * doc/posix-functions/ceill.texi: Mention the new module.
24473
24474 2010-12-21  Bruno Haible  <bruno@clisp.org>
24475
24476         New module 'floorl-ieee'.
24477         * modules/floorl-ieee: New file.
24478         * modules/floorl-ieee-tests: New file.
24479         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24480         * tests/test-floorl.c (main): Remove signbit tests.
24481         * modules/floorl-tests (Depends-on): Remove signbit.
24482         * doc/posix-functions/floorl.texi: Mention the new module.
24483
24484 2010-12-21  Bruno Haible  <bruno@clisp.org>
24485
24486         New module 'round-ieee'.
24487         * modules/round-ieee: New file.
24488         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24489         whether round works according to ISO C 99 with IEC 60559.
24490         * m4/round-ieee.m4: New file.
24491         * modules/round-ieee-tests: New file.
24492         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24493         * tests/test-round1.c (main): Remove signbit tests.
24494         * modules/round-tests (Depends-on): Remove 'signbit'.
24495         * doc/posix-functions/round.texi: Mention the new module.
24496
24497 2010-12-21  Bruno Haible  <bruno@clisp.org>
24498
24499         New module 'trunc-ieee'.
24500         * modules/trunc-ieee: New file.
24501         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24502         whether trunc works according to ISO C 99 with IEC 60559.
24503         * m4/trunc-ieee.m4: New file.
24504         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24506         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24507         * modules/trunc-ieee-tests: New file.
24508         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24509         * tests/test-trunc1.c (main): Remove signbit tests.
24510         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24511         * doc/posix-functions/trunc.texi: Mention the new module.
24512
24513 2010-12-21  Bruno Haible  <bruno@clisp.org>
24514
24515         New module 'ceil-ieee'.
24516         * modules/ceil-ieee: New file.
24517         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24518         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24519         ISO C 99 with IEC 60559.
24520         * m4/ceil-ieee.m4: New file.
24521         * modules/ceil (Files): Add lib/ceil.c.
24522         (Depends-on): Add 'float'.
24523         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24524         * lib/math.in.h (ceil): New declaration.
24525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24526         REPLACE_CEIL.
24527         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24528         * modules/ceil-ieee-tests: New file.
24529         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24530         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24531         * doc/posix-functions/ceil.texi: Mention the new module.
24532
24533 2010-12-21  Bruno Haible  <bruno@clisp.org>
24534
24535         New module 'floor-ieee'.
24536         * modules/floor-ieee: New file.
24537         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24538         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24539         ISO C 99 with IEC 60559.
24540         * m4/floor-ieee.m4: New file.
24541         * modules/floor (Files): Add lib/floor.c.
24542         (Depends-on): Add 'float'.
24543         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24544         * lib/math.in.h (floor): New declaration.
24545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24546         REPLACE_FLOOR.
24547         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24548         * modules/floor-ieee-tests: New file.
24549         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24550         * tests/test-math-c++.cc: Check the signature of 'floor'.
24551         * doc/posix-functions/floor.texi: Mention the new module.
24552
24553 2010-12-21  Bruno Haible  <bruno@clisp.org>
24554
24555         New module 'roundf-ieee'.
24556         * modules/roundf-ieee: New file.
24557         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24558         test whether roundf works according to ISO C 99 with IEC 60559.
24559         * m4/roundf-ieee.m4: New file.
24560         * modules/roundf-ieee-tests: New file.
24561         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24562         * tests/test-roundf1.c (main): Remove signbit tests.
24563         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24564         * doc/posix-functions/roundf.texi: Mention the new module.
24565
24566 2010-12-21  Bruno Haible  <bruno@clisp.org>
24567
24568         New module 'truncf-ieee'.
24569         * modules/truncf-ieee: New file.
24570         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24571         test whether truncf works according to ISO C 99 with IEC 60559.
24572         * m4/truncf-ieee.m4: New file.
24573         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24575         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24576         * modules/truncf-ieee-tests: New file.
24577         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24578         * tests/test-truncf1.c (main): Remove signbit tests.
24579         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24580         * doc/posix-functions/truncf.texi: Mention the new module.
24581
24582 2010-12-21  Bruno Haible  <bruno@clisp.org>
24583
24584         New module 'ceilf-ieee'.
24585         * modules/ceilf-ieee: New file.
24586         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24587         test whether ceilf works according to ISO C 99 with IEC 60559.
24588         * m4/ceilf-ieee.m4: New file.
24589         * modules/ceilf-ieee-tests: New file.
24590         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24591         * tests/test-ceilf1.c (main): Remove signbit tests.
24592         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24593         * doc/posix-functions/ceilf.texi: Mention the new module.
24594
24595 2010-12-21  Bruno Haible  <bruno@clisp.org>
24596
24597         New module 'floorf-ieee'.
24598         * modules/floorf-ieee: New file.
24599         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24600         test whether floorf works according to ISO C 99 with IEC 60559.
24601         * m4/floorf-ieee.m4: New file.
24602         * modules/floorf-ieee-tests: New file.
24603         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24604         * tests/test-floorf1.c (main): Remove signbit tests.
24605         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24606         * doc/posix-functions/floorf.texi: Mention the new module.
24607
24608 2010-12-21  Bruno Haible  <bruno@clisp.org>
24609
24610         Support for minus zero in autoconf macros.
24611         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24612         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24613         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24614         * tests/minus-zero.h: Update comments.
24615
24616 2010-12-21  Bruno Haible  <bruno@clisp.org>
24617
24618         Tests for module 'ceil'.
24619         * modules/ceil-tests: New file.
24620         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24621         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24622
24623 2010-12-21  Bruno Haible  <bruno@clisp.org>
24624
24625         Tests for module 'floor'.
24626         * modules/floor-tests: New file.
24627         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24628         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24629
24630 2010-12-21  Bruno Haible  <bruno@clisp.org>
24631
24632         math: Fix indentation.
24633         * lib/math.in.h (floorf): Fix indentation.
24634
24635 2010-12-21  Bruno Haible  <bruno@clisp.org>
24636
24637         Fix cross-compilation guesses on Solaris.
24638         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24639         not match "solaris2.10".
24640         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24641         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24642         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24643
24644 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24645
24646         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24647         This fixes a problem observed with the latest coreutils snapshot
24648         that caused a test to fail on Solaris 8.  src/csplit.c's call
24649         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24650         earlier, instead of returning the number of bytes that would have
24651         been generated; this causes csplit to incorrectly report memory
24652         exhaustion.
24653         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24654         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24655         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24656         comments to match.
24657         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24658         Fix typo in matching older versions of Solaris: "solaris2.10"
24659         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24660         only for guessing while cross-compiling.
24661         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24662
24663 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24664
24665         ftoastr: fix comment again
24666         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24667         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24668         Also, simplify example a bit by using flags = 0.
24669
24670 2010-12-20  Bruno Haible  <bruno@clisp.org>
24671
24672         round*, trunc*: Update documentation regarding glibc.
24673         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24674         * doc/posix-functions/round.texi: Likewise.
24675         * doc/posix-functions/roundl.texi: Likewise.
24676         * doc/posix-functions/truncf.texi: Likewise.
24677         * doc/posix-functions/trunc.texi: Likewise.
24678         * doc/posix-functions/truncl.texi: Likewise.
24679
24680 2010-12-20  Bruno Haible  <bruno@clisp.org>
24681
24682         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24683         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24684         * doc/posix-functions/round.texi: Likewise.
24685         * doc/posix-functions/roundl.texi: Likewise.
24686
24687 2010-12-20  Bruno Haible  <bruno@clisp.org>
24688
24689         ttyname_r: Add missing declaration on HP-UX 11.
24690         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24691         HAVE_TTYNAME_R.
24692         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24693         declared. Set HAVE_TTYNAME_R always.
24694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24695         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24696         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24697         HAVE_TTYNAME_R.
24698         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24699
24700 2010-12-20  Bruno Haible  <bruno@clisp.org>
24701
24702         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24703         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24704         * doc/posix-functions/getlogin_r.texi: Likewise.
24705         * tests/test-getlogin.c: Include <errno.h>.
24706         (main): Avoid test failure on HP-UX 11.11.
24707         * tests/test-getlogin_r.c (main): Likewise.
24708
24709 2010-12-20  Bruno Haible  <bruno@clisp.org>
24710
24711         getlogin_r: Add missing declaration on HP-UX 11.
24712         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24713         declared also when it exists as a function.
24714         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24715
24716 2010-12-20  Bruno Haible  <bruno@clisp.org>
24717
24718         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24719         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24720         through wcrtomb.
24721
24722 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24723
24724         ftoastr: fix comment
24725         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24726         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24727
24728 2010-12-19  Bruno Haible  <bruno@clisp.org>
24729
24730         isnan: Ensure it is a macro.
24731         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24732         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24733         Solaris.
24734
24735 2010-12-19  Bruno Haible  <bruno@clisp.org>
24736
24737         ldexpl test: Fix link error on OSF/1 5.1.
24738         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24739
24740 2010-12-19  Bruno Haible  <bruno@clisp.org>
24741
24742         wctype: Make it work in C++ mode on OSF/1 5.1.
24743         * lib/wctype.in.h (iswblank): Declare but not define here.
24744         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24745         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24746         * modules/wctype (Files): Add lib/iswblank.c.
24747
24748 2010-12-19  Bruno Haible  <bruno@clisp.org>
24749
24750         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24751         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24752         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24753
24754 2010-12-19  Bruno Haible  <bruno@clisp.org>
24755
24756         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24757         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24758         _POSIX_PII_SOCKET.
24759         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24760         * doc/posix-functions/recvfrom.texi: Likewise.
24761         * doc/posix-functions/send.texi: Likewise.
24762         * doc/posix-functions/sendto.texi: Likewise.
24763
24764 2010-12-19  Bruno Haible  <bruno@clisp.org>
24765
24766         tcgetsid: Add missing declaration on OSF/1 5.1.
24767         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24768         HAVE_TCGETSID.
24769         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24770         Don't set HAVE_TCGETSID.
24771         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24772         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24773         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24774         HAVE_TCGETSID.
24775         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24776
24777 2010-12-19  Bruno Haible  <bruno@clisp.org>
24778
24779         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24780         * lib/stdio.in.h: During the include_next statement, let recursive
24781         includes of this file include only the system header file.
24782
24783 2010-12-19  Bruno Haible  <bruno@clisp.org>
24784
24785         iconv_open: Fix regression from 2010-12-04.
24786         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24787         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24788
24789 2010-12-19  Bruno Haible  <bruno@clisp.org>
24790
24791         stdbool test: Avoid a gcc warning.
24792         * tests/test-stdbool.c (main): Fail if e1 is false.
24793         Reported by Jim Meyering.
24794
24795 2010-12-19  Jim Meyering  <meyering@redhat.com>
24796
24797         setenv: restore to working order
24798         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24799         mistakenly removed.
24800         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24801         HAVE_SETENV.
24802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24803         HAVE_SETENV.
24804
24805 2010-12-19  Bruno Haible  <bruno@clisp.org>
24806
24807         Document some different function declarations on OSF/1 5.1.
24808         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24809         * doc/posix-functions/inet_ntop.texi: Likewise.
24810         * doc/posix-functions/gethostname.texi: Likewise.
24811         * lib/unistd.in.h (gethostname): Update comment.
24812
24813 2010-12-19  Bruno Haible  <bruno@clisp.org>
24814
24815         doc: Mention vasprintf-posix module.
24816         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24817         the 'vasprintf-posix' module.
24818         * doc/glibc-functions/vasprintf.texi: Likewise.
24819
24820 2010-12-19  Bruno Haible  <bruno@clisp.org>
24821
24822         unsetenv: Add missing declaration on OSF/1 5.1.
24823         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24824         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24825         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24827         not HAVE_UNSETENV.
24828         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24829         HAVE_UNSETENV.
24830         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24831
24832 2010-12-19  Bruno Haible  <bruno@clisp.org>
24833
24834         setenv: Add missing declaration on OSF/1 5.1.
24835         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24836         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24837         declared. Don't set HAVE_SETENV.
24838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24839         not HAVE_SETENV.
24840         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24841         HAVE_SETENV.
24842         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24843
24844 2010-12-19  Bruno Haible  <bruno@clisp.org>
24845
24846         nl_langinfo tests: Avoid gcc warning.
24847         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24848
24849 2010-12-19  Bruno Haible  <bruno@clisp.org>
24850
24851         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24852         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24853         _GL_CXXALIAS_SYS.
24854
24855 2010-12-19  Bruno Haible  <bruno@clisp.org>
24856
24857         stdbool: Relax test.
24858         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24859         address to 'bool' work in static initializer, for compilers other than
24860         GCC.
24861
24862 2010-12-19  Bruno Haible  <bruno@clisp.org>
24863
24864         ftello: Add missing declaration on OSF/1 5.1.
24865         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24866         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24868         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24869         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24870
24871 2010-12-19  Bruno Haible  <bruno@clisp.org>
24872
24873         fseeko: Add missing declaration on OSF/1 5.1.
24874         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24875         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24877         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24878         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24879
24880 2010-12-19  Bruno Haible  <bruno@clisp.org>
24881
24882         fchdir: Add missing declaration on OSF/1 5.1.
24883         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24886         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24887         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24888
24889 2010-12-19  Bruno Haible  <bruno@clisp.org>
24890
24891         relocatable-prog-wrapper: Separate from relocatable-prog.
24892         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24893         uninstall-relocwrapper rule here.
24894         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24895         Reported by Ian Beckwith <ianb@erislabs.net>.
24896
24897 2010-12-19  Bruno Haible  <bruno@clisp.org>
24898
24899         unistr/u8-mbsnlen: Add missing dependency.
24900         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24901         Reported by Ian Beckwith <ianb@erislabs.net>.
24902
24903 2010-12-19  Bruno Haible  <bruno@clisp.org>
24904
24905         iconv: Make it possible again to use this module without 'iconv-h'.
24906         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24907         if it is not defined.
24908         Reported by Ian Beckwith <ianb@erislabs.net>.
24909
24910 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24911
24912         acl: port to Solaris 8 when copying from tmpfs to ufs
24913         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24914         error number.  Problem observed on Solaris 8 with latest
24915         coreutils, with "mv A B", where A is on a tmpfs file system and B
24916         is on a ufs file system.  This caused coreutils' mv/part-symlink
24917         test to fail.
24918
24919         tests: set fail=0 at start
24920         * tests/init.sh (setup_): Move fail=0 initialization here ...
24921         (mktempd_): ... from here, so that tests can rely on fail being
24922         set to 0 initially.  This fixes a problem in coreutils; see:
24923         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24924
24925 2010-12-18  Bruno Haible  <bruno@clisp.org>
24926
24927         memmem-simple: Stylistic changes.
24928         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24929         Fix preprocessor directive indentation.
24930
24931 2010-12-15  Pádraig Brady <P@draigBrady.com>
24932
24933         memmem, memmem-simple: reorganize and expand empty needle check
24934         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24935         functional checks to memmem-simple so that one has a fully functional
24936         memmem by using just this module.
24937         Restrict the performance only check to the memmem module.
24938         Also expand the empty needle check to ensure the correct
24939         pointer is returned, not just a non NULL pointer.
24940         * doc/glibc-functions/memmem.texi: Rearrange the portability
24941         documentation to correlate with the rearranged checks.
24942         Clarify exactly how the memmem and memmem-simple modules
24943         relate to each other.
24944
24945 2010-12-15  Pádraig Brady <P@draigBrady.com>
24946             Bruno Haible  <bruno@clisp.org>
24947
24948         Improve cross-compilation guesses for uClibc.
24949         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24950         that uClibc does not have the glibc bug.
24951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24952         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24953
24954 2010-12-14  Eric Blake  <eblake@redhat.com>
24955
24956         configmake: provide fallbacks for oldest supported autotools
24957         * m4/configmake.m4: New file.
24958         * modules/configmake (Files): Ship it.
24959         (configure.ac): Use it to guarantee fallbacks.
24960
24961 2010-12-13  Pádraig Brady <P@draigBrady.com>
24962
24963         read-file: Improve handling of large files
24964         * lib/read-file.c (fread_file): Minimize realloc()s
24965         for regular files, and better manage sizes around SIZE_MAX.
24966
24967 2010-12-13  Eric Blake  <eblake@redhat.com>
24968
24969         cloexec, fcntl: relax license
24970         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24971         consent from all contributors.
24972         * modules/fcntl (License): Likewise.
24973
24974 2010-12-10  Bruno Haible  <bruno@clisp.org>
24975
24976         Tests for module 'pipe-posix'.
24977         * modules/pipe-posix-tests: New file.
24978         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24979
24980 2010-12-10  Bruno Haible  <bruno@clisp.org>
24981
24982         pipe-posix: Make it work in C++ mode.
24983         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24984         (pipe): Use common idiom, not a macro definition.
24985         * lib/pipe.c: New file.
24986         * m4/pipe.m4: New file.
24987         * modules/pipe-posix (Description): Enhance.
24988         (Files): Add lib/pipe.c, m4/pipe.m4.
24989         (configure.ac): Invoke gl_FUNC_PIPE.
24990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24991         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24992         * tests/test-unistd-c++.cc: Check the signature of pipe.
24993
24994 2010-12-10  Bruno Haible  <bruno@clisp.org>
24995
24996         Rename module 'pipe' to 'spawn-pipe'.
24997         * modules/spawn-pipe: New file, renamed from modules/pipe.
24998         (Files, configure.ac, Makefile.am): Update.
24999         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
25000         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
25001         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
25002         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
25003         "spawn-pipe.h" instead of "pipe.h".
25004         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
25005         to gl_SPAWN_PIPE.
25006         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
25007         (Files, Makefile.am): Update.
25008         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
25009         Update.
25010         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
25011         Include "spawn-pipe.h" instead of "pipe.h".
25012         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
25013         * lib/javacomp.c: Likewise.
25014         * lib/javaversion.c: Likewise.
25015         * lib/pipe-filter-gi.c: Likewise.
25016         * lib/pipe-filter-ii.c: Likewise.
25017         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
25018         * modules/javacomp (Depends-on): Likewise.
25019         * modules/javaversion (Depends-on): Likewise.
25020         * modules/pipe-filter-gi (Depends-on): Likewise.
25021         * modules/pipe-filter-ii (Depends-on): Likewise.
25022         * MODULES.html.sh (Executing programs): Update.
25023         * NEWS: Mention the change.
25024
25025 2010-12-10  Eric Blake  <eblake@redhat.com>
25026
25027         pipe-posix: new module
25028         * modules/pipe-posix: New file.
25029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
25030         (gl_UNISTD_H): Check for declaration.
25031         * modules/unistd (Makefile.am): Substitute it.
25032         * lib/unistd.in.h (pipe): Provide it for mingw.
25033         * doc/posix-functions/pipe.texi (pipe): Update documentation.
25034         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
25035
25036 2010-12-07  Bruno Haible  <bruno@clisp.org>
25037
25038         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
25039         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
25040         u8_strcmp_gnu.
25041         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
25042
25043 2010-12-06  Bruno Haible  <bruno@clisp.org>
25044
25045         Update internal documentation.
25046         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
25047
25048 2010-12-04  Bruno Haible  <bruno@clisp.org>
25049
25050         Put more information about failed tests into the test return codes.
25051         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
25052         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
25053         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25054         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25055         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
25056         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25057         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25058         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25059         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
25060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25061         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
25062         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25063         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25064         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25065         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
25066         returns a bit mask.
25067         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
25068         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
25069         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
25070         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
25071         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25072         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25073         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25074         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25075         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25076         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25077         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25078         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25079         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25080         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25081         * m4/link.m4 (gl_FUNC_LINK): Likewise.
25082         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25083         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
25084         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
25085         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25086         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
25087         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25088         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25089         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
25090         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25091         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25092         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25093         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
25094         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25095         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25096         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
25097         gl_PRINTF_PRECISION): Likewise.
25098         * m4/regex.m4 (gl_REGEX): Likewise.
25099         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25100         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
25101         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
25102         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25103         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25104         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
25106         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
25107         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25108         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25109         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25110         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25111         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25112         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25113         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25114         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25115         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25116         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25118         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
25119         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
25120         enumerated value.
25121         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
25122
25123 2010-12-04  Bruno Haible  <bruno@clisp.org>
25124
25125         Update for Solaris 11 2010-11.
25126         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
25127         Express, released in November 2010.
25128
25129 2010-12-04  Bruno Haible  <bruno@clisp.org>
25130
25131         nproc: Relax license.
25132         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25133         and Paul Eggert.
25134         Requested by Ludovic Courtès <ludo@gnu.org>.
25135
25136 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25137
25138         utimecmp: fine-grained src to nearby coarse-grained dest
25139
25140         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25141         and the source is on a file system with higher-resolution time
25142         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25143         not work, and the time stamps are close together, the algorithm to
25144         determine the exact resolution from the read-back mtime was buggy:
25145         it had a "!=" where it should have had an "==".  This bug has been
25146         in the code ever since it was introduced to gnulib.
25147         Problem reported by Dan Jacobson in
25148         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25149
25150 2010-11-30  Bruno Haible  <bruno@clisp.org>
25151
25152         strerror_r-posix: Fix autoconf test.
25153         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25154
25155 2010-11-28  Bruno Haible  <bruno@clisp.org>
25156             Paul Eggert  <eggert@cs.ucla.edu>
25157
25158         Tests for module 'getdomainname'.
25159         * modules/getdomainname-tests: New file.
25160         * tests/test-getdomainname.c: New file, based on
25161         tests/test-gethostname.c.
25162
25163 2010-11-28  Bruno Haible  <bruno@clisp.org>
25164             Paul Eggert  <eggert@cs.ucla.edu>
25165
25166         getdomainname: Use the system function when possible.
25167         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25168         (getdomainname): Replace if needed. Provide the declaration if it is
25169         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25170         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25171         (getdomainname): When the system has getdomainname, call the system
25172         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25173         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25174         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25175         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25176         the function if its second argument is of type 'int' or if it is found
25177         in libnsl.
25178         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25179         <sys/systeminfo.h> and sysinfo().
25180         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25182         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25183         HAVE_GETDOMAINNAME.
25184         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25185         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25186         * doc/glibc-functions/getdomainname.texi: Document the problems with
25187         the getdomainname declaration.
25188
25189 2010-11-28  Bruno Haible  <bruno@clisp.org>
25190
25191         sys_socket: Ensure ss_family field on AIX.
25192         * lib/sys_socket.in.h (ss_family): New macro definition.
25193         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25194         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25195         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25196         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25197         * modules/sys_socket (Makefile.am): Substitute
25198         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25199         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25200
25201 2010-11-27  Bruno Haible  <bruno@clisp.org>
25202
25203         readline: Improve configure output.
25204         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25205         "checking for readline..." result understandable.
25206
25207 2010-11-27  Bruno Haible  <bruno@clisp.org>
25208
25209         *printf-posix: Detect a bug on Solaris 10/x86.
25210         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25211         for floating-point output.
25212         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25213         directive.
25214         * tests/test-snprintf-posix.h (test_function): Likewise.
25215         * tests/test-sprintf-posix.h (test_function): Likewise.
25216         * tests/test-vasprintf-posix.c (test_function): Likewise.
25217         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25218         * doc/posix-functions/printf.texi: Likewise.
25219         * doc/posix-functions/snprintf.texi: Likewise.
25220         * doc/posix-functions/sprintf.texi: Likewise.
25221         * doc/posix-functions/vfprintf.texi: Likewise.
25222         * doc/posix-functions/vprintf.texi: Likewise.
25223         * doc/posix-functions/vsnprintf.texi: Likewise.
25224         * doc/posix-functions/vsprintf.texi: Likewise.
25225         * doc/glibc-functions/obstack_printf.texi: Likewise.
25226         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25227
25228 2010-11-27  Bruno Haible  <bruno@clisp.org>
25229
25230         Fix link error when module libunistring-optional is in use.
25231         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25232         * modules/striconveha-tests (Makefile.am): Likewise.
25233
25234 2010-11-27  Bruno Haible  <bruno@clisp.org>
25235
25236         regex: Mention link dependencies.
25237         * modules/regex (Link): New section.
25238         * modules/rpmatch (Link): Likewise.
25239         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25240
25241 2010-11-27  Bruno Haible  <bruno@clisp.org>
25242
25243         ftoastr: Fix compilation error on Solaris.
25244         * lib/ftoastr.c: Include <config.h>.
25245
25246 2010-11-27  Bruno Haible  <bruno@clisp.org>
25247
25248         getloadavg: Update documentation.
25249         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25250
25251 2010-11-27  Bruno Haible  <bruno@clisp.org>
25252
25253         sys_socket: Fix test whether the functions are declared.
25254         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25255         not <sys/select.h>.
25256
25257 2010-11-27  Bruno Haible  <bruno@clisp.org>
25258
25259         getpass: Make sure to get system declaration on some platforms.
25260         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25261         gl_USE_SYSTEM_EXTENSIONS.
25262         * modules/getpass (Depends-on): Add extensions.
25263
25264 2010-11-26  Bruno Haible  <bruno@clisp.org>
25265
25266         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25267         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25268         'iconv' module is present.
25269         (ICONV_CONST): New macro.
25270         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25271         ICONV_CONST.
25272         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25273         set ICONV_CONST.
25274         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25275         here.
25276         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25277         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25278         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25279         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25280         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25281         present.
25282
25283 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25284
25285         ftoastr: comment fix
25286         * lib/ftoastr.c: "little" -> "little or no" in comment
25287
25288 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25289
25290         stdint: port to GCC 4.3 + OSX + Octave
25291         On this platform, stdint.h is buggy and defines int64_t to long
25292         long int.  The replacement defined it to long int, causing
25293         problems with C++ style name mangling.  Instead, trust the system
25294         definition if INT64_MAX is defined, and likewise for the unsigned
25295         variant.   Problem reported by Jarno Rajahalme in
25296         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25297         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25298         and don't mess with int64_t and INT64_MAX in this case.
25299         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25300
25301 2010-11-24  Bruno Haible  <bruno@clisp.org>
25302
25303         doc: Corrections regarding MacOS X 10.4 and 10.5.
25304         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25305         MacOS X.
25306         Reported by Simon Josefsson.
25307
25308 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25309
25310         Uninstall ".bin" files installed by relocwrapper.
25311         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25312         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25313         unless it is already there.
25314
25315 2010-11-21  Bruno Haible  <bruno@clisp.org>
25316
25317         Update for NetBSD 5.0.
25318         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25319         NetBSD; the test fails on NetBSD 5.0.
25320         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25321         about NetBSD.
25322
25323 2010-11-21  Bruno Haible  <bruno@clisp.org>
25324
25325         Update for HP-UX 11.23 and HP-UX 11.31.
25326         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25327         HP-UX.
25328
25329 2010-11-21  Bruno Haible  <bruno@clisp.org>
25330
25331         Update for MacOS X 10.5.
25332         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25333         MacOS X; the test fails on MacOS X 10.5.8.
25334         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25335         about MacOS X.
25336
25337 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25338
25339         bootstrap: add bootstrap_sync option.
25340         See discussion at
25341         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25342         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25343         * build-aux/bootstrap: Accept --bootstrap-sync to update
25344         bootstrap if it is not identical to the local gnulib's
25345         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25346         enable this by default.  Accept --no-bootstrap-sync to disable
25347         it.
25348
25349 2010-11-20  Bruno Haible  <bruno@clisp.org>
25350
25351         Ensure that <features.h> is included before __GLIBC__ is tested.
25352         * lib/printf-parse.h: Include <features.h>.
25353         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25354         Reported by Mike Frysinger <vapier@gentoo.org>.
25355
25356         Ensure that <features.h> is included before __GLIBC__ is tested.
25357         * lib/wchar.in.h: Include <features.h>.
25358         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25359         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25360         Reported by Mike Frysinger <vapier@gentoo.org>.
25361
25362         Ensure that <features.h> is included before __GLIBC__ is tested.
25363         * lib/arpa_inet.in.h: Include <features.h>.
25364         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25365         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25366         Reported by Mike Frysinger <vapier@gentoo.org>.
25367
25368         Ensure that <features.h> is included before __GLIBC__ is tested.
25369         * build-aux/link-warning.h: Include <features.h>.
25370         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25371         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25372         Reported by Mike Frysinger <vapier@gentoo.org>.
25373
25374         Ensure that <features.h> is included before __GLIBC__ is tested.
25375         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25376         Reported by Mike Frysinger <vapier@gentoo.org>.
25377
25378 2010-11-20  Bruno Haible  <bruno@clisp.org>
25379
25380         memmem: Fix autoconf test.
25381         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25382
25383 2010-11-20  Bruno Haible  <bruno@clisp.org>
25384
25385         Port to uClibc.
25386         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25387         * lib/fcntl.in.h: Likewise.
25388         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25389         * lib/mbrtowc.c (mbrtowc): Likewise.
25390         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25391         * lib/strerror_r.c: Likewise.
25392         * lib/unistr/u8-strnlen.c: Likewise.
25393         * lib/vasnprintf.c (decimal_point_char): Likewise.
25394         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25395         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25396         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25397         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25398         * tests/test-sigaction.c (handler, main): Likewise.
25399         * lib/freading.h: Treat uClibc like a non-glibc platform.
25400         * lib/freading.c: Likewise.
25401         * lib/gettext.h: Likewise.
25402         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25403         Likewise.
25404         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25405         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25406         * lib/propername.c (proper_name_utf8): Likewise.
25407         * lib/spawn.in.h: Likewise.
25408         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25409         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25410         mem_cd_iconveh_internal): Likewise.
25411         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25412         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25413         strstr, strcasestr): Likewise.
25414         * lib/unicodeio.c (unicode_to_mb): Likewise.
25415         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25416         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25417         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25418         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25419         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25420         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25421         * lib/unistr/u8-stpncpy.c: Likewise.
25422         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25423         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25424         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25425         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25426         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25427         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25428         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25429         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25431         Likewise.
25432         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25433         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25434         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25435         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25436         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25437         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25438         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25439         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25440         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25441         * tests/test-striconveha.c (main): Likewise.
25442         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25443         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25444         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25445         * doc/posix-functions/getline.texi: Likewise.
25446         Reported by Mike Frysinger <vapier@gentoo.org>.
25447
25448 2010-11-20  Bruno Haible  <bruno@clisp.org>
25449
25450         nproc: Fix condition.
25451         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25452         HAVE_PTHREAD_AFFINITY_NP.
25453
25454 2010-11-20  Bruno Haible  <bruno@clisp.org>
25455
25456         Fix a comment.
25457         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25458
25459 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25460
25461         ftoastr: don't assume snprintf
25462         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25463         Implement a subset of snprintf here, by using sprintf safely.
25464         * modules/ftoastr (Depends-on): Remove snprintf.
25465
25466 2010-11-19  Jim Meyering  <meyering@redhat.com>
25467
25468         test-rename.h: fix compilation failure
25469         * tests/test-rename.h (test_rename): Add omitted "}".
25470
25471 2010-11-17  Jim Meyering  <meyering@redhat.com>
25472
25473         maint.mk: add a URL discussing the no-@acronym policy
25474         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25475
25476 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25477
25478         ftoastr: depend on snprintf, improve comments
25479         * lib/ftoastr.c: Also mention Loitsch's draft.
25480         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25481         needed in the current implementation, but it might simplify
25482         speeding up the code later.
25483         * modules/ftoastr: Depend on snprintf; this improves portability.
25484         Suggested by Bruno Haible in the same email.
25485
25486         ftoastr: port to hosts lacking strtof and strtold
25487         Problem reported by Bruno Haible in
25488         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25489         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25490         environment and strtold (and presumably strtof) are not available.
25491         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25492         (configure.ac): Require gl_C99_STRTOLD.
25493
25494 2010-11-18  Bruno Haible  <bruno@clisp.org>
25495
25496         c-strtold: Avoid link error on AIX 7.
25497         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25498         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25499         (gl_C_STRTOLD): Test whether strtold_l exists.
25500         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25501
25502 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25503
25504         intprops: new macro INT_BITS_STRLEN_BOUND
25505         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25506         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25507         not exposed.  Also, it uses a slightly tighter bound than before;
25508         though this makes no practical difference, we might as well be as
25509         tight as we easily can.
25510
25511         ftoastr: new module, for lossless conversion of floats to short strings
25512         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25513         * modules/ftoastr: New files.
25514
25515 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25516
25517         bootstrap: port to Solaris sed
25518         * build-aux/bootstrap (get_version): Port to Solaris sed.
25519         See Ralf Wildenhues's note in
25520         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25521
25522 2010-11-14  Jim Meyering  <meyering@redhat.com>
25523
25524         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25525         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25526         and move definition closer to sole use.
25527
25528 2010-11-13  Jim Meyering  <meyering@redhat.com>
25529
25530         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25531         Now we require at least autoconf-2.59, which means the work-around
25532         is no longer needed.
25533         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25534         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25535         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25536         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25537         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25538
25539 2010-11-13  Bruno Haible  <bruno@clisp.org>
25540
25541         rename, renameat: Avoid test failures at NFS mounted locations.
25542         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25543         functions.
25544         (test_rename): Use assert_nonexistent.
25545         * tests/test-rename.c: Include <dirent.h>.
25546         * tests/test-renameat.c: Likewise.
25547         Reported by Gary V. Vaughan <gary@gnu.org>.
25548
25549         rename, renameat: Document Linux bug with NFS
25550         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25551         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25552         * doc/posix-functions/renameat.texi: Likewise.
25553         Suggested by Eric Blake.
25554
25555 2010-11-13  Bruno Haible  <bruno@clisp.org>
25556
25557         rename test: Add comments.
25558         * tests/test-rename.h (test_rename): Add structure and comments.
25559
25560 2010-11-13  Eric Blake  <eblake@redhat.com>
25561
25562         maintainer-makefile: cover a few more files
25563         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25564         scripts generated within C files, for libvirt.
25565
25566 2010-11-13  Bruno Haible  <bruno@clisp.org>
25567
25568         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25569         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25570         character, return the number of bytes that belong together, not always
25571         1.
25572         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25573         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25574         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25575         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25576         number of bytes of an invalid character.
25577         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25578         (main): Invoke it.
25579         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25580         results.
25581         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25582         malformed byte sequences.
25583         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25584         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25585         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25586         Reported by Ben Pfaff and Paolo Bonzini.
25587
25588 2010-11-13  Bruno Haible  <bruno@clisp.org>
25589
25590         openat: Work around glibc bug with fchownat() and empty file names.
25591         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25592         (gl_FUNC_FCHOWNAT): Invoke it.
25593         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25594         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25595         Reported by Gary V. Vaughan <gary@gnu.org>.
25596
25597 2010-11-13  Bruno Haible  <bruno@clisp.org>
25598
25599         openat: Ensure autoconf macro ordering.
25600         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25601         gl_USE_SYSTEM_EXTENSIONS.
25602         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25603
25604 2010-11-13  Bruno Haible  <bruno@clisp.org>
25605
25606         Update comments.
25607         * lib/unistr/u8-check.c: Update file name in comments.
25608         * lib/unistr/u8-mblen.c: Likewise.
25609         * lib/unistr/u8-prev.c: Likewise.
25610         * lib/unistr/u8-strmblen.c: Likewise.
25611         * lib/unistr/u8-strmbtouc.c: Likewise.
25612
25613 2010-11-13  Jim Meyering  <meyering@redhat.com>
25614
25615         tests: avoid test failure on Solaris 10 due to lack of PATH export
25616         * tests/test-update-copyright.sh: Don't forget to export PATH.
25617
25618         init.sh: ensure that IFS is defined, just in case...
25619         * tests/init.sh (setup_): Ensure that IFS is defined,
25620         so that saving and restoring it works as expected.  This
25621         appears to be useful at least for an old version of dash
25622         from a long time ago (RH 6).  See here for details:
25623         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25624
25625         maint.mk: tighten "test a == b" check
25626         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25627         test to files that contain something like #!/bin/sh.
25628         Without this, coreutils would get two false positives in
25629         the comments of C source files.
25630
25631 2010-11-12  Eric Blake  <eblake@redhat.com>
25632
25633         bootstrap: fix typo in previous attempt
25634         * build-aux/bootstrap (buildreq): Correct the grouping.
25635         Reported by Paul Eggert.
25636
25637         maintainer-makefile: prohibit test x == x
25638         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25639         Based on a report by Matthias Bolte.
25640
25641         bootstrap: allow FreeBSD gzip
25642         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25643         which has no '.' and goes to stderr.
25644         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25645         Reported by Matthias Bolte.
25646
25647         maintainer-makefile: check for i18n setup
25648         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25649         will likely work.
25650
25651 2010-11-12  Bruno Haible  <bruno@clisp.org>
25652
25653         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25654         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25655         * lib/nanosleep.c (nanosleep): Likewise.
25656
25657 2010-11-11  Bruno Haible  <bruno@clisp.org>
25658
25659         fcntl-h: Fix for use of C++ on glibc systems.
25660         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25661         also on glibc systems in C++ mode.
25662         Reported by Gary V. Vaughan <gary@gnu.org>.
25663
25664 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25665
25666         mknod: avoid false failure with dash
25667         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25668
25669 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25670
25671         unlink: Fix "is it should" typo in diagnostic.
25672         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25673         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25674
25675 2010-11-11  Bruno Haible  <bruno@clisp.org>
25676
25677         Tests for module 'strerror_r-posix'.
25678         * modules/strerror_r-posix-tests: New file.
25679         * tests/test-strerror_r.c: New file.
25680         * tests/test-string-c++.cc: Check the signature of strerror_r.
25681
25682         New module 'strerror_r-posix'.
25683         * lib/string.in.h (strerror_r): New declaration.
25684         * lib/strerror_r.c: New file.
25685         * m4/strerror_r.m4: New file.
25686         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25687         of strerror_r.
25688         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25689         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25690         * modules/strerror_r-posix: New file.
25691         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25692         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25693         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25694         portability problems.
25695
25696 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25697
25698         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25699         line is also considered for output. Quoted function name in shell
25700         command, so temporary files for functions like MyClass::operator()
25701         are removed correctly without errors.
25702
25703 2010-11-09  Bruno Haible  <bruno@clisp.org>
25704
25705         * doc/posix-functions/strerror.texi: List more failing platforms.
25706
25707         * doc/posix-functions/strerror.texi: Add a comment.
25708
25709 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25710
25711         fdopendir: fix bug on MacOS X when low on file descriptors
25712
25713         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25714         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25715         All callers changed.
25716         (fdopendir): Invoke save_cwd at the top level, not after using
25717         multiple dup() calls to use up file descriptors.  Then retry
25718         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25719         less than the maximum number of open file descriptors, because
25720         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25721         on Mac OS X 10.6.4 for tar 1.24
25722         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25723         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25724         and for tar 1.25
25725         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25726
25727 2010-11-07  Bruno Haible  <bruno@clisp.org>
25728
25729         vasnprintf: Support I flag on glibc systems.
25730         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25731         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25732         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25733         snprintf function.
25734         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25735         glibc systems.
25736         * tests/test-vasnprintf-posix3.c: New file.
25737         * modules/vasnprintf-posix-tests (Files): Add it.
25738         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25739
25740 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25741
25742         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25743         * MODULES.html.sh: For compiler warnings, use name
25744         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25745
25746 2010-11-05  Eric Blake  <eblake@redhat.com>
25747
25748         ceil, floor: avoid spurious failure with icc
25749         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25750         [denormals-as-zero] when optimizing without -mieee-fp option.
25751         * tests/test-floorf2.c (floorf_reference): Likewise.
25752         * tests/test-ceilf1.c (dummy): New function.
25753         (main): Use it to outsmart icc's optimization.
25754         * tests/test-floorf1.c (dummy, main): Likewise.
25755
25756         tests: require working signbit
25757         * modules/ceilf-tests (Depends-on): Add signbit.
25758         * modules/ceill-tests (Depends-on): Likewise.
25759         * modules/floorf-tests (Depends-on): Likewise.
25760         * modules/floorl-tests (Depends-on): Likewise.
25761         * modules/round-tests (Depends-on): Likewise.
25762         * modules/roundf-tests (Depends-on): Likewise.
25763         * modules/roundl-tests (Depends-on): Likewise.
25764         * modules/trunc-tests (Depends-on): Likewise.
25765         * modules/truncf-tests (Depends-on): Likewise.
25766         * modules/truncl-tests (Depends-on): Likewise.
25767
25768         strtod: work around icc bug
25769         * lib/strtod.c (minus_zero): Define to working value.
25770         (strtod): Use it to avoid icc bug.
25771
25772         copysign: enhance tests
25773         * modules/copysign-tests (Files): Add minus-zero.h.
25774         * tests/test-copysign.c (main): Also test zeros.
25775
25776 2010-11-04  Eric Blake  <eblake@redhat.com>
25777
25778         ceil, floor, round, trunc: enhance tests of -0
25779         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25780         * tests/test-ceill.c (main): Likewise.
25781         * tests/test-floorf1.c (main): Likewise.
25782         * tests/test-floorl.c (main): Likewise.
25783         * tests/test-round1.c (main): Likewise.
25784         * tests/test-roundf1.c (main): Likewise.
25785         * tests/test-roundl.c (main): Likewise.
25786         * tests/test-trunc1.c (main): Likewise.
25787         * tests/test-truncf1.c (main): Likewise.
25788         * tests/test-truncl.c (main): Likewise.
25789
25790 2010-11-04  Eric Blake  <eblake@redhat.com>
25791
25792         frexp, tests: work around ICC bug with -zero
25793         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25794         works with more compilers.
25795         * tests/minus-zero.h: New file.
25796         * modules/ceilf-tests (Files): Include it.
25797         * modules/ceill-tests (Files): Likewise.
25798         * modules/floorf-tests (Files): Likewise.
25799         * modules/floorl-tests (Files): Likewise.
25800         * modules/frexp-nolibm-tests (Files): Likewise.
25801         * modules/frexp-tests (Files): Likewise.
25802         * modules/frexpl-nolibm-tests (Files): Likewise.
25803         * modules/frexpl-tests (Files): Likewise.
25804         * modules/isnan-tests (Files): Likewise.
25805         * modules/isnand-nolibm-tests (Files): Likewise.
25806         * modules/isnand-tests (Files): Likewise.
25807         * modules/isnanf-nolibm-tests (Files): Likewise.
25808         * modules/isnanf-tests (Files): Likewise.
25809         * modules/isnanl-nolibm-tests (Files): Likewise.
25810         * modules/isnanl-tests (Files): Likewise.
25811         * modules/round-tests (Files): Likewise.
25812         * modules/roundf-tests (Files): Likewise.
25813         * modules/roundl-tests (Files): Likewise.
25814         * modules/ldexpl-tests (Files): Likewise.
25815         * modules/signbit-tests (Files): Likewise.
25816         * modules/snprintf-posix-tests (Files): Likewise.
25817         * modules/sprintf-posix-tests (Files): Likewise.
25818         * modules/strtod-tests (Files): Likewise.
25819         * modules/trunc-tests (Files): Likewise.
25820         * modules/truncf-tests (Files): Likewise.
25821         * modules/truncl-tests (Files): Likewise.
25822         * modules/vsnprintf-posix-tests (Files): Likewise.
25823         * modules/vsprintf-posix-tests (Files): Likewise.
25824         * modules/vasnprintf-posix-tests (Files): Likewise.
25825         * modules/vasprintf-posix-tests (Files): Likewise.
25826         * tests/test-ceilf1.c (main): Use it.
25827         * tests/test-ceill.c (main): Likewise.
25828         * tests/test-floorf1.c (main): Likewise.
25829         * tests/test-floorl.c (main): Likewise.
25830         * tests/test-frexp.c (main): Likewise.
25831         * tests/test-frexpl.c (main): Likewise.
25832         * tests/test-isnan.c (main): Likewise.
25833         * tests/test-isnand.h (main): Likewise.
25834         * tests/test-isnanf.h (main): Likewise.
25835         * tests/test-isnanl.h (main): Likewise.
25836         * tests/test-ldexpl.c (main): Likewise.
25837         * tests/test-round.c (main): Likewise.
25838         * tests/test-roundf.c (main): Likewise.
25839         * tests/test-roundl.c (main): Likewise.
25840         * tests/test-signbit.c (test_signbitf, test_signbitd)
25841         (test_signbitl): Likewise.
25842         * tests/test-snprintf-posix.h (test_function): Likewise.
25843         * tests/test-sprintf-posix.h (test_function): Likewise.
25844         * tests/test-strtod.c (main): Likewise.
25845         * tests/test-trunc1.c (main): Likewise.
25846         * tests/test-truncf1.c (main): Likewise.
25847         * tests/test-truncl.c (main): Likewise.
25848
25849         isnanl: work around icc bug
25850         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25851
25852 2010-11-03  Eric Blake  <eblake@redhat.com>
25853
25854         tests: fix compiler warnings
25855         * tests/test-getopt.h (test_getopt): Fix condition.
25856         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25857         * tests/test-pipe2.c (main): Likewise.
25858         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25859
25860         utimens: fix broken m4 test
25861         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25862
25863 2010-10-28  Bruno Haible  <bruno@clisp.org>
25864
25865         posix_spawn*, getdtablesize: Relax license.
25866         * modules/posix_spawn (License): Change to LGPLv2+.
25867         * modules/posix_spawnp (License): Likewise.
25868         * modules/posix_spawn-internal (License): Likewise.
25869         * modules/posix_spawnattr_init (License): Likewise.
25870         * modules/posix_spawnattr_getflags (License): Likewise.
25871         * modules/posix_spawnattr_setflags (License): Likewise.
25872         * modules/posix_spawnattr_getpgroup (License): Likewise.
25873         * modules/posix_spawnattr_setpgroup (License): Likewise.
25874         * modules/posix_spawnattr_getschedparam (License): Likewise.
25875         * modules/posix_spawnattr_setschedparam (License): Likewise.
25876         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25877         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25878         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25879         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25880         * modules/posix_spawnattr_getsigmask (License): Likewise.
25881         * modules/posix_spawnattr_setsigmask (License): Likewise.
25882         * modules/posix_spawnattr_destroy (License): Likewise.
25883         * modules/posix_spawn_file_actions_init (License): Likewise.
25884         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25885         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25886         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25887         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25888         * modules/getdtablesize (License): Likewise.
25889         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25890
25891 2010-10-26  Bruno Haible  <bruno@clisp.org>
25892
25893         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25894         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25895         Cygwin and mingw.
25896         Suggested by Eric Blake.
25897
25898 2010-10-26  Bruno Haible  <bruno@clisp.org>
25899
25900         stdio: Work around compilation error due to renameat() on Solaris 10.
25901         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25902         * lib/renameat.c: Don't include <unistd.h> here.
25903         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25904         Reported by Paul Eggert and Eric Blake.
25905
25906 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25907
25908         renameat: port to Solaris 10, which declares renameat in unistd.h
25909
25910         * lib/renameat.c: Include unistd.h before stdio.h, because
25911         Solaris 10 declares renameat in unistd.h.  Problem encountered
25912         when building GNU tar 1.24 on Solaris 10.
25913
25914 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25915
25916         fdopendir: fix C89 compilation
25917         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25918         compilers.
25919
25920 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25921
25922         inttostr: simplify by removing unnecessary redundancy
25923         * lib/anytostr.c: Don't include verify.h.
25924         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25925         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25926         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25927         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25928         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25929         Likewise.
25930         * modules/inttostr (Depends-on): Remove 'verify'.
25931
25932 2010-10-23  Bruno Haible  <bruno@clisp.org>
25933
25934         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25935         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25936         Reported by Eric Blake.
25937
25938 2010-10-23  Bruno Haible  <bruno@clisp.org>
25939
25940         Tests: Fix LOCALE_JA on MirBSD 10.
25941         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25942         to an UTF-8 locale.
25943         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25944         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25945         Reported by Eric Blake.
25946
25947 2010-10-21  Bruno Haible  <bruno@clisp.org>
25948
25949         nl_langinfo test: Avoid test failure on NetBSD 5.
25950         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25951         Reported by Eric Blake.
25952
25953 2010-10-21  Eric Blake  <eblake@redhat.com>
25954
25955         c-stack: work around libsigsegv 2.8 bug
25956         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25957         overflow on at least PowerPC64.
25958
25959 2010-10-17  Bruno Haible  <bruno@clisp.org>
25960
25961         userspec: Drop redundant file.
25962         * modules/userspec (Files): Remove lib/inttostr.h.
25963
25964 2010-10-17  Bruno Haible  <bruno@clisp.org>
25965
25966         nl_langinfo tests: Silence some warnings.
25967         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25968         Reported by Jim Meyering.
25969
25970 2010-10-17  Bruno Haible  <bruno@clisp.org>
25971
25972         Make use of GCC's attribute __alloc_size__.
25973         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25974         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25975         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25976         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25977         __alloc_size__.
25978         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25979         Suggested by Jim Meyering.
25980
25981 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25982
25983         bootstrap: anchor .gitignore entries.
25984         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25985         with...
25986         (insert_vc_ignore): ... this new function, which prepends `/' to
25987         all .gitignore entries before passing them to
25988         insert_sorted_if_absent.
25989
25990 2010-10-16  Bruno Haible  <bruno@clisp.org>
25991
25992         nextafter: Fix configure check.
25993         * modules/nextafter (configure.ac): Correct expected prototype.
25994
25995 2010-10-16  Bruno Haible  <bruno@clisp.org>
25996
25997         termios: Update documentation.
25998         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25999
26000 2010-10-16  Bruno Haible  <bruno@clisp.org>
26001
26002         tests: Make them compile with TinyCC.
26003         * tests/test-strstr.c (main): Remove parentheses around array
26004         initializer.
26005
26006 2010-10-15  Eric Blake  <eblake@redhat.com>
26007
26008         ignore-value: make header idempotent
26009         * lib/ignore-value.h: Add double-inclusion guards.
26010         Reported by Stefan Berger.
26011
26012 2010-10-15  Jim Meyering  <meyering@redhat.com>
26013
26014         GNUmakefile: handle "stable" target, not "major"
26015         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
26016         lists in maint.mk and announce-gen.  Without this, "make stable"
26017         would fail to ensure that $(VERSION) is up to date.
26018
26019 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
26020
26021         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
26022         & co.
26023
26024 2010-10-14  Bruno Haible  <bruno@clisp.org>
26025
26026         vasnprintf: Don't set errno to 0.
26027         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
26028         block that sets it to 0.
26029         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
26030
26031 2010-10-14  Bruno Haible  <bruno@clisp.org>
26032
26033         socketlib: Fix.
26034         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
26035         gl_PREREQ_SYS_H_WINSOCK2.
26036         Reported by Ian Beckwith <ianb@erislabs.net>.
26037
26038 2010-10-13  Jim Meyering  <meyering@redhat.com>
26039
26040         test-select-stdin.c: avoid warn_unused_result warnings
26041         * tests/test-select-stdin.c: Include "macros.h".
26042         ASSERT that read and fflush succeed.
26043
26044 2010-10-13  Jim Meyering  <meyering@redhat.com>
26045
26046         git-version-gen: do require git-VC'd files in cwd
26047         * build-aux/git-version-gen: Reject a git version string
26048         if there are no commits associated with the current directory.
26049         This avoids an unlikely false-positive (unrelated dir whose parent
26050         repository also contains a tag matching v*), as pointed out
26051         by Giuseppe Scrivano in
26052         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
26053
26054 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26055
26056         argv-iter: omit nonconforming declaration
26057         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
26058         enum arg_iter_err declaration, which doesn't conform to C99.
26059         Solaris 10 cc warns about this.
26060
26061 2010-10-13  Eric Blake  <eblake@redhat.com>
26062
26063         termios: fix compilation on mingw
26064         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
26065         (gl_TERMIOS_H): Adjust it on mingw.
26066         * modules/termios (Makefile.am): Substitute new key.
26067         * lib/termios.in.h (includes): Make include_next conditional.
26068         * doc/posix-headers/termios.texi (termios.h): Update
26069         documentation.
26070         Reported by Daniel P. Berrange.
26071
26072 2010-10-13  Jim Meyering  <meyering@redhat.com>
26073
26074         git-version-gen: don't require that .git/ be in the current dir
26075         * build-aux/git-version-gen: Adjust this script so that it works
26076         when run from any working directory beneath the top-level .git/-
26077         containing directory.  Inspired by a patch from Giuseppe Scrivano,
26078         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
26079
26080         test-select: avoid warn_unused_result warnings
26081         * tests/test-select.c: Include "macros.h".
26082         ASSERT that each call to read, write, and pipe succeeds.
26083         While not technically required, also check each "close".
26084         * modules/select-tests (Files): Add tests/macros.h.
26085
26086         test-symlinkat: remove declaration of unused local
26087         * tests/test-symlinkat.c (main): Remove unused local, "buf".
26088
26089         test-inttostr: avoid shadowing warnings
26090         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
26091         and use malloc rather than the stack for the same reason as
26092         mentioned in the comment justifying the other allocation.
26093
26094 2010-10-11  Bruno Haible  <bruno@clisp.org>
26095
26096         stdlib: Allow multiple gnulib generated replacements to coexist.
26097         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
26098         Reported by Sam Steingold <sds@gnu.org>.
26099
26100 2010-10-11  Jim Meyering  <meyering@redhat.com>
26101
26102         fix a documentation typo
26103         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
26104
26105 2010-10-11  Eric Blake  <eblake@redhat.com>
26106
26107         futimens: work around Solaris 11 bug
26108         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
26109         * tests/test-futimens.h (test_futimens): Enhance, rather than
26110         weaken test.
26111         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26112
26113 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26114
26115         Indentation.
26116         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
26117         higher-level operators more to the left.
26118
26119 2010-10-11  Jim Meyering  <meyering@redhat.com>
26120
26121         test-futimens: avoid unwarranted test failure on Solaris 5.11
26122         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
26123         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
26124         because it tries to dereference the NULL name argument.
26125
26126 2010-10-11  Bruno Haible  <bruno@clisp.org>
26127
26128         Indentation.
26129         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26130         indentation.
26131
26132 2010-10-11  Jim Meyering  <meyering@redhat.com>
26133
26134         spawn.in.h: make indentation consistent with parentheses
26135         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26136         Make indentation consistent with parentheses.
26137
26138 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26139
26140         Fix mismatched parens in previous commit
26141         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26142         parens.
26143
26144 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26145
26146         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26147
26148         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26149         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26150         * lib/malloca.c: Include "verify.h".
26151         (verify1): Remove, replacing with a verify call.
26152         * lib/relocwrapper.c (verify1): Likewise.
26153         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26154         Likewise.
26155         * modules/malloca (Depends-on): Add 'verify'.
26156         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26157         * modules/vasnprintf (Depends-on): Add 'verify'.
26158         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26159         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26160         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26161         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26162         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26163         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26164         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26165
26166         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26167
26168         Formerly the style was sometimes 2*X - 1, because the C standard
26169         was wrongly thought to disallow ?: in integral constant expressions.
26170         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26171         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26172         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26173         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26174         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26175         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26176         verify that time_t cannot be floating.
26177
26178 2010-10-08  Eric Blake  <eblake@redhat.com>
26179
26180         time: enforce recent POSIX ruling that time_t is integral
26181         * lib/time.in.h (__time_t_must_be_integral): Detect any
26182         problematic systems, allowing the rest of gnulib to assume POSIX.
26183
26184 2010-10-08  Jim Meyering  <meyering@redhat.com>
26185
26186         fdopendir: fix a bug on systems lacking openat and /proc support
26187         OpenBSD 4.7 is one such system.  The most noticeable effect was
26188         failure of any application making nontrivial use of fts: rm, du,
26189         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26190           ./rm: traversal failed: `a': Bad file descriptor
26191         Debugging that, you see that even though FD 6 was closed just
26192         prior to the opendir call in fd_clone_opendir, its resulting
26193         dir->dd_fd was 8, rather than the expected value of 6:
26194
26195         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26196         93                close (fd);
26197         (gdb) n
26198         94                dir = fd_clone_opendir (dupfd);
26199         (gdb) n
26200         95                saved_errno = errno;
26201         (gdb) p dir->dd_fd
26202         $11 = 8
26203
26204         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26205         The problem is that on OpenBSD, fd_clone_opendir has to resort
26206         to using the old-style save/restore CWD mechanism, due to its
26207         lack of openat/proc support, and *that* would steal the FD (6)
26208         that opendir was supposed to use.
26209
26210         The fix is to squirrel away the desired FD so that save_cwd uses a
26211         different one, and then free the dest FD right before calling opendir.
26212         That guarantees opendir will use the required file descriptor.
26213
26214         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26215
26216 2010-10-08  Bruno Haible  <bruno@clisp.org>
26217
26218         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26219         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26220
26221 2010-10-08  Bruno Haible  <bruno@clisp.org>
26222
26223         nanosleep: Make replacement POSIX compliant.
26224         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26225         is out of range.
26226         Reported by Jim Meyering.
26227
26228 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26229
26230         bootstrap: add hook for altering gnulib.mk, for Bison
26231         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26232         the Bison bootstrapping process can rewrite file names and variables
26233         in this file before later parts of 'bootstrap' use the file.
26234         Bison wants to include lib/gnulib.mk from the top-level makefile,
26235         so it needs the file names in this file to be relative to the top
26236         level, not relative to lib; plus it needs variable names to be
26237         rewritten.
26238         (slurp): Use the new function.
26239
26240         bootstrap: reformat for readability
26241         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26242
26243 2010-10-08  Eric Blake  <eblake@redhat.com>
26244
26245         docs: update cygwin progress
26246         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26247         1.7.7.
26248         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26249         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26250         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26251         * doc/posix-functions/carg.texi (carg): Likewise.
26252         * doc/posix-functions/cargf.texi (cargf): Likewise.
26253         * doc/posix-functions/casin.texi (casin): Likewise.
26254         * doc/posix-functions/casinf.texi (casinf): Likewise.
26255         * doc/posix-functions/casinh.texi (casinh): Likewise.
26256         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26257         * doc/posix-functions/catan.texi (catan): Likewise.
26258         * doc/posix-functions/catanf.texi (catanf): Likewise.
26259         * doc/posix-functions/catanh.texi (catanh): Likewise.
26260         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26261         * doc/posix-functions/ccos.texi (ccos): Likewise.
26262         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26263         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26264         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26265         * doc/posix-functions/cexp.texi (cexp): Likewise.
26266         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26267         * doc/posix-functions/cimag.texi (cimag): Likewise.
26268         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26269         * doc/posix-functions/clog.texi (clog): Likewise.
26270         * doc/posix-functions/clogf.texi (clogf): Likewise.
26271         * doc/posix-functions/conj.texi (conj): Likewise.
26272         * doc/posix-functions/conjf.texi (conjf): Likewise.
26273         * doc/posix-functions/cpow.texi (cpow): Likewise.
26274         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26275         * doc/posix-functions/cproj.texi (cproj): Likewise.
26276         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26277         * doc/posix-functions/creal.texi (creal): Likewise.
26278         * doc/posix-functions/crealf.texi (crealf): Likewise.
26279         * doc/posix-functions/csin.texi (csin): Likewise.
26280         * doc/posix-functions/csinf.texi (csinf): Likewise.
26281         * doc/posix-functions/csinh.texi (csinh): Likewise.
26282         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26283         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26284         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26285         * doc/posix-functions/ctan.texi (ctan): Likewise.
26286         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26287         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26288         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26289         * doc/posix-headers/complex.texi (complex.h): Likewise.
26290
26291 2010-10-07  Jim Meyering  <meyering@redhat.com>
26292
26293         parse-datetime: avoid compilation failure on OpenBSD 4.7
26294         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26295         This works around a compilation failure on OpenBSD 4.7:
26296         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26297
26298 2010-10-07  Eric Blake  <eblake@redhat.com>
26299
26300         docs: update cygwin progress
26301         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26302         1.7.6.
26303         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26304         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26305         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26306         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26307         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26308         Likewise.
26309         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26310         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26311         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26312         Likewise.
26313         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26314         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26315         Likewise.
26316         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26317         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26318         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26319         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26320         Likewise.
26321         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26322         Likewise.
26323         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26324
26325         docs: update parse-datetime history
26326         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26327         documentation of this function's history and alternatives.
26328
26329         cygwin: use more robust version check
26330         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26331         exclude an eventual cygwin 1.9.1.
26332         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26333         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26334         (gl_FUNC_STRCASESTR): Likewise.
26335         Reported by Bruno Haible.
26336
26337 2010-10-06  Bruno Haible  <bruno@clisp.org>
26338
26339         string, sys_select: Avoid #including large headers unless necessary.
26340         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26341         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26342         OSF/1, BeOS, Haiku.
26343         Reported by Jim Meyering.
26344
26345 2010-10-05  Eric Blake  <eblake@redhat.com>
26346
26347         memmem, strstr, strcasestr: fix bug with long periodic needle
26348         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26349         periodic needle having false positive.
26350         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26351         and cygwin 1.7.7.
26352         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26354         (gl_FUNC_STRCASESTR): Likewise.
26355         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26356         * tests/test-memmem.c (main): Expose the bug.
26357         * tests/test-strcasestr.c (main): Likewise.
26358         * tests/test-strstr.c (main): Likewise.
26359         * tests/test-c-strcasestr.c (main): Likewise.
26360         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26361         * doc/posix-functions/strstr.texi (strstr): Likewise.
26362         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26363         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26364
26365 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26366
26367         parse-datetime: do some more renaming
26368         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26369         parse_datetime, not get_date.  Mention the renaming.
26370         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26371         in comments.
26372         * m4/bison.m4: Likewise.
26373
26374 2010-10-05  Eric Blake  <eblake@redhat.com>
26375
26376         parse-datetime: better name than get_date
26377         * NEWS: Reword the deprecation notice.
26378         * modules/get_date: Rename to modules/parse-datetime.
26379         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26380         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26381         * lib/get_date.y: Rename to lib/parse-datetime.y.
26382         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26383         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26384         * doc/getdate.texi: Provide fallback wrapper.
26385         * lib/getdate.h: Move guts, and wrap...
26386         * lib/parse-datetime.h: ...new file.
26387         * lib/parse-datetime.y (get_date): Rename...
26388         (parse_datetime): ...to this.
26389         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26390         (gl_PARSE_DATETIME): ...to this.
26391         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26392         documentation.
26393         * modules/getdate (Files): Provide fallback docs and header.
26394         (Notice, Depends-on): Update references.
26395         * tests/test-parse-datetime.c: Likewise.
26396         * DEPENDENCIES: Likewise.
26397         * MODULES.html.sh (Date and time <time.h>): Likewise.
26398         * doc/parse-datetime.texi (Date input formats)
26399         (Authors of parse_datetime): Likewise.
26400         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26401         (Include): Likewise.
26402         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26403         * gnulib-tool: Likewise.
26404         * m4/bison.m4 (gl_BISON): Likewise.
26405         Suggested by Bruno Haible.
26406
26407 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26408
26409         more ports to Solaris tr, which needs [] around ranges
26410         * gnulib-tool: Solaris tr needs [] around ranges.
26411         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26412         * tests/test-pipe-filter-gi1.c (main): Likewise.
26413         * tests/test-pipe-filter-ii1.c (main): Likewise.
26414
26415 2010-10-05  Eric Blake  <eblake@redhat.com>
26416
26417         bootstrap: fix Solaris regression
26418         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26419         around ranges.
26420         Reported by Pádraig Brady.
26421
26422         bootstrap: work with pkg-config
26423         * build-aux/bootstrap (check_versions): Also transliterate - in
26424         prerequisite name.
26425         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26426         prerequisites that were already found, to avoid confusion.
26427         Reported by Justin Clift.
26428
26429         faccessat: remove unused wrappers
26430         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26431         presence of these wrappers dragged in -lgen on Solaris.
26432         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26433
26434 2010-10-05  Jim Meyering  <meyering@redhat.com>
26435
26436         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26437         * Makefile (sc_pragma_columns): New syntax-check rule.
26438
26439 2010-10-04  Bruno Haible  <bruno@clisp.org>
26440
26441         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26442         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26443         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26444         Reported by Bruce Korb and Eric Blake.
26445
26446 2010-10-04  Bruno Haible  <bruno@clisp.org>
26447
26448         threadlib: Make option --with-libpth-prefix work.
26449         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26450         use $LIBPTH, not just -lpth.
26451
26452 2010-10-04  Bruno Haible  <bruno@clisp.org>
26453
26454         Avoid line length limitation from HP NonStop system header files.
26455         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26456         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26457         * lib/ctype.in.h: Likewise.
26458         * lib/dirent.in.h: Likewise.
26459         * lib/errno.in.h: Likewise.
26460         * lib/fcntl.in.h: Likewise.
26461         * lib/float.in.h: Likewise.
26462         * lib/getopt.in.h: Likewise.
26463         * lib/iconv.in.h: Likewise.
26464         * lib/inttypes.in.h: Likewise.
26465         * lib/langinfo.in.h: Likewise.
26466         * lib/locale.in.h: Likewise.
26467         * lib/math.in.h: Likewise.
26468         * lib/netdb.in.h: Likewise.
26469         * lib/netinet_in.in.h: Likewise.
26470         * lib/poll.in.h: Likewise.
26471         * lib/pthread.in.h: Likewise.
26472         * lib/pty.in.h: Likewise.
26473         * lib/sched.in.h: Likewise.
26474         * lib/se-selinux.in.h: Likewise.
26475         * lib/search.in.h: Likewise.
26476         * lib/signal.in.h: Likewise.
26477         * lib/spawn.in.h: Likewise.
26478         * lib/stdarg.in.h: Likewise.
26479         * lib/stddef.in.h: Likewise.
26480         * lib/stdint.in.h: Likewise.
26481         * lib/stdio.in.h: Likewise.
26482         * lib/stdlib.in.h: Likewise.
26483         * lib/string.in.h: Likewise.
26484         * lib/strings.in.h: Likewise.
26485         * lib/sys_file.in.h: Likewise.
26486         * lib/sys_ioctl.in.h: Likewise.
26487         * lib/sys_select.in.h: Likewise.
26488         * lib/sys_socket.in.h: Likewise.
26489         * lib/sys_stat.in.h: Likewise.
26490         * lib/sys_time.in.h: Likewise.
26491         * lib/sys_times.in.h: Likewise.
26492         * lib/sys_utsname.in.h: Likewise.
26493         * lib/sys_wait.in.h: Likewise.
26494         * lib/sysexits.in.h: Likewise.
26495         * lib/termios.in.h: Likewise.
26496         * lib/time.in.h: Likewise.
26497         * lib/unistd.in.h: Likewise.
26498         * lib/wchar.in.h: Likewise.
26499         * lib/wctype.in.h: Likewise.
26500         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26501         * modules/ctype (Makefile.am): Likewise.
26502         * modules/dirent (Makefile.am): Likewise.
26503         * modules/errno (Makefile.am): Likewise.
26504         * modules/fcntl-h (Makefile.am): Likewise.
26505         * modules/float (Makefile.am): Likewise.
26506         * modules/getopt-posix (Makefile.am): Likewise.
26507         * modules/iconv-h (Makefile.am): Likewise.
26508         * modules/inttypes (Makefile.am): Likewise.
26509         * modules/langinfo (Makefile.am): Likewise.
26510         * modules/locale (Makefile.am): Likewise.
26511         * modules/math (Makefile.am): Likewise.
26512         * modules/netdb (Makefile.am): Likewise.
26513         * modules/netinet_in (Makefile.am): Likewise.
26514         * modules/poll-h (Makefile.am): Likewise.
26515         * modules/pthread (Makefile.am): Likewise.
26516         * modules/pty (Makefile.am): Likewise.
26517         * modules/sched (Makefile.am): Likewise.
26518         * modules/search (Makefile.am): Likewise.
26519         * modules/selinux-h (Makefile.am): Likewise.
26520         * modules/signal (Makefile.am): Likewise.
26521         * modules/spawn (Makefile.am): Likewise.
26522         * modules/stdarg (Makefile.am): Likewise.
26523         * modules/stddef (Makefile.am): Likewise.
26524         * modules/stdint (Makefile.am): Likewise.
26525         * modules/stdio (Makefile.am): Likewise.
26526         * modules/stdlib (Makefile.am): Likewise.
26527         * modules/string (Makefile.am): Likewise.
26528         * modules/strings (Makefile.am): Likewise.
26529         * modules/sys_file (Makefile.am): Likewise.
26530         * modules/sys_ioctl (Makefile.am): Likewise.
26531         * modules/sys_select (Makefile.am): Likewise.
26532         * modules/sys_socket (Makefile.am): Likewise.
26533         * modules/sys_stat (Makefile.am): Likewise.
26534         * modules/sys_time (Makefile.am): Likewise.
26535         * modules/sys_times (Makefile.am): Likewise.
26536         * modules/sys_utsname (Makefile.am): Likewise.
26537         * modules/sys_wait (Makefile.am): Likewise.
26538         * modules/sysexits (Makefile.am): Likewise.
26539         * modules/termios (Makefile.am): Likewise.
26540         * modules/time (Makefile.am): Likewise.
26541         * modules/unistd (Makefile.am): Likewise.
26542         * modules/wchar (Makefile.am): Likewise.
26543         * modules/wctype (Makefile.am): Likewise.
26544
26545 2010-10-04  Bruno Haible  <bruno@clisp.org>
26546
26547         read-file tests: Avoid a test failure on NonStop Kernel.
26548         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26549         a regular file.
26550         Reported by Joachim Schmitz <schmitz@hp.com>.
26551
26552 2010-10-03  Bruno Haible  <bruno@clisp.org>
26553
26554         gnulib-tool: Fixes for --create-testdir with --libtool.
26555         * gnulib-tool (func_get_automake_snippet): Don't augment
26556         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26557         an executable.
26558         (func_create_testdir): Handle module 'alloca' like func_import.
26559         Reported by Bruce Korb <bruce.korb@gmail.com>.
26560
26561 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26562
26563         Avoid some lines longer than 80 characters.
26564         * lib/stdint.in.h: Break long comment lines.
26565         * lib/math.in.h: Likewise.
26566         (_GL_NUM_UINT_WORDS): New macro, for readability.
26567         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26568         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26569         * lib/stdlib.in.h: Likewise.
26570         * lib/spawn.in.h: Likewise.
26571         * lib/sys_socket.in.h: Update an URL.
26572         * lib/sys_stat.in.h: Break long line.
26573
26574 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26575
26576         Improve pmccabe2html.
26577         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26578         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26579         when the sources change. Remove the line in the HTML about "Used
26580         ranges" (which implied that there might be other unused ranges),
26581         rename "Resume" to "Summary" (easier to understand for more users).
26582         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26583         styles, and some unnecessary blank lines.
26584
26585 2010-10-03  Bruno Haible  <bruno@clisp.org>
26586             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26587
26588         acl: Add support for ACLs on NonStop Kernel.
26589         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26590         Check whether the function aclsort() exists.
26591         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26592         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26593         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26594         (acl_nontrivial [HAVE_ACLSORT]: New function.
26595         (file_has_acl): Implement for NonStop Kernel.
26596         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26597         (qset_acl): Implement for NonStop Kernel.
26598         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26599         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26600         (main): Implement for NonStop Kernel.
26601         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26602         Kernel. Handle this flavor.
26603         * tests/test-set-mode-acl.sh: Likewise.
26604         * tests/test-copy-acl.sh: Likewise.
26605         * tests/test-copy-file.sh: Likewise.
26606
26607 2010-10-03  Bruno Haible  <bruno@clisp.org>
26608
26609         Info about ACLs on NonStop Kernel.
26610         * doc/acl-resources.txt: Add info about NonStop Kernel.
26611         References by Joachim Schmitz <schmitz@hp.com>.
26612
26613 2010-10-02  Bruno Haible  <bruno@clisp.org>
26614
26615         Define missing EDQUOT on NonStop Kernel.
26616         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26617         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26618         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26619         missing.
26620         * doc/posix-headers/errno.texi: Mention the NSK bug.
26621         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26622         Reported by Joachim Schmitz <schmitz@hp.com>.
26623
26624 2010-10-02  Bruno Haible  <bruno@clisp.org>
26625
26626         Update doc for POSIX:2008.
26627         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26628         Update URL of POSIX specification.
26629
26630 2010-10-02  Bruno Haible  <bruno@clisp.org>
26631
26632         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26633         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26634         from gnulib, not from Automake.
26635
26636 2010-10-02  Bruno Haible  <bruno@clisp.org>
26637
26638         New module 'system-posix'.
26639         * modules/system-posix: New file.
26640         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26641         module is present.
26642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26643         GNULIB_SYSTEM_POSIX.
26644         * modules/stdlib (Depends-on): Remove sys_wait.
26645         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26646         * doc/posix-functions/system.texi: Mention the new module.
26647         * doc/posix-headers/stdlib.texi: Likewise.
26648         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26649         define test_sys_wait_macros to a no-op.
26650         Reported by Sam Steingold <sds@gnu.org>.
26651
26652 2010-09-30  Bruno Haible  <bruno@clisp.org>
26653
26654         More renaming from 'getdate' to 'get_date'.
26655         * doc/get_date.texi: Renamed from doc/getdate.texi.
26656         * modules/get_date (Files): Update.
26657         * MODULES.html.sh (Date and time <time.h>): Update.
26658         * DEPENDENCIES: Update.
26659         * gnulib-tool: Update comment.
26660         * m4/bison.m4 (gl_BISON): Likewise.
26661         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26662
26663 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26664
26665         bootstrap: support ACLOCAL_FLAGS during aclocal
26666         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26667         can add additional -I dir for third-party .m4 files.
26668
26669 2010-09-30  Eric Blake  <eblake@redhat.com>
26670
26671         bootstrap: use glibtoolize on MacOS
26672         * build-aux/bootstrap (check_versions): Convert libtool into
26673         libtoolize.
26674         (tool search): Move libtool check earlier, and look for
26675         glibtoolize for MacOS.
26676         (gnulib_tool_options): Auto-add --libtool when appropriate.
26677         Reported by Justin Clift.
26678
26679         poll: fix typo that broke test on MacOS
26680         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26681         Reported by Justin Clift.
26682
26683         getdate: rename to get_date
26684         Note: getdate.h is not renamed, to minimize client impact.
26685         * modules/getdate: Mark obsolete.  Move old contents...
26686         * modules/get_date: ...to new module name.
26687         * modules/getdate-tests: Move...
26688         * modules/get_date-tests: ...here.
26689         * m4/getdate.m4: Move...
26690         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26691         * lib/getdate.y: Move...
26692         * lib/get_date.y: ...here.
26693         * tests/test-getdate.c: Move...
26694         * tests/test-get_date.c: ...here.
26695         * doc/posix-functions/getdate.texi (getdate): Update name.
26696         * NEWS: Mention the change.
26697
26698 2010-09-29  Bruno Haible  <bruno@clisp.org>
26699
26700         Separate the module 'waitpid' from the module 'sys_wait'.
26701         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26702         present.
26703         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26704         gl_MODULE_INDICATOR_FOR_TESTS.
26705         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26706         * modules/sys_wait (Depends-on): Remove waitpid.
26707         (Makefile.am): Substitute GNULIB_WAITPID.
26708         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26709         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26710         signature only if the 'waitpid' module is present.
26711         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26712         * NEWS: Mention the change.
26713         * modules/grantpt (Depends-on): Add waitpid.
26714         * modules/wait-process (Depends-on): Likewise.
26715
26716 2010-09-29  Bruno Haible  <bruno@clisp.org>
26717
26718         More tests for module 'sys_wait'.
26719         * modules/sys_wait-c++-tests: New file.
26720         * tests/test-sys_wait-c++.cc: New file.
26721         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26722         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26723
26724 2010-09-29  Bruno Haible  <bruno@clisp.org>
26725
26726         New module 'waitpid'.
26727         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26728         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26729         Don't include <process.h>.
26730         (waitpid): Declare only, using modern idiom.
26731         * m4/waitpid.m4: New file.
26732         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26733         * modules/waitpid: New file.
26734         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26735         (Makefile.am): Update.
26736         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26737
26738 2010-09-28  Bruno Haible  <bruno@clisp.org>
26739
26740         poll: Assume ANSI C.
26741         * lib/poll.c (poll): Use an ANSI C declaration.
26742
26743 2010-09-28  Bruno Haible  <bruno@clisp.org>
26744
26745         poll-h: Create poll.h on all platforms.
26746         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26747         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26748         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26749         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26750         (gl_REPLACE_POLL_H): Don't set POLL_H.
26751         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26752         * modules/poll-h (Depends-on): Add include_next.
26753         (Makefile.am): Create poll.h unconditionally. Substitute also
26754         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26755
26756 2010-09-28  Bruno Haible  <bruno@clisp.org>
26757
26758         Tests for module 'poll-h'.
26759         * modules/poll-h-c++-tests: New file.
26760         * tests/test-poll-h-c++.cc: New file.
26761
26762         Tests for module 'poll-h'.
26763         * modules/poll-h-tests: New file.
26764         * tests/test-poll-h.c: New file.
26765
26766 2010-09-28  Bruno Haible  <bruno@clisp.org>
26767
26768         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26769         * modules/poll-h (Depends-on): Add 'extensions'.
26770
26771 2010-09-28  Bruno Haible  <bruno@clisp.org>
26772
26773         New module 'poll-h'.
26774         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26775         (poll): Use modern idiom.
26776         * modules/poll-h: New file.
26777         * modules/poll (Files): Remove lib/poll.in.h.
26778         (Depends-on): Add poll-h.
26779         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26780         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26781         * m4/poll_h.m4: New file.
26782         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26783         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26784         and invoke gl_REPLACE_POLL_H.
26785         * lib/poll.c: Use common idiom.
26786         * tests/test-poll.c: Likewise.
26787         * doc/posix-headers/poll.texi: Mention the poll-h module.
26788         Suggested by Eric Blake.
26789
26790 2010-09-26  Bruno Haible  <bruno@clisp.org>
26791
26792         sys_wait: Implement WSTOPSIG.
26793         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26794         Reported by Simon Josefsson.
26795
26796 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26797
26798         stdlib, sys_wait: Avoid compilation error on mingw.
26799         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26800
26801 2010-09-26  Bruno Haible  <bruno@clisp.org>
26802
26803         stdlib tests: Avoid code duplication.
26804         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26805         * modules/sys_wait-tests (Files): Likewise.
26806         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26807         * tests/test-stdlib.c: Include test-sys_wait.h.
26808         (main): Invoke test_sys_wait_macros.
26809         * tests/test-sys_wait.c: Include test-sys_wait.h.
26810         (main): Invoke test_sys_wait_macros.
26811
26812 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26813
26814         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26815         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26816         sure Windows sockets are working before calling getaddrinfo.
26817         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26818         * doc/gnulib.texi (Windows sockets): Fix typo.
26819
26820 2010-09-25  Bruno Haible  <bruno@clisp.org>
26821
26822         Tests for module 'regex-quote'.
26823         * modules/regex-quote-tests: New file.
26824         * tests/test-regex-quote.c: New file.
26825
26826         New module 'regex-quote'.
26827         * lib/regex-quote.h: New file.
26828         * lib/regex-quote.c: New file.
26829         * modules/regex-quote: New file.
26830         Suggested by Reuben Thomas <rrt@sc3d.org>.
26831
26832 2010-09-24  Bruno Haible  <bruno@clisp.org>
26833
26834         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26835         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26836
26837 2010-09-23  Bruno Haible  <bruno@clisp.org>
26838
26839         setenv: Relax license.
26840         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26841         Blake.
26842         Requested by Eric Blake.
26843
26844 2010-09-22  Bruno Haible  <bruno@clisp.org>
26845
26846         termios: Relax license.
26847         * modules/termios (License): Change to LGPLv2+.
26848         Requested by Eric Blake.
26849
26850 2010-09-22  Bruno Haible  <bruno@clisp.org>
26851
26852         threadlib: Allow the package to change the default to 'no'.
26853         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26854         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26855         Reported by Paul Eggert.
26856
26857 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26858             Bruno Haible  <bruno@clisp.org>
26859
26860         Fix endless loop in mbmemcasecoll.
26861         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26862         byte.
26863         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26864
26865 2010-09-22  Bruno Haible  <bruno@clisp.org>
26866
26867         Tests for module 'memcoll'.
26868         * modules/memcoll-tests: New file.
26869         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26870
26871         memcoll, xmemcoll: Clarify size vs. length.
26872         * modules/memcoll.c (memcoll0): Clarify specification.
26873         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26874         passed to collate_error.
26875
26876 2010-09-22  Bruno Haible  <bruno@clisp.org>
26877
26878         Tests for module 'memcasecmp'.
26879         * modules/memcasecmp-tests: New file.
26880         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26881
26882 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26883
26884         * lib/pthread.in.h: Add split double-inclusion guard, and include
26885         system <pthread.h> if there is one.  Use @@-style as in other
26886         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26887         pthread.h doesn't.
26888         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26889         (pthread_mutexattr_settype, pthread_mutex_trylock):
26890         New static inline functions, if there's no system <pthread.h>.
26891         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26892         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26893         Approximate with mutexes if the system lacks spinlocks, as in
26894         MacOS.
26895         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26896         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26897         @@-style.  Check for spinlocks separately.
26898         (gl_PTHREAD_DEFAULTS): New macro.
26899         * modules/pthread: Redo to use a more typical style for in.h files.
26900
26901 2010-09-21  Eric Blake  <eblake@redhat.com>
26902
26903         net_if: enhance tests
26904         * tests/test-net_if.c (main): Move signature checks earlier.
26905         Print failures to stderr.
26906         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26907         Document the bug that we do not yet fix.
26908
26909 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26910
26911         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26912         about gnulib, not GSS.
26913
26914 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26915
26916         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26917         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26918         for Emacs.
26919         * build-aux/pmccabe2html: Make Makefile.am example code more
26920         cut-and-paste friendly.
26921
26922 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26923
26924         * tests/test-net_if.c: New file.
26925         * modules/net_if-tests: New file.
26926
26927 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26928
26929         pthread: add pthread_spin_destroy
26930         * lib/pthread.in.h (pthread_spin_destroy): New function.
26931
26932 2010-09-19  Bruno Haible  <bruno@clisp.org>
26933
26934         gnulib-tool: Fix --help output.
26935         * gnulib-tool (func_usage): Fix help message.
26936         Reported by Reuben Thomas <rrt@sc3d.org>.
26937
26938 2010-09-18  Jim Meyering  <meyering@redhat.com>
26939
26940         maint.mk: avoid unexpanded \n in two diagnostics
26941         * top/maint.mk (sc_prohibit_always_true_header_tests):
26942         Don't use a literal \n in a halt=... assignment.  It would not be
26943         expanded, and the two \n bytes would appear in the diagnostic output
26944         rather than the desired newline.  Use halt=$$(printf ... instead.
26945         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26946
26947 2010-09-18  Bruno Haible  <bruno@clisp.org>
26948
26949         netinet_in: Doc tweak.
26950         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26951         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26952
26953 2010-09-18  Jim Meyering  <meyering@redhat.com>
26954
26955         init.sh: correct an outdated comment
26956         * tests/init.sh (create_exe_shims_):  s/function/alias/
26957
26958         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26959         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26960         a file named "*.exe" is removed between the glob expansion and the
26961         processing of that oddly named file.
26962
26963 2010-09-17  Eric Blake  <eblake@redhat.com>
26964
26965         mirbsd: add some more support
26966         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26967         in BSD family.
26968         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26969         devices as OpenBSD.
26970         * m4/host-os.m4 (mirbsd): Add MirBSD.
26971
26972         tests: fix unportable assumption on sys/wait.h
26973         * tests/test-sys_wait.c (main): Relax test.
26974         * tests/test-stdlib.c (main): Likewise.
26975
26976         init.sh: accommodate directory with no .exes
26977         * tests/init.sh: Accomodate directory containing only scripts.
26978
26979         tests: avoid compiler warning
26980         * tests/test-stdlib.c (main): Use the variable.
26981
26982         fdutimens, fdutimensat: update signature, again
26983         * lib/utimens.h (gl_futimens): Delete, and move signature...
26984         (fdutimens): ...here.
26985         (fdutimensat): Rearrange signature.
26986         (lutimensat): Rename variable for clarity.
26987         * lib/fdutimensat.c (fdutimensat): Update signature.
26988         * lib/utimens.c (fdutimens): Likewise.
26989         (gl_futimens): Delete.
26990         (utimens, lutimens): Update callers.
26991         * lib/futimens.c (futimens): Likewise.
26992         * tests/test-fdutimensat.c: Likewise.
26993         * tests/test-utimens.c: Likewise.
26994         * tests/test-futimens.h: Update comment.
26995         * NEWS: Mention this.
26996         Suggested by Paul Eggert.
26997
26998 2010-09-17  Bruno Haible  <bruno@clisp.org>
26999
27000         Take over the maintenance of some older macros from Autoconf.
27001         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
27002         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
27003         GNU Autoconf.
27004         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
27005         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
27006
27007 2010-09-17  Eric Blake  <eblake@redhat.com>
27008
27009         fdutimensat: drop atflag validation
27010         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
27011         with valid fd, to close a race scenario where futimens is
27012         unsupported and FILE was replaced by a symlink.
27013         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
27014         accordingly.
27015         Suggested by Paul Eggert.
27016
27017 2010-09-16  Bruno Haible  <bruno@clisp.org>
27018
27019         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
27020         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
27021
27022 2010-09-16  Bruno Haible  <bruno@clisp.org>
27023
27024         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
27025         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
27026         login_tty exists.
27027         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27028
27029 2010-09-16  Bruno Haible  <bruno@clisp.org>
27030
27031         login_tty: Make the replacement code work on BSD systems.
27032         * lib/login_tty.c: Include <sys/ioctl.h>.
27033         (login_tty): Use ioctl TIOCSCTTY when available.
27034         * modules/login_tty (Depends-on): Add sys_ioctl.
27035         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27036
27037 2010-09-16  Bruno Haible  <bruno@clisp.org>
27038
27039         login_tty: Stricter unit test.
27040         * modules/login_tty-tests (Depends-on): Add tcgetsid.
27041         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
27042         and tcgetsid() after login_tty.
27043         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27044
27045 2010-09-16  Bruno Haible  <bruno@clisp.org>
27046
27047         New module 'tcgetsid'.
27048         * lib/tcgetsid.c: New file.
27049         * m4/tcgetsid.m4: New file.
27050         * modules/tcgetsid: New file.
27051         * modules/termios (Depends-on): Add c++defs, warn-on-use.
27052         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
27053         GNULIB_TCGETSID, HAVE_TCGETSID.
27054         * lib/termios.in.h: Include <sys/types.h>.
27055         (tcgetsid): New declaration.
27056         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
27057         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
27058         * doc/posix-functions/tcgetsid.texi: Mention the new module.
27059         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
27060
27061 2010-09-16  Bruno Haible  <bruno@clisp.org>
27062
27063         Tests for module 'termios'.
27064         * modules/termios-c++-tests: New file.
27065         * modules/termios-tests: New file.
27066         * tests/test-termios-c++.cc: New file.
27067         * tests/test-termios.c: New file.
27068
27069         New module 'termios'.
27070         * modules/termios: New file.
27071         * lib/termios.in.h: New file.
27072         * m4/termios_h.m4: New file.
27073         * doc/posix-headers/termios.texi: Mention the new module.
27074
27075 2010-09-16  Eric Blake  <eblake@redhat.com>
27076
27077         fdutimensat: add an atflag parameter
27078         * lib/fdutimensat.c (fdutimensat): Add new parameter.
27079         * lib/utimens.h (fdutimensat): Update prototype.
27080         * tests/test-fdutimensat.c: Adjust test to match.
27081         * NEWS: Document the change.
27082         Suggested by Paul Eggert.
27083
27084 2010-09-16  Bruno Haible  <bruno@clisp.org>
27085
27086         Fix typos in comments.
27087         * lib/striconveh.h: Fix typo in comment.
27088         * lib/login_tty.c (login_tty): Likewise.
27089
27090 2010-09-15  Bruno Haible  <bruno@clisp.org>
27091
27092         stdlib: clarify MirBSD WEXITSTATUS bug
27093         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
27094         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27095
27096 2010-09-15  Eric Blake  <eblake@redhat.com>
27097
27098         stdlib: work around MirBSD WEXITSTATUS bug
27099         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
27100         * modules/stdlib (Depends-on): Add sys_wait.
27101         * tests/test-sys_wait.c (main): Enhance test.
27102         * tests/test-stdlib.c (main): Likewise.
27103         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
27104
27105         docs: mention MacOS issue with WEXITSTATUS(constant)
27106         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
27107         issue.
27108         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27109
27110         strnlen: add tests
27111         * modules/strnlen-tests: New file.
27112         * tests/test-strnlen.c: Likewise.
27113
27114 2010-09-14  Bruno Haible  <bruno@clisp.org>
27115
27116         unistr/base: Avoid link errors when module 'libunistring' is also used.
27117         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
27118         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
27119         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
27120         Declare also when HAVE_LIBUNISTRING is set.
27121         Reported by Pádraig Brady <P@draigbrady.com>.
27122
27123 2010-09-14  Eric Blake  <eblake@redhat.com>
27124
27125         test-rawmemchr: make more robust
27126         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
27127         (Depends-on, configure.ac): Add needed prerequisites to use it.
27128         * modules/memchr-tests (Files, Depends-on, configure.ac):
27129         Likewise, to avoid implicit reliance on memchr module prereqs.
27130         * tests/test-memchr.c (main): Ensure proper masking.
27131         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
27132         reads.
27133
27134         memchr: detect glibc Alpha bug
27135         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27136         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27137         Alpha.
27138         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27139         * tests/test-memchr.c (main): Enhance test.
27140         Reported by Nelson H. F. Beebe.
27141
27142 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27143
27144         fts, getcwd, glob: audit for dirfd returning -1
27145         * lib/fts.c (opendir): Remove #define; no longer used.
27146         (opendirat): New arg PDIR_FD.  All callers changed.
27147         (fts_build, _opendir2): Use new opendirat to avoid the need for
27148         dirfd, or for checking whether dirfd returns a negative value.
27149         Don't use opendir; always use openat followed by fdopendir.
27150         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27151         it.
27152         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27153         returns -1 here.
27154         * modules/fts (Depends-on): Remove dirfd.
27155         * modules/getcwd (Depends-on): Likewise.
27156
27157 2010-09-13  Eric Blake  <eblake@redhat.com>
27158
27159         float: fix broken MirBSD header
27160         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27161         * doc/posix-headers/float.texi (float.h): Document it.
27162
27163 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27164
27165         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27166         * lib/fts.c (opendirat): New arg extra_flags.
27167         (__opendir2): Use it to avoid following symlinks when opening
27168         a directory, if symlinks are not supposed to be followed.  See
27169         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27170
27171         fdopendir: preserve argument fd before returning
27172         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27173         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27174         (fdopendir): Use them, arranging for FD to be open to the same
27175         directory that it was when it started.  (It might be temporarily
27176         closed while fdopendir is running, so this not thread- or
27177         signal-safe.)  Be careful to do the right thing even when file
27178         descriptors are scarce and dup fails with errno == EMFILE.  See
27179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27180
27181 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27182
27183         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27184         * NEWS: Document change.
27185         * m4/regex.m4: Disable test for regoff_t size.
27186
27187 2010-09-13  Jim Meyering  <meyering@redhat.com>
27188
27189         fts: don't operate on an invalid file descriptor after failed dup
27190         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27191         negative file descriptor.
27192
27193 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27194
27195         savedir: add streamsavedir, deprecate fdsavedir
27196         * NEWS: Mention deprecation of fdsavedir.
27197         * lib/savedir.c (streamsavedir): New extern function, whose name
27198         ends in "savedir" to be consistent with the others.  This differs
27199         from savedirstream in that it doesn't close its argument.  The
27200         next version of GNU tar will use this instead of fdsavedir, to
27201         avoid some race conditions and conserve file descriptors.
27202         (savedirstream): Reimplement as a wrapper around streamsavedir.
27203         (fdsavedir): Add a comment deprecating this function.  As far as
27204         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27205         * lib/savedir.h (streamsavedir): New decl.
27206         (fdsavedir): Add a comment deprecating this.
27207
27208 2010-09-10  Bruno Haible  <bruno@clisp.org>
27209
27210         langinfo: Fix last commit.
27211         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27212         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27214
27215 2010-09-10  Bruno Haible  <bruno@clisp.org>
27216
27217         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27218         * lib/progreloc.c (O_EXEC): Define fallback.
27219
27220 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27221
27222         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27223         * NEWS: Document recent changes to fcntl-h.
27224         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27225         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27226         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27227         Similarly for O_SEARCH; this last was already true, but not documented.
27228         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27229         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27230         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27231         Likewise.
27232         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27233         is zero, not whether it is defined.
27234         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27235         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27236         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27237
27238 2010-09-10  Bruno Haible  <bruno@clisp.org>
27239
27240         langinfo, nl_langinfo: Fix for IRIX 5.3.
27241         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27242         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27243         HAVE_LANGINFO_YESEXPR.
27244         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27245         HAVE_LANGINFO_YESEXPR.
27246         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27247         HAVE_LANGINFO_T_FMT_AMPM is 0.
27248         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27249         HAVE_LANGINFO_YESEXPR is 0.
27250         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27251         NOEXPR.
27252         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27253         * doc/posix-functions/nl_langinfo.texi: Likewise.
27254         Reported by Eric Blake.
27255
27256 2010-09-10  Bruno Haible  <bruno@clisp.org>
27257
27258         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27259         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27260         on FreeBSD 8.0 and OpenBSD 4.6.
27261         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27262         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27263         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27264         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27265         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27266         ac_includes_default.
27267         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27268
27269 2010-09-09  Eric Blake  <eblake@redhat.com>
27270
27271         strsignal: work around NetBSD bug
27272         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27273         * lib/string.in.h (includes): Likewise.
27274         * doc/posix-functions/strsignal.texi (strsignal): Document the
27275         bug.
27276         Reported by Nelson H. F. Beebe.
27277
27278         gnulib-tool: work with NetBSD /bin/sh
27279         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27280         (func_get_description, func_get_comment, func_get_status)
27281         (func_get_notice, func_get_applicability, func_get_filelist)
27282         (func_get_dependencies, func_get_autoconf_early_snippet)
27283         (func_get_autoconf_snippet, func_get_automake_snippet)
27284         (func_get_include_directive, func_get_link_directive)
27285         (func_get_license, func_get_maintainer, func_import): Avoid
27286         shell syntax errors from parsing syntax extensions.
27287
27288 2010-09-09  Bruno Haible  <bruno@clisp.org>
27289
27290         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27291         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27292         a reliable way to determine whether the 'alias' command works.
27293
27294 2010-09-08  Jim Meyering  <meyering@redhat.com>
27295
27296         init.sh: penalize a set-x-impaired shell; don't disqualify it
27297         * tests/init.sh: Too many shells corrupt application stderr when
27298         you set -x, so we can't afford to disqualify them, since at least
27299         on Irix-6.5, that would disqualify all bourne shells.
27300         Instead, use a two-pass approach.
27301         On the first pass, try to find a shell that meets the stricter
27302         condition that set -x does not corrupt stderr.
27303         If no shell meets the stricter condition, retest each candidate
27304         shell, but without that extra condition.  Finally, when
27305         VERBOSE=yes is requested and set -x might cause trouble, simply
27306         issue a warning and refrain from enabling debug output.
27307
27308 2010-09-08  Eric Blake  <eblake@redhat.com>
27309
27310         unsetenv: fix OpenBSD bug
27311         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27312         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27313         documentation.
27314         Reported by Jim Meyering.
27315
27316         strtod: work around IRIX 6.5 bug
27317         * lib/strtod.c (strtod): Reparse number on shorter string if
27318         exponent parse was invalid.
27319         * tests/test-strtod.c (main): Add check for "0x1p 2".
27320         Reported by Tom G. Christensen.
27321
27322         getopt: optimize previous patch
27323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27324         empty variable.  Speed up awk script.
27325         Reported by Paolo Bonzini.
27326
27327 2010-09-08  Jim Meyering  <meyering@redhat.com>
27328
27329         test.sh: disqualify shells for which set -x corrupts stderr
27330         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27331         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27332         appear in stderr output.  For example, this command:
27333             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27334         prints "P=1" on those two systems:
27335
27336 2010-09-08  Bruno Haible  <bruno@clisp.org>
27337
27338         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27339         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27340         commands, because some shells ignore redirections when there is an
27341         error in the command lookup.
27342         Reported by Eric Blake.
27343
27344 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27345
27346         * lib/regex.h: Fix a mention of `regex_compile' (should be
27347         `re_compile_pattern').
27348         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27349         (re_set_registers): Correct name of parameter in comment.
27350
27351         * doc/regex.texi: Add documentation for missing syntax flags.
27352         Remove commented-out documentation of defunct syntax option
27353         RE_NO_EMPTY_ALTS.
27354         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27355         Add documentation of re_set_registers.
27356         Document trick to re-use a pattern buffer by setting fastmap manually.
27357         Update documentation of struct re_pattern_buffer per public members.
27358         Uncomment documentation of equivalence class operators and
27359         collating symbol operators, since they are now implemented,
27360         Explain leftmost-longest matching in relation to alternatives.
27361         Tidy documentation of substring matching.
27362         Remove POSIX documentation, which is done better in
27363         glibc, and refer the reader there. Keep BSD API documentation, as
27364         that is not readily available elsewhere.
27365
27366 2010-09-07  Eric Blake  <eblake@redhat.com>
27367
27368         getopt: handle POSIXLY_CORRECT set but not exported
27369         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27370         export state of POSIXLY_CORRECT, due to bash set -o posix.
27371         Reported by Dustin J. Mitchell.
27372
27373 2010-09-05  Bruno Haible  <bruno@clisp.org>
27374
27375         gnulib-tool: Highlight the changed options.
27376         * gnulib-tool (func_usage): Display the --import, --add-import,
27377         --remove-import explanations in bold font.
27378
27379 2010-09-06  Karl Berry  <karl@gnu.org>
27380
27381         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27382
27383 2010-09-05  Bruno Haible  <bruno@clisp.org>
27384
27385         uniwidth/width: Update comment.
27386         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27387         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27388
27389 2010-09-05  Bruno Haible  <bruno@clisp.org>
27390
27391         isinf, isnan: Relax license.
27392         * modules/isinf (License): Change from GPL to LGPL, with consent from
27393         Ben Pfaff.
27394         * modules/isnan (License): Likewise.
27395         Requested by Ludovic Courtès.
27396
27397 2010-09-04  Bruno Haible  <bruno@clisp.org>
27398
27399         gnulib-tool: Help migration from --import to --add-import or --update.
27400         * gnulib-tool: Emit a verbose error message when --import is used
27401         without any module name.
27402
27403 2010-09-04  Bruno Haible  <bruno@clisp.org>
27404
27405         Update doc about gnulib-tool.
27406         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27407         'gnulib-tool --update' in more detail.
27408         Reported by Eric Blake.
27409
27410 2010-09-04  Bruno Haible  <bruno@clisp.org>
27411
27412         gnulib-tool: Change --import. New options --add/remove-import.
27413         * gnulib-tool: New options --add-import, --remove-import.
27414         (func_usage): Document them.
27415         (have_associative): Define always.
27416         (func_import): In import mode, don't merge the specified settings with
27417         the cached settings. Implement remove-import mode.
27418         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27419         Explain when to use them versus --import.
27420         (Simple update): Use --add-import instead of --import.
27421         * NEWS: Mention the change.
27422
27423 2010-09-04  Bruno Haible  <bruno@clisp.org>
27424
27425         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27426         separate gnulib.mk.
27427
27428 2010-09-04  Bruno Haible  <bruno@clisp.org>
27429
27430         gnulib-tool: Don't talk about CVS any more.
27431         * gnulib-tool (func_usage, func_import): Write "version control"
27432         instead of CVS.
27433
27434 2010-09-04  Jim Meyering  <meyering@redhat.com>
27435
27436         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27437         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27438         false positives (whose names may be ill-chosen) when searching
27439         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27440         would cause a false-positive.
27441
27442         avoid coreutils "make distcheck" failure
27443         Coreutils tests with an absolute build directory name that contains
27444         a space.  Not quoting this directory name caused a failure.
27445         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27446         * tests/test-vc-list-files-cvs.sh: Likewise.
27447
27448 2010-09-04  Bruno Haible  <bruno@clisp.org>
27449
27450         gnulib-tool: Avoid error when run in a package without Makefile.am.
27451         * gnulib-tool: When collecting the m4dirs in a package that does not
27452         have a Makefile.am, eliminate those directories that contain no
27453         gnulib-cache.m4. Fix expression that counts these directories.
27454
27455 2010-09-04  Bruno Haible  <bruno@clisp.org>
27456
27457         update-copyright test: Improve output when perl is missing or too old.
27458         * tests/test-update-copyright.sh: Move test of Perl version down after
27459         the test whether Perl exists. Provide an explanation relating Perl's
27460         error message to Automake's SKIP: message.
27461
27462 2010-09-04  Bruno Haible  <bruno@clisp.org>
27463
27464         Don't augment PATH in TESTS_ENVIRONMENT.
27465         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27466         set abs_aux_dir instead of augmenting PATH.
27467         * modules/vc-list-files-tests (Makefile.am): Likewise.
27468         * tests/test-update-copyright.sh: Augment PATH here.
27469         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27470         path_prepend_.
27471         * tests/test-vc-list-files-git.sh: Likewise.
27472
27473 2010-09-04  Jim Meyering  <meyering@redhat.com>
27474
27475         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27476         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27477
27478 2010-09-04  Bruno Haible  <bruno@clisp.org>
27479
27480         strdup: Fix compilation error in C++ mode.
27481         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27482         the macro.
27483
27484 2010-09-04  Bruno Haible  <bruno@clisp.org>
27485
27486         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27487         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27488         macro into a function.
27489         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27490
27491 2010-09-04  Bruno Haible  <bruno@clisp.org>
27492
27493         Set PATH_SEPARATOR the same way autoconf does.
27494         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27495         the value of PATH_SEPARATOR the same way autoconf-generated configure
27496         scripts do.
27497         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27498         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27499
27500 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27501
27502         Set PATH_SEPARATOR the same way autoconf does.
27503         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27504         the same way autoconf-generated configure scripts do.
27505         * posix-modules: Likewise.
27506
27507 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27508
27509         hash: fix safe_hasher const typo
27510         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27511         const; otherwise, there is a type error later.
27512
27513 2010-09-02  Jim Meyering  <meyering@redhat.com>
27514
27515         test-update-copyright.sh: require perl 5.8.0
27516         * tests/test-update-copyright.sh: Require 5.8.0,
27517         which Tom G. Christensen has confirmed is adequate,
27518         while 5.6.1 is not.
27519
27520 2010-09-02  Eric Blake  <eblake@redhat.com>
27521
27522         tests: init.sh improvements for re-exec'ing with zsh
27523         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27524         -vx through shell re-exec.
27525         Reported by Tom G. Christensen.
27526
27527         wctype: fix typo in previous commit
27528         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27529         Reported by Ludovic Courtès.
27530
27531 2010-09-02  Jim Meyering  <meyering@redhat.com>
27532
27533         test-update-copyright.sh: skip test if Perl is too old
27534         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27535         Reported by Tom G. Christensen.
27536
27537 2010-09-02  Bruno Haible  <bruno@clisp.org>
27538
27539         wctype: Avoid compilation error on IRIX 6.5.30.
27540         * lib/wctype.in.h (iswblank): Declare with a replacement if
27541         REPLACE_ISWBLANK is set.
27542         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27543         declared. Set REPLACE_ISWBLANK.
27544         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27545         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27546         * doc/posix-headers/wctype.texi: Likewise.
27547         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27548
27549 2010-09-01  Bruno Haible  <bruno@clisp.org>
27550
27551         New module 'socketlib'.
27552         * modules/socketlib: New file.
27553         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27554         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27555         * modules/sockets (Depends-on): Add socketlib.
27556         Suggested by Sam Steingold <sds@gnu.org>.
27557
27558 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27559
27560         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27561
27562         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27563         when one needs search access to a directory but not read access.
27564         On systems where it is available, it works in some cases where
27565         O_RDONLY does not, namely on directories that are searchable but
27566         not readable, and which need only to be searchable.  If O_SEARCH
27567         is not available, fall back to the traditional method of using
27568         O_RDONLY.
27569
27570         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27571         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27572         when opening a directory that needs only to be searchable.
27573         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27574         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27575         * lib/openat-proc.c (openat_proc_name): Likewise.
27576         * lib/openat.c (openat_needs_fchdir): Likewise.
27577         * lib/save-cwd.c (save_cwd): Likewise.
27578         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27579
27580 2010-08-28  Bruno Haible  <bruno@clisp.org>
27581
27582         New module 'host-cpu-c-abi'.
27583         * modules/host-cpu-c-abi: New file.
27584         * m4/host-cpu-c-abi.m4: New file, based on part of
27585         clisp/src/m4/general.m4.
27586         Requested by Sam Steingold <sds@gnu.org>.
27587
27588 2010-08-31  Eric Blake  <eblake@redhat.com>
27589         and Jim Meyering  <meyering@redhat.com>
27590
27591         hash: factor, and guard against misbehaving hasher function
27592         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27593         of table->hasher's return value.  Also protect against a hash value
27594         so large that adding it to table->bucket results in a NULL pointer.
27595         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27596         Use it in place of open-coded check-and-abort.
27597
27598 2010-08-30  Bruno Haible  <bruno@clisp.org>
27599
27600         hash: silence spurious clang warning
27601         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27602         Reported by Eric Blake.
27603
27604 2010-08-30  Eric Blake  <eblake@redhat.com>
27605
27606         strstr, memmem, strcasestr: avoid leaked shell message
27607         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27608         FreeBSD.
27609         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27610         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27611
27612         tests: silence clang warning
27613         * tests/test-malloca.c (do_allocation): Avoid dead store.
27614
27615 2010-08-29  Bruno Haible  <bruno@clisp.org>
27616
27617         gettext: Fix recent mistake.
27618         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27619
27620 2010-08-29  Bruno Haible  <bruno@clisp.org>
27621
27622         selinux-h: Offer a --without-selinux option.
27623         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27624         --without-selinux was specified, skip all tests and define
27625         HAVE_SELINUX_SELINUX_H to 0.
27626         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27627         set LIB_SELINUX to empty.
27628         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27629         gl_LIBSELINUX. If --without-selinux was specified, replace
27630         selinux/context.h.
27631         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27632
27633 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27634             Bruno Haible  <bruno@clisp.org>
27635
27636         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27637         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27638         of HAVE_REALLOC.
27639         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27640         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27641         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27642         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27643
27644 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27645             Bruno Haible  <bruno@clisp.org>
27646
27647         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27648         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27649         HAVE_CALLOC.
27650         * lib/xmalloc.c: Update accordingly.
27651         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27652         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27653         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27654
27655 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27656             Bruno Haible  <bruno@clisp.org>
27657
27658         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27659         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27660         HAVE_MALLOC.
27661         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27662         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27663         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27664
27665 2010-08-29  Bruno Haible  <bruno@clisp.org>
27666
27667         Update modules list.
27668         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27669         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27670         (String handling <string.h>): Add astrxfrm.
27671         (File system functions): Add readlinkat.
27672
27673 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27674
27675         Tests for module 'realloc-gnu'.
27676         * modules/realloc-gnu-tests: New file.
27677         * tests/test-realloc-gnu.c: New file.
27678
27679         Tests for module 'calloc-gnu'.
27680         * modules/calloc-gnu-tests: New file.
27681         * tests/test-calloc-gnu.c: New file.
27682
27683         Tests for module 'malloc-gnu'.
27684         * modules/malloc-gnu-tests: New file.
27685         * tests/test-malloc-gnu.c: New file.
27686
27687 2010-08-28  Bruno Haible  <bruno@clisp.org>
27688
27689         Rename module 'realloc' -> 'realloc-gnu'.
27690         * modules/realloc-gnu: New file, copied from modules/realloc.
27691         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27692         obsolete.
27693         * modules/mgetgroups (Depends-on): Update.
27694         * doc/posix-functions/realloc.texi: Update.
27695         * NEWS: Mention the change.
27696
27697         Rename module 'calloc' -> 'calloc-gnu'.
27698         * modules/calloc-gnu: New file, copied from modules/calloc.
27699         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27700         obsolete.
27701         * doc/posix-functions/calloc.texi: Update.
27702         * NEWS: Mention the change.
27703
27704         Rename module 'malloc' -> 'malloc-gnu'.
27705         * modules/malloc-gnu: New file, copied from modules/malloc.
27706         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27707         obsolete.
27708         * modules/argp (Depends-on): Update.
27709         * modules/regex (Depends-on): Update.
27710         * doc/posix-functions/malloc.texi: Update.
27711         * NEWS: Mention the change.
27712
27713 2010-08-28  Eric Blake  <eblake@redhat.com>
27714
27715         pread, pwrite: add missing dependency
27716         * modules/pread (Depends-on): Add extensions.
27717         * modules/pwrite (Depends-on): Likewise.
27718
27719 2010-08-28  Bruno Haible  <bruno@clisp.org>
27720
27721         unistr/u*-strchr: Fix tests dependencies.
27722         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27723         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27724         Reported by Ian Beckwith <ianb@erislabs.net>.
27725
27726 2010-08-28  Bruno Haible  <bruno@clisp.org>
27727
27728         read-file: Don't occupy too much unused memory.
27729         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27730
27731 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27732             Eric Blake  <eblake@redhat.com>
27733             Bruno Haible  <bruno@clisp.org>
27734
27735         read-file: Avoid memory reallocations with regular files.
27736         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27737         (fread_file): With regular files, use the remaining length as the
27738         initial buffer size.  Check against overflow.
27739         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27740         sys_stat.
27741
27742 2010-08-28  Bruno Haible  <bruno@clisp.org>
27743
27744         ftello: Relax license.
27745         * modules/ftello (License): Relax to LGPLv2+.
27746         Reported by Eric Blake.
27747
27748 2010-08-28  Bruno Haible  <bruno@clisp.org>
27749
27750         Avoid relocwrapper link errors due to gnulib replacement functions.
27751         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27752         function.
27753         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27754
27755 2010-08-28  Bruno Haible  <bruno@clisp.org>
27756
27757         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27758         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27759         defined.
27760         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27761         Suggested by Eric Blake.
27762
27763 2010-08-28  Bruno Haible  <bruno@clisp.org>
27764
27765         sys_socket, netdb: Ensure socklen_t gets defined.
27766         * modules/sys_socket (Depends-on): Add socklen.
27767         * modules/netdb (Depends-on): Likewise.
27768         * modules/getaddrinfo (Depends-on): Remove socklen.
27769         * modules/getsockopt (Depends-on): Likewise.
27770         * modules/setsockopt (Depends-on): Likewise.
27771         * tests/test-sys_socket.c: Check that socklen_t is defined.
27772         * tests/test-netdb.c: Likewise.
27773         * m4/socklen.m4: Update comments.
27774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27775
27776 2010-08-27  Eric Blake  <eblake@redhat.com>
27777
27778         login_tty: add missing dependency
27779         * modules/login_tty (Depends-on): Add pty.
27780
27781 2010-08-26  Eric Blake  <eblake@redhat.com>
27782
27783         lib-symbol-versions: fix m4 quoting
27784         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27785         format for AC_LINK_IFELSE.
27786
27787         glob: fix compile test
27788         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27789
27790         btowc: fix missing file
27791         * modules/btowc (Files): Also ship locale-fr.m4.
27792
27793         lseek: fix link test
27794         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27795         AC_LINK_IFELSE.
27796
27797         include_next: silence autoconf 2.68 warning
27798         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27799         AC_COMPILE_IFELSE as special.
27800         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27801         autoconf < 2.68.
27802
27803         acl: fix compilation test
27804         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27805         AC_COMPILE_IFELSE.
27806
27807 2010-08-26  Bruno Haible  <bruno@clisp.org>
27808
27809         Modernize AC_TRY_RUN invocations.
27810         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27811         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27812         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27813         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27814         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27815         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27816         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27817         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27818         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27819         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27820         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27821         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27822         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27823         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27824         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27825         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27826         gl_MBRLEN_NUL_RETVAL): Likewise.
27827         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27828         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27829         Likewise.
27830         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27831         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27832         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27833         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27834         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27835         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27836         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27837         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27838         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27839         Likewise.
27840         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27841         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27842         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27843         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27844         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27845         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27846         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27847         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27848         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27850
27851 2010-08-26  Bruno Haible  <bruno@clisp.org>
27852
27853         Modernize AC_TRY_LINK invocations.
27854         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27855         AC_TRY_LINK.
27856         * m4/argp.m4 (gl_ARGP): Likewise.
27857         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27858         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27859         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27860         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27861         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27862         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27863         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27864         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27865         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27866         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27867         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27868         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27869         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27870         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27871         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27872         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27873         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27874         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27875         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27876         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27877         Likewise.
27878         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27879         Likewise.
27880         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27881         Likewise.
27882         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27883         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27884         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27885         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27886         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27887         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27888         * m4/servent.m4 (gl_SERVENT): Likewise.
27889         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27890         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27891         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27892         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27893         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27894         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27895         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27896         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27897         * modules/tsearch-tests (configure.ac): Likewise.
27898
27899 2010-08-26  Bruno Haible  <bruno@clisp.org>
27900
27901         Modernize AC_TRY_COMPILE invocations.
27902         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27903         AC_TRY_COMPILE.
27904         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27905         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27906         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27907         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27908         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27909         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27910         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27911         * m4/lock.m4 (gl_LOCK): Likewise.
27912         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27913         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27914         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27915         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27916         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27917         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27918         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27919         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27920         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27921         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27922         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27923         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27924         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27925         extraneous semicolon.
27926
27927 2010-08-26  Jim Meyering  <meyering@redhat.com>
27928
27929         stat-time: relax license LGPL
27930         * modules/stat-time (License): Change from GPL to LGPL,
27931         with consent from all contributors, for use in libguile.
27932         Requested by Ludovic Courtès.
27933
27934 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27935
27936         poll: return immediately on POLLHUP.
27937         * lib/poll.c (poll): Always set timeout before wait_timeout is
27938         computed.
27939
27940 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27941
27942         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27943         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27944         rmdir ("dir/.//"), unlinkat.
27945
27946 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27947
27948         stdbool: avoid spurious failure with modern xlc
27949         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27950
27951 2010-08-24  Bruno Haible  <bruno@clisp.org>
27952
27953         getloadavg: simplify code
27954         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27955         gl_have_func. Update comments.
27956
27957 2010-08-24  Eric Blake  <eblake@redhat.com>
27958
27959         getloadavg: don't define SVR4 on cygwin
27960         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27961         only define SVR4 when -lkvm is required.
27962         Reported by Yaakov Selkowitz.
27963
27964 2010-08-24  Bruno Haible  <bruno@clisp.org>
27965
27966         priv-set: fix comment
27967         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27968
27969 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27970
27971         priv-set: fix comments
27972         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27973         to match code, as suggested by David Bartley in:
27974         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27975
27976 2010-08-23  Eric Blake  <eblake@redhat.com>
27977
27978         stdbool: avoid rejecting clang
27979         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27980         * tests/test-stdbool.c: Enable more tests if using the system
27981         <stdbool.h> instead of the gnulib replacement.
27982         (main): Move xlc bug test to a runtime test for all compilers.
27983         Reported by Anders Kaseorg.
27984
27985         argz: fix shell quoting issue
27986         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27987         Reported by Charles Wilson.
27988
27989 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27990             Erik Faye-Lund <kusmabite@gmail.com>
27991
27992         poll, select: handle ERROR_BROKEN_PIPE.
27993         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27994         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27995         * lib/select.c (win32_compute_revents): Do not mark a pipe
27996         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27997
27998 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27999
28000         fts: allow compilation with C++
28001         * lib/fts_.h: Specify extern "C" linkage with C++.
28002
28003 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28004
28005         Fix gnulib-tool sed script de-commentation for AIX sed.
28006         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
28007         sed.
28008
28009 2010-08-17  Eric Blake  <eblake@redhat.com>
28010
28011         test-stddef: test for (some) offsetof bugs
28012         * tests/test-stddef.c: Enhance test to ensure correct type of
28013         offsetof.
28014         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
28015         that we are not fixing at this time.
28016
28017 2010-08-15  Bruno Haible  <bruno@clisp.org>
28018
28019         stpncpy: Allow stpncpy to be defined as a macro.
28020         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
28021         if it's already correctly declared.
28022         * lib/string.in.h (stpncpy): Undefine before redefining.
28023         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
28024
28025 2010-08-14  Bruno Haible  <bruno@clisp.org>
28026
28027         Rename module 'memxfrm' to 'amemxfrm'.
28028         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
28029         (amemxfrm): Renamed from memxfrm.
28030         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
28031         (amemxfrm): Renamed from memxfrm.
28032         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
28033         * NEWS: Mention the change.
28034         * MODULES.html.sh (String handling <string.h>): Update.
28035         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
28036         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
28037         * lib/unicase/u16-casexfrm.c: Likewise.
28038         * lib/unicase/u32-casexfrm.c: Likewise.
28039         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
28040         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
28041         * lib/uninorm/u16-normxfrm.c: Likewise.
28042         * lib/uninorm/u32-normxfrm.c: Likewise.
28043         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
28044         memxfrm.
28045         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
28046         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
28047         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
28048         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
28049         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
28050         Suggested by Paul Eggert.
28051
28052 2010-08-14  Bruno Haible  <bruno@clisp.org>
28053
28054         Tests for module 'astrxfrm'.
28055         * modules/astrxfrm-tests: New file.
28056         * tests/test-astrxfrm.c: New file.
28057
28058         New module 'astrxfrm'.
28059         * lib/astrxfrm.h: New file.
28060         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
28061         * modules/astrxfrm: New file.
28062
28063 2010-08-14  Reuben Thomas <rrt@sc3d.org>
28064
28065         regex: Tweak doc.
28066         * doc/regex.texi (Overview): Don't mention regex.c.
28067         (GNU Regular Expression Compiling): Likewise.
28068         (Match-end-of-line Operator): Mention 'not_eol'.
28069
28070 2010-08-14  Brian Gough  <bjg@gnu.org>
28071             Bruno Haible  <bruno@clisp.org>
28072
28073         git-merge-changelog: add doc relating to use with bzr and hg.
28074         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
28075
28076 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
28077
28078         pthread: fix pthread.h creation for srcdir != builddir
28079         * modules/pthread (Makefile.am): Fix the rule to work also in a
28080         non-srcdir build.
28081
28082 2010-08-13  Karl Berry  <karl@gnu.org>
28083
28084         * doc/regex.texi (Predefined Syntaxes): @smallexample.
28085         * doc/posix-*/*: force line break before @url of POSIX
28086         specifications.
28087         Suggested by Werner Lemberg.
28088
28089 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28090
28091         strtod: fix const diagnostic
28092         * lib/strtod.c (strtod): Don't assign const char * to char *,
28093         as this elicits a warning from GCC when warnings are enabled.
28094
28095 2010-08-10  Pádraig Brady <P@draigbrady.com>
28096         and Eric Blake  <eblake@redhat.com>
28097
28098         copy-acl: ignore ENOTSUP on HP-UX
28099         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
28100         so that it is available for HP-UX.
28101         * lib/copy-acl.c (qcopy_acl): Use it.
28102         Reported by Patrick M. Callahan.
28103
28104 2010-08-10  Eric Blake  <eblake@redhat.com>
28105
28106         open, chown: relax license
28107         * modules/open (License): Change to LGPLv2+, with consent by all
28108         authors, for use in augeas.
28109         * modules/chown (License): Likewise.
28110         * modules/lchown (Likewise): Likewise.
28111         Requested by Adam Stokes.
28112
28113 2010-08-09  Karl Berry  <karl@gnu.org>
28114
28115         * build-aux/ar-lib: new file, import from Automake.
28116         * config/srclist.txt: autocheck for updates.
28117
28118 2010-08-09  Eric Blake  <eblake@redhat.com>
28119
28120         readlinkat: adjust client modules
28121         * modules/areadlinkat (Depends-on): Use readlinkat, not
28122         symlinkat.
28123         * modules/areadlinkat-with-size (Depends-on): Likewise.
28124
28125         mknod: be more vocal about danger of running tests as root
28126         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
28127         root, since that is just asking for problems.
28128         Suggested by Bruno Haible, based on a report by Rainer Tammer.
28129
28130         readlinkat: split into its own module
28131         * modules/symlinkat: Split readlinkat...
28132         * modules/readlinkat: ...into separate module.
28133         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28134         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28135         * lib/symlinkat.c (readlinkat): Move...
28136         * lib/readlinkat.c: ...into new file.
28137         * modules/symlinkat-tests: Split readlinkat test...
28138         * modules/readlinkat-tests: ...into separate module.
28139         * tests/test-symlinkat.c: Split...
28140         * tests/test-readlinkat.c: ...into new file.
28141         * NEWS: Document the split.
28142         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28143         * lib/unistd.in.h (readlinkat): Likewise.
28144         Suggested by Bruno Haible.
28145
28146 2010-08-08  Bruno Haible  <bruno@clisp.org>
28147
28148         memxfrm: Speed up.
28149         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28150         that usually only one call to strxfrm is necessary for each string
28151         part.
28152         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28153
28154 2010-08-07  Karl Berry  <karl@gnu.org>
28155
28156         * doc/posix-headers/limits.texi,
28157         * doc/posix-functions/malloc.texi,
28158         * doc/posix-functions/strsignal.texi: missing @item.
28159         * doc/ld-version-script.texi: spurious leading i.
28160         * doc/regex.texi (Interval Operators): no commas inside @var.
28161
28162 2010-08-01  Bruno Haible  <bruno@clisp.org>
28163
28164         Integrate the regex documentation.
28165         * doc/gnulib.texi: Define 'cn' index.
28166         (Regular expressions): New a chapter that includes regex.texi and
28167         regexprops-generic.texi.
28168         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28169         syntax.
28170
28171         Whitespace cleanup.
28172         * doc/regex.texi: Remove trailing spaces.
28173
28174         Add regex documentation.
28175         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28176         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28177         Written by Kathy A. Hargreaves and Karl Berry.
28178
28179 2010-08-01  Bruno Haible  <bruno@clisp.org>
28180
28181         link: Update documentation.
28182         * doc/posix-functions/link.texi: Update regarding Solaris.
28183
28184 2010-07-31  Bruno Haible  <bruno@clisp.org>
28185
28186         Update modules list.
28187         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28188         (String handling <string.h>): Add memcmp2, memxfrm.
28189         (Container data structures): Add xlist, xsublist, xoset.
28190         (Core language properties): Add alignof, unused-parameter.
28191         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28192         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28193         (Unibyte characters <ctype.h>): New section.
28194         (String handling <string.h>): New section.
28195         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28196         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28197         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28198         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28199         tan, tanh, tanl, y0, y1, yn.
28200         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28201         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28202         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28203         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28204         unlockpt, vdprintf, vdprintf-posix.
28205         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28206         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28207         xconcat-filename.
28208         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28209         getdtablesize, pipe2, pipe2-safer.
28210         (Security): New section.
28211         (Networking functions): Add accept4.
28212         (Signal handling): Add sigpipe.
28213         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28214         mbmemcasecoll.
28215         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28216         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28217         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28218         pipe-filter-ii.
28219         (Misc): Add argp-version-etc, login_tty, parse-duration.
28220
28221 2010-07-31  Bruno Haible  <bruno@clisp.org>
28222
28223         Improve doc in MODULES.html.
28224         * modules/linkat (Description): Add the word "function".
28225         * modules/mkfifo (Description): Likewise.
28226         * modules/mknod (Description): Likewise.
28227         * modules/remove (Description): Likewise.
28228         * modules/renameat (Description): Likewise.
28229         * modules/stat (Description): Likewise.
28230         * modules/symlink (Description): Likewise.
28231         * modules/unlink (Description): Likewise.
28232
28233 2010-07-31  Bruno Haible  <bruno@clisp.org>
28234
28235         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28236         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28237         option --enable/disable-c++ instead of --enable/disable-cxx.
28238         * NEWS: Mention the change.
28239
28240 2010-07-31  Bruno Haible  <bruno@clisp.org>
28241
28242         readlink, areadlink: Relax test a bit.
28243         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28244         alternative to ENOTDIR.
28245         * tests/test-areadlink.h (test_areadlink): Likewise.
28246         Reported by Rainer Tammer.
28247
28248 2010-07-31  Bruno Haible  <bruno@clisp.org>
28249
28250         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28251         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28252         character, perform the search using U_STRCHR.
28253         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28254         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28255         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28256         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28257         Suggested by Paolo Bonzini.
28258
28259 2010-07-31  Bruno Haible  <bruno@clisp.org>
28260
28261         unistr/u*-strstr: Fix dependencies.
28262         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28263         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28264         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28265
28266 2010-07-31  Bruno Haible  <bruno@clisp.org>
28267
28268         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28269         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28270         the beginning of the loop.
28271         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28272         cases in 'switch' statement.
28273
28274         unistr/u8-strchr: Fix several bugs.
28275         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28276         the string. When not found, return NULL, not a pointer near the end.
28277
28278         More tests for unistr/u8-strchr.
28279         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28280         that the function does not read past the first occurrence of the byte
28281         being searched.
28282         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28283         * tests/unistr/test-u16-strchr.c (main): New function.
28284         * tests/unistr/test-u32-strchr.c (main): New function.
28285
28286 2010-07-31  Bruno Haible  <bruno@clisp.org>
28287
28288         posix-modules: Ignore backup files of documentation files.
28289         * posix-modules: grep only through files named *.texi.
28290
28291 2010-07-31  Bruno Haible  <bruno@clisp.org>
28292
28293         symlinkat: Fix documentation.
28294         * doc/posix-functions/readlinkat.texi: Fix module name.
28295
28296 2010-07-31  Bruno Haible  <bruno@clisp.org>
28297
28298         fchownat: Replace also when chown has the trailing slash bug.
28299         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28300         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28301         introduced on 2010-04-10.
28302         Reported by Rainer Tammer.
28303
28304 2010-07-31  Bruno Haible  <bruno@clisp.org>
28305
28306         linkat: Work around AIX 7.1 bug.
28307         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28308         whether linkat handles trailing slash correctly. If not, replace linkat
28309         and define LINKAT_TRAILING_SLASH_BUG.
28310         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28311         check whether (fd1,file1) points to a directory if file1 or file2 ends
28312         in a slash. Code taken from lib/link.c.
28313         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28314         Reported by Rainer Tammer.
28315
28316 2010-07-31  Bruno Haible  <bruno@clisp.org>
28317
28318         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28319         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28320         This disables an xlc optimization that was causing wrong test results.
28321         Reported by Rainer Tammer.
28322
28323 2010-07-31  Bruno Haible  <bruno@clisp.org>
28324
28325         iconv: Work around AIX 6.1..7.1 bug.
28326         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28327         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28328         cross-compiling, guess no on all versions of AIX.
28329         Reported by Rainer Tammer.
28330
28331 2010-07-31  Bruno Haible  <bruno@clisp.org>
28332
28333         readlink: Relax test a bit.
28334         * tests/test-readlink.h (test_readlink): Allow different errno value
28335         when readlink is called with a file name that ends in / and refers to
28336         a file.
28337         Suggested by Eric Blake.
28338         Reported by Rainer Tammer.
28339
28340 2010-07-31  Bruno Haible  <bruno@clisp.org>
28341
28342         copysign: Does not require -lm on glibc systems.
28343         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28344         gl_COMMON_DOUBLE_MATHFUNC.
28345         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28346
28347 2010-07-31  Bruno Haible  <bruno@clisp.org>
28348
28349         duplocale: Work around AIX 7.1 bug.
28350         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28351         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28352         * lib/duplocale.c (rpl_duplocale): Update comment.
28353         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28354         Reported by Rainer Tammer.
28355
28356 2010-07-30  Bruno Haible  <bruno@clisp.org>
28357
28358         dirfd: Avoid link error on AIX 7.1.
28359         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28360         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28361         exist, set REPLACE_DIRFD.
28362         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28363         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28364         * doc/posix-functions/dirfd.texi: Update.
28365         Reported by Rainer Tammer.
28366
28367 2010-07-30  Eric Blake  <eblake@redhat.com>
28368
28369         strtod: next round of AIX fixes
28370         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28371         exponent.
28372         * tests/test-strtod.c (main): Enhance tests.
28373         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28374         Reported by Rainer Tammer.
28375
28376         futimens: fix configure check
28377         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28378         Reported by Bruno Haible.
28379
28380 2010-07-30  Bruno Haible  <bruno@clisp.org>
28381
28382         getline: Update regarding AIX.
28383         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28384         Reported by Rainer Tammer.
28385
28386 2010-07-30  Bruno Haible  <bruno@clisp.org>
28387
28388         wcwidth: Drop replacement on AIX 7.
28389         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28390         AIX 7.
28391         Reported by Rainer Tammer.
28392
28393 2010-07-30  Bruno Haible  <bruno@clisp.org>
28394
28395         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28396         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28397         a 'char *'.
28398         Reported by Rainer Tammer.
28399
28400 2010-07-30  Bruno Haible  <bruno@clisp.org>
28401
28402         unlink: Update regarding AIX.
28403         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28404         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28405         Reported by Rainer Tammer.
28406
28407 2010-07-30  Bruno Haible  <bruno@clisp.org>
28408
28409         symlink: Update regarding AIX.
28410         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28411         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28412         Reported by Rainer Tammer.
28413
28414 2010-07-30  Bruno Haible  <bruno@clisp.org>
28415
28416         strndup: Update regarding AIX.
28417         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28418         AIX 7.
28419         Reported by Rainer Tammer.
28420
28421 2010-07-30  Bruno Haible  <bruno@clisp.org>
28422
28423         stat: Update regarding AIX.
28424         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28425         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28426         Reported by Rainer Tammer.
28427
28428 2010-07-30  Bruno Haible  <bruno@clisp.org>
28429
28430         truncl: Fix autoconf test.
28431         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28432         whether truncl works.
28433         Reported by Rainer Tammer.
28434
28435 2010-07-30  Bruno Haible  <bruno@clisp.org>
28436
28437         round: Update regarding AIX.
28438         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28439         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28440         Reported by Rainer Tammer.
28441
28442 2010-07-30  Bruno Haible  <bruno@clisp.org>
28443
28444         rename: Update regarding AIX.
28445         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28446         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28447         Reported by Rainer Tammer.
28448
28449 2010-07-30  Bruno Haible  <bruno@clisp.org>
28450
28451         printf.m4: Update regarding AIX.
28452         * m4/printf.m4: Update comments regarding AIX.
28453         Reported by Rainer Tammer.
28454
28455 2010-07-30  Bruno Haible  <bruno@clisp.org>
28456
28457         iconv: Update regarding AIX.
28458         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28459         AIX 7.
28460         Reported by Rainer Tammer.
28461
28462 2010-07-30  Bruno Haible  <bruno@clisp.org>
28463
28464         getopt: Update regarding AIX.
28465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28466         no on AIX.
28467         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28468         Reported by Rainer Tammer.
28469
28470 2010-07-30  Bruno Haible  <bruno@clisp.org>
28471
28472         ldexpl; Update regarding AIX.
28473         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28474         on AIX 7.
28475         Reported by Rainer Tammer.
28476
28477 2010-07-30  Bruno Haible  <bruno@clisp.org>
28478
28479         frexpl: Update regarding AIX.
28480         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28481         on AIX 7.
28482         Reported by Rainer Tammer.
28483
28484 2010-07-30  Bruno Haible  <bruno@clisp.org>
28485
28486         open, fopen: Update regarding AIX.
28487         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28488         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28489         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28490         * doc/posix-functions/fopen.texi: Likewise.
28491         Reported by Rainer Tammer.
28492
28493 2010-07-30  Bruno Haible  <bruno@clisp.org>
28494
28495         chown: Update doc regarding AIX.
28496         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28497         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28498         Reported by Rainer Tammer.
28499
28500 2010-07-30  Eric Blake  <eblake@redhat.com>
28501
28502         strtod: fix bug in replacement function on AIX
28503         * lib/strtod.c (strtod): Special case broken "0x" parse in
28504         underlying strtod.
28505         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28506         * doc/posix-functions/strtod.texi (strtod): Likewise.
28507         Reported by Rainer Tammer.
28508
28509 2010-07-30  Bruno Haible  <bruno@clisp.org>
28510
28511         mbrlen: Fix cross-compilation guess for AIX.
28512         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28513         guess. Leftover from 2008-12-22.
28514
28515 2010-07-30  Bruno Haible  <bruno@clisp.org>
28516
28517         mbrtowc: Fix cross-compilation guess for AIX.
28518         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28519         guess. Leftover from 2008-12-21.
28520
28521 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28522
28523         init.sh: work around trap limitation of some shells
28524         * tests/init.sh (setup_): Move exit trap outside of shell function.
28525
28526 2010-07-29  Eric Blake  <eblake@redhat.com>
28527
28528         strtod: aid debugging
28529         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28530         understanding why strtod is rejected.
28531
28532 2010-07-28  Bruno Haible  <bruno@clisp.org>
28533
28534         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28535         * lib/unistr/u8-chr.c: Include <string.h>.
28536         * tests/unistr/test-u8-chr.c: Likewise.
28537         * tests/unistr/test-u16-chr.c: Likewise.
28538         * tests/unistr/test-u32-chr.c: Likewise.
28539         * tests/unistr/test-u8-strchr.c: Likewise.
28540         * tests/unistr/test-u16-strchr.c: Likewise.
28541         * tests/unistr/test-u32-strchr.c: Likewise.
28542         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28543         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28544         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28545         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28546
28547 2010-07-28  Bruno Haible  <bruno@clisp.org>
28548
28549         Use spaces for indentation, not tabs.
28550         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28551
28552 2010-07-27  Bruno Haible  <bruno@clisp.org>
28553
28554         mbspcasecmp: Fix function specification.
28555         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28556         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28557         Reported by Eric Blake <eblake@redhat.com>.
28558
28559 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28560
28561         timespec: use cast and not conditional, as truncation isn't possible
28562         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28563         instead of a conditional.  Comment about the situation in more detail.
28564         This undoes most of the 2009-10-29 patch.
28565
28566 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28567
28568         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28569         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28570         * lib/unistr/u8-strchr.c: Likewise.
28571         * modules/unistr/u8-chr: Depend on memchr.
28572
28573         unistr/u*-strchr: add tests
28574         * modules/unistr/u8-strchr-tests: New file.
28575         * modules/unistr/u16-strchr-tests: New file.
28576         * modules/unistr/u32-strchr-tests: New file.
28577         * tests/unistr/test-strchr.h: New file.
28578         * tests/unistr/test-u8-strchr.c: New file.
28579         * tests/unistr/test-u16-strchr.c: New file.
28580         * tests/unistr/test-u32-strchr.c: New file.
28581
28582         unistr/u*-chr: test multibyte sequences more
28583         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28584         test vector.
28585         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28586         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28587         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28588
28589         unistr/u*-chr: test multibyte sequences
28590         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28591
28592         unistr/u*-chr: prepare for multibyte tests
28593         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28594         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28595         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28596         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28597         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28598         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28599
28600 2010-07-18  Bruno Haible  <bruno@clisp.org>
28601
28602         unistr/u8-strchr: Optimize non-ASCII argument case.
28603         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28604         because the first byte often matches anyway.
28605         Reported by Pádraig Brady <P@draigbrady.com>.
28606
28607 2010-07-15  Karl Berry  <karl@gnu.org>
28608
28609         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28610
28611 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28612
28613         getcwd: on Solaris, work better if ancestors are inaccessible
28614         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28615         buffer and size, try again with a large buffer.  This works better
28616         on Solaris, since its getcwd succeeds even if the path to the root
28617         is inaccessible, and this is helpful in common cases such as .zfs
28618         hidden directories.  Problem reported by J Chapman Flack in
28619         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28620         Use system getcwd if it's declared, not merely if it's partly
28621         working; use the partly-working test only to avoid needless effort
28622         if the system getcwd fails.
28623         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28624         comment that was already obsolete and is now even more obsolete.
28625         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28626         now might call strdup.
28627
28628 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28629
28630         pthread: Add enough so that coreutils/src/sort.c compiles.
28631         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28632         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28633         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28634         Include <sys/types.h>, in case it defines pthread_t.
28635         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28636         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28637         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28638         (pthread_rwlockattr_t, pthread_spinlock_t):
28639         New typedefs, if HAVE_PTHREAD_T is not defined.
28640         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28641         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28642         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28643         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28644         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28645         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28646         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28647         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28648         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28649         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28650         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28651         New macros.
28652         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28653         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28654         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28655         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28656         (pthread_spin_unlock): New dummy functions.
28657         (pthread_create): Return EAGAIN; don't set errno.
28658         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28659         require AC_C_INLINE.
28660         * modules/pthread (Depends-on): Add sched, time.
28661         (pthread.h): Use AM_V_GEN.
28662
28663 2010-07-13  Bruno Haible  <bruno@clisp.org>
28664
28665         striconveh: Don't malloc memory if the result buffer is sufficient.
28666         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28667         buffer if its size is sufficient.
28668         Reported by Ludovic Courtès <ludo@gnu.org>.
28669
28670 2010-07-13  Bruno Haible  <bruno@clisp.org>
28671
28672         strtod: Add safety check.
28673         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28674
28675 2010-07-12  Bruno Haible  <bruno@clisp.org>
28676
28677         Unify tests that set gl_cv_func_ldexpl_no_libm.
28678         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28679         gl_FUNC_LDEXPL.
28680         (gl_FUNC_LDEXPL): Invoke it.
28681         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28682
28683 2010-07-12  Bruno Haible  <bruno@clisp.org>
28684
28685         Unify tests that set gl_cv_func_ldexp_no_libm.
28686         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28687         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28688         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28689         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28690         * modules/strtod (Files): Add m4/ldexp.m4.
28691
28692 2010-07-12  Bruno Haible  <bruno@clisp.org>
28693
28694         Unify tests that set gl_cv_func_frexpl_no_libm.
28695         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28696         gl_FUNC_FREXPL_NO_LIBM.
28697         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28698         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28699
28700 2010-07-12  Bruno Haible  <bruno@clisp.org>
28701
28702         Unify tests that set gl_cv_func_frexp_no_libm.
28703         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28704         gl_FUNC_FREXP_NO_LIBM.
28705         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28706         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28707
28708 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28709
28710         memcoll: clarify sizes versus lengths, document better, and tweak perf
28711         * lib/memcoll.c (strcoll_loop, memcoll0):
28712         Improve quality of descriptive comments.  Name variables
28713         consistently as to whether they are lengths (which do not include
28714         terminating null) versus sizes (which do).
28715         * lib/xmemcoll.c (xmemcoll0): Likewise.
28716         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28717         returned when s1size == 0; this is easier to compile and saves
28718         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28719
28720 2010-07-12  Bruno Haible  <bruno@clisp.org>
28721
28722         Tests for module '_Exit'.
28723         * modules/_Exit-tests: New file.
28724         * tests/test-_Exit.sh: New file.
28725         * tests/test-_Exit.c: New file.
28726
28727         New module '_Exit'.
28728         * lib/stdlib.in.h (__attribute__): New macro.
28729         (_Exit): New declaration.
28730         * lib/_Exit.c: New file.
28731         * m4/_Exit.m4: New file.
28732         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28733         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28734         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28735         * modules/_Exit: New file.
28736         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28737         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28738
28739 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28740
28741         strtod: make it more-accurate typically, and don't require libm
28742         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28743         Include limits.h.  Don't include string.h.
28744         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28745         (locale_isspace): New function, so that no casts are needed to
28746         check whether *s is a space.
28747         (ldexp): Provide an unused dummy if not available.
28748         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28749         (strtod): Use them.  This implementation prefers to use the
28750         underlying strtod if available, falling back on our own code
28751         only to fix known bugs.  This is more likely to produce an
28752         accurate result.  Also, it avoids the use of libm functions.
28753         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28754         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28755         was absent, but it caused a test failure with coreutils.
28756         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28757         with libm.
28758         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28759         * modules/strtod-tests (Makefile.am): Likewise.
28760
28761 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28762             Bruno Haible  <bruno@clisp.org>
28763
28764         unistr/u8-strchr: Optimize ASCII argument case.
28765         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28766
28767 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28768
28769         (x)memcoll: minor tweaks
28770         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28771         is after the type that it qualifies.
28772         (memcoll0): Likewise.
28773         * lib/memcoll.h (memcoll0): Likewise.
28774         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28775         * lib/xmemcoll.h (xmemcoll0): Likewise.
28776         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28777         differs from memcoll in that the NUL byte is part of the argument.
28778         Omit the abort-checks, as performance is a real issue here.  Plus,
28779         the checks were wrong anyway (an off-by-one error).  Omit local
28780         variable 'diff', as it's a bit clearer that way.
28781         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28782         no longer needed.
28783
28784 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28785
28786         (x)memcoll: speedup when input is known to be NUL delimited
28787         * lib/memcoll.c: Include stdlib.
28788         (memcoll0): New function.
28789         (strcoll_loop): New function, refactored for use in both memcoll
28790         and memcoll0.
28791         * lib/memcoll.h (memcoll0): Add prototype.
28792         * lib/xmemcoll.c (xmemcoll0): New function.
28793         (collate_error): New function, refactored for use in both xmemcoll
28794         and xmemcoll0.
28795         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28796         * m4/memcoll.m4: add inline invocation.
28797
28798 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28799
28800         * build-aux/bootstrap: Remove any local translations
28801         from the translation project synchronization directory,
28802         so that local only translations are not distributed.
28803
28804 2010-07-04  Bruno Haible  <bruno@clisp.org>
28805
28806         fsusage: Clarify which code applies to which platforms.
28807         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28808         platform.
28809         * lib/fsusage.c (get_fs_usage): Likewise.
28810
28811 2010-07-04  Bruno Haible  <bruno@clisp.org>
28812
28813         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28814         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28815         Reported by Martin Lambers <marlam@marlam.de>.
28816
28817 2010-07-04  Jim Meyering  <meyering@redhat.com>
28818
28819         hash: once again explicitly disallow insertion of NULL
28820         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28821         inserting a NULL pointer cannot work with these functions.
28822         Add a comment with details.
28823         This reverts part of the 2010-07-01 commit, 5bef1a35
28824         "hash: extend module to deal with non-pointer keys".
28825
28826 2010-07-01  Bruno Haible  <bruno@clisp.org>
28827
28828         stdbool: Update doc.
28829         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28830         Info from Christian Weisgerber <naddy@mips.inka.de>.
28831
28832 2010-07-01  Jim Meyering  <meyering@redhat.com>
28833
28834         hash: extend module to deal with non-pointer keys
28835         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28836         but that allows insertion of non-pointer entries.
28837         Do not disallow an ENTRY value of NULL.
28838         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28839         * lib/hash.h (hash_insert0): Declare.
28840
28841 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28842
28843         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28844         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28845         not present (i.e. with autoconf 2.59 and when using gettextize, not
28846         gnulib), require AC_GNU_SOURCE instead.
28847
28848 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28849
28850         idpriv-drop: Fix tests.
28851         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28852         not to the test-idpriv-droptemp program.
28853
28854 2010-06-29  Bruno Haible  <bruno@clisp.org>
28855
28856         string: Fix syntax error with g++ 2.96.
28857         * lib/string.in.h (__pure__): Remove definition.
28858         (_GL_ATTRIBUTE_PURE): New macro.
28859         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28860         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28861         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28862
28863 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28864
28865         unitypes: Fix bug introduced on 2010-05-18.
28866         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28867
28868 2010-06-22  Eric Blake  <eblake@redhat.com>
28869
28870         memmem: slight optimization
28871         * lib/str-two-way.h (critical_factorization): Update comments.
28872         Reduce work during factorization phase.
28873         Reported by Carlos Bueno <carlos@bueno.org>.
28874
28875 2010-06-21  Bruno Haible  <bruno@clisp.org>
28876
28877         Fix HAVE_CALLOC_POSIX misnomer.
28878         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28879         !HAVE_CALLOC_POSIX.
28880         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28881         HAVE_CALLOC_POSIX.
28882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28883         instead of HAVE_CALLOC_POSIX.
28884         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28885         HAVE_CALLOC_POSIX.
28886
28887         Use modern idiom for calloc() replacement.
28888         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28889         AC_FUNC_CALLOC.
28890         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28891         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28892         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28893         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28894         (gl_REPLACE_CALLOC): New macro.
28895
28896 2010-06-21  Bruno Haible  <bruno@clisp.org>
28897
28898         Fix HAVE_REALLOC_POSIX misnomer.
28899         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28900         !HAVE_REALLOC_POSIX.
28901         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28902         HAVE_REALLOC_POSIX.
28903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28904         instead of HAVE_REALLOC_POSIX.
28905         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28906         HAVE_REALLOC_POSIX.
28907
28908         Use modern idiom for realloc() replacement.
28909         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28910         AC_FUNC_REALLOC.
28911         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28912         Autoconf's AC_FUNC_REALLOC.
28913         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28914         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28915         (gl_REPLACE_REALLOC): New macro.
28916         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28917
28918 2010-06-21  Bruno Haible  <bruno@clisp.org>
28919
28920         Fix HAVE_MALLOC_POSIX misnomer.
28921         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28922         !HAVE_MALLOC_POSIX.
28923         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28924         HAVE_MALLOC_POSIX.
28925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28926         instead of HAVE_MALLOC_POSIX.
28927         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28928         HAVE_MALLOC_POSIX.
28929
28930         Use modern idiom for malloc() replacement.
28931         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28932         AC_FUNC_MALLOC.
28933         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28934         Autoconf's AC_FUNC_MALLOC.
28935         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28936         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28937         (gl_REPLACE_MALLOC): New macro.
28938         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28939
28940 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28941
28942         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28943         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28944         This macro takes 3 arguments, not 4.
28945
28946 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28947
28948         ipv6: fix detection under mingw
28949         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28950         in6_addr.
28951
28952 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28953
28954         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28955         that strtod() works when cross-compiling to a glibc version known
28956         to work.
28957
28958 2010-06-15  Bruno Haible  <bruno@clisp.org>
28959
28960         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28961
28962 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28963
28964         select: Correct timeout.
28965         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28966
28967 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28968
28969         git-version-gen: init shell var to avoid env var influence
28970         * build-aux/git-version-gen (v): Init shell var to empty.
28971
28972 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28973
28974         priv-set: Don't assume that priv.h exists merely because getppriv does.
28975         See Jan Andersen's bug report about AIX 5L in
28976         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28977         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28978         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28979         * lib/priv-set.h: Likewise.
28980         * tests/test-priv-set.c: Likewise.
28981
28982 2010-06-13  Bruno Haible  <bruno@clisp.org>
28983
28984         relocatable: Make it easier to test whether to install wrappers.
28985         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28986         RELOCATABLE_VIA_WRAPPER.
28987
28988 2010-06-13  Bruno Haible  <bruno@clisp.org>
28989
28990         gnulib-tool: Display specified modules and dependencies differently.
28991         * gnulib-tool (func_show_module_list): New function.
28992         (func_import, func_create_testdir): Invoke it.
28993         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28994
28995 2010-06-13  Bruno Haible  <bruno@clisp.org>
28996
28997         gnulib-tool: Align code of func_import and func_create_testdir.
28998         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28999         specified_modules.
29000
29001 2010-06-12  Jim Meyering  <meyering@redhat.com>
29002
29003         test-inttostr: avoid spurious failure on Solaris 9
29004         * tests/test-inttostr.c (main): Skip the test when snprintf fails
29005         to accept "%ju".  Reported by Bruno Haible.
29006
29007 2010-06-11  Jim Meyering  <meyering@redhat.com>
29008
29009         test-sys_socket: mark variables as used more readably
29010         * tests/test-sys_socket.c (main): Mark otherwise unused variables
29011         as "used" explicitly via (void) statement casts.  This is more
29012         readable than using them in an artificial return expression.
29013         Suggestion from Bruno Haible.
29014
29015 2010-06-11  Bruno Haible  <bruno@clisp.org>
29016
29017         Avoid some more warnings from "gcc -Wwrite-strings".
29018         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
29019         to 'const char *'.
29020         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
29021         * tests/test-c-strcasestr.c (main): Likewise.
29022         * tests/test-mbscasestr1.c (main): Likewise.
29023         * tests/test-mbscasestr2.c (main): Likewise.
29024         * tests/test-memmem.c (main): Likewise.
29025         * tests/test-strstr.c (main): Likewise.
29026         * tests/test-strcasestr.c (main): Likewise.
29027
29028 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29029
29030         init.sh: change framework_failure_ to fail with status 99, not 1
29031         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
29032         automake's parallel-tests rule that this is an unexpected failure,
29033         even if the test is listed in XFAIL_TESTS.
29034
29035 2010-06-11  Jim Meyering  <meyering@redhat.com>
29036
29037         test-inttostr: avoid warnings about 4-6KB literal strings
29038         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
29039         Include "macros.h", for its definition of ASSERT.
29040         (CK): s/assert/ASSERT/
29041         * modules/inttostr-tests (Files): Add macros.h.
29042
29043         init.sh: don't use $ME_ or skip_ before they are defined
29044         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
29045         their first uses.  Also hoist their companions: warn_, fail_,
29046         framework_failure_, $stderr_fileno.  Prompted by a patch from
29047         Stefano Lattarini.
29048
29049         test-sys_socket: avoid set-but-not-used warnings from gcc
29050         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
29051         avoid warning about set-but-not-used variables.
29052
29053         test-xvasprintf: avoid 'const' discard warnings
29054         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
29055         "const" when assigning from literal strings.
29056         (test_xasprintf): Add "void" in function argument list to placate
29057         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
29058
29059         tests: avoid compilation warnings in argmatch and exclude tests...
29060         in packages that define ARGMATCH_DIE_DECL, like coreutils.
29061         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
29062         Since it always exits, declare with the "noreturn" attribute.
29063         * tests/test-argmatch.c: Likewise.
29064
29065         tests: avoid 'const' discard warnings in mbsstr tests
29066         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
29067         * tests/test-mbsstr2.c (main): Likewise.
29068
29069         test-verify: avoid warning from gcc's -Wmissing-declarations
29070         * tests/test-verify.c (function): Declare to be static.
29071
29072         test-inttostr.c: include <string.h> for use of strcmp
29073         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
29074
29075         test-linkat: avoid failed assertion on "other" architectures
29076         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
29077         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
29078         sparc: https://bugs.launchpad.net/bugs/591968
29079
29080 2010-06-11  Jim Meyering  <meyering@redhat.com>
29081
29082         printf.m4: avoid autoconf's "Expanded Before Required" warning
29083         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
29084         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
29085         autoconf warning.
29086
29087 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
29088
29089         Replacement header templates are now named with ".in", not "_".
29090         * doc/gnulib-intro.texi: Correct.
29091
29092 2010-06-10  Jim Meyering  <meyering@redhat.com>
29093
29094         inttostr-tests: depend on snprintf, not snprintf-posix
29095         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
29096         snprintf-posix, to avoid this aclocal failure:
29097           missing file gnulib-tests/vasnprintf.c
29098           configure.ac:45: error: expected source file, required through \
29099           AC_LIBSOURCES, not found
29100
29101 2010-06-10  Jim Meyering  <meyering@redhat.com>
29102
29103         inttostr: add a new function, inttostr, and tests
29104         The namesake function was not available.  The existence of the
29105         template file, inttostr.c makes its addition nontrivial.
29106         * lib/anytostr.c: Rename from inttostr.c.
29107         (anytostr): Rename from inttostr.
29108         * lib/inttostr.c: New file.
29109         * modules/inttostr (Files): Add anytostr.c.
29110         (Makefile.am): Set lib_SOURCES instead of ...
29111         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
29112         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
29113         * lib/offtostr.c: Likewise.
29114         * lib/uinttostr.c: Likewise.
29115         * lib/umaxtostr.c: Likewise.
29116         * modules/inttostr-tests: New file.
29117         * tests/test-inttostr.c: New file.  Test these functions.
29118
29119 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
29120             Bruno Haible  <bruno@clisp.org>
29121
29122         Add "Extending Gnulib" chapter to manual.
29123         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
29124         chapter.
29125         (Extending Gnulib): New chapter.
29126         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
29127         chapter.
29128
29129 2010-06-09  Bruno Haible  <bruno@clisp.org>
29130
29131         Avoid relocwrapper link errors due to gnulib replacement functions.
29132         * lib/areadlink.c: Use the system's malloc, realloc functions.
29133         (areadlink): Set errno to ENOMEM explicitly.
29134         * modules/areadlink (Depends-on): Remove malloc-posix.
29135         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29136
29137 2010-06-09  Bruno Haible  <bruno@clisp.org>
29138
29139         Avoid relocwrapper link errors due to gnulib replacement functions.
29140         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29141         * lib/malloca.c: Likewise.
29142         * lib/relocatable.c: Likewise.
29143         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29144         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29145         * lib/setenv.c: Use the system's malloc, realloc functions.
29146         * lib/strerror.c: Use the system's sprintf function.
29147         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29148
29149 2010-06-04  Bruno Haible  <bruno@clisp.org>
29150
29151         Prefer documented low-level autoconf macro names.
29152         * m4/lib-link.m4: Use m4_translit instead of translit.
29153         * m4/environ.m4: Likewise.
29154         * m4/mathfunc.m4: Likewise.
29155         * m4/onceonly.m4: Likewise.
29156         * m4/stdint.m4: Likewise.
29157         Suggested by Eric Blake.
29158
29159 2010-06-04  Martin Lambers  <marlam@marlam.de>
29160             Bruno Haible  <bruno@clisp.org>
29161
29162         havelib: Allow library names with '+' characters.
29163         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29164         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29165
29166 2010-06-09  Bruno Haible  <bruno@clisp.org>
29167
29168         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29169         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29170         realloc failed.
29171
29172 2010-06-08  Peter Simons  <simons@cryp.to>
29173
29174         maint.mk: make the news-check rule more configurable
29175         * top/maint.mk (news-check-lines-spec): New variable.
29176         (news-check): Use "sed -n 1,10p" in place of "head".
29177
29178 2010-06-07  Jim Meyering  <meyering@redhat.com>
29179
29180         do-release-commit-and-tag: fix typo in --help
29181         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29182
29183         regex: avoid new dead-code warning with gcc-4.6.0
29184         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29185         if-block containing a while-loop.  It's been unused for at least
29186         5 years.
29187
29188 2010-06-05  Bruno Haible  <bruno@clisp.org>
29189
29190         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29191         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29192
29193 2010-06-04  Bruno Haible  <bruno@clisp.org>
29194
29195         Update to GNU gettext 0.18.1.
29196         * modules/gettext (configure.ac): Require gettext infrastructure from
29197         version 0.18.1.
29198
29199 2010-06-03  Bruno Haible  <bruno@clisp.org>
29200
29201         Don't use AC_LIBOBJ with file names in subdirectories.
29202         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29203         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29204         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29205         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29206         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29207         gl_LIBUNISTRING_LIBSOURCE.
29208         (Makefile.am): Augment lib_SOURCES here, conditionally.
29209         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29210
29211 2010-06-03  Bruno Haible  <bruno@clisp.org>
29212
29213         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29214         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29215         expansion does not end with a newline.
29216         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29217         unnecessary newline.
29218
29219 2010-06-03  Bruno Haible  <bruno@clisp.org>
29220
29221         Reduce dependencies.
29222         * tests/test-quotearg.h: New file, extracted from
29223         tests/test-quotearg.c.
29224         * tests/test-quotearg-simple.c: New file, extracted from
29225         tests/test-quotearg.c.
29226         * tests/test-quotearg.c: Don't include <ctype.h>.
29227         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29228         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29229         use_quote_double_quotes, use_quotearg_colon): Moved to
29230         tests/test-quotearg.h.
29231         (results_g, flag_results, custom_quotes, custom_results): Moved
29232         to tests/test-quotearg-simple.c.
29233         (main): Moved the part that does not depend on gettext to
29234         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29235         performed.
29236         * modules/quotearg-simple: New file.
29237         * modules/quotearg-simple-tests: New file.
29238         * modules/quotearg (Depends-on): Add quotearg-simple.
29239         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29240         (Files): Add tests/test-quotearg.h.
29241         Reported by Paolo Bonzini.
29242
29243 2010-06-03  Bruno Haible  <bruno@clisp.org>
29244
29245         Reduce dependencies.
29246         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29247
29248 2010-06-03  Bruno Haible  <bruno@clisp.org>
29249
29250         time: Undefine more broken macros.
29251         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29252         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29253         Reported by Eric Blake.
29254
29255 2010-06-03  Bruno Haible  <bruno@clisp.org>
29256
29257         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29258         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29259         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29260         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29261         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29262         Reported by Ludovic Courtès <ludo@gnu.org>.
29263
29264 2010-06-02  Eric Blake  <eblake@redhat.com>
29265
29266         time: work with mingw + pthreads-win32 library
29267         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29268         if timespec is defined only in pthread.h.
29269         * modules/time (Makefile.am): Substitute it.
29270         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29271         <pthread.h>, when needed.
29272         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29273         from the library.
29274
29275 2010-05-31  Bruno Haible  <bruno@clisp.org>
29276
29277         Avoid expanding two macros in the wrong order.
29278         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29279         gl_LIBUNISTRING if it is defined.
29280         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29281         autoconf >= 2.64.
29282         Reported by Ludovic Courtès <ludo@gnu.org>.
29283
29284 2010-05-27  Jim Meyering  <meyering@redhat.com>
29285
29286         maint.mk: also prohibit "#undef" of always-defined symbols
29287         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29288         Allow more than one space before the symbol name.
29289         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29290         the regexp uses alternation.
29291
29292 2010-05-26  Eric Blake  <eblake@redhat.com>
29293
29294         maint.mk: avoid echo -e
29295         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29296         Convert all uses of echo -* to printf.
29297         Reported by Matthias Bolte.
29298
29299 2010-05-25  Bruno Haible  <bruno@clisp.org>
29300
29301         Update to GNU gettext 0.18, part 2.
29302         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29303         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29304
29305 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29306
29307         Add missing include in test-pwrite.c.
29308         * tests/test-pwrite.c: Include string.h, for strcmp.
29309
29310 2010-05-24  Bruno Haible  <bruno@clisp.org>
29311
29312         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29313
29314 2010-05-24  Bruno Haible  <bruno@clisp.org>
29315
29316         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29317         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29318         iconveh_error argument.
29319         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29320         U_STRCONV_TO_LOCALE.
29321         * lib/unistr/u16-strcoll.c: Likewise.
29322         * lib/unistr/u32-strcoll.c: Likewise.
29323         * modules/unistr/u8-strcoll (Depends-on): Add
29324         uniconv/u8-strconv-to-enc, localcharset. Remove
29325         uniconv/u8-strconv-to-locale.
29326         (configure.ac): Bump version number.
29327         * modules/unistr/u16-strcoll (Depends-on): Add
29328         uniconv/u16-strconv-to-enc, localcharset. Remove
29329         uniconv/u16-strconv-to-locale.
29330         (configure.ac): Bump version number.
29331         * modules/unistr/u32-strcoll (Depends-on): Add
29332         uniconv/u32-strconv-to-enc, localcharset. Remove
29333         uniconv/u32-strconv-to-locale.
29334         (configure.ac): Bump version number.
29335
29336 2010-05-24  Bruno Haible  <bruno@clisp.org>
29337
29338         Avoid a test failure on NetBSD 5.0.
29339         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29340         an iconv() bug.
29341
29342 2010-05-24  Bruno Haible  <bruno@clisp.org>
29343
29344         Adjust #include directive style.
29345         * modules/regex (Includes): Recommend to write <regex.h>.
29346
29347 2010-05-24  Bruno Haible  <bruno@clisp.org>
29348
29349         regex: Don't require alloca.
29350         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29351         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29352         only inside if (0).
29353
29354 2010-05-23  Jim Meyering  <meyering@redhat.com>
29355
29356         test-renameat.c: include <sys/stat.h>
29357         * tests/test-renameat.c: Include <sys/stat.h>; required for
29358         definition of S_IS* macros.
29359
29360 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29361
29362         Update maintainer documentation for 'relocatable-prog' module.
29363         * doc/relocatable-maint.texi: Update.
29364         Comments by Bruno Haible.
29365
29366 2010-05-23  Bruno Haible  <bruno@clisp.org>
29367
29368         git-merge-changelog: Enable --split-merged-entry by default.
29369         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29370         (usage): Don't mention this option any more.
29371         Reported by Ralf Wildenhues.
29372
29373 2010-05-23  Jim Meyering  <meyering@redhat.com>
29374
29375         test-pwrite: do not leave behind a test file named "out"
29376         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29377         The trivial-looking use of init.sh is really necessary.
29378         It ensures that the temporary file, "out", is created in
29379         a temporary directory, and removed upon termination.
29380         * tests/test-pwrite.sh: Re-add file.
29381         * modules/pwrite-tests: Reference it.
29382
29383 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29384
29385         Fix output redirection buglet in init.sh.
29386         * tests/init.sh: Fix redirection of stderr.
29387
29388 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29389
29390         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29391
29392 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29393
29394         * modules/valgrind-tests: New file.
29395         * m4/valgrind-tests.m4: New file.
29396         * doc/valgrind-tests.texi: New file.
29397         * doc/gnulib.texi (Running self-tests under valgrind): New
29398         section.
29399
29400 2010-05-19  Bruno Haible  <bruno@clisp.org>
29401
29402         Clean up dead code in recent commit.
29403         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29404         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29405         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29406         Suggested by Paolo Bonzini.
29407
29408 2010-05-19  Bruno Haible  <bruno@clisp.org>
29409
29410         Avoid valgrind error reports from libunistring.
29411         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29412         * modules/libunistring (Files): Add it.
29413         * modules/libunistring-optional (Files): Likewise.
29414
29415 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29416             Bruno Haible  <bruno@clisp.org>
29417
29418         New module 'libunistring-optional'.
29419         * modules/libunistring-optional: New file.
29420         * m4/libunistring-base.m4: New file.
29421         * m4/libunistring-optional.m4: New file.
29422         * lib/unicase.in.h: Renamed from lib/unicase.h.
29423         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29424         * lib/unictype.in.h: Renamed from lib/unictype.h.
29425         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29426         * lib/uniname.in.h: Renamed from lib/uniname.h.
29427         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29428         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29429         * lib/unistr.in.h: Renamed from lib/unistr.h.
29430         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29431         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29432         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29433         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29434         gl_LIBUNISTRING. If the library was found, determine the installed
29435         version and set LIBUNISTRING_VERSION.
29436         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29437         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29438         handle a configuration option --with-included-libunistring.
29439         * modules/libunistring (Files): Add m4/absolute-header.m4.
29440         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29441         Add m4/libunistring-base.m4.
29442         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29443         (Makefile.am): Build unicase.h from unicase.in.h.
29444         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29445         Add m4/libunistring-base.m4.
29446         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29447         (Makefile.am): Build uniconv.h from uniconv.in.h.
29448         * modules/unictype/base (Files): Use unictype.in.h instead of
29449         unictype.h. Add m4/libunistring-base.m4.
29450         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29451         (Makefile.am): Build unictype.h from unictype.in.h.
29452         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29453         Add m4/libunistring-base.m4.
29454         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29455         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29456         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29457         Add m4/libunistring-base.m4.
29458         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29459         (Makefile.am): Build uniname.h from uniname.in.h.
29460         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29461         Add m4/libunistring-base.m4.
29462         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29463         (Makefile.am): Build uninorm.h from uninorm.in.h.
29464         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29465         unistdio.h. Add m4/libunistring-base.m4.
29466         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29467         (Makefile.am): Build unistdio.h from unistdio.in.h.
29468         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29469         Add m4/libunistring-base.m4.
29470         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29471         (Makefile.am): Build unistr.h from unistr.in.h.
29472         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29473         Add m4/libunistring-base.m4.
29474         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29475         (Makefile.am): Build unitypes.h from unitypes.in.h.
29476         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29477         Add m4/libunistring-base.m4.
29478         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29479         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29480         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29481         uniwidth.h. Add m4/libunistring-base.m4.
29482         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29483         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29484         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29485         instead of augmenting lib_SOURCES.
29486         * modules/unicase/empty-suffix-context: Likewise.
29487         * modules/unicase/locale-language: Likewise.
29488         * modules/unicase/tolower: Likewise.
29489         * modules/unicase/totitle: Likewise.
29490         * modules/unicase/toupper: Likewise.
29491         * modules/unicase/u8-casecmp: Likewise.
29492         * modules/unicase/u8-casecoll: Likewise.
29493         * modules/unicase/u8-casefold: Likewise.
29494         * modules/unicase/u8-casexfrm: Likewise.
29495         * modules/unicase/u8-ct-casefold: Likewise.
29496         * modules/unicase/u8-ct-tolower: Likewise.
29497         * modules/unicase/u8-ct-totitle: Likewise.
29498         * modules/unicase/u8-ct-toupper: Likewise.
29499         * modules/unicase/u8-is-cased: Likewise.
29500         * modules/unicase/u8-is-casefolded: Likewise.
29501         * modules/unicase/u8-is-lowercase: Likewise.
29502         * modules/unicase/u8-is-titlecase: Likewise.
29503         * modules/unicase/u8-is-uppercase: Likewise.
29504         * modules/unicase/u8-prefix-context: Likewise.
29505         * modules/unicase/u8-suffix-context: Likewise.
29506         * modules/unicase/u8-tolower: Likewise.
29507         * modules/unicase/u8-totitle: Likewise.
29508         * modules/unicase/u8-toupper: Likewise.
29509         * modules/unicase/u16-casecmp: Likewise.
29510         * modules/unicase/u16-casecoll: Likewise.
29511         * modules/unicase/u16-casefold: Likewise.
29512         * modules/unicase/u16-casexfrm: Likewise.
29513         * modules/unicase/u16-ct-casefold: Likewise.
29514         * modules/unicase/u16-ct-tolower: Likewise.
29515         * modules/unicase/u16-ct-totitle: Likewise.
29516         * modules/unicase/u16-ct-toupper: Likewise.
29517         * modules/unicase/u16-is-cased: Likewise.
29518         * modules/unicase/u16-is-casefolded: Likewise.
29519         * modules/unicase/u16-is-lowercase: Likewise.
29520         * modules/unicase/u16-is-titlecase: Likewise.
29521         * modules/unicase/u16-is-uppercase: Likewise.
29522         * modules/unicase/u16-prefix-context: Likewise.
29523         * modules/unicase/u16-suffix-context: Likewise.
29524         * modules/unicase/u16-tolower: Likewise.
29525         * modules/unicase/u16-totitle: Likewise.
29526         * modules/unicase/u16-toupper: Likewise.
29527         * modules/unicase/u32-casecmp: Likewise.
29528         * modules/unicase/u32-casecoll: Likewise.
29529         * modules/unicase/u32-casefold: Likewise.
29530         * modules/unicase/u32-casexfrm: Likewise.
29531         * modules/unicase/u32-ct-casefold: Likewise.
29532         * modules/unicase/u32-ct-tolower: Likewise.
29533         * modules/unicase/u32-ct-totitle: Likewise.
29534         * modules/unicase/u32-ct-toupper: Likewise.
29535         * modules/unicase/u32-is-cased: Likewise.
29536         * modules/unicase/u32-is-casefolded: Likewise.
29537         * modules/unicase/u32-is-lowercase: Likewise.
29538         * modules/unicase/u32-is-titlecase: Likewise.
29539         * modules/unicase/u32-is-uppercase: Likewise.
29540         * modules/unicase/u32-prefix-context: Likewise.
29541         * modules/unicase/u32-suffix-context: Likewise.
29542         * modules/unicase/u32-tolower: Likewise.
29543         * modules/unicase/u32-totitle: Likewise.
29544         * modules/unicase/u32-toupper: Likewise.
29545         * modules/unicase/ulc-casecmp: Likewise.
29546         * modules/unicase/ulc-casecoll: Likewise.
29547         * modules/unicase/ulc-casexfrm: Likewise.
29548         * modules/uniconv/u8-conv-from-enc: Likewise.
29549         * modules/uniconv/u8-conv-to-enc: Likewise.
29550         * modules/uniconv/u8-strconv-from-enc: Likewise.
29551         * modules/uniconv/u8-strconv-from-locale: Likewise.
29552         * modules/uniconv/u8-strconv-to-enc: Likewise.
29553         * modules/uniconv/u8-strconv-to-locale: Likewise.
29554         * modules/uniconv/u16-conv-from-enc: Likewise.
29555         * modules/uniconv/u16-conv-to-enc: Likewise.
29556         * modules/uniconv/u16-strconv-from-enc: Likewise.
29557         * modules/uniconv/u16-strconv-from-locale: Likewise.
29558         * modules/uniconv/u16-strconv-to-enc: Likewise.
29559         * modules/uniconv/u16-strconv-to-locale: Likewise.
29560         * modules/uniconv/u32-conv-from-enc: Likewise.
29561         * modules/uniconv/u32-conv-to-enc: Likewise.
29562         * modules/uniconv/u32-strconv-from-enc: Likewise.
29563         * modules/uniconv/u32-strconv-from-locale: Likewise.
29564         * modules/uniconv/u32-strconv-to-enc: Likewise.
29565         * modules/uniconv/u32-strconv-to-locale: Likewise.
29566         * modules/unictype/bidicategory-byname: Likewise.
29567         * modules/unictype/bidicategory-name: Likewise.
29568         * modules/unictype/bidicategory-of: Likewise.
29569         * modules/unictype/bidicategory-test: Likewise.
29570         * modules/unictype/block-list: Likewise.
29571         * modules/unictype/block-test: Likewise.
29572         * modules/unictype/category-C: Likewise.
29573         * modules/unictype/category-Cc: Likewise.
29574         * modules/unictype/category-Cf: Likewise.
29575         * modules/unictype/category-Cn: Likewise.
29576         * modules/unictype/category-Co: Likewise.
29577         * modules/unictype/category-Cs: Likewise.
29578         * modules/unictype/category-L: Likewise.
29579         * modules/unictype/category-Ll: Likewise.
29580         * modules/unictype/category-Lm: Likewise.
29581         * modules/unictype/category-Lo: Likewise.
29582         * modules/unictype/category-Lt: Likewise.
29583         * modules/unictype/category-Lu: Likewise.
29584         * modules/unictype/category-M: Likewise.
29585         * modules/unictype/category-Mc: Likewise.
29586         * modules/unictype/category-Me: Likewise.
29587         * modules/unictype/category-Mn: Likewise.
29588         * modules/unictype/category-N: Likewise.
29589         * modules/unictype/category-Nd: Likewise.
29590         * modules/unictype/category-Nl: Likewise.
29591         * modules/unictype/category-No: Likewise.
29592         * modules/unictype/category-P: Likewise.
29593         * modules/unictype/category-Pc: Likewise.
29594         * modules/unictype/category-Pd: Likewise.
29595         * modules/unictype/category-Pe: Likewise.
29596         * modules/unictype/category-Pf: Likewise.
29597         * modules/unictype/category-Pi: Likewise.
29598         * modules/unictype/category-Po: Likewise.
29599         * modules/unictype/category-Ps: Likewise.
29600         * modules/unictype/category-S: Likewise.
29601         * modules/unictype/category-Sc: Likewise.
29602         * modules/unictype/category-Sk: Likewise.
29603         * modules/unictype/category-Sm: Likewise.
29604         * modules/unictype/category-So: Likewise.
29605         * modules/unictype/category-Z: Likewise.
29606         * modules/unictype/category-Zl: Likewise.
29607         * modules/unictype/category-Zp: Likewise.
29608         * modules/unictype/category-Zs: Likewise.
29609         * modules/unictype/category-and: Likewise.
29610         * modules/unictype/category-and-not: Likewise.
29611         * modules/unictype/category-byname: Likewise.
29612         * modules/unictype/category-name: Likewise.
29613         * modules/unictype/category-none: Likewise.
29614         * modules/unictype/category-of: Likewise.
29615         * modules/unictype/category-or: Likewise.
29616         * modules/unictype/category-test: Likewise.
29617         * modules/unictype/combining-class: Likewise.
29618         * modules/unictype/ctype-alnum: Likewise.
29619         * modules/unictype/ctype-alpha: Likewise.
29620         * modules/unictype/ctype-blank: Likewise.
29621         * modules/unictype/ctype-cntrl: Likewise.
29622         * modules/unictype/ctype-digit: Likewise.
29623         * modules/unictype/ctype-graph: Likewise.
29624         * modules/unictype/ctype-lower: Likewise.
29625         * modules/unictype/ctype-print: Likewise.
29626         * modules/unictype/ctype-punct: Likewise.
29627         * modules/unictype/ctype-space: Likewise.
29628         * modules/unictype/ctype-upper: Likewise.
29629         * modules/unictype/ctype-xdigit: Likewise.
29630         * modules/unictype/decimal-digit: Likewise.
29631         * modules/unictype/digit: Likewise.
29632         * modules/unictype/mirror: Likewise.
29633         * modules/unictype/numeric: Likewise.
29634         * modules/unictype/property-alphabetic: Likewise.
29635         * modules/unictype/property-ascii-hex-digit: Likewise.
29636         * modules/unictype/property-bidi-arabic-digit: Likewise.
29637         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29638         * modules/unictype/property-bidi-block-separator: Likewise.
29639         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29640         * modules/unictype/property-bidi-common-separator: Likewise.
29641         * modules/unictype/property-bidi-control: Likewise.
29642         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29643         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29644         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29645         * modules/unictype/property-bidi-european-digit: Likewise.
29646         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29647         * modules/unictype/property-bidi-left-to-right: Likewise.
29648         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29649         * modules/unictype/property-bidi-other-neutral: Likewise.
29650         * modules/unictype/property-bidi-pdf: Likewise.
29651         * modules/unictype/property-bidi-segment-separator: Likewise.
29652         * modules/unictype/property-bidi-whitespace: Likewise.
29653         * modules/unictype/property-byname: Likewise.
29654         * modules/unictype/property-combining: Likewise.
29655         * modules/unictype/property-composite: Likewise.
29656         * modules/unictype/property-currency-symbol: Likewise.
29657         * modules/unictype/property-dash: Likewise.
29658         * modules/unictype/property-decimal-digit: Likewise.
29659         * modules/unictype/property-default-ignorable-code-point: Likewise.
29660         * modules/unictype/property-deprecated: Likewise.
29661         * modules/unictype/property-diacritic: Likewise.
29662         * modules/unictype/property-extender: Likewise.
29663         * modules/unictype/property-format-control: Likewise.
29664         * modules/unictype/property-grapheme-base: Likewise.
29665         * modules/unictype/property-grapheme-extend: Likewise.
29666         * modules/unictype/property-grapheme-link: Likewise.
29667         * modules/unictype/property-hex-digit: Likewise.
29668         * modules/unictype/property-hyphen: Likewise.
29669         * modules/unictype/property-id-continue: Likewise.
29670         * modules/unictype/property-id-start: Likewise.
29671         * modules/unictype/property-ideographic: Likewise.
29672         * modules/unictype/property-ids-binary-operator: Likewise.
29673         * modules/unictype/property-ids-trinary-operator: Likewise.
29674         * modules/unictype/property-ignorable-control: Likewise.
29675         * modules/unictype/property-iso-control: Likewise.
29676         * modules/unictype/property-join-control: Likewise.
29677         * modules/unictype/property-left-of-pair: Likewise.
29678         * modules/unictype/property-line-separator: Likewise.
29679         * modules/unictype/property-logical-order-exception: Likewise.
29680         * modules/unictype/property-lowercase: Likewise.
29681         * modules/unictype/property-math: Likewise.
29682         * modules/unictype/property-non-break: Likewise.
29683         * modules/unictype/property-not-a-character: Likewise.
29684         * modules/unictype/property-numeric: Likewise.
29685         * modules/unictype/property-other-alphabetic: Likewise.
29686         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29687         * modules/unictype/property-other-grapheme-extend: Likewise.
29688         * modules/unictype/property-other-id-continue: Likewise.
29689         * modules/unictype/property-other-id-start: Likewise.
29690         * modules/unictype/property-other-lowercase: Likewise.
29691         * modules/unictype/property-other-math: Likewise.
29692         * modules/unictype/property-other-uppercase: Likewise.
29693         * modules/unictype/property-paired-punctuation: Likewise.
29694         * modules/unictype/property-paragraph-separator: Likewise.
29695         * modules/unictype/property-pattern-syntax: Likewise.
29696         * modules/unictype/property-pattern-white-space: Likewise.
29697         * modules/unictype/property-private-use: Likewise.
29698         * modules/unictype/property-punctuation: Likewise.
29699         * modules/unictype/property-quotation-mark: Likewise.
29700         * modules/unictype/property-radical: Likewise.
29701         * modules/unictype/property-sentence-terminal: Likewise.
29702         * modules/unictype/property-soft-dotted: Likewise.
29703         * modules/unictype/property-space: Likewise.
29704         * modules/unictype/property-terminal-punctuation: Likewise.
29705         * modules/unictype/property-test: Likewise.
29706         * modules/unictype/property-titlecase: Likewise.
29707         * modules/unictype/property-unassigned-code-value: Likewise.
29708         * modules/unictype/property-unified-ideograph: Likewise.
29709         * modules/unictype/property-uppercase: Likewise.
29710         * modules/unictype/property-variation-selector: Likewise.
29711         * modules/unictype/property-white-space: Likewise.
29712         * modules/unictype/property-xid-continue: Likewise.
29713         * modules/unictype/property-xid-start: Likewise.
29714         * modules/unictype/property-zero-width: Likewise.
29715         * modules/unictype/scripts: Likewise.
29716         * modules/unictype/syntax-c-ident: Likewise.
29717         * modules/unictype/syntax-c-whitespace: Likewise.
29718         * modules/unictype/syntax-java-ident: Likewise.
29719         * modules/unictype/syntax-java-whitespace: Likewise.
29720         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29721         * modules/unilbrk/u8-width-linebreaks: Likewise.
29722         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29723         * modules/unilbrk/u16-width-linebreaks: Likewise.
29724         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29725         * modules/unilbrk/u32-width-linebreaks: Likewise.
29726         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29727         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29728         * modules/uniname/uniname: Likewise.
29729         * modules/uninorm/canonical-decomposition: Likewise.
29730         * modules/uninorm/composition: Likewise.
29731         * modules/uninorm/decomposing-form: Likewise.
29732         * modules/uninorm/decomposition: Likewise.
29733         * modules/uninorm/filter: Likewise.
29734         * modules/uninorm/nfc: Likewise.
29735         * modules/uninorm/nfd: Likewise.
29736         * modules/uninorm/nfkc: Likewise.
29737         * modules/uninorm/nfkd: Likewise.
29738         * modules/uninorm/u8-normalize: Likewise.
29739         * modules/uninorm/u8-normcmp: Likewise.
29740         * modules/uninorm/u8-normcoll: Likewise.
29741         * modules/uninorm/u8-normxfrm: Likewise.
29742         * modules/uninorm/u16-normalize: Likewise.
29743         * modules/uninorm/u16-normcmp: Likewise.
29744         * modules/uninorm/u16-normcoll: Likewise.
29745         * modules/uninorm/u16-normxfrm: Likewise.
29746         * modules/uninorm/u32-normalize: Likewise.
29747         * modules/uninorm/u32-normcmp: Likewise.
29748         * modules/uninorm/u32-normcoll: Likewise.
29749         * modules/uninorm/u32-normxfrm: Likewise.
29750         * modules/unistdio/u8-asnprintf: Likewise.
29751         * modules/unistdio/u8-asprintf: Likewise.
29752         * modules/unistdio/u8-snprintf: Likewise.
29753         * modules/unistdio/u8-sprintf: Likewise.
29754         * modules/unistdio/u8-u8-asnprintf: Likewise.
29755         * modules/unistdio/u8-u8-asprintf: Likewise.
29756         * modules/unistdio/u8-u8-snprintf: Likewise.
29757         * modules/unistdio/u8-u8-sprintf: Likewise.
29758         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29759         * modules/unistdio/u8-u8-vasprintf: Likewise.
29760         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29761         * modules/unistdio/u8-u8-vsprintf: Likewise.
29762         * modules/unistdio/u8-vasnprintf: Likewise.
29763         * modules/unistdio/u8-vasprintf: Likewise.
29764         * modules/unistdio/u8-vsnprintf: Likewise.
29765         * modules/unistdio/u8-vsprintf: Likewise.
29766         * modules/unistdio/u16-asnprintf: Likewise.
29767         * modules/unistdio/u16-asprintf: Likewise.
29768         * modules/unistdio/u16-snprintf: Likewise.
29769         * modules/unistdio/u16-sprintf: Likewise.
29770         * modules/unistdio/u16-u16-asnprintf: Likewise.
29771         * modules/unistdio/u16-u16-asprintf: Likewise.
29772         * modules/unistdio/u16-u16-snprintf: Likewise.
29773         * modules/unistdio/u16-u16-sprintf: Likewise.
29774         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29775         * modules/unistdio/u16-u16-vasprintf: Likewise.
29776         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29777         * modules/unistdio/u16-u16-vsprintf: Likewise.
29778         * modules/unistdio/u16-vasnprintf: Likewise.
29779         * modules/unistdio/u16-vasprintf: Likewise.
29780         * modules/unistdio/u16-vsnprintf: Likewise.
29781         * modules/unistdio/u16-vsprintf: Likewise.
29782         * modules/unistdio/u32-asnprintf: Likewise.
29783         * modules/unistdio/u32-asprintf: Likewise.
29784         * modules/unistdio/u32-snprintf: Likewise.
29785         * modules/unistdio/u32-sprintf: Likewise.
29786         * modules/unistdio/u32-u32-asnprintf: Likewise.
29787         * modules/unistdio/u32-u32-asprintf: Likewise.
29788         * modules/unistdio/u32-u32-snprintf: Likewise.
29789         * modules/unistdio/u32-u32-sprintf: Likewise.
29790         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29791         * modules/unistdio/u32-u32-vasprintf: Likewise.
29792         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29793         * modules/unistdio/u32-u32-vsprintf: Likewise.
29794         * modules/unistdio/u32-vasnprintf: Likewise.
29795         * modules/unistdio/u32-vasprintf: Likewise.
29796         * modules/unistdio/u32-vsnprintf: Likewise.
29797         * modules/unistdio/u32-vsprintf: Likewise.
29798         * modules/unistdio/ulc-asnprintf: Likewise.
29799         * modules/unistdio/ulc-asprintf: Likewise.
29800         * modules/unistdio/ulc-fprintf: Likewise.
29801         * modules/unistdio/ulc-snprintf: Likewise.
29802         * modules/unistdio/ulc-sprintf: Likewise.
29803         * modules/unistdio/ulc-vasnprintf: Likewise.
29804         * modules/unistdio/ulc-vasprintf: Likewise.
29805         * modules/unistdio/ulc-vfprintf: Likewise.
29806         * modules/unistdio/ulc-vsnprintf: Likewise.
29807         * modules/unistdio/ulc-vsprintf: Likewise.
29808         * modules/unistr/u8-check: Likewise.
29809         * modules/unistr/u8-chr: Likewise.
29810         * modules/unistr/u8-cmp: Likewise.
29811         * modules/unistr/u8-cmp2: Likewise.
29812         * modules/unistr/u8-cpy: Likewise.
29813         * modules/unistr/u8-cpy-alloc: Likewise.
29814         * modules/unistr/u8-endswith: Likewise.
29815         * modules/unistr/u8-mblen: Likewise.
29816         * modules/unistr/u8-mbsnlen: Likewise.
29817         * modules/unistr/u8-mbtouc: Likewise.
29818         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29819         * modules/unistr/u8-mbtoucr: Likewise.
29820         * modules/unistr/u8-move: Likewise.
29821         * modules/unistr/u8-next: Likewise.
29822         * modules/unistr/u8-prev: Likewise.
29823         * modules/unistr/u8-set: Likewise.
29824         * modules/unistr/u8-startswith: Likewise.
29825         * modules/unistr/u8-stpcpy: Likewise.
29826         * modules/unistr/u8-stpncpy: Likewise.
29827         * modules/unistr/u8-strcat: Likewise.
29828         * modules/unistr/u8-strchr: Likewise.
29829         * modules/unistr/u8-strcmp: Likewise.
29830         * modules/unistr/u8-strcoll: Likewise.
29831         * modules/unistr/u8-strcpy: Likewise.
29832         * modules/unistr/u8-strcspn: Likewise.
29833         * modules/unistr/u8-strdup: Likewise.
29834         * modules/unistr/u8-strlen: Likewise.
29835         * modules/unistr/u8-strmblen: Likewise.
29836         * modules/unistr/u8-strmbtouc: Likewise.
29837         * modules/unistr/u8-strncat: Likewise.
29838         * modules/unistr/u8-strncmp: Likewise.
29839         * modules/unistr/u8-strncpy: Likewise.
29840         * modules/unistr/u8-strnlen: Likewise.
29841         * modules/unistr/u8-strpbrk: Likewise.
29842         * modules/unistr/u8-strrchr: Likewise.
29843         * modules/unistr/u8-strspn: Likewise.
29844         * modules/unistr/u8-strstr: Likewise.
29845         * modules/unistr/u8-strtok: Likewise.
29846         * modules/unistr/u8-to-u16: Likewise.
29847         * modules/unistr/u8-to-u32: Likewise.
29848         * modules/unistr/u8-uctomb: Likewise.
29849         * modules/unistr/u16-check: Likewise.
29850         * modules/unistr/u16-chr: Likewise.
29851         * modules/unistr/u16-cmp: Likewise.
29852         * modules/unistr/u16-cmp2: Likewise.
29853         * modules/unistr/u16-cpy: Likewise.
29854         * modules/unistr/u16-cpy-alloc: Likewise.
29855         * modules/unistr/u16-endswith: Likewise.
29856         * modules/unistr/u16-mblen: Likewise.
29857         * modules/unistr/u16-mbsnlen: Likewise.
29858         * modules/unistr/u16-mbtouc: Likewise.
29859         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29860         * modules/unistr/u16-mbtoucr: Likewise.
29861         * modules/unistr/u16-move: Likewise.
29862         * modules/unistr/u16-next: Likewise.
29863         * modules/unistr/u16-prev: Likewise.
29864         * modules/unistr/u16-set: Likewise.
29865         * modules/unistr/u16-startswith: Likewise.
29866         * modules/unistr/u16-stpcpy: Likewise.
29867         * modules/unistr/u16-stpncpy: Likewise.
29868         * modules/unistr/u16-strcat: Likewise.
29869         * modules/unistr/u16-strchr: Likewise.
29870         * modules/unistr/u16-strcmp: Likewise.
29871         * modules/unistr/u16-strcoll: Likewise.
29872         * modules/unistr/u16-strcpy: Likewise.
29873         * modules/unistr/u16-strcspn: Likewise.
29874         * modules/unistr/u16-strdup: Likewise.
29875         * modules/unistr/u16-strlen: Likewise.
29876         * modules/unistr/u16-strmblen: Likewise.
29877         * modules/unistr/u16-strmbtouc: Likewise.
29878         * modules/unistr/u16-strncat: Likewise.
29879         * modules/unistr/u16-strncmp: Likewise.
29880         * modules/unistr/u16-strncpy: Likewise.
29881         * modules/unistr/u16-strnlen: Likewise.
29882         * modules/unistr/u16-strpbrk: Likewise.
29883         * modules/unistr/u16-strrchr: Likewise.
29884         * modules/unistr/u16-strspn: Likewise.
29885         * modules/unistr/u16-strstr: Likewise.
29886         * modules/unistr/u16-strtok: Likewise.
29887         * modules/unistr/u16-to-u32: Likewise.
29888         * modules/unistr/u16-to-u8: Likewise.
29889         * modules/unistr/u16-uctomb: Likewise.
29890         * modules/unistr/u32-check: Likewise.
29891         * modules/unistr/u32-chr: Likewise.
29892         * modules/unistr/u32-cmp: Likewise.
29893         * modules/unistr/u32-cmp2: Likewise.
29894         * modules/unistr/u32-cpy: Likewise.
29895         * modules/unistr/u32-cpy-alloc: Likewise.
29896         * modules/unistr/u32-endswith: Likewise.
29897         * modules/unistr/u32-mblen: Likewise.
29898         * modules/unistr/u32-mbsnlen: Likewise.
29899         * modules/unistr/u32-mbtouc: Likewise.
29900         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29901         * modules/unistr/u32-mbtoucr: Likewise.
29902         * modules/unistr/u32-move: Likewise.
29903         * modules/unistr/u32-next: Likewise.
29904         * modules/unistr/u32-prev: Likewise.
29905         * modules/unistr/u32-set: Likewise.
29906         * modules/unistr/u32-startswith: Likewise.
29907         * modules/unistr/u32-stpcpy: Likewise.
29908         * modules/unistr/u32-stpncpy: Likewise.
29909         * modules/unistr/u32-strcat: Likewise.
29910         * modules/unistr/u32-strchr: Likewise.
29911         * modules/unistr/u32-strcmp: Likewise.
29912         * modules/unistr/u32-strcoll: Likewise.
29913         * modules/unistr/u32-strcpy: Likewise.
29914         * modules/unistr/u32-strcspn: Likewise.
29915         * modules/unistr/u32-strdup: Likewise.
29916         * modules/unistr/u32-strlen: Likewise.
29917         * modules/unistr/u32-strmblen: Likewise.
29918         * modules/unistr/u32-strmbtouc: Likewise.
29919         * modules/unistr/u32-strncat: Likewise.
29920         * modules/unistr/u32-strncmp: Likewise.
29921         * modules/unistr/u32-strncpy: Likewise.
29922         * modules/unistr/u32-strnlen: Likewise.
29923         * modules/unistr/u32-strpbrk: Likewise.
29924         * modules/unistr/u32-strrchr: Likewise.
29925         * modules/unistr/u32-strspn: Likewise.
29926         * modules/unistr/u32-strstr: Likewise.
29927         * modules/unistr/u32-strtok: Likewise.
29928         * modules/unistr/u32-to-u16: Likewise.
29929         * modules/unistr/u32-to-u8: Likewise.
29930         * modules/unistr/u32-uctomb: Likewise.
29931         * modules/uniwbrk/u8-wordbreaks: Likewise.
29932         * modules/uniwbrk/u16-wordbreaks: Likewise.
29933         * modules/uniwbrk/u32-wordbreaks: Likewise.
29934         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29935         * modules/uniwbrk/wordbreak-property: Likewise.
29936         * modules/uniwidth/u8-strwidth: Likewise.
29937         * modules/uniwidth/u8-width: Likewise.
29938         * modules/uniwidth/u16-strwidth: Likewise.
29939         * modules/uniwidth/u16-width: Likewise.
29940         * modules/uniwidth/u32-strwidth: Likewise.
29941         * modules/uniwidth/u32-width: Likewise.
29942         * modules/uniwidth/width: Likewise.
29943         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29944         with $(LIBUNISTRING).
29945         * modules/unicase/ignorable-tests: Likewise.
29946         * modules/unicase/locale-language-tests: Likewise.
29947         * modules/unicase/tolower-tests: Likewise.
29948         * modules/unicase/totitle-tests: Likewise.
29949         * modules/unicase/toupper-tests: Likewise.
29950         * modules/unicase/u8-casecmp-tests: Likewise.
29951         * modules/unicase/u8-casecoll-tests: Likewise.
29952         * modules/unicase/u8-casefold-tests: Likewise.
29953         * modules/unicase/u8-is-cased-tests: Likewise.
29954         * modules/unicase/u8-is-casefolded-tests: Likewise.
29955         * modules/unicase/u8-is-lowercase-tests: Likewise.
29956         * modules/unicase/u8-is-titlecase-tests: Likewise.
29957         * modules/unicase/u8-is-uppercase-tests: Likewise.
29958         * modules/unicase/u8-tolower-tests: Likewise.
29959         * modules/unicase/u8-totitle-tests: Likewise.
29960         * modules/unicase/u8-toupper-tests: Likewise.
29961         * modules/unicase/u16-casecmp-tests: Likewise.
29962         * modules/unicase/u16-casecoll-tests: Likewise.
29963         * modules/unicase/u16-casefold-tests: Likewise.
29964         * modules/unicase/u16-is-cased-tests: Likewise.
29965         * modules/unicase/u16-is-casefolded-tests: Likewise.
29966         * modules/unicase/u16-is-lowercase-tests: Likewise.
29967         * modules/unicase/u16-is-titlecase-tests: Likewise.
29968         * modules/unicase/u16-is-uppercase-tests: Likewise.
29969         * modules/unicase/u16-tolower-tests: Likewise.
29970         * modules/unicase/u16-totitle-tests: Likewise.
29971         * modules/unicase/u16-toupper-tests: Likewise.
29972         * modules/unicase/u32-casecmp-tests: Likewise.
29973         * modules/unicase/u32-casecoll-tests: Likewise.
29974         * modules/unicase/u32-casefold-tests: Likewise.
29975         * modules/unicase/u32-is-cased-tests: Likewise.
29976         * modules/unicase/u32-is-casefolded-tests: Likewise.
29977         * modules/unicase/u32-is-lowercase-tests: Likewise.
29978         * modules/unicase/u32-is-titlecase-tests: Likewise.
29979         * modules/unicase/u32-is-uppercase-tests: Likewise.
29980         * modules/unicase/u32-tolower-tests: Likewise.
29981         * modules/unicase/u32-totitle-tests: Likewise.
29982         * modules/unicase/u32-toupper-tests: Likewise.
29983         * modules/unicase/ulc-casecmp-tests: Likewise.
29984         * modules/unicase/ulc-casecoll-tests: Likewise.
29985         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29986         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29987         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29988         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29989         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29990         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29991         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29992         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29993         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29994         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29995         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29996         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29997         * modules/unictype/bidicategory-byname-tests: Likewise.
29998         * modules/unictype/bidicategory-name-tests: Likewise.
29999         * modules/unictype/bidicategory-of-tests: Likewise.
30000         * modules/unictype/bidicategory-test-tests: Likewise.
30001         * modules/unictype/block-list-tests: Likewise.
30002         * modules/unictype/block-of-tests: Likewise.
30003         * modules/unictype/block-test-tests: Likewise.
30004         * modules/unictype/category-C-tests: Likewise.
30005         * modules/unictype/category-Cc-tests: Likewise.
30006         * modules/unictype/category-Cf-tests: Likewise.
30007         * modules/unictype/category-Cn-tests: Likewise.
30008         * modules/unictype/category-Co-tests: Likewise.
30009         * modules/unictype/category-Cs-tests: Likewise.
30010         * modules/unictype/category-L-tests: Likewise.
30011         * modules/unictype/category-Ll-tests: Likewise.
30012         * modules/unictype/category-Lm-tests: Likewise.
30013         * modules/unictype/category-Lo-tests: Likewise.
30014         * modules/unictype/category-Lt-tests: Likewise.
30015         * modules/unictype/category-Lu-tests: Likewise.
30016         * modules/unictype/category-M-tests: Likewise.
30017         * modules/unictype/category-Mc-tests: Likewise.
30018         * modules/unictype/category-Me-tests: Likewise.
30019         * modules/unictype/category-Mn-tests: Likewise.
30020         * modules/unictype/category-N-tests: Likewise.
30021         * modules/unictype/category-Nd-tests: Likewise.
30022         * modules/unictype/category-Nl-tests: Likewise.
30023         * modules/unictype/category-No-tests: Likewise.
30024         * modules/unictype/category-P-tests: Likewise.
30025         * modules/unictype/category-Pc-tests: Likewise.
30026         * modules/unictype/category-Pd-tests: Likewise.
30027         * modules/unictype/category-Pe-tests: Likewise.
30028         * modules/unictype/category-Pf-tests: Likewise.
30029         * modules/unictype/category-Pi-tests: Likewise.
30030         * modules/unictype/category-Po-tests: Likewise.
30031         * modules/unictype/category-Ps-tests: Likewise.
30032         * modules/unictype/category-S-tests: Likewise.
30033         * modules/unictype/category-Sc-tests: Likewise.
30034         * modules/unictype/category-Sk-tests: Likewise.
30035         * modules/unictype/category-Sm-tests: Likewise.
30036         * modules/unictype/category-So-tests: Likewise.
30037         * modules/unictype/category-Z-tests: Likewise.
30038         * modules/unictype/category-Zl-tests: Likewise.
30039         * modules/unictype/category-Zp-tests: Likewise.
30040         * modules/unictype/category-Zs-tests: Likewise.
30041         * modules/unictype/category-and-not-tests: Likewise.
30042         * modules/unictype/category-and-tests: Likewise.
30043         * modules/unictype/category-byname-tests: Likewise.
30044         * modules/unictype/category-name-tests: Likewise.
30045         * modules/unictype/category-none-tests: Likewise.
30046         * modules/unictype/category-of-tests: Likewise.
30047         * modules/unictype/category-or-tests: Likewise.
30048         * modules/unictype/category-test-withtable-tests: Likewise.
30049         * modules/unictype/combining-class-tests: Likewise.
30050         * modules/unictype/ctype-alnum-tests: Likewise.
30051         * modules/unictype/ctype-alpha-tests: Likewise.
30052         * modules/unictype/ctype-blank-tests: Likewise.
30053         * modules/unictype/ctype-cntrl-tests: Likewise.
30054         * modules/unictype/ctype-digit-tests: Likewise.
30055         * modules/unictype/ctype-graph-tests: Likewise.
30056         * modules/unictype/ctype-lower-tests: Likewise.
30057         * modules/unictype/ctype-print-tests: Likewise.
30058         * modules/unictype/ctype-punct-tests: Likewise.
30059         * modules/unictype/ctype-space-tests: Likewise.
30060         * modules/unictype/ctype-upper-tests: Likewise.
30061         * modules/unictype/ctype-xdigit-tests: Likewise.
30062         * modules/unictype/decimal-digit-tests: Likewise.
30063         * modules/unictype/digit-tests: Likewise.
30064         * modules/unictype/mirror-tests: Likewise.
30065         * modules/unictype/numeric-tests: Likewise.
30066         * modules/unictype/property-alphabetic-tests: Likewise.
30067         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
30068         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
30069         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
30070         * modules/unictype/property-bidi-block-separator-tests: Likewise.
30071         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
30072         * modules/unictype/property-bidi-common-separator-tests: Likewise.
30073         * modules/unictype/property-bidi-control-tests: Likewise.
30074         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
30075         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
30076         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
30077         * modules/unictype/property-bidi-european-digit-tests: Likewise.
30078         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
30079         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
30080         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
30081         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
30082         * modules/unictype/property-bidi-pdf-tests: Likewise.
30083         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
30084         * modules/unictype/property-bidi-whitespace-tests: Likewise.
30085         * modules/unictype/property-byname-tests: Likewise.
30086         * modules/unictype/property-combining-tests: Likewise.
30087         * modules/unictype/property-composite-tests: Likewise.
30088         * modules/unictype/property-currency-symbol-tests: Likewise.
30089         * modules/unictype/property-dash-tests: Likewise.
30090         * modules/unictype/property-decimal-digit-tests: Likewise.
30091         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
30092         * modules/unictype/property-deprecated-tests: Likewise.
30093         * modules/unictype/property-diacritic-tests: Likewise.
30094         * modules/unictype/property-extender-tests: Likewise.
30095         * modules/unictype/property-format-control-tests: Likewise.
30096         * modules/unictype/property-grapheme-base-tests: Likewise.
30097         * modules/unictype/property-grapheme-extend-tests: Likewise.
30098         * modules/unictype/property-grapheme-link-tests: Likewise.
30099         * modules/unictype/property-hex-digit-tests: Likewise.
30100         * modules/unictype/property-hyphen-tests: Likewise.
30101         * modules/unictype/property-id-continue-tests: Likewise.
30102         * modules/unictype/property-id-start-tests: Likewise.
30103         * modules/unictype/property-ideographic-tests: Likewise.
30104         * modules/unictype/property-ids-binary-operator-tests: Likewise.
30105         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
30106         * modules/unictype/property-ignorable-control-tests: Likewise.
30107         * modules/unictype/property-iso-control-tests: Likewise.
30108         * modules/unictype/property-join-control-tests: Likewise.
30109         * modules/unictype/property-left-of-pair-tests: Likewise.
30110         * modules/unictype/property-line-separator-tests: Likewise.
30111         * modules/unictype/property-logical-order-exception-tests: Likewise.
30112         * modules/unictype/property-lowercase-tests: Likewise.
30113         * modules/unictype/property-math-tests: Likewise.
30114         * modules/unictype/property-non-break-tests: Likewise.
30115         * modules/unictype/property-not-a-character-tests: Likewise.
30116         * modules/unictype/property-numeric-tests: Likewise.
30117         * modules/unictype/property-other-alphabetic-tests: Likewise.
30118         * modules/unictype/property-other-default-ignorable-code-point-tests:
30119         Likewise.
30120         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
30121         * modules/unictype/property-other-id-continue-tests: Likewise.
30122         * modules/unictype/property-other-id-start-tests: Likewise.
30123         * modules/unictype/property-other-lowercase-tests: Likewise.
30124         * modules/unictype/property-other-math-tests: Likewise.
30125         * modules/unictype/property-other-uppercase-tests: Likewise.
30126         * modules/unictype/property-paired-punctuation-tests: Likewise.
30127         * modules/unictype/property-paragraph-separator-tests: Likewise.
30128         * modules/unictype/property-pattern-syntax-tests: Likewise.
30129         * modules/unictype/property-pattern-white-space-tests: Likewise.
30130         * modules/unictype/property-private-use-tests: Likewise.
30131         * modules/unictype/property-punctuation-tests: Likewise.
30132         * modules/unictype/property-quotation-mark-tests: Likewise.
30133         * modules/unictype/property-radical-tests: Likewise.
30134         * modules/unictype/property-sentence-terminal-tests: Likewise.
30135         * modules/unictype/property-soft-dotted-tests: Likewise.
30136         * modules/unictype/property-space-tests: Likewise.
30137         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30138         * modules/unictype/property-test-tests: Likewise.
30139         * modules/unictype/property-titlecase-tests: Likewise.
30140         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30141         * modules/unictype/property-unified-ideograph-tests: Likewise.
30142         * modules/unictype/property-uppercase-tests: Likewise.
30143         * modules/unictype/property-variation-selector-tests: Likewise.
30144         * modules/unictype/property-white-space-tests: Likewise.
30145         * modules/unictype/property-xid-continue-tests: Likewise.
30146         * modules/unictype/property-xid-start-tests: Likewise.
30147         * modules/unictype/property-zero-width-tests: Likewise.
30148         * modules/unictype/scripts-tests: Likewise.
30149         * modules/unictype/syntax-c-ident-tests: Likewise.
30150         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30151         * modules/unictype/syntax-java-ident-tests: Likewise.
30152         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30153         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30154         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30155         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30156         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30157         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30158         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30159         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30160         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30161         * modules/uniname/uniname-tests: Likewise.
30162         * modules/uninorm/canonical-decomposition-tests: Likewise.
30163         * modules/uninorm/compat-decomposition-tests: Likewise.
30164         * modules/uninorm/composition-tests: Likewise.
30165         * modules/uninorm/decomposing-form-tests: Likewise.
30166         * modules/uninorm/decomposition-tests: Likewise.
30167         * modules/uninorm/filter-tests: Likewise.
30168         * modules/uninorm/nfc-tests: Likewise.
30169         * modules/uninorm/nfd-tests: Likewise.
30170         * modules/uninorm/nfkc-tests: Likewise.
30171         * modules/uninorm/nfkd-tests: Likewise.
30172         * modules/uninorm/u8-normcmp-tests: Likewise.
30173         * modules/uninorm/u8-normcoll-tests: Likewise.
30174         * modules/uninorm/u16-normcmp-tests: Likewise.
30175         * modules/uninorm/u16-normcoll-tests: Likewise.
30176         * modules/uninorm/u32-normcmp-tests: Likewise.
30177         * modules/uninorm/u32-normcoll-tests: Likewise.
30178         * modules/unistdio/u8-asnprintf-tests: Likewise.
30179         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30180         * modules/unistdio/u8-vasprintf-tests: Likewise.
30181         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30182         * modules/unistdio/u8-vsprintf-tests: Likewise.
30183         * modules/unistdio/u16-asnprintf-tests: Likewise.
30184         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30185         * modules/unistdio/u16-vasprintf-tests: Likewise.
30186         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30187         * modules/unistdio/u16-vsprintf-tests: Likewise.
30188         * modules/unistdio/u32-asnprintf-tests: Likewise.
30189         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30190         * modules/unistdio/u32-vasprintf-tests: Likewise.
30191         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30192         * modules/unistdio/u32-vsprintf-tests: Likewise.
30193         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30194         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30195         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30196         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30197         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30198         * modules/unistr/u8-check-tests: Likewise.
30199         * modules/unistr/u8-chr-tests: Likewise.
30200         * modules/unistr/u8-cmp-tests: Likewise.
30201         * modules/unistr/u8-cmp2-tests: Likewise.
30202         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30203         * modules/unistr/u8-cpy-tests: Likewise.
30204         * modules/unistr/u8-mblen-tests: Likewise.
30205         * modules/unistr/u8-mbsnlen-tests: Likewise.
30206         * modules/unistr/u8-mbtouc-tests: Likewise.
30207         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30208         * modules/unistr/u8-mbtoucr-tests: Likewise.
30209         * modules/unistr/u8-move-tests: Likewise.
30210         * modules/unistr/u8-next-tests: Likewise.
30211         * modules/unistr/u8-prev-tests: Likewise.
30212         * modules/unistr/u8-set-tests: Likewise.
30213         * modules/unistr/u8-stpcpy-tests: Likewise.
30214         * modules/unistr/u8-stpncpy-tests: Likewise.
30215         * modules/unistr/u8-strcat-tests: Likewise.
30216         * modules/unistr/u8-strcmp-tests: Likewise.
30217         * modules/unistr/u8-strcoll-tests: Likewise.
30218         * modules/unistr/u8-strcpy-tests: Likewise.
30219         * modules/unistr/u8-strdup-tests: Likewise.
30220         * modules/unistr/u8-strlen-tests: Likewise.
30221         * modules/unistr/u8-strmblen-tests: Likewise.
30222         * modules/unistr/u8-strmbtouc-tests: Likewise.
30223         * modules/unistr/u8-strncat-tests: Likewise.
30224         * modules/unistr/u8-strncmp-tests: Likewise.
30225         * modules/unistr/u8-strncpy-tests: Likewise.
30226         * modules/unistr/u8-strnlen-tests: Likewise.
30227         * modules/unistr/u8-to-u16-tests: Likewise.
30228         * modules/unistr/u8-to-u32-tests: Likewise.
30229         * modules/unistr/u8-uctomb-tests: Likewise.
30230         * modules/unistr/u16-check-tests: Likewise.
30231         * modules/unistr/u16-chr-tests: Likewise.
30232         * modules/unistr/u16-cmp-tests: Likewise.
30233         * modules/unistr/u16-cmp2-tests: Likewise.
30234         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30235         * modules/unistr/u16-cpy-tests: Likewise.
30236         * modules/unistr/u16-mblen-tests: Likewise.
30237         * modules/unistr/u16-mbsnlen-tests: Likewise.
30238         * modules/unistr/u16-mbtouc-tests: Likewise.
30239         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30240         * modules/unistr/u16-mbtoucr-tests: Likewise.
30241         * modules/unistr/u16-move-tests: Likewise.
30242         * modules/unistr/u16-next-tests: Likewise.
30243         * modules/unistr/u16-prev-tests: Likewise.
30244         * modules/unistr/u16-set-tests: Likewise.
30245         * modules/unistr/u16-stpcpy-tests: Likewise.
30246         * modules/unistr/u16-stpncpy-tests: Likewise.
30247         * modules/unistr/u16-strcat-tests: Likewise.
30248         * modules/unistr/u16-strcmp-tests: Likewise.
30249         * modules/unistr/u16-strcoll-tests: Likewise.
30250         * modules/unistr/u16-strcpy-tests: Likewise.
30251         * modules/unistr/u16-strdup-tests: Likewise.
30252         * modules/unistr/u16-strlen-tests: Likewise.
30253         * modules/unistr/u16-strmblen-tests: Likewise.
30254         * modules/unistr/u16-strmbtouc-tests: Likewise.
30255         * modules/unistr/u16-strncat-tests: Likewise.
30256         * modules/unistr/u16-strncmp-tests: Likewise.
30257         * modules/unistr/u16-strncpy-tests: Likewise.
30258         * modules/unistr/u16-strnlen-tests: Likewise.
30259         * modules/unistr/u16-to-u32-tests: Likewise.
30260         * modules/unistr/u16-to-u8-tests: Likewise.
30261         * modules/unistr/u16-uctomb-tests: Likewise.
30262         * modules/unistr/u32-check-tests: Likewise.
30263         * modules/unistr/u32-chr-tests: Likewise.
30264         * modules/unistr/u32-cmp-tests: Likewise.
30265         * modules/unistr/u32-cmp2-tests: Likewise.
30266         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30267         * modules/unistr/u32-cpy-tests: Likewise.
30268         * modules/unistr/u32-mblen-tests: Likewise.
30269         * modules/unistr/u32-mbsnlen-tests: Likewise.
30270         * modules/unistr/u32-mbtouc-tests: Likewise.
30271         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30272         * modules/unistr/u32-mbtoucr-tests: Likewise.
30273         * modules/unistr/u32-move-tests: Likewise.
30274         * modules/unistr/u32-next-tests: Likewise.
30275         * modules/unistr/u32-prev-tests: Likewise.
30276         * modules/unistr/u32-set-tests: Likewise.
30277         * modules/unistr/u32-stpcpy-tests: Likewise.
30278         * modules/unistr/u32-stpncpy-tests: Likewise.
30279         * modules/unistr/u32-strcat-tests: Likewise.
30280         * modules/unistr/u32-strcmp-tests: Likewise.
30281         * modules/unistr/u32-strcoll-tests: Likewise.
30282         * modules/unistr/u32-strcpy-tests: Likewise.
30283         * modules/unistr/u32-strdup-tests: Likewise.
30284         * modules/unistr/u32-strlen-tests: Likewise.
30285         * modules/unistr/u32-strmblen-tests: Likewise.
30286         * modules/unistr/u32-strmbtouc-tests: Likewise.
30287         * modules/unistr/u32-strncat-tests: Likewise.
30288         * modules/unistr/u32-strncmp-tests: Likewise.
30289         * modules/unistr/u32-strncpy-tests: Likewise.
30290         * modules/unistr/u32-strnlen-tests: Likewise.
30291         * modules/unistr/u32-to-u16-tests: Likewise.
30292         * modules/unistr/u32-to-u8-tests: Likewise.
30293         * modules/unistr/u32-uctomb-tests: Likewise.
30294         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30295         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30296         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30297         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30298         * modules/uniwidth/u8-strwidth-tests: Likewise.
30299         * modules/uniwidth/u8-width-tests: Likewise.
30300         * modules/uniwidth/u16-strwidth-tests: Likewise.
30301         * modules/uniwidth/u16-width-tests: Likewise.
30302         * modules/uniwidth/u32-strwidth-tests: Likewise.
30303         * modules/uniwidth/u32-width-tests: Likewise.
30304         * modules/uniwidth/width-tests: Likewise.
30305
30306 2010-05-18  Richard Jones  <rjones@redhat.com>
30307
30308         doc: users.txt: list hivex
30309         * users.txt: Add hivex.
30310
30311 2010-05-18  Richard Jones  <rjones@redhat.com>
30312
30313         doc: users.txt: list febootstrap
30314         * users.txt: Add febootstrap.
30315
30316 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30317
30318         bootstrap: fix an error when gnulib is not used as a git submodule
30319         * build-aux/bootstrap (gnulib_path): If its length is zero then
30320         assign "gnulib" to it.
30321         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30322
30323 2010-05-16  Bruno Haible  <bruno@clisp.org>
30324
30325         Avoid autoconf warnings about AM_ICONV.
30326         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30327         2.64.
30328
30329 2010-05-16  Bruno Haible  <bruno@clisp.org>
30330
30331         absolute-header: Make the macro usable in more situations.
30332         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30333         from gl_ABSOLUTE_HEADER.
30334         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30335
30336 2010-05-16  James Youngman  <jay@gnu.org>
30337
30338         doc: update users.txt
30339         * users.txt: Add CSSC.
30340
30341 2010-05-16  Jim Meyering  <meyering@redhat.com>
30342
30343         init.sh: fix an error in the previous change; add more comments
30344         * tests/init.sh: Compare exit code in loop against 9, not 2.
30345         Patch by Bruno Haible.
30346         Make the two tests more similar by adding an empty "then" clause.
30347         Add comments.
30348
30349         init.sh: avoid unnecessary shell re-exec
30350         * tests/init.sh: Improve the re-exec-required check to first test the
30351         current shell.  If it passes the test, do not search for a shell that
30352         does pass, and do not re-exec.  This test is particularly contorted to
30353         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30354         of $(...) evokes a syntax error and causes immediate shell exit with
30355         status 2.  Bruno Haible reported that the re-exec made it impossible
30356         to single-step through any init.sh-using script.
30357
30358 2010-05-16  Bruno Haible  <bruno@clisp.org>
30359
30360         Fix collision between gnulib's and libintl's printf replacements.
30361         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30362         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30363         (printf): When using GNU C, map the __printf__ function to rpl_printf
30364         via __asm__. When not using GNU C, define rpl_printf instead of
30365         __printf__.
30366         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30367         commit.
30368         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30369         commit.
30370         * m4/asm-underscore.m4: New file.
30371         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30372         * modules/stdio (Files): Add m4/asm-underscore.m4.
30373         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30374         Reported by Ben Pfaff.
30375
30376 2010-05-16  Bruno Haible  <bruno@clisp.org>
30377
30378         verify: Avoid skipping the test on openSUSE 11.0.
30379         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30380
30381 2010-05-13  Bruno Haible  <bruno@clisp.org>
30382
30383         Avoid useless warnings from G++.
30384         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30385         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30386         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30387
30388 2010-05-11  Jim Meyering  <meyering@redhat.com>
30389
30390         maint.mk: tweak preceding change
30391         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30392         regexps tighter by anchoring at EOL, and make the new group "shy"
30393         for slightly decreased overhead.
30394
30395 2010-05-11  Eric Blake  <eblake@redhat.com>
30396
30397         maint.mk: gnulib doesn't guarantee NSIG
30398         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30399
30400 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30401
30402         test-pwrite.c: Remove unused variable declaration.
30403         * tests/test-pwrite.c (main): Remove read_buf declaration.
30404
30405         Remove useless test-pwrite.sh file.
30406         * tests/test-pwrite.sh: Delete file.
30407         * modules/pwrite-tests: Remove references.
30408         Reported by Bruno Haible.
30409
30410 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30411
30412         init.sh: fix a typo
30413         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30414
30415 2010-05-10  Jim Meyering  <meyering@redhat.com>
30416
30417         maint.mk: avoid using a temporary file in the always-defined-macros check
30418         * top/maint.mk (.re-defmac): Remove rule.
30419         (gl_trap_): Remove definition.
30420         (sc_prohibit_always-defined_macros): Rewrite not to create and
30421         depend on a temporary file.  Instead, depend on GNU grep's ability
30422         to read a list of regular expressions from stdin when given "-f -".
30423
30424 2010-05-09  Bruno Haible  <bruno@clisp.org>
30425
30426         Update to GNU gettext 0.18, part 1.
30427         * m4/gettext.m4: Update to GNU gettext 0.18.
30428         * m4/intl.m4: Likewise.
30429         * m4/po.m4: Likewise.
30430         * modules/gettext (Files): Add m4/fcntl-o.m4.
30431         (configure.ac): Require gettext infrastructure from version 0.18.
30432
30433 2010-05-09  Jim Meyering  <meyering@redhat.com>
30434
30435         init.sh: enable MALLOC_PERTURB_
30436         * tests/init.sh: Enable glibc's malloc-perturbing option.
30437
30438         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30439         With my recent change in init.sh from the two-line form:
30440             -#   : ${srcdir=.}
30441             -#   . "$srcdir/init.sh"; path_prepend_ .
30442             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30443         I noticed that using the one-line form would cause this test
30444         to fail with a false-positive, or to stop working altogether,
30445         depending on whether help-version changed or all the tests did.
30446         * top/maint.mk (_hv_regex): Remove this definition.
30447         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30448         (_hv_regex_strong): Use a stronger regex to check for conformance.
30449         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30450         Give a separate diagnostic for lack of conforming use.
30451
30452         maint.mk: prohibit definition of symbols defined by gnulib
30453         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30454         definition of symbols defined by gnulib.
30455
30456 2010-05-09  Bruno Haible  <bruno@clisp.org>
30457
30458         acl: Avoid test failure on Cygwin-hosted mingw.
30459         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30460
30461 2010-05-09  Bruno Haible  <bruno@clisp.org>
30462
30463         error: Use system's fcntl function.
30464         * lib/error.c (fcntl): Undefine.
30465
30466 2010-05-09  Jim Meyering  <meyering@redhat.com>
30467
30468         verify: adjust formatting to be more consistent
30469         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30470         argument-list '('s, and after one comma.
30471
30472 2010-05-09  Bruno Haible  <bruno@clisp.org>
30473
30474         error: More reliable output on mingw.
30475         * lib/error.c: Include <windows.h>.
30476         (is_open): New function.
30477         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30478         defined.
30479
30480 2010-05-09  Bruno Haible  <bruno@clisp.org>
30481
30482         vasnprintf: Fix syntax errors in libintl build on mingw.
30483         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30484         pad_ourselves and prec_ourselves after use.
30485
30486 2010-05-08  Bruno Haible  <bruno@clisp.org>
30487
30488         * lib/config.charset: Update comments for Cygwin 1.7.
30489         * lib/localcharset.c: Likewise.
30490
30491 2010-05-07  Jim Meyering  <meyering@redhat.com>
30492
30493         init.sh: improve comments
30494         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30495         . "${srcdir=.}/init.sh"; path_prepend_ .
30496         Add a note about path_prepend_ and the alternative of using
30497         TESTS_ENVIRONMENT.
30498
30499 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30500
30501         exclude: Unescape hashed patterns in wildcard mode.
30502         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30503         to the hash list.
30504         * tests/test-exclude8.sh: New test case.
30505         * modules/exclude-tests: Add new test.
30506
30507 2010-05-05  Eric Blake  <eblake@redhat.com>
30508
30509         verify: automate tests
30510         * modules/verify-tests: New module.
30511         * tests/test-verify.sh: New file.
30512         * tests/test-verify.c: Guard each negative test with a unique id.
30513         Also avoid warning about unused left hand of comma expressions.
30514
30515 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30516
30517         Further improvements to verify.h, suggested by Eric Blake.
30518         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30519         the GL_* versions, to avoid collision with OpenGL.
30520         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30521         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30522         than testing merely whether it's defined.
30523
30524         Modify verify.h to pacify gcc -Wredundant_decls.
30525         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30526         These use the prefix "GL_" since they're likely to be useful elsewhere.
30527         We may need to break them out into a different .h file.
30528         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30529         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30530         of verify_function__.
30531
30532 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30533
30534         Tests for module pwrite.
30535         * modules/pwrite-tests: New file.
30536         * tests/test-pwrite.sh: New file.
30537         * tests/test-pwrite.c: New file.
30538
30539         New module pwrite.
30540         * lib/unistd.in.h (pwrite): New declaration.
30541         * lib/pwrite.c: New file, from glibc with modifications.
30542         * m4/pwrite.m4: New file.
30543         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30544         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30545         REPLACE_PWRITE.
30546         * modules/pwrite: New file.
30547         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30548         REPLACE_PWRITE.
30549         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30550         * doc/posix-functions/pwrite.texi: Mention the new module.
30551
30552 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30553
30554         pread: Update documentation.
30555         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30556
30557 2010-05-04  Eric Blake  <eblake@redhat.com>
30558
30559         docs: update cygwin progress
30560         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30561         this bug.
30562         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30563         Added in cygwin 1.7.2.
30564         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30565         Likewise.
30566         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30567         Likewise.
30568         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30569         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30570         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30571         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30572         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30573         Mention nproc module.
30574         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30575         bug in cygwin 1.7.5 addition.
30576         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30577         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30578         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30579         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30580         1.7.5.
30581         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30582         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30583         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30584         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30585         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30586         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30587         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30588         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30589         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30590         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30591         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30592         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30593         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30594         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30595         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30596         Likewise.
30597         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30598         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30599         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30600         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30601         Likewise.
30602         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30603         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30604         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30605         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30606         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30607         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30608         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30609         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30610         Likewise.
30611         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30612         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30613         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30614         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30615         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30616         Likewise.
30617         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30618         Likewise.
30619         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30620         Likewise.
30621         * doc/glibc-functions/xdrrec_endofrecord.texi
30622         (xdrrec_endofrecord): Likewise.
30623         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30624         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30625         Likewise.
30626         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30627         Likewise.
30628
30629 2010-05-04  Jim Meyering  <meyering@redhat.com>
30630
30631         gendocs.sh: make its "-s FILE" option more useful
30632         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30633         $PACKAGE to reflect the probably-different basename of "FILE".
30634
30635 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30636
30637         bootstrap: don't ignore download_po_files failure
30638         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30639         failure.
30640
30641 2010-05-03  Jim Meyering  <meyering@redhat.com>
30642
30643         maint.mk: allow to pass options to gendocs.sh
30644         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30645         (gendocs_options_): New overridable variable.
30646
30647         gnu-web-doc-update: don't ignore configure or build failure
30648         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30649
30650         announce-gen: backslash-escape '@'s in --help output
30651         * build-aux/announce-gen: Fix syntax errors.
30652
30653         maint.mk, announce-gen: allow project-specific announcement mail headers
30654         * top/maint.mk (translation_project_): Define default.
30655         (announcement_Cc_, announcement_mail_headers_): Likewise.
30656         (announcement): Invoke announce-gen with new --mail-headers option.
30657         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30658
30659         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30660         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30661         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30662         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30663         line in the "err2" output file when running "make check" in verbose
30664         mode (i.e., with set -x enabled).
30665
30666 2010-05-03  Bruno Haible  <bruno@clisp.org>
30667
30668         wctob: Fix for weird platforms.
30669         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30670         argument value.
30671
30672 2010-05-03  Jim Meyering  <meyering@redhat.com>
30673
30674         maint.mk: prohibit unwarranted use of <strings.h>
30675         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30676         strings.h in a file that does not also use strcasecmp, strncasecmp,
30677         ffs or ffsll.
30678
30679         maint.mk: remove obsolete comments
30680         * top/maint.mk: Remove stale, commented-out rules.
30681
30682 2010-05-02  Bruno Haible  <bruno@clisp.org>
30683
30684         wcwidth: Declare also when it's aliased.
30685         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30686         macro.
30687
30688 2010-05-02  Bruno Haible  <bruno@clisp.org>
30689
30690         Fix regression from 2010-04-25.
30691         * gnulib-tool (func_modules_transitive_closure): Check the status of
30692         all modules, not only of the tests that are of the form foo-tests where
30693         foo is a module.
30694
30695 2010-05-02  Bruno Haible  <bruno@clisp.org>
30696
30697         wctob: Work around nasty Cygwin 1.7.2 bug.
30698         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30699         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30700
30701 2010-05-01  Bruno Haible  <bruno@clisp.org>
30702
30703         fpurge: Sharper test.
30704         * tests/test-fpurge.c (main): Add one more ftell check.
30705         * modules/fpurge-tests (Depends-on): Add ftell.
30706         Suggested by Eric Blake.
30707
30708 2010-05-01  Bruno Haible  <bruno@clisp.org>
30709
30710         ftello: Another test.
30711         * tests/test-ftello3.c: New file.
30712         * modules/ftello-tests (Files): Add it.
30713         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30714         MOSTLYCLEANFILES.
30715
30716         ftell: Another test.
30717         * tests/test-ftell3.c: New file.
30718         * modules/ftell-tests (Files): Add it.
30719         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30720         MOSTLYCLEANFILES.
30721
30722 2010-05-01  Bruno Haible  <bruno@clisp.org>
30723
30724         ftell, ftello: Work around Solaris bug.
30725         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30726         * lib/ftello.c: Include stdio-impl.h.
30727         (ftello): On Solaris, when _IOWRT is set, compute the result without
30728         looking at _IOREAD.
30729         * modules/ftello (Files): Add lib/stdio-impl.h.
30730         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30731         * doc/posix-functions/ftello.texi: Likewise.
30732         Reported by Eric Blake.
30733
30734 2010-05-01  Bruno Haible  <bruno@clisp.org>
30735
30736         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30737         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30738         the _IOWRT flag is also set.
30739
30740 2010-05-01  Bruno Haible  <bruno@clisp.org>
30741
30742         Fix doc about a HP-UX stdio bug.
30743         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30744         * doc/posix-functions/ftello.texi: Likewise.
30745
30746 2010-05-01  Bruno Haible  <bruno@clisp.org>
30747
30748         lseek test: Fix failure on Solaris.
30749         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30750         output.
30751
30752 2010-04-30  Jim Meyering  <meyering@redhat.com>
30753
30754         bootstrap: don't ignore failure to generate po*/Makevars
30755         * build-aux/bootstrap (with_gettext): Don't ignore failure
30756         to create po/Makevars or runtime-po/Makevars.
30757
30758 2010-04-29  Eric Blake  <eblake@redhat.com>
30759
30760         headers: relax license to LGPLv2+
30761         * modules/fcntl-h (License): Relax license.
30762         * modules/getopt-posix (License): Likewise.
30763         * modules/locale (License): Likewise.
30764         * modules/math (License): Likewise.
30765         * modules/pty (License): Likewise.
30766         * modules/sched (License): Likewise.
30767         * modules/search (License): Likewise.
30768         * modules/spawn (License): Likewise.
30769         * modules/stdarg (License): Likewise.
30770         * modules/sysexits (License): Likewise.
30771
30772 2010-04-29  Jim Meyering  <meyering@redhat.com>
30773
30774         inttypes: relax license to LGPLv2+
30775         * modules/inttypes (License): Relax license.
30776
30777 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30778
30779         * top/maint.mk (indent): Run twice to produce idempotent results.
30780
30781 2010-04-28  Bruno Haible  <bruno@clisp.org>
30782
30783         getdate: Generate getdate.c in the source directory.
30784         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30785         MOSTLYCLEANFILES.
30786         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30787
30788 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30789
30790         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30791         is not declared as a const *; avoid warnings in that case.
30792
30793 2010-04-28  Eric Blake  <eblake@redhat.com>
30794
30795         canonicalize-lgpl: avoid compiler warning
30796         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30797         declaration' / 'extraneous semicolon' warning with some compilers.
30798         Reported by Andreas Gruenbacher.
30799
30800 2010-04-28  Jim Meyering  <meyering@redhat.com>
30801
30802         init.sh: ensure a more reliable exit status when exiting via trap
30803         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30804         Inspired by patches from Dmitry V. Levin.
30805         Also trap on signal 3 (SIGQUIT).
30806
30807 2010-04-27  Bruno Haible  <bruno@clisp.org>
30808
30809         Update doc about utimes().
30810         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30811         'utimens' module.
30812         Reported by Andreas Gruenbacher <agruen@suse.de>.
30813
30814 2010-04-27  Eric Blake  <eblake@redhat.com>
30815
30816         full-read, full-write: relax license
30817         * modules/full-read (License): Drop to LGPLv2+.
30818         * modules/full-write (License): Likewise.
30819         * modules/safe-read (License): Likewise.
30820         * modules/safe-write (License): Likewise.
30821
30822         pthread: mention library for linking
30823         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30824
30825 2010-04-27  Jim Meyering  <meyering@redhat.com>
30826
30827         maint.mk: fix a bug introduced in last change
30828         * top/maint.mk (gl_assured_headers_): Now that all names are on
30829         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30830         is not anchored to end of word, it should be adequate.
30831
30832         maint.mk: avoid side-effect in latest syntax-check
30833         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30834         to run commands via $(shell...), and hence to incur cost only when
30835         the new rule is actually run.
30836
30837         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30838         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30839         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30840         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30841         (gl_assured_headers_, az_, AZ_): Define.
30842         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30843
30844 2010-04-26  Jim Meyering  <jim@meyering.net>
30845             Bruno Haible  <bruno@clisp.org>
30846
30847         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30848         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30849         Prompted by an exchange with Gilles Espinasse.
30850
30851 2010-04-26  Jim Meyering  <meyering@redhat.com>
30852
30853         git-version-gen: aesthetic tweak
30854         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30855         so that the command remains on a single line.
30856
30857 2010-04-26  Eric Blake  <eblake@redhat.com>
30858
30859         git-version-gen: allow use on EBCDIC hosts
30860         * build-aux/git-version-gen (dirty): Use literal rather than tying
30861         ourselves to ascii.
30862         Reported by Steve Goetze.
30863
30864 2010-04-25  Bruno Haible  <bruno@clisp.org>
30865
30866         netdb: Add support for GNULIB_POSIXCHECK.
30867         * lib/netdb.in.h: Include warn-on-use.h.
30868         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30869         functions are used when GNULIB_POSIXCHECK is defined and the
30870         getaddrinfo module is not in use.
30871         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30872         freeaddrinfo, gai_strerror, getnameinfo are declared.
30873         * modules/netdb (Depends-on): Add warn-on-use.
30874         (Makefile.am): Include warn-on-use.h in netdb.h.
30875
30876 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30877
30878         build: avoid "make check" failure without .git/ directory
30879         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30880         there is no .git/ directory.
30881
30882 2010-04-25  Bruno Haible  <bruno@clisp.org>
30883
30884         ptsname: Fix misuse of ttyname_r.
30885         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30886         of errno.
30887
30888 2010-04-25  Bruno Haible  <bruno@clisp.org>
30889
30890         ttyname_r: Make it work on Solaris 10.
30891         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30892         if the system function has the POSIX declaration. Test whether the
30893         function fails if the buffer is less than 128 bytes large.
30894         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30895         system's ttyname_r function. Provide a reasonably large buffer.
30896         * modules/ttyname_r (Depends-on): Add extensions.
30897         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30898
30899 2010-04-25  Bruno Haible  <bruno@clisp.org>
30900
30901         Use the 'extensions' module for some more functions on Solaris.
30902         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30903         module.
30904         * doc/posix-functions/ctime_r.texi: Likewise.
30905         * doc/posix-functions/getgrgid_r.texi: Likewise.
30906         * doc/posix-functions/getgrnam_r.texi: Likewise.
30907         * doc/posix-functions/getpwnam_r.texi: Likewise.
30908         * doc/posix-functions/getpwuid_r.texi: Likewise.
30909         * doc/posix-functions/readdir_r.texi: Likewise.
30910         * doc/posix-functions/sigwait.texi: Likewise.
30911         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30912         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30913
30914 2010-04-25  Bruno Haible  <bruno@clisp.org>
30915
30916         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30917         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30918         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30919         * lib/ttyname_r.c: Include <limits.h>.
30920         (ttyname_r): Define using the system's ttyname_r function, if it exists
30921         and not on Solaris.
30922         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30923         set.
30924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30925         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30926         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30927         Reported by Simon Josefsson.
30928
30929 2010-04-25  Bruno Haible  <bruno@clisp.org>
30930
30931         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30932         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30933         * doc/posix-functions/ctime_r.texi: Likewise.
30934         * doc/posix-functions/getgrgid_r.texi: Likewise.
30935         * doc/posix-functions/getgrnam_r.texi: Likewise.
30936         * doc/posix-functions/getlogin_r.texi: Likewise.
30937         * doc/posix-functions/getpwnam_r.texi: Likewise.
30938         * doc/posix-functions/getpwuid_r.texi: Likewise.
30939         * doc/posix-functions/readdir_r.texi: Likewise.
30940         * doc/posix-functions/sigwait.texi: Likewise.
30941         * doc/posix-functions/ttyname_r.texi: Likewise.
30942         Reported by Simon Josefsson.
30943
30944 2010-04-25  Bruno Haible  <bruno@clisp.org>
30945
30946         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30947         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30948         also to --create-testdir.
30949         (func_acceptable): Don't consider the status of *-tests modules here.
30950         (func_modules_transitive_closure): Consider it here, before including a
30951         test module.
30952         (func_import, func_create_testdir): Set inc_all_direct_tests,
30953         inc_all_indirect_tests.
30954         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30955         --create-testdir and --create-megatestdir.
30956
30957 2010-04-25  Bruno Haible  <bruno@clisp.org>
30958
30959         gnulib-tool: Add --without-*-tests options.
30960         * gnulib-tool (func_usage): Document the --without-*-tests options.
30961         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30962         excl_unportable_tests): New variables.
30963         Fail if they are specified with --import or --update.
30964         (func_acceptable): Respect the excl_*_tests variables.
30965         (func_import): Set the excl_*_tests variables to empty.
30966
30967 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30968             Bruno Haible  <bruno@clisp.org>
30969
30970         Work around a MacOS X 10.4 bug with openpty.
30971         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30972         * tests/test-openpty.c (main): Close the master side explicitly.
30973
30974 2010-04-25  Bruno Haible  <bruno@clisp.org>
30975
30976         strnlen: Fix a C++ test error on MacOS X and Solaris.
30977         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30978         the function is not declared.
30979         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30980         Simon Josefsson.
30981
30982 2010-04-24  Bruno Haible  <bruno@clisp.org>
30983
30984         Avoid a gcc warning.
30985         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30986         of correct type for %08lx directive.
30987         Reported by Eric Blake.
30988
30989 2010-04-24  Bruno Haible  <bruno@clisp.org>
30990
30991         vasnprintf: Correct errno value in case of out-of-memory.
30992         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30993         or sprintf. Use the errno value from SNPRINTF or sprintf.
30994         Reported by Ian Beckwith <ianb@erislabs.net>.
30995
30996 2010-04-24  Bruno Haible  <bruno@clisp.org>
30997
30998         ansi-c++-opt: Find correct compiler when cross-compiling.
30999         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
31000         AC_CHECK_PROGS.
31001         Reported by Simon Josefsson.
31002
31003 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
31004
31005         vc-list-files: Add support for subversion
31006         * build-aux/vc-list-files: Use "svn list" to generate the list of
31007         files controlled by subversion.
31008
31009 2010-04-23  Jim Meyering  <meyering@redhat.com>
31010
31011         vc-list-files tests: convert to use init.sh
31012         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
31013         path_prepend_.
31014         Use Exit, not exit.
31015         Use skip_ rather than open coding it.
31016         Remove trap set-up and compare definitions.
31017         * tests/test-vc-list-files-git.sh: Likewise.
31018         * modules/vc-list-files-tests (Files): Add tests/init.sh.
31019
31020 2010-04-22  Simon Josefsson  <simon@josefsson.org>
31021
31022         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
31023         backup files.
31024
31025 2010-04-21  Simon Josefsson  <simon@josefsson.org>
31026
31027         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
31028
31029 2010-04-20  Eric Blake  <eblake@redhat.com>
31030
31031         tests: be robust to ignored SIGPIPE
31032         * tests/test-select-in.sh: Consume all output.
31033         * tests/test-lseek.sh: Check correct exit status, while avoiding
31034         EPIPE.
31035
31036 2010-04-20  Simon Josefsson  <simon@josefsson.org>
31037             Bruno Haible  <bruno@clisp.org>
31038
31039         visibility: Don't use -fvisibility if it leads to a warning.
31040         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
31041         yes, don't pretend that visibility works if it leads to a warning.
31042         Reported by Mike Gran <spk121@yahoo.com>.
31043
31044 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
31045
31046         * build-aux/bootstrap: Use "git -h" for testing for supported options
31047         instead of "git --help".  The short-form option only shows a summary,
31048         and doesn't layout the full man page.  Grep for the full option name
31049         in the summary, too.
31050
31051 2010-04-19  Bruno Haible  <bruno@clisp.org>
31052
31053         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
31054         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
31055         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
31056         mention of RELOCATABLE_STRIP.
31057         Reported by Sylvain Beucler <beuc@beuc.net>.
31058
31059 2010-04-19  Bruno Haible  <bruno@clisp.org>
31060
31061         * lib/diffseq.h: Fix typo in comment.
31062         Reported by Eric Blake.
31063
31064 2010-04-19  Bruno Haible  <bruno@clisp.org>
31065
31066         ioctl: Move autoconf macro to a .m4 file.
31067         * m4/ioctl.m4: New file, extracted from modules/ioctl.
31068         * modules/ioctl (Files): Add it.
31069         (configure.ac): Simply invoke gl_FUNC_IOCTL.
31070         Reported by Ian Beckwith <ianb@erislabs.net>.
31071
31072 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
31073             Bruno Haible  <bruno@clisp.org>
31074
31075         diffseq: Accommodate use-case with abstract arrays.
31076         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
31077         is not defined.
31078         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
31079         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
31080
31081 2010-04-18  Bruno Haible  <bruno@clisp.org>
31082
31083         * doc/posix-headers/stdbool.texi: More precise wording.
31084
31085 2010-04-17  Jim Meyering  <meyering@redhat.com>
31086
31087         maint.mk: use gnu-style indentation in an embedded perl script
31088         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
31089         Rename variable: s/two/last_two_bytes/
31090
31091 2010-04-16  Eric Blake  <eblake@redhat.com>
31092
31093         test-stdbool: skip test that fails with Solaris CC
31094         * tests/test-stdbool.c (f): Skip test that causes compilation
31095         error under buggy C++ compiler.
31096         * lib/stdbool.in.h: Document the limitation.
31097         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
31098
31099         setenv: allow compilation with C++
31100         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
31101         register keyword.
31102
31103         stdint: allow test to pass with C++
31104         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
31105
31106         getopt: allow compilation with C++
31107         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
31108         struct.
31109         * lib/getopt.c (_getopt_internal_r): Use correct type.
31110         Reported by Dagobert Michelson, via Joel E. Denny.
31111
31112 2010-04-16  Bruno Haible  <bruno@clisp.org>
31113
31114         Override netdb.h always.
31115         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
31116         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
31117         Reported by Ludovic Courtès <ludo@gnu.org>.
31118
31119 2010-04-15  Bruno Haible  <bruno@clisp.org>
31120
31121         openpty: Fix mistake from 2010-03-21.
31122         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
31123         Reported by Simon Josefsson.
31124
31125 2010-04-15  Eric Blake  <eblake@redhat.com>
31126
31127         test-forkpty: fix expected signature
31128         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
31129         Reported by Simon Josefsson.
31130
31131 2010-04-15  Jim Meyering  <meyering@redhat.com>
31132
31133         maint.mk: texinfo_suffix_re_: correct the default regexp
31134         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31135
31136         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31137         make it configurable via texinfo_suffix_re_.
31138
31139 2010-04-14  Eric Blake  <eblake@redhat.com>
31140
31141         strtok_r: relax license to LGPLv2+
31142         * modules/strtok_r (License): Relax license.
31143         Reported by Matthias Bolte.
31144
31145 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31146
31147         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31148         version 1.4.4 by default instead of requiring the libgcrypt
31149         version used during build.  This makes it possible to use the
31150         application with older but still binary compatible libgcrypt
31151         versions.
31152
31153 2010-04-13  Eric Blake  <eblake@redhat.com>
31154
31155         getopt-gnu: match recent glibc fixes and posix ruling
31156         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31157         '+' handling, when requesting extensions.
31158         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31159         'W;' handling.
31160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31161         * doc/posix-functions/getopt.texi (getopt): Document this.
31162         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31163         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31164         Likewise.
31165
31166         getopt: merge bug fixes from glibc
31167         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31168         diagnostics.  Honor '+:' correctly.  Reject ';'.
31169
31170         getopt-posix: detect MacOS bug
31171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31172         optind when missing a required argument.
31173         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31174         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31175         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31176         Likewise.
31177
31178         getopt-posix: avoid spurious failure on Solaris
31179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31180         an indicator that setting optind=1 is sufficient for reset.
31181
31182         getopt-posix: avoid spurious failure on FreeBSD
31183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31184         in POSIX mode, since the m4 test uses it.
31185
31186         gnulib-tool: silence warning on BSD sh
31187         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31188
31189 2010-04-13  Jim Meyering  <meyering@redhat.com>
31190
31191         doc: users.txt: GNU patch now uses gnulib
31192         * users.txt: Add patch.
31193
31194 2010-04-12  Jim Meyering  <meyering@redhat.com>
31195
31196         maint.mk: generate more concise timing data for syntax-check rules
31197         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31198         " done" from each line that reports a syntax-check test duration.
31199
31200 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31201
31202         git-version-gen: use "git update-index..." rather than "git status"
31203         * build-aux/git-version-gen: Use git update-index --refresh, not
31204         "git status".  With some versions of git, "git status" would fail
31205         to update the index and result in an unwarranted "-dirty" suffix.
31206
31207 2010-04-11  Jim Meyering  <meyering@redhat.com>
31208
31209         openat: correct formatting (no semantic change)
31210         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31211         Suggested by Bruno Haible.
31212
31213 2010-04-11  Bruno Haible  <bruno@clisp.org>
31214
31215         Stricter declaration checking in testdirs.
31216         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31217         If for_tests is true, augment AM_CPPFLAGS to define
31218         GNULIB_STRICT_CHECKING.
31219         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31220         GNULIB_STRICT_CHECKING is defined, verify that the function is
31221         declared.
31222
31223 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31224             Bruno Haible  <bruno@clisp.org>
31225
31226         libunistring: Improve configure output.
31227         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31228         Don't say "consider installing GNU libunistring" when checking again
31229         with libiconv.
31230
31231 2010-04-11  Bruno Haible  <bruno@clisp.org>
31232
31233         libunistring: Correct value of $LTLIBUNISTRING.
31234         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31235         correct the value of $LTLIBUNISTRING.
31236
31237 2010-04-11  Bruno Haible  <bruno@clisp.org>
31238
31239         havelib: Add static libraries to LIBS in the right order.
31240         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31241         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31242
31243 2010-04-11  Bruno Haible  <bruno@clisp.org>
31244
31245         libunistring: Detect libunistring also when it depends on libiconv.
31246         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31247         the second AC_LIB_HAVE_LINKFLAGS invocation.
31248
31249 2010-04-11  James Youngman  <jay@gnu.org>
31250
31251         close-stream: declare local scalars to be "const"
31252         * lib/close-stream.c (close_stream): Make boolean variables const
31253         to document the fact that we set but do not change them.
31254
31255 2010-04-11  Bruno Haible  <bruno@clisp.org>
31256
31257         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31258
31259 2010-04-11  Jim Meyering  <meyering@redhat.com>
31260
31261         maint.mk: don't include dist-check.mk
31262         * top/maint.mk: Remove bogus include directive.
31263
31264         maint.mk: improve empty-line-at-EOF check
31265         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31266         solution, rather than tail+Perl-based one.  The latter would read
31267         a few kilobytes from the end of each file, and did not handle empty
31268         files properly.
31269
31270         maint.mk: print the elapsed time for each syntax-check rule
31271         * top/maint.mk (sc_m_rules_): Save start time in a file.
31272         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31273         (local-check): Interpose the .z rules
31274
31275 2010-04-11  Jim Meyering  <meyering@redhat.com>
31276
31277         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31278         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31279         empty file with one that ends in an empty line.
31280
31281 2010-04-10  Bruno Haible  <bruno@clisp.org>
31282
31283         mkdir: Make it work on mingw64.
31284         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31285         * lib/mkdir.c: Update comment.
31286         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
31287
31288 2010-04-10  Bruno Haible  <bruno@clisp.org>
31289
31290         Don't override improved macro from newer autoconf.
31291         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31292         autoconf >= 2.62.
31293         Reported by Joel E. Denny <jdenny@clemson.edu>.
31294
31295 2010-04-10  Jim Meyering  <meyering@redhat.com>
31296
31297         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31298         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31299
31300         maint.mk: correct a diagnostic
31301         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31302         in diagnostic; now use $prohibit.
31303
31304 2010-04-10  Bruno Haible  <address@hidden>
31305
31306         fchownat: Fix a C++ test error on Solaris 8.
31307         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31308         the function does not exist.
31309
31310 2010-04-10  Bruno Haible  <bruno@clisp.org>
31311
31312         vasnprintf: Add more tests.
31313         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31314         (test_function): Test converting an invalid wide string.
31315
31316         vasnprintf: Correct handling of unconvertible wide string arguments.
31317         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31318         VASNPRINTF.
31319         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31320         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31321         smaller than the expected maximum need for the directive. Set errno to
31322         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31323         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31325         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31326         * modules/vasnprintf (Files): Add m4/printf.m4.
31327         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31328
31329 2010-04-10  Bruno Haible  <bruno@clisp.org>
31330
31331         vasnprintf: Fix crash in %ls directive.
31332         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31333         string is passed as argument to %ls, with no precision and no width.
31334         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31335
31336 2010-04-10  Bruno Haible  <bruno@clisp.org>
31337
31338         vasnprintf: Fix multiple test failures on mingw.
31339         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31340         _snprintf, or snwprintf, not _snwprintf.
31341
31342 2010-04-10  Bruno Haible  <bruno@clisp.org>
31343
31344         write: Fix a C++ test error on mingw.
31345         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31346
31347 2010-04-10  Bruno Haible  <bruno@clisp.org>
31348
31349         vasnprintf test: Reduce code duplication.
31350         * tests/test-vasnprintf.c (test_function): New function, extracted from
31351         test_vasnprintf.
31352         (test_vasnprintf, test_asnprintf): Invoke it.
31353
31354 2010-04-10  Bruno Haible  <bruno@clisp.org>
31355
31356         strnlen: Fix warning in C++ mode on MacOS X.
31357         * lib/string.in.h (strnlen): Use the modern idiom.
31358         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31359         defining strnlen as a macro already in <config.h>.
31360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31361         REPLACE_STRNLEN.
31362         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31363         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31364
31365 2010-04-08  James Youngman  <jay@gnu.org>
31366
31367         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31368         the example.
31369
31370 2010-04-09  Jim Meyering  <meyering@redhat.com>
31371
31372         maint.mk: print better diagnostic when there is no $(_hv_file)
31373         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31374         announce that when $(_hv_file) (aka help-version) does not exist.
31375
31376         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31377         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31378         not try to interpret its random input bytes.  Jarno Rajahalme reported
31379         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31380         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31381         (mktempd_): Likewise, just in case.
31382
31383         ftruncate: add two years to projected module removal date: 2012
31384         * m4/ftruncate.m4: Adjust comments.
31385
31386         ftruncate: mark module as obsolete; even MinGW provides it, now
31387         * modules/ftruncate (Status): Obsolete.
31388         (Notice): Say that.
31389         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31390         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31391
31392 2010-04-08  Bruno Haible  <bruno@clisp.org>
31393
31394         Fix side effects from tests-related modules.
31395         * modules/dprintf-posix (Comment): New section.
31396         * modules/fprintf-posix (Comment): Likewise.
31397         * modules/obstack-printf-posix (Comment): Likewise.
31398         * modules/printf-posix (Comment): Likewise.
31399         * modules/snprintf-posix (Comment): Likewise.
31400         * modules/sprintf-posix (Comment): Likewise.
31401         * modules/vasnprintf-posix (Comment): Likewise.
31402         * modules/vasprintf-posix (Comment): Likewise.
31403         * modules/vdprintf-posix (Comment): Likewise.
31404         * modules/vfprintf-posix (Comment): Likewise.
31405         * modules/vprintf-posix (Comment): Likewise.
31406         * modules/vsnprintf-posix (Comment): Likewise.
31407         * modules/vsprintf-posix (Comment): Likewise.
31408         * modules/xprintf-posix (Comment): Likewise.
31409         * modules/xvasprintf-posix (Comment): Likewise.
31410         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31411         * modules/floorf-tests (Depends-on): Likewise.
31412         * modules/round-tests (Depends-on): Likewise.
31413         * modules/roundf-tests (Depends-on): Likewise.
31414         * modules/trunc-tests (Depends-on): Likewise.
31415         * modules/truncf-tests (Depends-on): Likewise.
31416         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31417         'fprintf-posix' module is not present.
31418         * tests/test-floorf2.c (check): Likewise.
31419         * tests/test-trunc2.c (check): Likewise.
31420         * tests/test-truncf2.c (check): Likewise.
31421         * tests/test-round2.c (equal): Likewise.
31422         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31423
31424 2010-04-07  Karl Berry  <karl@gnu.org>
31425
31426         * config/srclist.txt,
31427         * config/srclistvars.sh,
31428         * config/srclist-update: doc fixes.
31429
31430 2010-04-07  Jim Meyering  <meyering@redhat.com>
31431
31432         maint.mk: add a PATH crosschecking syntax-check rule
31433         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31434         Useful if you use a test like the one in help-version (coreutils,
31435         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31436         printed by prog --version.
31437
31438 2010-04-06  Bruno Haible  <bruno@clisp.org>
31439
31440         Fix link error on mingw.
31441         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31442         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31443
31444 2010-04-06  Bruno Haible  <bruno@clisp.org>
31445
31446         Assume rmdir exists.
31447         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31448
31449 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31450
31451         doc: update users.txt
31452         * users.txt: Add gcal.
31453
31454 2010-04-06  Jim Meyering  <meyering@redhat.com>
31455
31456         init.sh: simply unset TMPDIR rather than risking env -i
31457         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31458         although it probably works fine on all Unix-based systems, some
31459         systems (Cygwin?) cannot tolerate a totally cleared environment.
31460         Suggestion from Eric Blake.
31461
31462 2010-04-06  Jim Meyering  <meyering@redhat.com>
31463
31464         init.sh: portability fix: use env's POSIX-specified -i option not -u
31465         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31466         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31467
31468 2010-04-05  Bruno Haible  <bruno@clisp.org>
31469
31470         btowc: Work around Cygwin 1.7.2 bug.
31471         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31472         does not map NUL to 0.
31473         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31474
31475 2010-04-05  Bruno Haible  <bruno@clisp.org>
31476
31477         Make the multithread modules work on Cygwin 1.7.2.
31478         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31479         imported symbols can be declared weak, so that it returns "no" on
31480         Cygwin 1.7.2.
31481
31482 2010-04-05  Bruno Haible  <bruno@clisp.org>
31483
31484         Use the module 'strncat'.
31485         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31486
31487         Tests for module 'strncat'.
31488         * modules/strncat-tests: New file.
31489         * tests/test-strncat.c: New file.
31490
31491         New module 'strncat'.
31492         * lib/string.in.h (strncat): New declaration.
31493         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31494         * m4/strncat.m4: New file, based on m4/memchr.m4.
31495         * modules/strncat: New file.
31496         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31497         is declared.
31498         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31499         REPLACE_STRNCAT.
31500         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31501         REPLACE_STRNCAT.
31502         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31503         module.
31504         * tests/test-string-c++.cc: Check signature of strncat.
31505
31506 2010-04-05  Jim Meyering  <meyering@redhat.com>
31507
31508         xstrtoumax-tests: convert to use init.sh
31509         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31510         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31511         Use Exit, not exit.
31512         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31513
31514         xstrtoimax-tests: convert to use init.sh
31515         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31516         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31517         Use Exit, not exit.
31518         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31519
31520 2010-04-05  Bruno Haible  <bruno@clisp.org>
31521
31522         sys_socket: Avoid #define replacements in C++ mode.
31523         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31524         warning to the function if possible, rather than #defining the symbol
31525         to a dysfunctional alias.
31526
31527 2010-04-05  Bruno Haible  <bruno@clisp.org>
31528
31529         fseeko: Fix C++ test error on mingw.
31530         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31531         gl_FUNC_FSEEKO.
31532         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31533         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31534         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31535         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31536
31537 2010-04-05  Bruno Haible  <bruno@clisp.org>
31538
31539         duplocale: Improve test output.
31540         * tests/test-duplocale.c (main): Print reason for skipped test.
31541
31542 2010-04-05  Bruno Haible  <bruno@clisp.org>
31543
31544         Assume rmdir exists.
31545         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31546         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31547
31548 2010-04-05  Bruno Haible  <bruno@clisp.org>
31549
31550         Fix link error on Solaris 8 with cc.
31551         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31552
31553 2010-04-05  Bruno Haible  <bruno@clisp.org>
31554
31555         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31556         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31557
31558 2010-04-05  Bruno Haible  <bruno@clisp.org>
31559
31560         vasprintf: Update documentation.
31561         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31562
31563 2010-04-05  Bruno Haible  <bruno@clisp.org>
31564
31565         ptsname: Improve test.
31566         * tests/test-ptsname.c (main): Also try the various master names of BSD
31567         systems.
31568
31569 2010-04-05  Bruno Haible  <bruno@clisp.org>
31570
31571         memchr: Avoid a possible C++ test error.
31572         * lib/string.in.h (memchr): Provide declaration if function is missing.
31573         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31574         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31576         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31577
31578 2010-04-05  Bruno Haible  <bruno@clisp.org>
31579
31580         strtok_r: Improve idiom.
31581         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31582         AC_LIBOBJ is used.
31583
31584 2010-04-05  Bruno Haible  <bruno@clisp.org>
31585
31586         strdup: Improve idiom.
31587         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31588         AC_LIBOBJ is used.
31589         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31590         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31591         when AC_LIBOBJ is used.
31592
31593 2010-04-05  Bruno Haible  <bruno@clisp.org>
31594
31595         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31596         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31597         don't set REPLACE_MBSINIT to 1.
31598         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31599         don't set REPLACE_MBRTOWC to 1.
31600         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31601         exist, don't set REPLACE_MBSRTOWCS to 1.
31602         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31603         exist, don't set REPLACE_MBSNRTOWCS to 1.
31604         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31605         don't set REPLACE_WCRTOMB to 1.
31606         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31607         exist, don't set REPLACE_WCSRTOMBS to 1.
31608         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31609         exist, don't set REPLACE_WCSNRTOMBS to 1.
31610
31611 2010-04-05  Bruno Haible  <bruno@clisp.org>
31612
31613         ldexpl: Improve idiom.
31614         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31615         make sure to set HAVE_DECL_LDEXPL to 0.
31616
31617 2010-04-05  Jim Meyering  <meyering@redhat.com>
31618
31619         xstrtol-tests: convert to use init.sh
31620         * modules/xstrtol-tests (Files): Add tests/init.sh.
31621         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31622         Use Exit, not exit.
31623         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31624
31625         atexit-tests: convert to use init.sh
31626         * modules/atexit-tests (Files): Add tests/init.sh.
31627         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31628         Use Exit, not exit.
31629         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31630
31631         init.sh: fix typo
31632         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31633
31634         init.sh: make it easier for a test script to write to the tty, ...
31635         when using automake's parallel-tests mode.
31636         * tests/init.sh (stderr_fileno_): Define overridable variable.
31637         (warn_): New function, to use it.
31638         (fail_, skip_, framework_failure_): Use warn_.
31639
31640 2010-04-04  Bruno Haible  <bruno@clisp.org>
31641
31642         btowc: Avoid warning.
31643         * lib/btowc.c: Include <stdlib.h>.
31644         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31645
31646 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31647             Bruno Haible  <bruno@clisp.org>
31648
31649         wchar: Port to NetBSD 1.5.
31650         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31651         * lib/wctype.in.h (WEOF): Likewise.
31652
31653 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31654             Bruno Haible  <bruno@clisp.org>
31655
31656         Port extended stdio to NetBSD 1.5.
31657         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31658         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31659         older.
31660
31661 2010-04-04  Bruno Haible  <bruno@clisp.org>
31662
31663         string: Remove unused substitution.
31664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31665         HAVE_DECL_STRERROR.
31666         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31667
31668 2010-04-04  Bruno Haible  <bruno@clisp.org>
31669
31670         strtod: Avoid a possible C++ test error.
31671         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31672         set REPLACE_STRTOD.
31673
31674 2010-04-04  Bruno Haible  <bruno@clisp.org>
31675
31676         strerror: Update documentation.
31677         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31678
31679 2010-04-04  Bruno Haible  <bruno@clisp.org>
31680
31681         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31682         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31683         _GL_CXXALIAS_SYS_CAST.
31684
31685 2010-04-04  Bruno Haible  <bruno@clisp.org>
31686
31687         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31688         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31689         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31690         REPLACE_FREXPL to 1.
31691         * doc/posix-functions/frexpl.texi: Update documentation.
31692
31693 2010-04-04  Bruno Haible  <bruno@clisp.org>
31694
31695         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31696         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31697
31698 2010-04-04  Bruno Haible  <bruno@clisp.org>
31699
31700         Implement nanosleep for native Windows.
31701         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31702
31703 2010-04-04  Bruno Haible  <bruno@clisp.org>
31704
31705         math: Fix some C++ test errors on Solaris 8.
31706         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31707
31708 2010-04-04  Bruno Haible  <bruno@clisp.org>
31709
31710         math: Fix some C++ test errors on Cygwin.
31711         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31712         truncl): Provide declaration if the system does not have it.
31713         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31714         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31715         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31716         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31717         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31718         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31719         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31720         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31721         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31722         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31723         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31724         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31725         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31726         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31727         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31728         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31730         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31731         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31732         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31733         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31734         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31735
31736 2010-04-04  Bruno Haible  <bruno@clisp.org>
31737
31738         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31739         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31740         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31741         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31742         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31743         * m4/isinf.m4 (gl_ISINF): Likewise.
31744         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31745
31746 2010-04-04  Bruno Haible  <bruno@clisp.org>
31747
31748         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31749         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31750
31751 2010-04-04  Bruno Haible  <bruno@clisp.org>
31752
31753         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31754         * modules/tmpfile (configure.ac): Update.
31755
31756         tmpfile: Fix C++ test error on mingw.
31757         * lib/stdio.in.h (tmpfile): New declaration.
31758         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31759         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31760         * modules/tmpfile (Depends-on): Add stdio.
31761         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31762         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31763         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31764         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31765         REPLACE_TMPFILE.
31766         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31767
31768 2010-04-04  Bruno Haible  <bruno@clisp.org>
31769
31770         ioctl: Fix C++ test error on mingw.
31771         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31772         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31773         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31774
31775 2010-04-03  Bruno Haible  <bruno@clisp.org>
31776
31777         wcwidth: Fix C++ test error on mingw.
31778         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31780         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31781
31782 2010-04-03  Bruno Haible  <bruno@clisp.org>
31783
31784         nanosleep: Fix C++ test error on mingw.
31785         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31786         * lib/time.in.h (nanosleep): Use modern idiom.
31787         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31788         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31789         REPLACE_NANOSLEEP to 1.
31790         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31791         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31792
31793 2010-04-03  Bruno Haible  <bruno@clisp.org>
31794
31795         strptime: Fix C++ test error on mingw.
31796         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31797         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31798         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31799         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31800         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31801         not REPLACE_STRPTIME.
31802         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31803         REPLACE_STRPTIME.
31804
31805 2010-04-03  Bruno Haible  <bruno@clisp.org>
31806
31807         timegm: Fix C++ test error on mingw.
31808         * lib/time.in.h (timegm): Use modern idiom.
31809         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31810         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31811         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31812         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31813
31814 2010-04-03  Bruno Haible  <bruno@clisp.org>
31815
31816         timegm: Assume declaration if function exists.
31817         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31818         if it exists. Don't clobber ac_cv_func_timegm.
31819
31820 2010-04-03  Bruno Haible  <bruno@clisp.org>
31821
31822         time_r: Fix C++ test error on mingw.
31823         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31824         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31825         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31826         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31827         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31828
31829 2010-04-03  Bruno Haible  <bruno@clisp.org>
31830
31831         time_r: Minor updates.
31832         * modules/time_r (Description): Mention the provided functions.
31833         * lib/time_r.c: Don't include <string.h>.
31834         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31835         * doc/posix-functions/localtime_r.texi: Likewise.
31836
31837 2010-04-03  Bruno Haible  <bruno@clisp.org>
31838
31839         time: Fix regression introduced on 2010-03-08.
31840         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31841         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31842
31843 2010-04-03  Jim Meyering  <meyering@redhat.com>
31844
31845         maint.mk: don't silently disable project-specific syntax-check rules
31846         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31847         that they need to convert their project-specific syntax-check rules
31848         to use the new _sc_search_regexp.
31849
31850 2010-04-03  Bruno Haible  <bruno@clisp.org>
31851
31852         fchdir: Fix regression introduced on 2010-03-08.
31853         * lib/unistd.in.h (fchdir): Fix declaration.
31854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31856         REPLACE_FCHDIR.
31857         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31858         REPLACE_FCHDIR.
31859
31860 2010-04-03  Bruno Haible  <bruno@clisp.org>
31861
31862         getpagesize: Fix C++ test error on mingw.
31863         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31864         system does not declare the function.
31865         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31866         declared.
31867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31868         HAVE_DECL_GETPAGESIZE.
31869         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31870
31871 2010-04-03  Bruno Haible  <bruno@clisp.org>
31872
31873         stdio: Make C++ tests work on mingw.
31874         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31875         does not declare the function.
31876
31877 2010-04-03  Bruno Haible  <bruno@clisp.org>
31878
31879         ftello: Fix C++ test error on mingw.
31880         * lib/stdio.in.h (ftello): Use modern idiom.
31881         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31882         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31883         is missing and that it needs to be replaced.
31884         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31886         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31887
31888 2010-04-03  Bruno Haible  <bruno@clisp.org>
31889
31890         fseeko: Fix C++ test error on mingw.
31891         * lib/stdio.in.h (fseeko): Use modern idiom.
31892         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31893         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31894         is missing and that it needs to be replaced.
31895         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31897         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31898
31899 2010-04-03  Bruno Haible  <bruno@clisp.org>
31900
31901         mkstemp: Fix C++ test error on mingw.
31902         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31903         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31904         function is missing and that it needs to be replaced.
31905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31906         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31907
31908 2010-04-03  Bruno Haible  <bruno@clisp.org>
31909
31910         stpncpy: Fix C++ test error on mingw.
31911         * lib/string.in.h (stpncpy): Use modern idiom.
31912         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31913         function is missing and that it needs to be replaced.
31914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31915         REPLACE_STPNCPY.
31916         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31917
31918 2010-04-03  Bruno Haible  <bruno@clisp.org>
31919
31920         sys_stat: Fix C++ test error on mingw.
31921         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31922         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31923
31924 2010-04-03  Bruno Haible  <bruno@clisp.org>
31925
31926         pty: Update doc.
31927         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31928
31929 2010-04-03  Bruno Haible  <bruno@clisp.org>
31930
31931         unistd: Fix C++ test error on mingw.
31932         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31933
31934 2010-04-03  Bruno Haible  <bruno@clisp.org>
31935
31936         Update doc regarding mingw.
31937         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31938         * doc/glibc-functions/login_tty.texi: Likewise.
31939         * doc/glibc-functions/forkpty.texi: Likewise.
31940
31941 2010-04-03  Bruno Haible  <bruno@clisp.org>
31942
31943         stdlib: Avoid compilation failure of c-strtold on mingw.
31944         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31945
31946 2010-04-03  Bruno Haible  <bruno@clisp.org>
31947
31948         locale: Make C++ tests work on Cygwin and mingw.
31949         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31950         cannot provide the function.
31951         Reported by Simon Josefsson.
31952
31953 2010-04-03  Bruno Haible  <bruno@clisp.org>
31954
31955         localename: Port to MacOS X 10.6.
31956         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31957         memory layout of the locales in MacOS X 10.6 as well.
31958         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31959
31960 2010-04-02  Bruno Haible  <bruno@clisp.org>
31961
31962         gnulib-tool: Ensure that long-running tests are executed last.
31963         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31964         running tests after the one for the other tests.
31965
31966 2010-04-02  Bruno Haible  <bruno@clisp.org>
31967
31968         gnulib-tool: Ensure the tests in the main directory are executed first.
31969         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31970         start with the current directory.
31971
31972 2010-04-02  Bruno Haible  <bruno@clisp.org>
31973
31974         Tests for module 'havelib', moved here from GNU gettext.
31975         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31976         modifications.
31977         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31978         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31979         with modifications.
31980         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31981         modifications.
31982         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31983         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31984         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31985         with modifications.
31986         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31987         with modifications.
31988         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31989         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31990         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31991         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31992         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31993         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31994         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31995         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31996         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31997         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31998         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31999         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
32000         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
32001         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
32002         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
32003         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
32004         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
32005         with modifications.
32006         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
32007         with modifications.
32008         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
32009         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
32010         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
32011         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
32012         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
32013         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
32014         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
32015         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
32016         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
32017         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
32018         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
32019         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
32020         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
32021         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
32022         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
32023         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
32024         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
32025         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
32026         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
32027         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
32028         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
32029         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
32030         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
32031         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
32032         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
32033         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
32034         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
32035         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
32036         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
32037         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
32038         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
32039         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
32040         * tests/havelib/rpathx/rpathx.c: New file, from
32041         gettext/autoconf-lib-link.
32042         * tests/havelib/rpathx/Makefile.am: New file, from
32043         gettext/autoconf-lib-link.
32044         * tests/havelib/rpathx/configure.ac: New file, from
32045         gettext/autoconf-lib-link with modifications.
32046         * tests/havelib/rpathy/rpathy.c: New file, from
32047         gettext/autoconf-lib-link.
32048         * tests/havelib/rpathy/Makefile.am: New file, from
32049         gettext/autoconf-lib-link.
32050         * tests/havelib/rpathy/configure.ac: New file, from
32051         gettext/autoconf-lib-link with modifications.
32052         * tests/havelib/rpathz/rpathz.c: New file, from
32053         gettext/autoconf-lib-link.
32054         * tests/havelib/rpathz/Makefile.am: New file, from
32055         gettext/autoconf-lib-link.
32056         * tests/havelib/rpathz/configure.ac: New file, from
32057         gettext/autoconf-lib-link with modifications.
32058         * tests/havelib/rpathlx/usex.c: New file, from
32059         gettext/autoconf-lib-link.
32060         * tests/havelib/rpathlx/Makefile.am: New file, from
32061         gettext/autoconf-lib-link.
32062         * tests/havelib/rpathlx/configure.ac: New file, from
32063         gettext/autoconf-lib-link with modifications.
32064         * tests/havelib/rpathly/usey.c: New file, from
32065         gettext/autoconf-lib-link.
32066         * tests/havelib/rpathly/Makefile.am: New file, from
32067         gettext/autoconf-lib-link.
32068         * tests/havelib/rpathly/configure.ac: New file, from
32069         gettext/autoconf-lib-link with modifications.
32070         * tests/havelib/rpathlz/usez.c: New file, from
32071         gettext/autoconf-lib-link.
32072         * tests/havelib/rpathlz/Makefile.am: New file, from
32073         gettext/autoconf-lib-link.
32074         * tests/havelib/rpathlz/configure.ac: New file, from
32075         gettext/autoconf-lib-link with modifications.
32076         * tests/havelib/rpathlyx/usey.c: New file, from
32077         gettext/autoconf-lib-link.
32078         * tests/havelib/rpathlyx/Makefile.am: New file, from
32079         gettext/autoconf-lib-link.
32080         * tests/havelib/rpathlyx/configure.ac: New file, from
32081         gettext/autoconf-lib-link with modifications.
32082         * tests/havelib/rpathlzyx/usez.c: New file, from
32083         gettext/autoconf-lib-link.
32084         * tests/havelib/rpathlzyx/Makefile.am: New file, from
32085         gettext/autoconf-lib-link.
32086         * tests/havelib/rpathlzyx/configure.ac: New file, from
32087         gettext/autoconf-lib-link with modifications.
32088         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
32089         with modifications.
32090
32091 2010-04-02  Bruno Haible  <bruno@clisp.org>
32092
32093         gnulib-tool: Create distributed built sources also for the tests.
32094         * gnulib-tool (func_create_testdir): Also generate distributed built
32095         sources in the tests directory.
32096
32097 2010-04-02  Bruno Haible  <bruno@clisp.org>
32098
32099         gnulib-tool: Obey user's environment variables.
32100         * gnulib-tool (func_create_testdir): When creating built sources,
32101         respect the environment variables for autoconf, automake, etc. given by
32102         the user.
32103
32104 2010-04-02  Bruno Haible  <bruno@clisp.org>
32105
32106         gnulib-tool: Provide the value of --m4-base to modules.
32107         * gnulib-tool (func_import, func_create_testdir): Emit a definition
32108         of gl_m4_base.
32109
32110 2010-04-02  Eric Blake  <eblake@redhat.com>
32111
32112         maint.mk: fix some fallout
32113         * NEWS: Document the incompatible change, and its effect on cfg.mk.
32114         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
32115
32116 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32117
32118         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
32119         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
32120         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
32121         (sc_cast_of_x_alloc_return_value): Likewise.
32122         (sc_cast_of_alloca_return_value): Likewise.
32123         (sc_space_tab): Likewise.
32124         (sc_prohibit_atoi_atof): Likewise.
32125         (sc_prohibit_magic_number_exit): Likewise.
32126         (sc_error_exit_success): Likewise.
32127         (sc_file_system): Likewise.
32128         (sc_prohibit_have_config_h): Likewise.
32129         (sc_require_config_h): Likewise.
32130         (sc_prohibit_HAVE_MBRTOWC): Likewise.
32131         (sc_obsolete_symbols): Likewise.
32132         (sc_changelog): Likewise.
32133         (sc_program_name): Likewise.
32134         (sc_the_the): Likewise.
32135         (sc_trailing_blank): Likewise.
32136         (sc_two_space_separator_in_usage): Likewise.
32137         (sc_useless_cpp_parens): Likewise.
32138         (sc_GPL_version): Likewise.
32139         (sc_GFDL_version): Likewise.
32140         (sc_texinfo_acronym): Likewise.
32141         (sc_prohibit_cvs_keyword): Likewise.
32142         (sc_prohibit_stat_st_blocks): Likewise.
32143         (sc_prohibit_S_IS_definition): Likewise.
32144         (sc_redundant_const): Likewise.
32145         (sc_makefile_TAB_only_indentation): Likewise.
32146         (sc_m4_quote_check): Likewise.
32147         (sc_makefile_path_separator_check): Likewise.
32148         (sc_copyright_check): Likewise.
32149         (sc_Wundef_boolean): Likewise.
32150         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32151
32152         maint.mk: match 0 or more whitespace-before-function-call '('
32153         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32154         that have zero or two-and-more spaces between the function name
32155         and the open parenthesis.
32156         (sc_error_message_warn_fatal): Likewise.
32157         (sc_error_message_uppercase): Likewise.
32158         (sc_error_message_period): Likewise.
32159
32160 2010-03-31  Eric Blake  <eblake@redhat.com>
32161
32162         maint.mk: check for [ as well as test
32163         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32164         Based on a libvirt report by Matthias Bolte.
32165
32166         gnumakefile: don't squelch _version output
32167         * top/GNUmakefile (_version): Create one-shot dependency rather
32168         than using $(shell) when version must be regenerated.
32169         (_autoreconf): Run verbosely, by default.
32170
32171         sys_time: avoid compiler warnings
32172         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32173         unconditional, fixing regression from 2010-03-29.
32174         Reported by Simon Josefsson.
32175
32176 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32177
32178         maint.mk: s/_header_without_use/_sc_header_without_use/
32179         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32180         (sc_prohibit_assert_without_use): Use the new name.
32181         (sc_prohibit_close_stream_without_use): Likewise.
32182         (sc_prohibit_getopt_without_use): Likewise.
32183         (sc_prohibit_quotearg_without_use): Likewise.
32184         (sc_prohibit_quote_without_use): Likewise.
32185         (sc_prohibit_long_options_without_use): Likewise.
32186         (sc_prohibit_inttostr_without_use): Likewise.
32187         (sc_prohibit_ignore_value_without_use): Likewise.
32188         (sc_prohibit_error_without_use): Likewise.
32189         (sc_prohibit_xalloc_without_use): Likewise.
32190         (sc_prohibit_hash_without_use): Likewise.
32191         (sc_prohibit_hash_pjw_without_use): Likewise.
32192         (sc_prohibit_safe_read_without_use): Likewise.
32193         (sc_prohibit_argmatch_without_use): Likewise.
32194         (sc_prohibit_canonicalize_without_use): Likewise.
32195         (sc_prohibit_root_dev_ino_without_use): Likewise.
32196         (sc_prohibit_openat_without_use): Likewise.
32197         (sc_prohibit_c_ctype_without_use): Likewise.
32198         (sc_prohibit_signal_without_use): Likewise.
32199         (sc_prohibit_intprops_without_use): Likewise.
32200
32201 2010-03-30  Eric Blake  <eblake@redhat.com>
32202
32203         maint: improve module indicators
32204         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32205         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32206         columns, and avoid extra macro expansion.
32207
32208         fdopendir: work around FreeBSD bug
32209         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32210         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32211         * modules/dirent (Makefile.am): Substitute it.
32212         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32213         declaration.
32214         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32215         fix.
32216         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32217
32218 2010-03-29  Bruno Haible  <bruno@clisp.org>
32219
32220         Emit #pragma system_header after the inclusion guard, not before.
32221         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32222         guard that spans the entire file, not before. This enables an
32223         optimization in GCC's preprocessor.
32224         * lib/ctype.in.h: Likewise.
32225         * lib/dirent.in.h: Likewise.
32226         * lib/errno.in.h: Likewise.
32227         * lib/float.in.h: Likewise.
32228         * lib/getopt.in.h: Likewise.
32229         * lib/iconv.in.h: Likewise.
32230         * lib/langinfo.in.h: Likewise.
32231         * lib/locale.in.h: Likewise.
32232         * lib/math.in.h: Likewise.
32233         * lib/netdb.in.h: Likewise.
32234         * lib/netinet_in.in.h: Likewise.
32235         * lib/pty.in.h: Likewise.
32236         * lib/sched.in.h: Likewise.
32237         * lib/se-selinux.in.h: Likewise.
32238         * lib/search.in.h: Likewise.
32239         * lib/spawn.in.h: Likewise.
32240         * lib/stdarg.in.h: Likewise.
32241         * lib/stdint.in.h: Likewise.
32242         * lib/string.in.h: Likewise.
32243         * lib/strings.in.h: Likewise.
32244         * lib/sys_file.in.h: Likewise.
32245         * lib/sys_ioctl.in.h: Likewise.
32246         * lib/sys_time.in.h: Likewise.
32247         * lib/sys_times.in.h: Likewise.
32248         * lib/sys_utsname.in.h: Likewise.
32249         * lib/sys_wait.in.h: Likewise.
32250         * lib/sysexits.in.h: Likewise.
32251         * lib/wctype.in.h: Likewise.
32252
32253 2010-03-28  James Youngman  <jay@gnu.org>
32254
32255         save-cwd: don't leak a file descriptor when the caller execs.
32256         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32257         saved file descriptor.
32258         * modules/save-cwd (Depends-on): Depend on cloexec.
32259
32260 2010-03-29  Bruno Haible  <bruno@clisp.org>
32261
32262         Remove vestiges of fts-lgpl module.
32263         * lib/fts_.h: Assume GNULIB_FTS is 1.
32264         * lib/fts.c: Likewise.
32265         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32266
32267 2010-03-28  Bruno Haible  <bruno@clisp.org>
32268
32269         Fix definition of tests witness macro.
32270         * gnulib-tool (func_import): Fix definition of witness macro.
32271
32272 2010-03-28  Bruno Haible  <bruno@clisp.org>
32273
32274         Fix ioctl's protoype on glibc systems.
32275         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32276         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32277         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32278         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32279         signature. If not, arrange to replace the ioctl function.
32280         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32281         REPLACE_IOCTL.
32282         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32283         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32284         Reported by Ludovic Courtès <ludo@gnu.org>.
32285
32286 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32287
32288         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32289         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32290         made it so grep -r --include=GLOB* ... did not work.
32291
32292 2010-03-26  Jim Meyering  <meyering@redhat.com>
32293             Eric Blake  <eblake@redhat.com>
32294
32295         maint.mk: prohibit use of test's -o and -a operators
32296         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32297
32298 2010-03-28  Bruno Haible  <bruno@clisp.org>
32299
32300         Remove unused GNULIB_XYZ macro definitions.
32301         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32302         invocation.
32303
32304 2010-03-28  Bruno Haible  <bruno@clisp.org>
32305
32306         Mark privileged tests modules.
32307         * modules/idpriv-drop-tests (Status): New section.
32308         * modules/idpriv-droptemp-tests (Status): New section.
32309
32310 2010-03-28  Bruno Haible  <bruno@clisp.org>
32311
32312         Split C++ tests into separate tests modules.
32313         * modules/dirent-c++-tests: New file, extracted from
32314         modules/dirent-tests.
32315         * modules/dirent-tests: Depend on it.
32316         * modules/fcntl-h-c++-tests: New file, extracted from
32317         modules/fcntl-h-tests.
32318         * modules/fcntl-h-tests: Depend on it.
32319         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32320         * modules/glob-tests: Depend on it.
32321         * modules/iconv-h-c++-tests: New file, extracted from
32322         modules/iconv-h-tests.
32323         * modules/iconv-h-tests: Depend on it.
32324         * modules/langinfo-c++-tests: New file, extracted from
32325         modules/langinfo-tests.
32326         * modules/langinfo-tests: Depend on it.
32327         * modules/locale-c++-tests: New file, extracted from
32328         modules/locale-tests.
32329         * modules/locale-tests: Depend on it.
32330         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32331         * modules/math-tests: Depend on it.
32332         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32333         * modules/pty-tests: Depend on it.
32334         * modules/search-c++-tests: New file, extracted from
32335         modules/search-tests.
32336         * modules/search-tests: Depend on it.
32337         * modules/signal-c++-tests: New file, extracted from
32338         modules/signal-tests.
32339         * modules/signal-tests: Depend on it.
32340         * modules/spawn-c++-tests: New file, extracted from
32341         modules/spawn-tests.
32342         * modules/spawn-tests: Depend on it.
32343         * modules/stdio-c++-tests: New file, extracted from
32344         modules/stdio-tests.
32345         * modules/stdio-tests: Depend on it.
32346         * modules/stdlib-c++-tests: New file, extracted from
32347         modules/stdlib-tests.
32348         * modules/stdlib-tests: Depend on it.
32349         * modules/string-c++-tests: New file, extracted from
32350         modules/string-tests.
32351         * modules/string-tests: Depend on it.
32352         * modules/sys_ioctl-c++-tests: New file, extracted from
32353         modules/sys_ioctl-tests.
32354         * modules/sys_ioctl-tests: Depend on it.
32355         * modules/sys_select-c++-tests: New file, extracted from
32356         modules/sys_select-tests.
32357         * modules/sys_select-tests: Depend on it.
32358         * modules/sys_socket-c++-tests: New file, extracted from
32359         modules/sys_socket-tests.
32360         * modules/sys_socket-tests: Depend on it.
32361         * modules/sys_stat-c++-tests: New file, extracted from
32362         modules/sys_stat-tests.
32363         * modules/sys_stat-tests: Depend on it.
32364         * modules/sys_time-c++-tests: New file, extracted from
32365         modules/sys_time-tests.
32366         * modules/sys_time-tests: Depend on it.
32367         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32368         * modules/time-tests: Depend on it.
32369         * modules/unistd-c++-tests: New file, extracted from
32370         modules/unistd-tests.
32371         * modules/unistd-tests: Depend on it.
32372         * modules/wchar-c++-tests: New file, extracted from
32373         modules/wchar-tests.
32374         * modules/wchar-tests: Depend on it.
32375         * modules/wctype-c++-tests: New file, extracted from
32376         modules/wctype-tests.
32377         * modules/wctype-tests: Depend on it.
32378         Reported by Simon Josefsson.
32379
32380 2010-03-28  Bruno Haible  <bruno@clisp.org>
32381
32382         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32383         * gnulib-tool (func_exists_module): New function, extracted from
32384         func_verify_module.
32385         (func_verify_module): Use it.
32386         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32387         'foo' only if 'foo' exists.
32388         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32389         module.
32390
32391 2010-03-28  Bruno Haible  <bruno@clisp.org>
32392
32393         gnulib-tool: Add support for special categories of tests.
32394         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32395         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32396         (func_usage): Document them.
32397         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32398         inc_unportable_tests, inc_all_tests): New variables.
32399         (func_acceptable): Consider these variables.
32400         (func_modules_transitive_closure): Make it work when the 'Status' field
32401         consists of multiple words.
32402         (func_import): Store and restore the values of inc_cxx_tests,
32403         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32404         inc_all_tests in gnulib-comp.m4.
32405         (func_create_testdir): Set inc_all_tests to true.
32406         * doc/gnulib.texi (Extra tests modules): New section.
32407         Suggested by Jim Meyering.
32408
32409 2010-03-28  Bruno Haible  <bruno@clisp.org>
32410
32411         ansi-c++-opt: Allow turning off the C++ build by default.
32412         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32413         gl_CXX_CHOICE_DEFAULT_NO is defined.
32414         Requested by Eric Blake.
32415
32416 2010-03-28  Bruno Haible  <bruno@clisp.org>
32417
32418         unistd: Avoid #define replacements in C++ mode.
32419         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32420         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32421         setsockopt, shutdown, select): In C++, attach a warning to the function
32422         if possible, rather than #defining the symbol to a dysfunctional alias.
32423         Reported by John W. Eaton <jwe@gnu.org>.
32424
32425 2010-03-28  Bruno Haible  <bruno@clisp.org>
32426
32427         Fix link errors on mingw.
32428         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32429         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32430         $(LIBSOCKET).
32431         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32432         $(LIBSOCKET).
32433
32434 2010-03-28  Bruno Haible  <bruno@clisp.org>
32435             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32436
32437         lib-ignore: Determine different options for different compilers.
32438         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32439         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32440         Add comments.
32441         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32442         * NEWS: Mention the change.
32443
32444 2010-03-27  Bruno Haible  <bruno@clisp.org>
32445
32446         Remove unused GNULIB_XYZ macro definitions.
32447         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32448         * modules/fseek (configure.ac): Likewise.
32449         * modules/ioctl (configure.ac): Likewise.
32450         * modules/open (configure.ac): Likewise.
32451         * modules/stdlib-safer (configure.ac): Likewise.
32452
32453 2010-03-27  Bruno Haible  <bruno@clisp.org>
32454
32455         Add a remark about certain modules.
32456         * modules/malloc (Comment): New section.
32457         * modules/realloc (Comment): Likewise.
32458         * modules/sigpipe (Comment): Likewise.
32459
32460 2010-03-27  Bruno Haible  <bruno@clisp.org>
32461
32462         Resolve conflict between the two kinds of module indicators.
32463         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32464         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32465         * modules/canonicalize (configure.ac): Invoke
32466         gl_MODULE_INDICATOR_FOR_TESTS.
32467         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32468         GNULIB_XYZ.
32469         * tests/test-dirent-c++.cc: Likewise.
32470         * tests/test-dirent-safer.c: Likewise.
32471         * tests/test-dup2.c: Likewise.
32472         * tests/test-fchdir.c: Likewise.
32473         * tests/test-fcntl-h-c++.cc: Likewise.
32474         * tests/test-getopt.c: Likewise.
32475         * tests/test-getopt.h: Likewise.
32476         * tests/test-langinfo-c++.cc: Likewise.
32477         * tests/test-locale-c++.cc: Likewise.
32478         * tests/test-math-c++.cc: Likewise.
32479         * tests/test-pty-c++.cc: Likewise.
32480         * tests/test-search-c++.cc: Likewise.
32481         * tests/test-signal-c++.cc: Likewise.
32482         * tests/test-spawn-c++.cc: Likewise.
32483         * tests/test-stdio-c++.cc: Likewise.
32484         * tests/test-stdlib-c++.cc: Likewise.
32485         * tests/test-string-c++.cc: Likewise.
32486         * tests/test-sys_ioctl-c++.cc: Likewise.
32487         * tests/test-sys_select-c++.cc: Likewise.
32488         * tests/test-sys_socket-c++.cc: Likewise.
32489         * tests/test-sys_stat-c++.cc: Likewise.
32490         * tests/test-sys_time-c++.cc: Likewise.
32491         * tests/test-time-c++.cc: Likewise.
32492         * tests/test-unistd-c++.cc: Likewise.
32493         * tests/test-wchar-c++.cc: Likewise.
32494         * tests/uninorm/test-u8-nfc.c: Likewise.
32495         * tests/uninorm/test-u8-nfd.c: Likewise.
32496         * tests/uninorm/test-u8-nfkc.c: Likewise.
32497         * tests/uninorm/test-u8-nfkd.c: Likewise.
32498         * tests/uninorm/test-u16-nfc.c: Likewise.
32499         * tests/uninorm/test-u16-nfd.c: Likewise.
32500         * tests/uninorm/test-u16-nfkc.c: Likewise.
32501         * tests/uninorm/test-u16-nfkd.c: Likewise.
32502         * tests/uninorm/test-u32-nfc.c: Likewise.
32503         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32504         * tests/uninorm/test-u32-nfd.c: Likewise.
32505         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32506         * tests/uninorm/test-u32-nfkc.c: Likewise.
32507         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32508         * tests/uninorm/test-u32-nfkd.c: Likewise.
32509         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32510         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32511
32512 2010-03-27  Bruno Haible  <bruno@clisp.org>
32513
32514         Distinguish two kinds of module indicators.
32515         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32516         gl_MODULE_INDICATOR.
32517         (gl_MODULE_INDICATOR): New macro.
32518         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32519         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32520         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32521         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32522         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32523         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32524         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32525         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32526         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32527         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32528         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32529         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32532         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32533         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32534         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32535         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32536         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32537         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32538         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32539         * modules/cloexec (configure.ac): Likewise.
32540         * modules/getopt-gnu (configure.ac): Likewise.
32541         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32542         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32543         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32544         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32545
32546 2010-03-27  Bruno Haible  <bruno@clisp.org>
32547
32548         New module description field 'Comment'.
32549         * gnulib-tool: New option --extract-comment.
32550         (func_usage): Document it.
32551         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32552         (func_get_comment): New function.
32553         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32554
32555 2010-03-27  Bruno Haible  <bruno@clisp.org>
32556
32557         Addendum to 2010-02-07 commit.
32558         * gnulib-tool (func_usage): Document --extract-applicability option.
32559
32560 2010-03-27  Bruno Haible  <bruno@clisp.org>
32561
32562         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32563         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32564         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32565         rather than link errors.
32566
32567 2010-03-27  Bruno Haible  <bruno@clisp.org>
32568
32569         Avoid side effects from tests-related modules on the compilation of lib.
32570         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32571         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32572         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32573         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32574         macro.
32575         (func_import): Define a witness macro. Assign it a value that depends
32576         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32577         tests-related modules.
32578         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32579         Reported by Jim Meyering.
32580
32581 2010-03-27  Bruno Haible  <bruno@clisp.org>
32582
32583         Factorize common .m4 code.
32584         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32585         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32586         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32587         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32588         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32589         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32590         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32591         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32592         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32593         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32594         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32595         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32596         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32597         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32598         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32599         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32600         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32601         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32603         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32604         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32605         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32606         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32607         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32608         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32609         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32610         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32611         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32612         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32613         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32614         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32615         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32616
32617 2010-03-27  Bruno Haible  <bruno@clisp.org>
32618
32619         Fix a compilation error on Cygwin with g++ >= 4.3.
32620         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32621         if it is undefined or if we alias it to chmod.
32622         (lstat): Don't warn about the use of this function if it is undefined
32623         or if we alias it to stat.
32624         Reported by Simon Josefsson.
32625
32626 2010-03-27  Bruno Haible  <bruno@clisp.org>
32627
32628         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32629         * modules/getlogin (configure.ac): Update.
32630
32631         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32632         * modules/getlogin_r (configure.ac): Update.
32633
32634         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32635         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32636         * modules/inet_ntop (configure.ac): Update.
32637
32638         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32639         * modules/inet_pton (configure.ac): Update.
32640
32641         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32642         * modules/mbslen (configure.ac): Update.
32643
32644         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32645         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32646         * modules/forkpty (configure.ac): Update.
32647         * modules/openpty (configure.ac): Update.
32648
32649 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32650
32651         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32652         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32653
32654 2010-03-25  Eric Blake  <eblake@redhat.com>
32655
32656         maint: use pragma consistently across replacement headers
32657         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32658         * lib/dirent.in.h (system_header): Likewise.
32659         * lib/errno.in.h (system_header): Likewise.
32660         * lib/float.in.h (system_header): Likewise.
32661         * lib/getopt.in.h (system_header): Likewise.
32662         * lib/iconv.in.h (system_header): Likewise.
32663         * lib/inttypes.in.h (system_header): Likewise.
32664         * lib/langinfo.in.h (system_header): Likewise.
32665         * lib/locale.in.h (system_header): Likewise.
32666         * lib/math.in.h (system_header): Likewise.
32667         * lib/netdb.in.h (system_header): Likewise.
32668         * lib/netinet_in.in.h (system_header): Likewise.
32669         * lib/pty.in.h (system_header): Likewise.
32670         * lib/sched.in.h (system_header): Likewise.
32671         * lib/se-selinux.in.h (system_header): Likewise.
32672         * lib/search.in.h (system_header): Likewise.
32673         * lib/spawn.in.h (system_header): Likewise.
32674         * lib/stdarg.in.h (system_header): Likewise.
32675         * lib/stdint.in.h (system_header): Likewise.
32676         * lib/string.in.h (system_header): Likewise.
32677         * lib/strings.in.h (system_header): Likewise.
32678         * lib/sys_file.in.h (system_header): Likewise.
32679         * lib/sys_ioctl.in.h (system_header): Likewise.
32680         * lib/sys_socket.in.h (system_header): Likewise.
32681         * lib/sys_times.in.h (system_header): Likewise.
32682         * lib/sys_utsname.in.h (system_header): Likewise.
32683         * lib/sys_wait.in.h (system_header): Likewise.
32684         * lib/sysexits.in.h (system_header): Likewise.
32685         * lib/unistd.in.h (system_header): Likewise.
32686         * lib/wctype.in.h (system_header): Likewise.
32687
32688         arpa/inet: fix mingw compilation warning
32689         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32690         Reported by Matthew Bolte.
32691
32692 2010-03-25  Bruno Haible  <bruno@clisp.org>
32693
32694         Avoid collision between gnulib wrapper and libintl wrapper.
32695         * lib/printf.c (printf): Don't define if a printf wrapper is already
32696         defined in intl/printf.c.
32697         Reported by Michel Boaventura <michel@michelboaventura.com>.
32698
32699 2010-03-25  Bruno Haible  <bruno@clisp.org>
32700
32701         Use ANSI C.
32702         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32703
32704 2010-03-25  Bruno Haible  <bruno@clisp.org>
32705
32706         Minor formatting changes.
32707         * lib/acosl.c: Insert space before function argument list.
32708         * lib/argz.c: Likewise.
32709         * lib/asinl.c: Likewise.
32710         * lib/expl.c: Likewise.
32711         * lib/gen-uni-tables.c: Likewise.
32712         * lib/gettext.h: Likewise.
32713         * lib/glthread/lock.h: Likewise.
32714         * lib/tanl.c: Likewise.
32715         * lib/uniname/uniname.c: Likewise.
32716         * tests/test-idpriv-drop.c: Likewise.
32717         * tests/test-idpriv-droptemp.c: Likewise.
32718         * tests/test-lock.c: Likewise.
32719         * tests/test-tls.c: Likewise.
32720         * lib/argp-help.c: Insert space before function-like macro argument
32721         list.
32722         * lib/memcmp.c: Likewise.
32723         * tests/test-base64.c: Likewise.
32724         * lib/localename.c: Insert space before sizeof's argument list.
32725         * lib/safe-alloc.h: Likewise.
32726         * lib/file-set.h: Insert space before macro argument list.
32727         * tests/test-argp.c: Likewise.
32728         * lib/argp-namefrob.h: Insert space before function parameter list.
32729         * lib/getaddrinfo.c: Likewise.
32730         * lib/netdb.in.h: Likewise.
32731         * lib/parse-duration.h: Likewise.
32732         * lib/parse-duration.c: Likewise.
32733         * lib/poll.c: Likewise.
32734         * lib/select.c: Likewise.
32735         * lib/trim.h: Likewise.
32736         * tests/test-usleep.c: Likewise.
32737         * lib/ldexpl.c: Insert space before function parameter list and before
32738         function argument list.
32739         * lib/logl.c: Likewise.
32740         * lib/sqrtl.c: Likewise.
32741         * lib/trim.c: Likewise.
32742         * lib/cosl.c: Use GNU style indentation. Insert space before function
32743         argument list.
32744         * lib/sinl.c: Likewise.
32745         * lib/tsearch.c: Insert space after 'for'.
32746         Reported by Jim Meyering.
32747
32748 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32749
32750         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32751         config header before grepping, as it's not present before
32752         autoreconf/configure are run.  Reported by Simon Josefsson.
32753
32754 2010-03-23  Bruno Haible  <bruno@clisp.org>
32755
32756         pt_chown: Make it work with automake < 1.11.
32757         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32758         Reported by Simon Josefsson.
32759
32760 2010-03-23  Bruno Haible  <bruno@clisp.org>
32761
32762         pt_chown: Don't depend on GPLed modules.
32763         * lib/pt_chown.c: Don't include idpriv.h.
32764         (main): Don't drop privileges.
32765         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32766         Reported by Simon Josefsson.
32767
32768 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32769
32770         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32771         suggestions from karl@freefriends.org (Karl Berry).
32772
32773 2010-03-22  Eric Blake  <eblake@redhat.com>
32774
32775         gethostname: further tweaks
32776         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32777         are overriding gethostname.
32778         Suggested by Bruno Haible.
32779
32780 2010-03-21  Bruno Haible  <bruno@clisp.org>
32781
32782         Fix comments.
32783         * lib/forkpty.c (rpl_forkpty): Fix comment.
32784         * lib/openpty.c (rpl_openpty): Likewise.
32785         Reported by Eric Blake.
32786
32787 2010-03-22  Eric Blake  <eblake@redhat.com>
32788
32789         gethostname: fix build on mingw
32790         * lib/unistd.in.h (includes): Work around fact that mingw
32791         <winsock2.h> re-includes <unistd.h>, by avoiding any
32792         redeclarations if we are being included by <winsock2.h>.
32793         Reported by Matthias Bolte.
32794
32795 2010-03-21  Bruno Haible  <bruno@clisp.org>
32796
32797         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32798         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32799         modifications.
32800         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32801         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32802         provide the replacement.
32803         * modules/forkpty (Depends-on): Add openpty, login_tty.
32804         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32805         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32806         * doc/glibc-functions/forkpty.texi: More supported platforms.
32807         * config/srclist.txt: Add forkpty.c (commented).
32808
32809 2010-03-21  Bruno Haible  <bruno@clisp.org>
32810
32811         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32812         (Makefile.am): Verify that PTY_LIB is defined.
32813
32814         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32815
32816 2010-03-21  Bruno Haible  <bruno@clisp.org>
32817
32818         Tests for module 'login_tty'.
32819         * modules/login_tty-tests: New file.
32820         * tests/test-login_tty.c: New file.
32821
32822         New module 'login_tty'.
32823         * lib/login_tty.c: New file.
32824         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32825         * modules/login_tty: New file.
32826         * doc/glibc-functions/login_tty.texi: Mention the new module.
32827
32828 2010-03-21  Bruno Haible  <bruno@clisp.org>
32829
32830         login_tty: Documentation.
32831         * doc/glibc-functions/login_tty.texi: New file.
32832         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32833
32834 2010-03-21  Bruno Haible  <bruno@clisp.org>
32835
32836         pty: Consistent macro naming.
32837         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32838         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32839         * modules/pty (configure.ac): Update.
32840
32841 2010-03-21  Bruno Haible  <bruno@clisp.org>
32842
32843         Tests for openpty: Make stricter.
32844         * tests/test-openpty.c (main): Add test of canonical processing and
32845         erase.
32846         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32847
32848         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32849         * lib/openpty.c (openpty): New replacement function.
32850         * lib/pty.in.h: Include <termios.h>.
32851         (openpty): Update declaration. Add comments.
32852         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32853         is not declared, arrange to provide the replacement. Check for _getpty
32854         and posix_openpt.
32855         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32856         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32857         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32858         * modules/pty-tests (test_pty_c___LDADD): New variable.
32859         * doc/glibc-functions/openpty.texi: More supported platforms.
32860
32861 2010-03-21  Bruno Haible  <bruno@clisp.org>
32862
32863         setenv: Tweaks.
32864         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32865         the test program.
32866         * doc/posix-functions/setenv.texi: Update platforms list.
32867
32868 2010-03-21  Bruno Haible  <bruno@clisp.org>
32869
32870         New module 'unlockpt'.
32871         * lib/unlockpt.c: New file, from glibc with modifications.
32872         * m4/unlockpt.m4: New file.
32873         * modules/unlockpt: New file.
32874         * lib/stdlib.in.h (unlockpt): New declaration.
32875         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32876         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32877         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32878         HAVE_UNLOCKPT.
32879         * doc/posix-functions/unlockpt.texi: Mention the new module.
32880         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32881         * config/srclist.txt: Add unlockpt.c (commented).
32882
32883 2010-03-21  Jim Meyering  <meyering@redhat.com>
32884
32885         maint.mk: prohibit inclusion of "intprops.h" without use
32886         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32887
32888 2010-03-21  Bruno Haible  <bruno@clisp.org>
32889
32890         New module 'grantpt'.
32891         * lib/grantpt.c: New file, from glibc with modifications.
32892         * m4/grantpt.m4: New file.
32893         * modules/grantpt: New file.
32894         * lib/stdlib.in.h (grantpt): New declaration.
32895         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32896         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32897         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32898         HAVE_GRANTPT.
32899         * doc/posix-functions/grantpt.texi: Mention the new module.
32900         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32901         * config/srclist.txt: Add grantpt.c (commented).
32902
32903 2010-03-21  Bruno Haible  <bruno@clisp.org>
32904
32905         New module 'pt_chown'.
32906         * lib/pt_chown.c: New file, from glibc with modifications.
32907         * lib/pty-private.h: New file, from glibc with modifications.
32908         * modules/pt_chown: New file.
32909         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32910
32911 2010-03-21  Bruno Haible  <bruno@clisp.org>
32912
32913         Tests for module 'ptsname'.
32914         * modules/ptsname-tests: New file.
32915         * tests/test-ptsname.c: New file.
32916
32917         New module 'ptsname'.
32918         * lib/ptsname.c: New file, from glibc with modifications.
32919         * m4/ptsname.m4: New file.
32920         * modules/ptsname: New file.
32921         * lib/stdlib.in.h (ptsname): New declaration.
32922         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32923         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32924         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32925         HAVE_PTSNAME.
32926         * doc/posix-functions/ptsname.texi: Mention the new module.
32927         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32928         * config/srclist.txt: Add ptsname.c (commented).
32929
32930 2010-03-21  Bruno Haible  <bruno@clisp.org>
32931
32932         Tests for module 'ttyname_r'.
32933         * modules/ttyname_r-tests: New file.
32934         * tests/test-ttyname_r.c: New file.
32935
32936         New module 'ttyname_r'.
32937         * lib/ttyname_r.c: New file.
32938         * m4/ttyname_r.m4: New file.
32939         * modules/ttyname_r: New file.
32940         * lib/unistd.in.h (ttyname_r): New declaration.
32941         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32942         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32943         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32944         HAVE_TTYNAME_R.
32945         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32946         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32947
32948 2010-03-20  Bruno Haible  <bruno@clisp.org>
32949
32950         signal: Undefine macro definitions in C++ mode.
32951         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32952         sigfillset): Undefine macro definitions from the system header in C++
32953         mode.
32954         Reported by John W. Eaton <jwe@gnu.org>.
32955
32956 2010-03-20  Bruno Haible  <bruno@clisp.org>
32957
32958         Ensure no #include statements inside extern "C" { ... }.
32959         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32960         contain #include statements.
32961         * lib/time.in.h: Likewise.
32962
32963 2010-03-20  Bruno Haible  <bruno@clisp.org>
32964
32965         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32966         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32967         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32968         Reported by John W. Eaton <jwe@gnu.org>.
32969
32970 2010-03-20  Bruno Haible  <bruno@clisp.org>
32971
32972         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32973         Reported by Jim Meyering.
32974
32975 2010-03-20  Bruno Haible  <bruno@clisp.org>
32976
32977         pipe: Set errno upon failure.
32978         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32979         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32980         errno value in error message.
32981
32982 2010-03-20  Bruno Haible  <bruno@clisp.org>
32983             Jim Meyering  <meyering@redhat.com>
32984
32985         lchown: Avoid "unused variable" warning.
32986         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32987
32988 2010-03-20  Bruno Haible  <bruno@clisp.org>
32989
32990         Work around unlink() bug on MacOS X 10.5.6.
32991         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32992         attempting to unlink a parent directory.
32993         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32994         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32995         activate for the replacement function.
32996         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32997
32998 2010-03-20  Bruno Haible  <bruno@clisp.org>
32999
33000         Fix link errors on Solaris 8.
33001         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
33002         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
33003
33004 2010-03-19  Jim Meyering  <meyering@redhat.com>
33005
33006         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
33007         The _LIBC implementation of build_range_exp correctly honors the
33008         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
33009         However, the non-_LIBC implementation would ignore that syntax-bit
33010         flag and return REG_ERANGE unconditionally.
33011         This change makes it honor that flag.
33012         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
33013         Make two pointer parameters "const".
33014         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
33015         (parse_bracket_exp): Update caller.
33016
33017         regex.m4: correct the reversed range endpoint ([b-a]) test
33018         * m4/regex.m4: When requiring that [b-a] evoke failure,
33019         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
33020         test pass once again for x86-based systems.
33021
33022 2010-03-19  Bruno Haible  <bruno@clisp.org>
33023
33024         scandir: Fix link error on Solaris 8.
33025         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
33026         macros.
33027
33028 2010-03-19  Bruno Haible  <bruno@clisp.org>
33029
33030         getusershell: Fix documentation.
33031         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
33032         module.
33033         * doc/glibc-functions/setusershell.texi: Likewise.
33034
33035         getusershell: Provide declaration, missing on Solaris 9.
33036         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
33037         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
33038         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
33039         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
33040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33041         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
33042         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
33043         HAVE_GETUSERSHELL.
33044         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
33045
33046 2010-03-19  Bruno Haible  <bruno@clisp.org>
33047
33048         wctype: Provide iswblank function.
33049         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
33050         exists and is fine.
33051         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
33052         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
33053         * tests/test-wctype.c (main): Re-enable the iswblank tests.
33054         * doc/posix-functions/iswblank.texi: Update.
33055
33056 2010-03-19  Bruno Haible  <bruno@clisp.org>
33057
33058         Tests of module 'pty' in C++ mode.
33059         * modules/pty-tests: New file.
33060         * tests/test-pty-c++.cc: New file.
33061         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33062
33063 2010-03-19  Eric Blake  <eblake@redhat.com>
33064
33065         logb: fix documentation
33066         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
33067         1.5 declaration bug.
33068
33069         forkpty, openpty: prefer glibc's const-safe prototype
33070         * lib/forkpty.c (rpl_forkpty): New file.
33071         * lib/openpty.c (rpl_openpty): Likewise.
33072         * modules/forkpty (Files): Distribute it.
33073         * modules/openpty (Files): Likewise.
33074         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
33075         check...
33076         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
33077         replacement for for non-const BSD signature.
33078         * modules/pty (Makefile.am): Substitute witnesses.
33079         * lib/pty.in.h (forkpty, openpty): Declare replacements.
33080         * tests/test-forkpty.c: Update signature check.
33081         * tests/test-openpty.c: Likewise.
33082         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
33083         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33084
33085         forkpty, openpty: split functions into new modules
33086         * modules/pty (Makefile.am): Substitute new witnesses.
33087         (Libraries): Move library detection...
33088         * modules/forkpty: ...into new module.
33089         * modules/openpty: Another new module.
33090         * modules/pty-tests: Rename and split...
33091         * modules/forkpty-tests: ...to this...
33092         * modules/openpty-tests: ...and this.
33093         * tests/test-pty.c: Rename and split...
33094         * tests/test-forkpty.c: ...to this...
33095         * tests/test-openpty.c: ...and this.
33096         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
33097         (gl_PTY): Split library searching...
33098         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
33099         (gl_FORKPTY, gl_OPENPTY): New macros.
33100         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
33101         * NEWS: Mention the split.
33102         * MODULES.html.sh (Misc): Document the modules.
33103         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
33104         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33105
33106         pty: improve replacement header
33107         * lib/pty.in.h: New file.
33108         * modules/pty (Files): Ship it.
33109         (Makefile.am): Always build replacement.
33110         * m4/pty.m4: Rename...
33111         * m4/pty_h.m4: ...to this.
33112         (gl_PTY): Modernize setting of witness macros; update check of
33113         forkpty to take proper advantage of cache.
33114         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
33115
33116         getopt: avoid compiler warning
33117         * lib/getopt.c (attribute_hidden): Remove unused macro.
33118
33119 2010-03-18  Bruno Haible  <bruno@clisp.org>
33120
33121         Fix link errors on Solaris 8.
33122         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
33123         * modules/search-tests (test_search_c___LDADD): Likewise.
33124         * modules/signal-tests (test_signal_c___LDADD): Likewise.
33125         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
33126         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
33127         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
33128         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
33129         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
33130         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
33131
33132 2010-03-18  Bruno Haible  <bruno@clisp.org>
33133
33134         Fix bug introduced on 2010-03-14.
33135         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33136         (gl_SPAWN_H): Require it.
33137         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33138         Reported by Simon Josefsson.
33139
33140 2010-03-18  Bruno Haible  <bruno@clisp.org>
33141
33142         Fix typo introduced on 2009-12-31.
33143         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33144         posix_spawn_file_actions_adddup2.
33145
33146 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33147         and Eric Blake  <eblake@redhat.com>
33148
33149         test-vc-list-files-git: make more robust
33150         * tests/test-vc-list-files-git.sh: Unset problematic environment
33151         variables.  Chain commands together.
33152
33153 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33154
33155         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33156         `AC_CHECK_DECL' invocation.
33157
33158 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33159
33160         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33161         appears before executable statements. Suggested by Petr Sumbera
33162         <Petr.Sumbera@Sun.COM>.
33163
33164 2010-03-14  Bruno Haible  <bruno@clisp.org>
33165
33166         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33167         portability problems. Instead use a simpler test.
33168         (main): Check that invalid arguments are rejected only on Linux.
33169
33170 2010-03-14  Bruno Haible  <bruno@clisp.org>
33171
33172         Fix bug introduced on 2009-12-31.
33173         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33174         gl_PREREQ_SYS_H_WINSOCK2 always.
33175         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33176         SYS_SOCKET_H variable.
33177         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33178         Update comments.
33179         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33180         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33181         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33182         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33183         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33184
33185 2010-03-14  Bruno Haible  <bruno@clisp.org>
33186
33187         Fix values returned by sinl, cosl.
33188         * lib/trigl.h: Add specification comments.
33189         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33190         that combines the values from the precomputed table with the values of
33191         the Chebyshev polynomials.
33192
33193 2010-03-14  Bruno Haible  <bruno@clisp.org>
33194
33195         Fix compilation error when modules 'posix_spawn[p]' are not used.
33196         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33198
33199 2010-03-14  Bruno Haible  <bruno@clisp.org>
33200
33201         Fix compilation error on mingw when module 'time_r' is not used.
33202         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33203         is 1.
33204         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33205         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33206         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33207         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33208
33209 2010-03-14  Bruno Haible  <bruno@clisp.org>
33210
33211         Fix compilation error with Sun C.
33212         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33213         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33214         instead of GCC specific ULONG_LONG_MAX.
33215         * lib/xstrtoll.c: Likewise.
33216         * lib/xstrtoull.c: Likewise.
33217
33218 2010-03-13  Bruno Haible  <bruno@clisp.org>
33219
33220         Allow the user to disable C++ code and tests.
33221         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33222         (gl_PROG_ANSI_CXX): Require it.
33223
33224 2010-03-13  Bruno Haible  <bruno@clisp.org>
33225
33226         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33227         cases.
33228
33229 2010-03-13  Bruno Haible  <bruno@clisp.org>
33230
33231         Test that gnulib does not break the standard C++ headers.
33232         * tests/test-locale-c++2.cc: New file.
33233         * modules/locale-tests (Files): Add it.
33234         (Makefile.am): Compile it for test-locale-c++.
33235         * tests/test-math-c++2.cc: New file.
33236         * modules/math-tests (Files): Add it.
33237         (Makefile.am): Compile it for test-math-c++.
33238         * tests/test-signal-c++2.cc: New file.
33239         * modules/signal-tests (Files): Add it.
33240         (Makefile.am): Compile it for test-signal-c++.
33241         * tests/test-stdio-c++2.cc: New file.
33242         * modules/stdio-tests (Files): Add it.
33243         (Makefile.am): Compile it for test-stdio-c++.
33244         * tests/test-stdlib-c++2.cc: New file.
33245         * modules/stdlib-tests (Files): Add it.
33246         (Makefile.am): Compile it for test-stdlib-c++.
33247         * tests/test-string-c++2.cc: New file.
33248         * modules/string-tests (Files): Add it.
33249         (Makefile.am): Compile it for test-string-c++.
33250         * tests/test-time-c++2.cc: New file.
33251         * modules/time-tests (Files): Add it.
33252         (Makefile.am): Compile it for test-time-c++.
33253         Reported by John W. Eaton <jwe@gnu.org>.
33254
33255 2010-03-13  Bruno Haible  <bruno@clisp.org>
33256
33257         * gnulib-tool (func_usage): Clarify which options are available for
33258         --create-testdir and --create-megatestdir.
33259
33260 2010-03-13  Bruno Haible  <bruno@clisp.org>
33261
33262         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33263         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33264         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33265         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33266         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33267         when appropriate.
33268         Reported by Jim Meyering.
33269
33270 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33271
33272         * gnulib-tool (func_import): Explain origin of code.
33273
33274 2010-03-12  Bruno Haible  <bruno@clisp.org>
33275
33276         Fix problem with automake's definition of CXXLINK.
33277         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33278         Reported by Simon Josefsson and Ludovic Courtès.
33279
33280 2010-03-12  Bruno Haible  <bruno@clisp.org>
33281
33282         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33283         stable releases.
33284
33285 2010-03-11  Bruno Haible  <bruno@clisp.org>
33286
33287         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33288         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33289         whether the system provides one variant or multiple variants of the
33290         function.
33291         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33292         C++ compilers.
33293         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33294         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33295         Reported by Jim Meyering.
33296
33297 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33298
33299         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33300
33301 2010-03-08  Bruno Haible  <bruno@clisp.org>
33302
33303         gnulib-tool: Add support for --libtool in --create-testdir.
33304         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33305         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33306
33307 2010-03-08  Eric Blake  <eblake@redhat.com>
33308
33309         gnulib-tool.texi: mention possibility of git submodule
33310         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33311         submodules.
33312         * doc/.gitignore: Ignore another generated file.
33313
33314 2010-03-08  Karl Berry  <karl@gnu.org>
33315
33316         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33317         of committing gnulib files while skipping others.
33318
33319 2010-03-07  Bruno Haible  <bruno@clisp.org>
33320
33321         Tests of module 'wctype' in C++ mode.
33322         * tests/test-wctype-c++.cc: New file.
33323         * modules/wctype-tests (Files): Add it and tests/signature.h.
33324         (Depends-on): Add ansi-c++-opt.
33325         (Makefile.am): Arrange to compile and run test-wctype-c++.
33326
33327         Tests of module 'wchar' in C++ mode.
33328         * tests/test-wchar-c++.cc: New file.
33329         * modules/wchar-tests (Files): Add it and tests/signature.h.
33330         (Depends-on): Add ansi-c++-opt.
33331         (Makefile.am): Arrange to compile and run test-wchar-c++.
33332         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33333         gl_MODULE_INDICATOR.
33334
33335         Tests of module 'unistd' in C++ mode.
33336         * tests/test-unistd-c++.cc: New file.
33337         * modules/unistd-tests (Files): Add it and tests/signature.h.
33338         (Depends-on): Add ansi-c++-opt.
33339         (Makefile.am): Arrange to compile and run test-unistd-c++.
33340         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33341         gl_MODULE_INDICATOR.
33342
33343         Tests of module 'time' in C++ mode.
33344         * tests/test-time-c++.cc: New file.
33345         * modules/time-tests (Files): Add it and tests/signature.h.
33346         (Depends-on): Add ansi-c++-opt.
33347         (Makefile.am): Arrange to compile and run test-time-c++.
33348         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33349
33350         Tests of module 'sys_time' in C++ mode.
33351         * tests/test-sys_time-c++.cc: New file.
33352         * modules/sys_time-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_time-c++.
33355         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33356         gl_MODULE_INDICATOR.
33357
33358         Tests of module 'sys_stat' in C++ mode.
33359         * tests/test-sys_stat-c++.cc: New file.
33360         * modules/sys_stat-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_stat-c++.
33363         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33364         gl_MODULE_INDICATOR.
33365
33366         Tests of module 'sys_socket' in C++ mode.
33367         * tests/test-sys_socket-c++.cc: New file.
33368         * modules/sys_socket-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_socket-c++.
33371         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33372         gl_MODULE_INDICATOR.
33373
33374         Tests of module 'sys_select' in C++ mode.
33375         * tests/test-sys_select-c++.cc: New file.
33376         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33377         (Depends-on): Add ansi-c++-opt.
33378         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33379         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33380         gl_MODULE_INDICATOR.
33381
33382         Tests of module 'sys_ioctl' in C++ mode.
33383         * tests/test-sys_ioctl-c++.cc: New file.
33384         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33385         (Depends-on): Add ansi-c++-opt.
33386         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33387         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33388         gl_MODULE_INDICATOR.
33389
33390         Tests of module 'string' in C++ mode.
33391         * tests/test-string-c++.cc: New file.
33392         * modules/string-tests (Files): Add it and tests/signature.h.
33393         (Depends-on): Add ansi-c++-opt.
33394         (Makefile.am): Arrange to compile and run test-string-c++.
33395         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33396         gl_MODULE_INDICATOR.
33397
33398         Tests of module 'stdlib' in C++ mode.
33399         * tests/test-stdlib-c++.cc: New file.
33400         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33401         (Depends-on): Add ansi-c++-opt.
33402         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33403         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33404         gl_MODULE_INDICATOR.
33405
33406         Tests of module 'stdio' in C++ mode.
33407         * tests/test-stdio-c++.cc: New file.
33408         * modules/stdio-tests (Files): Add it and tests/signature.h.
33409         (Depends-on): Add ansi-c++-opt.
33410         (Makefile.am): Arrange to compile and run test-stdio-c++.
33411         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33412         gl_MODULE_INDICATOR.
33413
33414         Tests of module 'spawn' in C++ mode.
33415         * tests/test-spawn-c++.cc: New file.
33416         * modules/spawn-tests (Files): Add it and tests/signature.h.
33417         (Depends-on): Add ansi-c++-opt.
33418         (Makefile.am): Arrange to compile and run test-spawn-c++.
33419         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33420         gl_MODULE_INDICATOR.
33421
33422         Tests of module 'signal' in C++ mode.
33423         * tests/test-signal-c++.cc: New file.
33424         * modules/signal-tests (Files): Add it and tests/signature.h.
33425         (Depends-on): Add ansi-c++-opt.
33426         (Makefile.am): Arrange to compile and run test-signal-c++.
33427         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33428         gl_MODULE_INDICATOR.
33429
33430         Tests of module 'search' in C++ mode.
33431         * tests/test-search-c++.cc: New file.
33432         * modules/search-tests (Files): Add it and tests/signature.h.
33433         (Depends-on): Add ansi-c++-opt.
33434         (Makefile.am): Arrange to compile and run test-search-c++.
33435         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33436         gl_MODULE_INDICATOR.
33437
33438         Tests of module 'math' in C++ mode.
33439         * tests/test-math-c++.cc: New file.
33440         * modules/math-tests (Files): Add it and tests/signature.h.
33441         (Depends-on): Add ansi-c++-opt.
33442         (Makefile.am): Arrange to compile and run test-math-c++.
33443         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33444
33445         Tests of module 'locale' in C++ mode.
33446         * tests/test-locale-c++.cc: New file.
33447         * modules/locale-tests (Files): Add it and tests/signature.h.
33448         (Depends-on): Add ansi-c++-opt.
33449         (Makefile.am): Arrange to compile and run test-locale-c++.
33450         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33451         gl_MODULE_INDICATOR.
33452
33453         Tests of module 'langinfo' in C++ mode.
33454         * tests/test-langinfo-c++.cc: New file.
33455         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33456         (Depends-on): Add ansi-c++-opt.
33457         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33458         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33459         gl_MODULE_INDICATOR.
33460
33461         Tests of module 'iconv-h' in C++ mode.
33462         * tests/test-iconv-h-c++.cc: New file.
33463         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33464         (Depends-on): Add ansi-c++-opt.
33465         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33466
33467         Tests of module 'glob' in C++ mode.
33468         * tests/test-glob-c++.cc: New file.
33469         * modules/glob-tests (Files): Add it.
33470         (Depends-on): Add ansi-c++-opt.
33471         (Makefile.am): Arrange to compile and run test-glob-c++.
33472
33473         Tests of module 'fcntl-h' in C++ mode.
33474         * tests/test-fcntl-h-c++.cc: New file.
33475         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33476         (Depends-on): Add ansi-c++-opt.
33477         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33478         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33479         gl_MODULE_INDICATOR.
33480
33481         Tests of module 'dirent' in C++ mode.
33482         * tests/test-dirent-c++.cc: New file.
33483         * modules/dirent-tests (Files): Add it and tests/signature.h.
33484         (Depends-on): Add ansi-c++-opt.
33485         (Makefile.am): Arrange to compile and run test-dirent-c++.
33486         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33487         gl_MODULE_INDICATOR.
33488
33489         New module 'ansi-c++-opt'.
33490         * modules/ansi-c++-opt: New file.
33491         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33492
33493         Document C++ namespace mode.
33494         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33495
33496         wctype: Avoid #define replacements in C++ mode.
33497         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33498         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33499         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33500         In C++, define a namespaced alias symbol.
33501         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33502         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33503         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33504         rule.
33505
33506         wchar: Avoid #define replacements in C++ mode.
33507         * lib/wchar.in.h: Include c++defs.h.
33508         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33509         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33510         symbol.
33511         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33512         * modules/wchar (Depends-on): Add c++defs.
33513         (Makefile.am): Update wchar.h rule.
33514
33515         unistd: Avoid #define replacements in C++ mode.
33516         * lib/unistd.in.h: Include c++defs.h.
33517         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33518         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33519         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33520         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33521         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33522         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33523         symbol.
33524         (environ): Update.
33525         * modules/unistd (Depends-on): Add c++defs.
33526         (Makefile.am): Update unistd.h rule.
33527
33528         time: Avoid #define replacements in C++ mode.
33529         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33530         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33531         define a namespaced alias symbol.
33532         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33533         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33534         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33535         * modules/time (Depends-on): Add c++defs, warn-on-use.
33536         (Makefile.am): Update time.h rule.
33537         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33538         * modules/nanosleep (configure.ac): Likewise.
33539         * modules/strptime (configure.ac): Likewise.
33540         * modules/timegm (configure.ac): Likewise.
33541
33542         sys_time: Avoid #define replacements in C++ mode.
33543         * lib/sys_time.in.h: Include c++defs.h.
33544         (gettimeofday): In C++, define a namespaced alias symbol.
33545         * modules/sys_time (Depends-on): Add c++defs.
33546         (Makefile.am): Update sys/time.h rule.
33547
33548         sys_stat: Avoid #define replacements in C++ mode.
33549         * lib/sys_stat.in.h: Include c++defs.h.
33550         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33551         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33552         namespaced alias symbol.
33553         In C++, define a namespaced alias symbol.
33554         * modules/sys_stat (Depends-on): Add c++defs.
33555         (Makefile.am): Update sys/stat.h rule.
33556
33557         sys_socket: Avoid #define replacements in C++ mode.
33558         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33559         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33560         definitions also when the system has a <sys/socket.h>.
33561         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33562         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33563         In C++, define a namespaced alias symbol.
33564         * modules/sys_socket (Depends-on): Add c++defs.
33565         (Makefile.am): Update sys/socket.h rule.
33566
33567         sys_select: Avoid #define replacements in C++ mode.
33568         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33569         definitions also when the system has a <sys/select.h>.
33570         (select): In C++, define a namespaced alias symbol.
33571         * modules/sys_select (Depends-on): Add c++defs.
33572         (Makefile.am): Update sys/select.h rule.
33573
33574         sys_ioctl: Avoid #define replacements in C++ mode.
33575         * lib/sys_ioctl.in.h: Include c++defs.h.
33576         (ioctl): In C++, define a namespaced alias symbol.
33577         * modules/sys_ioctl (Depends-on): Add c++defs.
33578         (Makefile.am): Update sys/ioctl.h rule.
33579
33580         string: Avoid #define replacements in C++ mode.
33581         * lib/string.in.h: Include c++defs.h.
33582         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33583         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33584         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33585         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33586         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33587         * modules/string (Depends-on): Add c++defs.
33588         (Makefile.am): Update string.h rule.
33589
33590         stdlib: Avoid #define replacements in C++ mode.
33591         * lib/stdlib.in.h: Include c++defs.h.
33592         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33593         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33594         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33595         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33596         symbol.
33597         * modules/stdlib (Depends-on): Add c++defs.
33598         (Makefile.am): Update stdlib.h rule.
33599
33600         stdio: Avoid #define replacements in C++ mode.
33601         * lib/stdio.in.h: Include c++defs.h.
33602         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33603         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33604         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33605         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33606         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33607         namespaced alias symbol.
33608         * modules/stdio (Depends-on): Add c++defs.
33609         (Makefile.am): Update stdio.h rule.
33610
33611         spawn: Avoid #define replacements in C++ mode.
33612         * lib/spawn.in.h: Include c++defs.h.
33613         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33614         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33615         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33616         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33617         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33618         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33619         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33620         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33621         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33622         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33623         In C++, define a namespaced alias symbol.
33624         * modules/spawn (Depends-on): Add c++defs.
33625         (Makefile.am): Update spawn.h rule.
33626
33627         signal: Avoid #define replacements in C++ mode.
33628         * lib/signal.in.h: Include c++defs.h.
33629         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33630         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33631         namespaced alias symbol.
33632         * modules/signal (Depends-on): Add c++defs.
33633         (Makefile.am): Update signal.h rule.
33634
33635         search: Avoid #define replacements in C++ mode.
33636         * lib/search.in.h: Include c++defs.h.
33637         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33638         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33639         symbol.
33640         * modules/search (Depends-on): Add c++defs.
33641         (Makefile.am): Update search.h rule.
33642
33643         math: Avoid #define replacements in C++ mode.
33644         * lib/math.in.h: Include c++defs.h.
33645         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33646         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33647         trunc, truncl): In C++, define a namespaced alias symbol.
33648         * modules/math (Depends-on): Add c++defs.
33649         (Makefile.am): Update math.h rule.
33650
33651         locale: Avoid #define replacements in C++ mode.
33652         * lib/locale.in.h: Include c++defs.h.
33653         (duplocale): In C++, define a namespaced alias symbol.
33654         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33655         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33656         * modules/locale (Depends-on): Add c++defs.
33657         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33658
33659         langinfo: Avoid #define replacements in C++ mode.
33660         * lib/langinfo.in.h: Include c++defs.h.
33661         (nl_langinfo): In C++, define a namespaced alias symbol.
33662         * modules/langinfo (Depends-on): Add c++defs.
33663         (Makefile.am): Update langinfo.h rule.
33664
33665         iconv-h: Avoid #define replacements in C++ mode.
33666         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33667         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33668         symbol.
33669         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33670         whenever iconv is present.
33671         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33672         (Makefile.am): Update iconv.h rule.
33673
33674         glob: Avoid #define replacements in C++ mode.
33675         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33676         (_gl_glob_errfunc_fn): New type.
33677         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33678         symbol.
33679         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33680         (Makefile.am): Update glob.h rule.
33681
33682         fcntl-h: Avoid #define replacements in C++ mode.
33683         * lib/fcntl.in.h: Include c++defs.h.
33684         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33685         * modules/fcntl-h (Depends-on): Add c++defs.
33686         (Makefile.am): Update fcntl.h rule.
33687
33688         dirent: Avoid #define replacements in C++ mode.
33689         * lib/dirent.in.h: Include c++defs.h.
33690         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33691         namespaced alias symbol.
33692         (dirfd): Update declaration.
33693         * modules/dirent (Depends-on): Add c++defs.
33694         (Makefile.am): Update dirent.h rule.
33695
33696         ctype: Make it usable in C++ code.
33697         * lib/ctype.in.h: Include c++defs.h.
33698         (isblank): Declare as extern "C".
33699         * modules/ctype (Depends-on): Add c++defs.
33700         (Makefile.am): Update ctype.h rule.
33701
33702         New module 'c++defs'.
33703         * modules/c++defs: New file.
33704         * build-aux/c++defs.h: New file.
33705         Reported by John W. Eaton <jwe@gnu.org>.
33706
33707 2010-03-07  Bruno Haible  <bruno@clisp.org>
33708
33709         logb: Provide missing declaration for Cygwin.
33710         * lib/math.in.h (logb): New declaration.
33711         * m4/logb.m4: New file.
33712         * modules/logb (Files): Add m4/logb.m4.
33713         (Depends-on): Add math.
33714         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33715         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33717         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33718         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33719
33720 2010-03-07  Bruno Haible  <bruno@clisp.org>
33721
33722         Fix test-cond link error.
33723         * tests/test-cond.c: Include <stdio.h>.
33724
33725 2010-03-07  Bruno Haible  <bruno@clisp.org>
33726
33727         Fix test-dirent-safer link error.
33728         * modules/dirent-safer-tests (Makefile.am): Define
33729         test_dirent_safer_LDADD.
33730
33731 2010-03-07  Bruno Haible  <bruno@clisp.org>
33732
33733         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33734         among default module list.
33735
33736 2010-03-07  Bruno Haible  <bruno@clisp.org>
33737
33738         Fix link error on platforms with GNU libiconv.
33739         * modules/unistr/u8-strcoll-tests (Makefile): Define
33740         test_u8_strcoll_LDADD.
33741         * modules/unistr/u16-strcoll-tests (Makefile): Define
33742         test_u16_strcoll_LDADD.
33743         * modules/unistr/u32-strcoll-tests (Makefile): Define
33744         test_u32_strcoll_LDADD.
33745
33746 2010-03-07  Bruno Haible  <bruno@clisp.org>
33747
33748         Use POSIX declarations for socket functions.
33749         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33750         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33751         rpl_sendto): Change declaration to match POSIX.
33752         * lib/connect.c (rpl_connect): Likewise.
33753         * lib/accept.c (rpl_accept): Likewise.
33754         * lib/bind.c (rpl_bind): Likewise.
33755         * lib/getpeername.c (rpl_getpeername): Likewise.
33756         * lib/getsockname.c (rpl_getsockname): Likewise.
33757         * lib/recv.c (rpl_recv): Likewise.
33758         * lib/send.c (rpl_send): Likewise.
33759         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33760         * lib/sendto.c (rpl_sendto): Likewise.
33761
33762 2010-03-06  Bruno Haible  <bruno@clisp.org>
33763
33764         Clarify access, euidaccess, faccessat.
33765         * doc/posix-functions/faccessat.texi: Mention security problem under
33766         "Other problems", not "Portability problems".
33767         * doc/posix-functions/access.texi: Likewise. Mention a related security
33768         problem.
33769         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33770         * lib/euidaccess.c: Add comments about platforms.
33771         * lib/unistd.in.h (access, euidaccess): Add warnings.
33772
33773 2010-03-07  Bruno Haible  <bruno@clisp.org>
33774
33775         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33776         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33777         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33778         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33779         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33780         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33781         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33782         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33783         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33784         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33785         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33786         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33787         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33788         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33789         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33790         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33791         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33792         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33793         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33794         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33795         Likewise.
33796         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33797         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33798         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33799         Likewise.
33800         * tests/test-spawn.c (main): Make it work when
33801         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33802
33803 2010-03-07  Bruno Haible  <bruno@clisp.org>
33804
33805         Fix incorrect Makefile.am generation in German locale.
33806         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33807         Execute sed command with character range in C locale.
33808
33809 2010-03-06  Bruno Haible  <bruno@clisp.org>
33810
33811         Tests for module 'iconv-h'.
33812         * modules/iconv-h-tests: New file.
33813         * tests/test-iconv-h.c: New file.
33814
33815         New module 'iconv-h'.
33816         * modules/iconv-h: New file.
33817         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33818         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33819         (configure.ac): Remove gl_ICONV_H.
33820         (Makefile.am): Remove rule for iconv.h.
33821
33822 2010-03-06  Bruno Haible  <bruno@clisp.org>
33823
33824         More consistent naming of *.m4 files.
33825         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33826         * modules/wctype (Files): Update.
33827
33828         More consistent naming of *.m4 files.
33829         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33830         * modules/wchar (Files): Update.
33831
33832 2010-03-06  Jim Meyering  <meyering@redhat.com>
33833
33834         euidaccess: relax license to LGPLv2+
33835         * modules/euidaccess (License): Relax to LGPLv2+.
33836
33837 2010-03-06  Bruno Haible  <bruno@clisp.org>
33838
33839         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33840         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33841         (Makefile.am): Augment lib_SOURCES instead.
33842
33843 2010-03-04  Jim Meyering  <meyering@redhat.com>
33844
33845         utime: remove obsolete module
33846         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33847         unnecessary for years, and has been marked as obsolete for 10 months.
33848         * modules/utime: Remove file.
33849         * lib/utime.c: Remove file.
33850         * m4/utime.m4: Remove file.
33851         * m4/utimes-null.m4: Remove file.
33852         * doc/posix-functions/utime.texi (utime): Remove reference to
33853         the module.  Move the sole "fixed by gnulib" item into the
33854         "problems not fixed by Gnulib" list.
33855         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33856
33857 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33858
33859         * modules/exit (License): Relax license to LGPLv2+.
33860         (Status): Mark as obsolete.
33861         * NEWS: Mention deprecated 'exit' module.
33862         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33863         of now obsolete 'exit'.
33864
33865 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33866
33867         fts-lgpl: remove unused module
33868         * modules/fts-lgpl: Remove.
33869         * MODULES.html.sh (func_all_modules): Adjust.
33870         * check-module (find_included_lib_files): Adjust.
33871         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33872
33873 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33874
33875         copy-acl: enhance Solaris ACL error handling
33876         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33877         * lib/set-mode-acl.c (qset_acl): Likewise.
33878
33879 2010-03-02  Bruno Haible  <bruno@clisp.org>
33880
33881         spawn: Don't override the system defined values on FreeBSD 8.
33882         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33883         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33884         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33885         if HAVE_POSIX_SPAWN is 1.
33886         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33887
33888 2010-03-01  Bruno Haible  <bruno@clisp.org>
33889
33890         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33891         regarding Automake.
33892
33893 2010-02-25  Bruno Haible  <bruno@clisp.org>
33894
33895         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33896         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33897         setting, not afterwards.
33898         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33899
33900 2010-02-24  Eric Blake  <eblake@redhat.com>
33901
33902         bootstrap, git-version-gen: use timestamp
33903         * build-aux/git-version-gen (scriptversion): Force UTC.
33904         * build-aux/bootstrap (scriptversion): New variable.
33905
33906         bootstrap: allow older git
33907         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33908         older than 1.6.4.  Requested by the libvirt project.
33909
33910 2010-02-23  Eric Blake  <eblake@redhat.com>
33911
33912         warn-on-use: work with old autoconf
33913         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33914         AS_VAR semantics of autoconf 2.60.
33915         Reported by Bruno Haible.
33916
33917         bootstrap: improve some comments
33918         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33919         clarification comments.
33920
33921         gettimeofday: provide correct function
33922         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33923         when replacement is declared, otherwise provide gettimeofday.
33924         Reported by Michael Goffioul.
33925
33926 2010-02-23  Jim Meyering  <meyering@redhat.com>
33927
33928         lib-ignore: relax license to "unlimited", not LGPLv2+
33929         * modules/lib-ignore (License): Relax to "unlimited".
33930
33931 2010-02-23  Jim Meyering  <meyering@redhat.com>
33932
33933         lib-ignore: relax license to LGPLv2+
33934         * modules/lib-ignore (License): Relax to LGPLv2+.
33935
33936 2010-02-22  Eric Blake  <eblake@redhat.com>
33937
33938         lseek: avoid bash 3.2 broken pipe bug
33939         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33940         warning from bash 3.2.
33941         Reported by Ben Pfaff, with analysis from Bruno Haible.
33942
33943         bootstrap: support non-FSF copyright holder
33944         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33945         bootstrap.conf override of COPYRIGHT_HOLDER.
33946         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33947
33948         bootstrap: interoperate with gettext 0.14.1
33949         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33950
33951         bootstrap: allow for alternate submodule location
33952         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33953         hardcoding submodule location.
33954         (gnulib_mk): Allow direct use of Makefile.am.
33955
33956         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33957         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33958         rather than reconfiguring where the submodule points.
33959
33960         gettimeofday: restore support for platforms that lack function
33961         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33962         replacement if function is missing.
33963         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33964         * modules/sys_time (Makefile.am): Substitute it.
33965         * lib/sys_time.in.h (gettimeofday): Check it.
33966         Reported by Michael Goffioul.
33967
33968 2010-02-21  Bruno Haible  <bruno@clisp.org>
33969
33970         * lib/stdio.in.h (obstack_printf): Fix typo.
33971
33972 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33973
33974         vc-list-files: use bzr ls's -R option
33975         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33976         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33977
33978 2010-02-21  Jim Meyering  <meyering@redhat.com>
33979
33980         init.sh: fix EXEEXT shims to work also for names like test-prog
33981         * tests/init.sh: Re-exec a better shell, when needed.
33982         If the current shell lacks support for posix $(...), an init.sh-using
33983         test will now try to find a shell that supports that.  If EXEEXT is
33984         nonempty, we also require support for hyphen-in-alias-name and shell
33985         substitutions like ${var#glob}.  Failure to find such a shell results
33986         in a skipped test.
33987
33988 2010-02-21  Bruno Haible  <bruno@clisp.org>
33989
33990         Really work around around "broken pipe" error message from bash 3.2.
33991         * gnulib-tool (func_reset_sigpipe): Remove function.
33992         (echo): In bash 3.2, define to a function that uses printf.
33993         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33994
33995 2010-02-20  Bruno Haible  <bruno@clisp.org>
33996
33997         Restore support for automake 1.9.6 with autoconf 2.61.
33998         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33999         Reported by James Youngman <jay@gnu.org>.
34000
34001 2010-02-20  Bruno Haible  <bruno@clisp.org>
34002
34003         Improve *printf warning condition.
34004         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
34005         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
34006         and the function is overridden due to SIGPIPE emulation.
34007
34008 2010-02-20  Bruno Haible  <bruno@clisp.org>
34009
34010         * lib/stdio.in.h: Tweak comments.
34011
34012 2010-02-19  Bruno Haible  <bruno@clisp.org>
34013
34014         Make it easier to find modules. New gnulib-tool option '--find'.
34015         * gnulib-tool: New option --find.
34016         (func_usage): Document it.
34017         (func_sanitize_modulelist): New function, extracted from
34018         func_all_modules.
34019         (func_all_modules): Invoke it.
34020         * doc/gnulib-tool.texi (Which modules?): New node.
34021
34022 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
34023
34024         * lib/sys_select.in.h: Provide select replacement even if
34025         sys/select.h exists on a system, for Interix.
34026
34027 2010-02-18  Jim Meyering  <meyering@redhat.com>
34028
34029         init.sh: don't use $(...) just yet
34030         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
34031         to accommodate e.g., Solaris' /bin/sh.
34032
34033 2010-02-17  Bruno Haible  <bruno@clisp.org>
34034
34035         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
34036         Reported by Ludovic Courtès <ludo@gnu.org>.
34037
34038 2010-02-16  Simon Josefsson  <simon@josefsson.org>
34039
34040         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
34041         linking with -lintl.
34042
34043 2010-02-17  Simon Josefsson  <simon@josefsson.org>
34044
34045         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
34046         if not provided by the system's netdb.h.  Reported by
34047         ludo@gnu.org (Ludovic Courtès).
34048
34049 2010-02-15  Jim Meyering  <meyering@redhat.com>
34050
34051         init.sh: improve portability and efficiency
34052         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
34053         "dummy" in a for loop.
34054         Use '!', not '^' to select the complement of a character set used
34055         in a "case" statement.
34056         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
34057         Suggestions from Eric Blake.
34058
34059         init.sh: automatically accommodate programs with the .exe suffix
34060         Automatically arrange for an invocation of "prog" to execute the
34061         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
34062         may use the simpler "prog", yet still work when built on a system
34063         that requires specifying the added suffix.
34064         Do this by constructing a function named "prog" that invokes
34065         "prog.exe" for each .exe file in selected directories.
34066         * tests/init.sh (find_exe_basenames_): New function.
34067         (create_exe_shim_functions_): New function.
34068         (path_prepend_): Use it.
34069
34070         maint.mk: mark syntax-check sc_*.m rules as .PHONY
34071         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
34072         "make -t syntax-check" doesn't create a ton of sc_*.m files.
34073
34074 2010-02-14  Jim Meyering  <meyering@redhat.com>
34075
34076         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
34077         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
34078         (sc_prohibit_hash_pjw_without_use): New rule.
34079
34080         maint.mk: allow the default upload destination dir to be overridden
34081         * top/maint.mk (upload_dest_dir_): Define with a default that
34082         preserves the status quo.
34083         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
34084         Reported by Peter Simons.
34085
34086         maint.mk: prohibit inclusion of "hash.h" without_use
34087         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
34088
34089 2010-02-10  Jim Meyering  <meyering@redhat.com>
34090
34091         maint.mk: prohibit inclusion of "ignore-value.h" without_use
34092         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
34093
34094 2010-02-09  Eric Blake  <ebb9@byu.net>
34095         and Bruno Haible  <bruno@clisp.org>
34096
34097         obstack-printf-posix: ensure declaration
34098         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
34099         extracted from gl_FUNC_OBSTACK_PRINTF.
34100         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
34101         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34102         Likewise.
34103         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
34104         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
34105         0.
34106
34107 2010-02-08  Bruno Haible  <bruno@clisp.org>
34108
34109         gnulib-tool: Fix typo in 2010-02-07 commit.
34110         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
34111         Reported by Eric Blake.
34112
34113 2010-02-07  Bruno Haible  <bruno@clisp.org>
34114
34115         gnulib-tool: Fix up caching patches.
34116         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
34117         option --no-cache. Use associative arrays when supported by the shell.
34118         (sed_comments): New variable.
34119         (modcache): Renamed from do_cache.
34120         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
34121         abbreviate unnecessarily.
34122         (have_associative): New variable.
34123         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
34124         way also for ksh and zsh.
34125         (func_init_sed_convert_to_cache_statements): New function, extracted
34126         from func_cache_lookup_module. Add support for associative arrays.
34127         Don't set the c_MODULE_cached variable here. Ignore all lines before
34128         the first field header. Remove only the final newline, not all trailing
34129         newlines. Support empty fields correctly. Limit the use of 'eval' to
34130         assignments.
34131         (func_get_description, func_get_status, func_get_notice,
34132         func_get_applicability, func_get_filelist, func_get_dependencies,
34133         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34134         func_get_automake_snippet, func_get_include_directive,
34135         func_get_link_directive, func_get_license, func_get_maintainer):
34136         Update documentation. List the unoptimized code first. Add support for
34137         associative arrays. Limit the use of 'eval' to assignments.
34138         (func_get_applicability): Undo stylistic pessimisations.
34139         (func_get_automake_snippet, func_get_include_directive): Reduce code
34140         duplication.
34141         (func_modules_transitive_closure, func_modules_add_dummy,
34142         func_modules_notice, func_modules_to_filelist, func_add_file,
34143         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34144         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34145         func_create_testdir, func_create_megatestdir): Update documentation.
34146
34147 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34148
34149         * gnulib-tool (func_cache_lookup_module): Store the module name
34150         belonging to the cache variable; error out if two different
34151         module names map to the same cache variable name.
34152
34153 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34154
34155         gnulib-tool: Make caching optional.
34156         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34157         Update matching short versions of --no-changelog.
34158         (func_usage): Update.
34159         (sed_extract_cache_prog): Renamed from ...
34160         (sed_extract_prog): ... this; revert to old extraction script.
34161         (func_get_description, func_get_status)
34162         (func_get_notice, func_get_applicability, func_get_filelist)
34163         (func_get_dependencies, func_get_autoconf_early_snippet)
34164         (func_get_autoconf_snippet, func_get_automake_snippet)
34165         (func_get_include_directive, func_get_link_directive)
34166         (func_get_license, func_get_maintainer): If $do_cache is false,
34167         use old, non-caching extraction scripts.
34168         Suggestion by Bruno Haible.
34169
34170 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34171
34172         gnulib-tool: cache module metainformation.
34173         * gnulib-tool (sed_extract_prog): Match newline before each
34174         header, and rewrite header to a shell variable suffix.
34175         (func_cache_var, func_cache_lookup_module): New functions,
34176         to turn a module name into a cache variable prefix, and to
34177         look up and cache module metainformation.
34178         (func_get_description, func_get_status)
34179         (func_get_notice, func_get_applicability, func_get_filelist)
34180         (func_get_dependencies, func_get_autoconf_early_snippet)
34181         (func_get_autoconf_snippet, func_get_automake_snippet)
34182         (func_get_include_directive, func_get_link_directive)
34183         (func_get_license, func_get_maintainer): Use
34184         func_cache_lookup_module.
34185
34186 2010-02-07  Bruno Haible  <bruno@clisp.org>
34187
34188         fnctl: Fix missing dependency.
34189         * modules/fcntl (Depends-on): Add getdtablesize.
34190         Reported by John W. Eaton <jwe@gnu.org>.
34191
34192 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34193
34194         Argp: fix recognition of short alias options.
34195
34196         * lib/argp-parse.c (convert_options): Fix improper use of
34197         `|' between character values.
34198         * tests/test-argp.c (group1_option): New alias option
34199         --read (-r).
34200         (group1_parser): Special handling for 'r'.
34201         (test15): New test case.
34202         (test_fun): Add test15.
34203         * tests/test-argp-2.sh: Update expected --help and --usage
34204         outputs.
34205
34206 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34207
34208         * tests/test-argp.c: Fix indentation.
34209
34210 2010-02-04  Eric Blake  <ebb9@byu.net>
34211
34212         gettimeofday: expose type of second argument
34213         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34214         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34215         * tests/test-gettimeofday.c: Use it to silence warning.
34216         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34217         the issue.
34218
34219 2010-02-03  Jim Meyering  <meyering@redhat.com>
34220
34221         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34222         * lib/regcomp.c (TYPE_SIGNED): Define.
34223         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34224
34225         regcomp.c: avoid a new -Wshadow warning
34226         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34227
34228 2010-02-01  Jim Meyering  <meyering@redhat.com>
34229
34230         removing useless parentheses in cpp #define directives
34231         For motivation, see commit c0221df4, "define STREQ(a,b)
34232         consistently, removing useless parentheses"
34233         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34234         * lib/mountlist.c (MNT_IGNORE): Likewise.
34235         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34236
34237 2010-02-01  Eric Blake  <ebb9@byu.net>
34238
34239         sys_time: use link-warning
34240         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34241         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34242         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34243         * modules/sys_time (Depends-on): Add warn-on-use.
34244         (Makefile.am): Always build replacement.
34245         (configure.ac): Update substitutions.
34246         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34247         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34248         bother with SYS_TIME_H.
34249         * modules/gettimeofday (configure.ac): Declare indicator.
34250         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34251         in use.
34252
34253         closein-tests: silence compiler warning
34254         * tests/test-closein.c (main): Ignore fread result.
34255         * modules/closein-tests (Depends-on): Add ignore-value.
34256
34257         tests: silence warning about system return
34258         * tests/test-areadlink-with-size.c (main): Ignore system result.
34259         * tests/test-areadlink.c (main): Likewise.
34260         * tests/test-areadlinkat-with-size.c (main): Likewise.
34261         * tests/test-areadlinkat.c (main): Likewise.
34262         * tests/test-canonicalize-lgpl.c (main): Likewise.
34263         * tests/test-canonicalize.c (main): Likewise.
34264         * tests/test-chown.c (main): Likewise.
34265         * tests/test-fchownat.c (main): Likewise.
34266         * tests/test-fdutimensat.c (main): Likewise.
34267         * tests/test-fstatat.c (main): Likewise.
34268         * tests/test-futimens.c (main): Likewise.
34269         * tests/test-lchown.c (main): Likewise.
34270         * tests/test-link.c (main): Likewise.
34271         * tests/test-linkat.c (main): Likewise.
34272         * tests/test-lstat.c (main): Likewise.
34273         * tests/test-mkdir.c (main): Likewise.
34274         * tests/test-mkdirat.c (main): Likewise.
34275         * tests/test-mkfifo.c (main): Likewise.
34276         * tests/test-mkfifoat.c (main): Likewise.
34277         * tests/test-mknod.c (main): Likewise.
34278         * tests/test-readlink.c (main): Likewise.
34279         * tests/test-remove.c (main): Likewise.
34280         * tests/test-rename.c (main): Likewise.
34281         * tests/test-renameat.c (main): Likewise.
34282         * tests/test-rmdir.c (main): Likewise.
34283         * tests/test-symlink.c (main): Likewise.
34284         * tests/test-symlinkat.c (main): Likewise.
34285         * tests/test-unlink.c (main): Likewise.
34286         * tests/test-unlinkat.c (main): Likewise.
34287         * tests/test-utimens.c (main): Likewise.
34288         * tests/test-utimensat.c (main): Likewise.
34289         * modules/areadlink-tests (Depends-on): Add ignore-value.
34290         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34291         * modules/areadlinkat-tests (Depends-on): Likewise.
34292         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34293         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34294         * modules/canonicalize-tests (Depends-on): Likewise.
34295         * modules/chown-tests (Depends-on): Likewise.
34296         * modules/fdutimensat-tests (Depends-on): Likewise.
34297         * modules/futimens-tests (Depends-on): Likewise.
34298         * modules/lchown-tests (Depends-on): Likewise.
34299         * modules/link-tests (Depends-on): Likewise.
34300         * modules/linkat-tests (Depends-on): Likewise.
34301         * modules/lstat-tests (Depends-on): Likewise.
34302         * modules/mkdir-tests (Depends-on): Likewise.
34303         * modules/mkfifo-tests (Depends-on): Likewise.
34304         * modules/mkfifoat-tests (Depends-on): Likewise.
34305         * modules/mknod-tests (Depends-on): Likewise.
34306         * modules/openat-tests (Depends-on): Likewise.
34307         * modules/readlink-tests (Depends-on): Likewise.
34308         * modules/remove-tests (Depends-on): Likewise.
34309         * modules/rename-tests (Depends-on): Likewise.
34310         * modules/renameat-tests (Depends-on): Likewise.
34311         * modules/rmdir-tests (Depends-on): Likewise.
34312         * modules/symlink-tests (Depends-on): Likewise.
34313         * modules/symlinkat-tests (Depends-on): Likewise.
34314         * modules/unlink-tests (Depends-on): Likewise.
34315         * modules/utimens-tests (Depends-on): Likewise.
34316         * modules/utimensat-tests (Depends-on): Likewise.
34317
34318 2010-01-31  Bruno Haible  <bruno@clisp.org>
34319
34320         Perform the same test for many <math.h> functions.
34321         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34322         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34323         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34324         of gl_MATHFUNC.
34325         * modules/acos (configure.ac): Likewise.
34326         * modules/asin (configure.ac): Likewise.
34327         * modules/atan (configure.ac): Likewise.
34328         * modules/atan2 (configure.ac): Likewise.
34329         * modules/cbrt (configure.ac): Likewise.
34330         * modules/copysign (configure.ac): Likewise.
34331         * modules/cos (configure.ac): Likewise.
34332         * modules/cosh (configure.ac): Likewise.
34333         * modules/erf (configure.ac): Likewise.
34334         * modules/erfc (configure.ac): Likewise.
34335         * modules/exp (configure.ac): Likewise.
34336         * modules/fmod (configure.ac): Likewise.
34337         * modules/hypot (configure.ac): Likewise.
34338         * modules/j0 (configure.ac): Likewise.
34339         * modules/j1 (configure.ac): Likewise.
34340         * modules/jn (configure.ac): Likewise.
34341         * modules/lgamma (configure.ac): Likewise.
34342         * modules/log (configure.ac): Likewise.
34343         * modules/log10 (configure.ac): Likewise.
34344         * modules/log1p (configure.ac): Likewise.
34345         * modules/pow (configure.ac): Likewise.
34346         * modules/remainder (configure.ac): Likewise.
34347         * modules/sin (configure.ac): Likewise.
34348         * modules/sinh (configure.ac): Likewise.
34349         * modules/tan (configure.ac): Likewise.
34350         * modules/tanh (configure.ac): Likewise.
34351         * modules/y0 (configure.ac): Likewise.
34352         * modules/y1 (configure.ac): Likewise.
34353         * modules/yn (configure.ac): Likewise.
34354         Suggested by Paolo Bonzini.
34355
34356 2010-01-31  Bruno Haible  <bruno@clisp.org>
34357
34358         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34359
34360 2010-01-31  Bruno Haible  <bruno@clisp.org>
34361
34362         Work around getdelim() bug on FreeBSD 8.0.
34363         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34364         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34365         not work.
34366         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34367         is 1.
34368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34369         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34370         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34371         a non-zero size.
34372         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34373
34374 2010-01-31  Bruno Haible  <bruno@clisp.org>
34375
34376         Work around getline() bug on FreeBSD 8.0.
34377         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34378         and a non-zero size.
34379         * tests/test-getline.c (main): Likewise.
34380         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34381         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34382
34383 2010-01-28  Eric Blake  <ebb9@byu.net>
34384
34385         regex: fix build failure
34386         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34387         platforms.
34388
34389 2010-01-28  Jim Meyering  <meyering@redhat.com>
34390
34391         regex: do not ignore memory allocation failure
34392         * lib/regex_internal.c (create_cd_newstate): Detect
34393         re_node_set_init_copy failure.   Extracted from glibc commit
34394         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34395
34396         regex: sync more white-space changes from libc
34397         * lib/regex_internal.c: White-space only changes.
34398         * lib/regexec.c: Likewise.
34399
34400         regex: add many uses of __attribute_warn_unused_result__
34401         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34402         * lib/regexec.c: Likewise.
34403         Extracted from a messy glibc commit.
34404
34405         regcomp.c: spelling and merge-artifact from glibc
34406         * lib/regcomp.c: Merge remainder of glibc's
34407         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34408
34409         regcomp.c: sync white-space changes from glibc
34410         * lib/regcomp.c: Merge to accommodate white space
34411         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34412
34413         regcomp.c: do not ignore internal return values
34414         * lib/regcomp.c: Do not ignore internal return values.
34415         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34416         but without its white-space changes and spelling fixes.
34417
34418         regex_internal.h: define __attribute_warn_unused_result__
34419         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34420
34421         maint: add a syntax-check rule to check for vulnerable Makefile.in
34422         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34423
34424 2010-01-27  Jim Meyering  <meyering@redhat.com>
34425
34426         ncftpput-ftp: clean up spaces
34427         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34428         Remove trailing blanks.
34429
34430 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34431
34432         * build-aux/git-version-gen: Fix copyright statement.
34433         * build-aux/gnupload: Likewise.
34434         * tests/test-arcfour.c: Likewise.
34435         * tests/test-arctwo.c: Likewise.
34436         * tests/test-count-one-bits.c: Likewise.
34437         * tests/test-crc.c: Likewise.
34438         * tests/test-des.c: Likewise.
34439         * tests/test-gc-arcfour.c: Likewise.
34440         * tests/test-gc-arctwo.c: Likewise.
34441         * tests/test-gc-des.c: Likewise.
34442         * tests/test-gc-hmac-md5.c: Likewise.
34443         * tests/test-gc-hmac-sha1.c: Likewise.
34444         * tests/test-gc-md2.c: Likewise.
34445         * tests/test-gc-md4.c: Likewise.
34446         * tests/test-gc-md5.c: Likewise.
34447         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34448         * tests/test-gc-rijndael.c: Likewise.
34449         * tests/test-gc-sha1.c: Likewise.
34450         * tests/test-gc.c: Likewise.
34451         * tests/test-gethostname.c: Likewise.
34452         * tests/test-gettimeofday.c: Likewise.
34453         * tests/test-hash.c: Likewise.
34454         * tests/test-hmac-md5.c: Likewise.
34455         * tests/test-hmac-sha1.c: Likewise.
34456         * tests/test-md2.c: Likewise.
34457         * tests/test-md4.c: Likewise.
34458         * tests/test-md5.c: Likewise.
34459         * tests/test-memchr.c: Likewise.
34460         * tests/test-memchr2.c: Likewise.
34461         * tests/test-memcmp.c: Likewise.
34462         * tests/test-memmem.c: Likewise.
34463         * tests/test-memrchr.c: Likewise.
34464         * tests/test-rawmemchr.c: Likewise.
34465         * tests/test-read-file.c: Likewise.
34466         * tests/test-rijndael.c: Likewise.
34467         * tests/test-sockets.c: Likewise.
34468         * tests/test-strchrnul.c: Likewise.
34469         * tests/test-strstr.c: Likewise.
34470         * tests/test-strtod.c: Likewise.
34471         * build-aux/ncftpput-ftp: Likewise.
34472
34473 2010-01-26  Eric Blake  <ebb9@byu.net>
34474
34475         ignore-value: update recommended header name
34476         * modules/ignore-value (Include): Only use <> for headers that
34477         exist in glibc.
34478
34479 2010-01-26  Jim Meyering  <meyering@redhat.com>
34480
34481         test-userspec.c: avoid compiler warnings
34482         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34483         and "initialization discards qualifiers..." warnings.
34484         Put the first "uid" in its own scope, and make char* members "const".
34485
34486 2010-01-25  Bruno Haible  <bruno@clisp.org>
34487
34488         gnulib-tool: Make warning diagnostics consistent.
34489         * gnulib-tool (func_warning): New function.
34490         Use it everywhere where gnulib-tool produces output to stderr and it is
34491         not a fatal error.
34492
34493 2010-01-25  Bruno Haible  <bruno@clisp.org>
34494
34495         Fix test dependencies.
34496         * modules/xstrtol-tests (Depends-on): Add inttypes.
34497         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34498
34499 2010-01-25 Pádraig Brady <P@draigBrady.com>
34500
34501         syntax-check: detect incorrect boolean macro values in config.h
34502         * modules/maintainer-makefile (configure.ac): Parameterize the location
34503         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34504         The logic is from Eric Blake and the location indicated by Jim Meyering.
34505         Note the more natural CONFIG_HEADER name is prohibited by automake
34506         for backwards compatibility reasons.
34507         * top/maint.mk (sc_Wundef_boolean): New rule.
34508
34509 2010-01-25  Jim Meyering  <meyering@redhat.com>
34510
34511         bootstrap: detect MacOS 10.6's shasum, too
34512         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34513         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34514
34515 2010-01-23  Jim Meyering  <meyering@redhat.com>
34516
34517         xstrtoll: new module
34518         * modules/xstrtoll: New file.
34519         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34520         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34521         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34522         ./configure fails if you use this module and lack "long long".
34523         * modules/xstrtoll-tests: New module.
34524         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34525         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34526         new init.sh-based test framework.
34527
34528 2010-01-24  Bruno Haible  <bruno@clisp.org>
34529
34530         Tests for module 'yn'.
34531         * modules/yn-tests: New file.
34532         * tests/test-yn.c: New file.
34533
34534         Tests for module 'y1'.
34535         * modules/y1-tests: New file.
34536         * tests/test-y1.c: New file.
34537
34538         Tests for module 'y0'.
34539         * modules/y0-tests: New file.
34540         * tests/test-y0.c: New file.
34541
34542         Tests for module 'tanh'.
34543         * modules/tanh-tests: New file.
34544         * tests/test-tanh.c: New file.
34545
34546         Tests for module 'tan'.
34547         * modules/tan-tests: New file.
34548         * tests/test-tan.c: New file.
34549
34550         Tests for module 'sqrt'.
34551         * modules/sqrt-tests: New file.
34552         * tests/test-sqrt.c: New file.
34553
34554         Tests for module 'sinh'.
34555         * modules/sinh-tests: New file.
34556         * tests/test-sinh.c: New file.
34557
34558         Tests for module 'sin'.
34559         * modules/sin-tests: New file.
34560         * tests/test-sin.c: New file.
34561
34562         Tests for module 'rint'.
34563         * modules/rint-tests: New file.
34564         * tests/test-rint.c: New file.
34565
34566         Tests for module 'remainder'.
34567         * modules/remainder-tests: New file.
34568         * tests/test-remainder.c: New file.
34569
34570         Tests for module 'pow'.
34571         * modules/pow-tests: New file.
34572         * tests/test-pow.c: New file.
34573
34574         Tests for module 'nextafter'.
34575         * modules/nextafter-tests: New file.
34576         * tests/test-nextafter.c: New file.
34577
34578         Tests for module 'modf'.
34579         * modules/modf-tests: New file.
34580         * tests/test-modf.c: New file.
34581
34582         Tests for module 'logb'.
34583         * modules/logb-tests: New file.
34584         * tests/test-logb.c: New file.
34585
34586         Tests for module 'log1p'.
34587         * modules/log1p-tests: New file.
34588         * tests/test-log1p.c: New file.
34589
34590         Tests for module 'log10'.
34591         * modules/log10-tests: New file.
34592         * tests/test-log10.c: New file.
34593
34594         Tests for module 'log'.
34595         * modules/log-tests: New file.
34596         * tests/test-log.c: New file.
34597
34598         Tests for module 'lgamma'.
34599         * modules/lgamma-tests: New file.
34600         * tests/test-lgamma.c: New file.
34601
34602         Tests for module 'ldexp'.
34603         * modules/ldexp-tests: New file.
34604         * tests/test-ldexp.c: New file.
34605
34606         Tests for module 'jn'.
34607         * modules/jn-tests: New file.
34608         * tests/test-jn.c: New file.
34609
34610         Tests for module 'j1'.
34611         * modules/j1-tests: New file.
34612         * tests/test-j1.c: New file.
34613
34614         Tests for module 'j0'.
34615         * modules/j0-tests: New file.
34616         * tests/test-j0.c: New file.
34617
34618         Tests for module 'hypot'.
34619         * modules/hypot-tests: New file.
34620         * tests/test-hypot.c: New file.
34621
34622         Tests for module 'fmod'.
34623         * modules/fmod-tests: New file.
34624         * tests/test-fmod.c: New file.
34625
34626         Tests for module 'fabs'.
34627         * modules/fabs-tests: New file.
34628         * tests/test-fabs.c: New file.
34629
34630         Tests for module 'exp'.
34631         * modules/exp-tests: New file.
34632         * tests/test-exp.c: New file.
34633
34634         Tests for module 'erfc'.
34635         * modules/erfc-tests: New file.
34636         * tests/test-erfc.c: New file.
34637
34638         Tests for module 'erf'.
34639         * modules/erf-tests: New file.
34640         * tests/test-erf.c: New file.
34641
34642         Tests for module 'cosh'.
34643         * modules/cosh-tests: New file.
34644         * tests/test-cosh.c: New file.
34645
34646         Tests for module 'cos'.
34647         * modules/cos-tests: New file.
34648         * tests/test-cos.c: New file.
34649
34650         Tests for module 'copysign'.
34651         * modules/copysign-tests: New file.
34652         * tests/test-copysign.c: New file.
34653
34654         Tests for module 'cbrt'.
34655         * modules/cbrt-tests: New file.
34656         * tests/test-cbrt.c: New file.
34657
34658         Tests for module 'atan2'.
34659         * modules/atan2-tests: New file.
34660         * tests/test-atan2.c: New file.
34661
34662         Tests for module 'atan'.
34663         * modules/atan-tests: New file.
34664         * tests/test-atan.c: New file.
34665
34666         Tests for module 'asin'.
34667         * modules/asin-tests: New file.
34668         * tests/test-asin.c: New file.
34669
34670         Tests for module 'acos'.
34671         * modules/acos-tests: New file.
34672         * tests/test-acos.c: New file.
34673
34674 2010-01-24  Bruno Haible  <bruno@clisp.org>
34675
34676         Fix tests for common <math.h> functions.
34677         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34678         code snippet that references the function pointer, rather than merely
34679         calling the function. Substitute the FUNC_LIBM variable.
34680         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34681         * modules/acos (configure.ac): Likewise.
34682         * modules/asin (configure.ac): Likewise.
34683         * modules/atan (configure.ac): Likewise.
34684         * modules/atan2 (configure.ac): Likewise.
34685         * modules/cbrt (configure.ac): Likewise.
34686         * modules/copysign (configure.ac): Likewise.
34687         * modules/cos (configure.ac): Likewise.
34688         * modules/cosh (configure.ac): Likewise.
34689         * modules/erf (configure.ac): Likewise.
34690         * modules/erfc (configure.ac): Likewise.
34691         * modules/exp (configure.ac): Likewise.
34692         * modules/fabs (configure.ac): Likewise.
34693         * modules/fmod (configure.ac): Likewise.
34694         * modules/hypot (configure.ac): Likewise.
34695         * modules/j0 (configure.ac): Likewise.
34696         * modules/j1 (configure.ac): Likewise.
34697         * modules/jn (configure.ac): Likewise.
34698         * modules/ldexp (configure.ac): Likewise.
34699         * modules/lgamma (configure.ac): Likewise.
34700         * modules/log (configure.ac): Likewise.
34701         * modules/log10 (configure.ac): Likewise.
34702         * modules/log1p (configure.ac): Likewise.
34703         * modules/logb (configure.ac): Likewise.
34704         * modules/modf (configure.ac): Likewise.
34705         * modules/nextafter (configure.ac): Likewise.
34706         * modules/pow (configure.ac): Likewise.
34707         * modules/remainder (configure.ac): Likewise.
34708         * modules/rint (configure.ac): Likewise.
34709         * modules/sin (configure.ac): Likewise.
34710         * modules/sinh (configure.ac): Likewise.
34711         * modules/tan (configure.ac): Likewise.
34712         * modules/tanh (configure.ac): Likewise.
34713         * modules/y0 (configure.ac): Likewise.
34714         * modules/y1 (configure.ac): Likewise.
34715         * modules/yn (configure.ac): Likewise.
34716
34717 2010-01-24  Bruno Haible  <bruno@clisp.org>
34718
34719         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34720         * tests/test-acosl.c (x): New variable.
34721         (main): Store argument in x and fetch it from x.
34722         * tests/test-asinl.c (x): New variable.
34723         (main): Store argument in x and fetch it from x.
34724         * tests/test-atanl.c (x): New variable.
34725         (main): Store argument in x and fetch it from x.
34726         * tests/test-cosl.c (x): New variable.
34727         (main): Store argument in x and fetch it from x.
34728         * tests/test-expl.c (x): New variable.
34729         (main): Store argument in x and fetch it from x.
34730         * tests/test-logl.c (x): New variable.
34731         (main): Store argument in x and fetch it from x.
34732         * tests/test-sinl.c (x): New variable.
34733         (main): Store argument in x and fetch it from x.
34734         * tests/test-sqrtl.c (x): New variable.
34735         (main): Store argument in x and fetch it from x.
34736         * tests/test-tanl.c (x): New variable.
34737         (main): Store argument in x and fetch it from x.
34738
34739 2010-01-24  Bruno Haible  <bruno@clisp.org>
34740
34741         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34742         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34743         assignments to the initial TESTS_ENVIRONMENT.
34744         * doc/gnulib.texi (Unit test modules): Document it.
34745         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34746         TESTS_ENVIRONMENT.
34747         * modules/btowc-tests (Makefile.am): Likewise.
34748         * modules/c-stack-tests (Makefile.am): Likewise.
34749         * modules/c-strcase-tests (Makefile.am): Likewise.
34750         * modules/copy-file-tests (Makefile.am): Likewise.
34751         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34752         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34753         * modules/mbrtowc-tests (Makefile.am): Likewise.
34754         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34755         * modules/mbscasestr-tests (Makefile.am): Likewise.
34756         * modules/mbschr-tests (Makefile.am): Likewise.
34757         * modules/mbscspn-tests (Makefile.am): Likewise.
34758         * modules/mbsinit-tests (Makefile.am): Likewise.
34759         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34760         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34761         * modules/mbspbrk-tests (Makefile.am): Likewise.
34762         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34763         * modules/mbsrchr-tests (Makefile.am): Likewise.
34764         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34765         * modules/mbsspn-tests (Makefile.am): Likewise.
34766         * modules/mbsstr-tests (Makefile.am): Likewise.
34767         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34768         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34769         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34770         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34771         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34772         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34773         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34774         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34775         * modules/wcrtomb-tests (Makefile.am): Likewise.
34776         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34777         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34778         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34779         assignments from TESTS_ENVIRONMENT.
34780         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34781         augmentation.
34782         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34783         * modules/atexit-tests (Makefile.am): Likewise.
34784         * modules/binary-io-tests (Makefile.am): Likewise.
34785         * modules/closein-tests (Makefile.am): Likewise.
34786         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34787         * modules/exclude-tests (Makefile.am): Likewise.
34788         * modules/fflush-tests (Makefile.am): Likewise.
34789         * modules/fpending-tests (Makefile.am): Likewise.
34790         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34791         * modules/freadahead-tests (Makefile.am): Likewise.
34792         * modules/freadptr-tests (Makefile.am): Likewise.
34793         * modules/freadseek-tests (Makefile.am): Likewise.
34794         * modules/fseek-tests (Makefile.am): Likewise.
34795         * modules/fseeko-tests (Makefile.am): Likewise.
34796         * modules/ftell-tests (Makefile.am): Likewise.
34797         * modules/ftello-tests (Makefile.am): Likewise.
34798         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34799         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34800         * modules/lseek-tests (Makefile.am): Likewise.
34801         * modules/parse-duration-tests (Makefile.am): Likewise.
34802         * modules/perror-tests (Makefile.am): Likewise.
34803         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34804         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34805         * modules/pipe-tests (Makefile.am): Likewise.
34806         * modules/pread-tests (Makefile.am): Likewise.
34807         * modules/printf-posix-tests (Makefile.am): Likewise.
34808         * modules/select-tests (Makefile.am): Likewise.
34809         * modules/sigpipe-tests (Makefile.am): Likewise.
34810         * modules/tsearch-tests (Makefile.am): Likewise.
34811         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34812         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34813         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34814         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34815         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34816         * modules/version-etc-tests (Makefile.am): Likewise.
34817         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34818         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34819         * modules/xalloc-die-tests (Makefile.am): Likewise.
34820         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34821         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34822         * modules/xstrtol-tests (Makefile.am): Likewise.
34823         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34824         * modules/yesno-tests (Makefile.am): Likewise.
34825         Suggested by Jim Meyering.
34826
34827 2010-01-24  Bruno Haible  <bruno@clisp.org>
34828
34829         More documentation.
34830         * doc/gnulib.texi (Writing modules): New chapter.
34831         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34832         the new chapter.
34833
34834 2010-01-24  Jim Meyering  <meyering@redhat.com>
34835
34836         maint.mk: do not prepend "./" after filtering
34837         * top/maint.mk (_prepend_srcdir_prefix): New variable
34838         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34839         "./" when $(srcdir) is ".".
34840
34841         define STREQ(a,b) consistently, removing useless parentheses
34842         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34843         since the only risk is that "a" or "b" contains an unparenthesized
34844         comma, but if either did that, STREQ would have 3 or more arguments.
34845         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34846         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34847         * lib/hash-triple.c (STREQ): Likewise.
34848         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34849         * lib/getugroups.c (STREQ): Likewise.
34850
34851 2010-01-23  Jim Meyering  <meyering@redhat.com>
34852
34853         maint.mk: fix syntax-check in a non-srcdir build directory
34854         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34855         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34856
34857 2010-01-22  Jim Meyering  <meyering@redhat.com>
34858
34859         userspec: add unit tests
34860         * tests/test-userspec.c: New file.
34861         * modules/userspec-tests: Likewise.
34862
34863 2010-01-21  Jim Meyering  <meyering@redhat.com>
34864
34865         maint.mk: handle source file names containing "." robustly
34866         * top/maint.mk (_dot_escaped_srcdir): Define.
34867         (VC_LIST): Use it in LHS of sed substitution.
34868
34869 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34870
34871         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34872         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34873         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34874         from a non-srcdir build.
34875
34876 2010-01-20  Eric Blake  <ebb9@byu.net>
34877
34878         warn-on-use: use instead of link-warning
34879         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34880         * modules/unistd (Depends-on, Makefile.am): Likewise.
34881         * modules/arpa_inet (Depends-on): Replace link-warning with
34882         warn-on-use.
34883         (Makefile.am): Update rules accordingly.
34884         * modules/ctype (Depends-on, Makefile.am): Likewise.
34885         * modules/dirent (Depends-on, Makefile.am): Likewise.
34886         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34887         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34888         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34889         * modules/locale (Depends-on, Makefile.am): Likewise.
34890         * modules/math (Depends-on, Makefile.am): Likewise.
34891         * modules/search (Depends-on, Makefile.am): Likewise.
34892         * modules/signal (Depends-on, Makefile.am): Likewise.
34893         * modules/spawn (Depends-on, Makefile.am): Likewise.
34894         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34895         * modules/string (Depends-on, Makefile.am): Likewise.
34896         * modules/strings (Depends-on, Makefile.am): Likewise.
34897         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34898         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34899         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34900         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34901         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34902         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34903         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34904         * modules/wchar (Depends-on, Makefile.am): Likewise.
34905         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34906         should be poisoned.
34907         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34908         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34909         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34910         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34911         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34912         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34913         * m4/math_h.m4 (gl_MATH_H): Likewise.
34914         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34915         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34916         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34917         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34918         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34919         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34920         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34921         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34922         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34923         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34924         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34925         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34926         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34927         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34928         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34929         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34930         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34931         GL_LINK_WARNING.
34932         * lib/ctype.in.h: Likewise.
34933         * lib/dirent.in.h: Likewise.
34934         * lib/fcntl.in.h: Likewise.
34935         * lib/inttypes.in.h: Likewise.
34936         * lib/langinfo.in.h: Likewise.
34937         * lib/locale.in.h: Likewise.
34938         * lib/math.in.h: Likewise.
34939         * lib/search.in.h: Likewise.
34940         * lib/signal.in.h: Likewise.
34941         * lib/spawn.in.h: Likewise.
34942         * lib/stdio.in.h: Likewise.
34943         * lib/stdlib.in.h: Likewise.
34944         * lib/string.in.h: Likewise.
34945         * lib/strings.in.h: Likewise.
34946         * lib/sys_file.in.h: Likewise.
34947         * lib/sys_ioctl.in.h: Likewise.
34948         * lib/sys_select.in.h: Likewise.
34949         * lib/sys_socket.in.h: Likewise.
34950         * lib/sys_stat.in.h: Likewise.
34951         * lib/sys_times.in.h: Likewise.
34952         * lib/sys_utsname.in.h: Likewise.
34953         * lib/unistd.in.h: Likewise.
34954         * lib/wchar.in.h: Likewise.
34955
34956 2010-01-20  Bruno Haible  <bruno@clisp.org>
34957
34958         Avoid duplicate -lm.
34959         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34960         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34961         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34962         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34963         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34964         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34965         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34966         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34967         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34968         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34969         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34970         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34971         Reported by Paolo Bonzini.
34972
34973 2010-01-19  Bruno Haible  <bruno@clisp.org>
34974
34975         langinfo, nl_langinfo: Relicense under LGPLv2+.
34976         * modules/langinfo (License): Change to LGPLv2+.
34977         * modules/nl_langinfo (License): Likewise.
34978         Patch by David Lutterkort <lutter@redhat.com>.
34979
34980 2010-01-19  Bruno Haible  <bruno@clisp.org>
34981
34982         Avoid compilation error with cc on OSF/1 5.1.
34983         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34984         statement, not before.
34985         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34986
34987 2010-01-18  Bruno Haible  <bruno@clisp.org>
34988
34989         Avoid a link error due to the __printf__ symbol.
34990         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34991         and 2.6.x.
34992         (__format__, __printf__): Remove definitions.
34993         * lib/argp-fmtstream.h: Likewise.
34994         * lib/argp.h: Likewise.
34995         * lib/error.h: Likewise.
34996         * lib/vasnprintf.h: Likewise.
34997         * lib/xprintf.h: Likewise.
34998         * lib/xvasprintf.h: Likewise.
34999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35000
35001 2010-01-18  Bruno Haible  <bruno@clisp.org>
35002
35003         Tests for module 'tanl'.
35004         * modules/tanl-tests: New file.
35005         * tests/test-tanl.c: New file.
35006
35007         Tests for module 'sqrtl'.
35008         * modules/sqrtl-tests: New file.
35009         * tests/test-sqrtl.c: New file.
35010
35011         Tests for module 'sinl'.
35012         * modules/sinl-tests: New file.
35013         * tests/test-sinl.c: New file.
35014
35015         Tests for module 'logl'.
35016         * modules/logl-tests: New file.
35017         * tests/test-logl.c: New file.
35018
35019         Tests for module 'expl'.
35020         * modules/expl-tests: New file.
35021         * tests/test-expl.c: New file.
35022
35023         Tests for module 'cosl'.
35024         * modules/cosl-tests: New file.
35025         * tests/test-cosl.c: New file.
35026
35027         Tests for module 'atanl'.
35028         * modules/atanl-tests: New file.
35029         * tests/test-atanl.c: New file.
35030
35031         Tests for module 'asinl'.
35032         * modules/asinl-tests: New file.
35033         * tests/test-asinl.c: New file.
35034
35035         Tests for module 'acosl'.
35036         * modules/acosl-tests: New file.
35037         * tests/test-acosl.c: New file.
35038
35039         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35040         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
35041         tanl): Use the standard gnulib idiom.
35042         * lib/cosl.c: Don't include trigl.c and sincosl.c.
35043         * lib/sinl.c: Likewise.
35044         * lib/tanl.c: Don't include trigl.c.
35045         (kernel_tanl): Make static.
35046         * lib/sincosl.c: Include trigl.h first.
35047         * lib/trigl.c: Likewise.
35048         * m4/acosl.m4: New file.
35049         * m4/asinl.m4: New file.
35050         * m4/atanl.m4: New file.
35051         * m4/cosl.m4: New file.
35052         * m4/expl.m4: New file.
35053         * m4/logl.m4: New file.
35054         * m4/sinl.m4: New file.
35055         * m4/sqrtl.m4: New file.
35056         * m4/tanl.m4: New file.
35057         * m4/mathl.m4: Remove file.
35058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
35059         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35060         Don't initialize GNULIB_MATHL.
35061         * modules/acosl: New file.
35062         * modules/asinl: New file.
35063         * modules/atanl: New file.
35064         * modules/cosl: New file.
35065         * modules/expl: New file.
35066         * modules/logl: New file.
35067         * modules/sinl: New file.
35068         * modules/sqrtl: New file.
35069         * modules/tanl: New file.
35070         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
35071         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
35072         substitute GNULIB_MATHL.
35073         * modules/mathl: Rewritten.
35074         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
35075         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
35076         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
35077         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
35078         * doc/posix-functions/expl.texi: Mention the 'expl' module.
35079         * doc/posix-functions/logl.texi: Mention the 'logl' module.
35080         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
35081         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
35082         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
35083
35084 2010-01-18  Bruno Haible  <bruno@clisp.org>
35085
35086         sqrt: Make gl_FUNC_SQRT requirable.
35087         * m4/sqrt.m4: New file.
35088         * modules/sqrt (Files): Add it.
35089         (configure.ac): Invoke gl_FUNC_SQRT.
35090
35091 2010-01-18  Bruno Haible  <bruno@clisp.org>
35092
35093         New modules for common <math.h> functions.
35094         * m4/mathfunc.m4: New file.
35095         * modules/acos: New file.
35096         * modules/asin: New file.
35097         * modules/atan: New file.
35098         * modules/atan2: New file.
35099         * modules/cbrt: New file.
35100         * modules/copysign: New file.
35101         * modules/cos: New file.
35102         * modules/cosh: New file.
35103         * modules/erf: New file.
35104         * modules/erfc: New file.
35105         * modules/exp: New file.
35106         * modules/fabs: New file.
35107         * modules/fmod: New file.
35108         * modules/hypot: New file.
35109         * modules/j0: New file.
35110         * modules/j1: New file.
35111         * modules/jn: New file.
35112         * modules/ldexp: New file.
35113         * modules/lgamma: New file.
35114         * modules/log: New file.
35115         * modules/log10: New file.
35116         * modules/log1p: New file.
35117         * modules/logb: New file.
35118         * modules/modf: New file.
35119         * modules/nextafter: New file.
35120         * modules/pow: New file.
35121         * modules/remainder: New file.
35122         * modules/rint: New file.
35123         * modules/sin: New file.
35124         * modules/sinh: New file.
35125         * modules/sqrt: New file.
35126         * modules/tan: New file.
35127         * modules/tanh: New file.
35128         * modules/y0: New file.
35129         * modules/y1: New file.
35130         * modules/yn: New file.
35131         * doc/posix-functions/acos.texi: Mention the 'acos' module.
35132         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35133         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35134         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35135         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35136         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35137         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35138         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35139         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35140         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35141         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35142         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35143         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35144         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35145         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35146         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35147         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35148         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35149         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35150         * doc/posix-functions/log.texi: Mention the 'log' module.
35151         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35152         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35153         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35154         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35155         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35156         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35157         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35158         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35159         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35160         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35161         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35162         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35163         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35164         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35165         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35166         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35167
35168 2010-01-18  Jim Meyering  <meyering@redhat.com>
35169
35170         ignore-value: relax license to LGPLv2+
35171         * modules/ignore-value (License): Relax to LGPLv2+.
35172
35173         getdate: don't leak when TZ contains two or more '"'s
35174         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35175         double quote in TZ after the first one.
35176
35177         readtokens: do not leak internal token_lengths buffer
35178         * lib/readtokens.c (readtokens): Free the local, lengths,
35179         when the supplied "token_lengths" parameter is NULL.
35180
35181 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35182
35183         Fix a couple of missing LIBTHREAD link failures on AIX.
35184         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35185         $(LIBTHREAD).
35186         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35187
35188         Link test-poll against INET_PTON_LIB.
35189         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35190         for inet_pton on Solaris 10.
35191
35192 2010-01-17  Bruno Haible  <bruno@clisp.org>
35193
35194         unistdio/*-sprintf: Fix typo in module description.
35195         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35196         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35197         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35198         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35199         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35200         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35201         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35202         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35203
35204 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35205
35206         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35207         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35208         variables in shell case patterns, for AIX and HP-UX ksh.
35209
35210         Split large sed scripts, for HP-UX sed.
35211         * modules/stdio: Split sed scripts around 50 sed commands,
35212         to avoid HP-UX limit of 99 commands, in the near future.
35213         * modules/string: Likewise.
35214         * modules/unistd: Likewise.
35215
35216         gnulib-tool: avoid writing in the current directory.
35217         * gnulib-tool (func_emit_lib_Makefile_am)
35218         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35219         not in the current directory, so concurrent gnulib-tool
35220         instances do not interfere.
35221
35222 2010-01-16  Jim Meyering  <meyering@redhat.com>
35223
35224         doc: update users.txt
35225         * users.txt: Add grep.
35226         (diffutils, gzip): Update URLs.
35227
35228 2010-01-12  Bruno Haible  <bruno@clisp.org>
35229
35230         posix_spawn: Avoid test failure on Cygwin.
35231         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35232         characters.
35233         Reported by Simon Josefsson.
35234
35235 2010-01-12  Bruno Haible  <bruno@clisp.org>
35236
35237         * tests/test-cond.c (main): When skipping the test, show the reason.
35238
35239 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35240
35241         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35242
35243 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35244
35245         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35246         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35247
35248 2010-01-12  Eric Blake  <ebb9@byu.net>
35249
35250         build: guarantee AS_VAR_IF
35251         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35252         (gl_AS_VAR_IF): Move...
35253         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35254         Reported by Simon Josefsson.
35255
35256 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35257
35258         * lib/stdio.in.h: Fix typo.
35259
35260 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35261
35262         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35263         libgpg-error.
35264
35265 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35266
35267         * tests/test-xalloc-die.sh: Use $EXEEXT.
35268
35269 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35270             Bruno Haible  <bruno@clisp.org>
35271
35272         getlogin, getlogin_r: Avoid test failure.
35273         * tests/test-getlogin.c: Include <stdio.h>.
35274         (main): Skip the test when the function fails because stdin is not a
35275         tty.
35276         * tests/test-getlogin_r.c: Include <stdio.h>.
35277         (main): Skip the test when the function fails because stdin is not a
35278         tty.
35279
35280 2010-01-11  Eric Blake  <ebb9@byu.net>
35281
35282         tests: avoid more large file warnings
35283         * tests/test-fflush.c: Avoid warning about ftell use.
35284         * tests/test-fseek.c: Avoid warning about fseek use.
35285
35286 2010-01-10  Bruno Haible  <bruno@clisp.org>
35287
35288         nproc: Work better on Linux when /proc and /sys are not mounted.
35289         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35290         as lower bound when, on glibc/Linux systems,
35291         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35292         Suggested by Pádraig Brady <P@draigbrady.com>.
35293         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35294
35295         nproc: Refactor.
35296         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35297         extracted from num_processors.
35298         (num_processors): Call it.
35299
35300 2010-01-11  Jim Meyering  <meyering@redhat.com>
35301
35302         utimecmp: avoid new warning from upcoming gcc-4.5.0
35303         * lib/utimecmp.c (BILLION): Define using #define rather than an
35304         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35305
35306 2010-01-11  Eric Blake  <ebb9@byu.net>
35307
35308         math: add portability warnings for classification macros
35309         * modules/math (Depends-on): Add warn-on-use.
35310         (Makefile.am): Provide new substitutions.
35311         * m4/math_h.m4 (gl_MATH_H): Require inline.
35312         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35313         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35314         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35315         implement warnings.
35316
35317         unistd: warn on use of environ without module
35318         * modules/unistd (Depends-on): Add warn-on-use.
35319         (Makefile.am): Provide new substitutions.
35320         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35321         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35322
35323         stdio: warn on suspicious uses
35324         * modules/stdio (Depends-on): Add warn-on-use.
35325         (Makefile.am): Provide new substitutions.
35326         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35327         fseeko.
35328         * lib/stdio.in.h (gets): Always warn on use.
35329         (fseek, ftell): Adjust when warnings are issued, and honor
35330         _GL_NO_LARGE_FILES as a way to silence the warning.
35331         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35332         any warning about large file offsets.
35333         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35334         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35335         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35336         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35337         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35338         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35339         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35340         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35341
35342         warn-on-use: new module
35343         * modules/warn-on-use: New file.
35344         * build-aux/warn-on-use.h: Likewise.
35345         * m4/warn-on-use.m4: Likewise.
35346         * MODULES.html.sh (Support for building): Mention it.
35347
35348 2010-01-10  Bruno Haible  <bruno@clisp.org>
35349
35350         Tests for module 'unistr/u32-strdup'.
35351         * modules/unistr/u32-strdup-tests: New file.
35352         * tests/unistr/test-u32-strdup.c: New file.
35353
35354         Tests for module 'unistr/u16-strdup'.
35355         * modules/unistr/u16-strdup-tests: New file.
35356         * tests/unistr/test-u16-strdup.c: New file.
35357
35358         Tests for module 'unistr/u8-strdup'.
35359         * modules/unistr/u8-strdup-tests: New file.
35360         * tests/unistr/test-u8-strdup.c: New file.
35361         * tests/unistr/test-strdup.h: New file.
35362
35363         Tests for module 'unistr/u32-strncmp'.
35364         * modules/unistr/u32-strncmp-tests: New file.
35365         * tests/unistr/test-u32-strncmp.c: New file.
35366
35367         Tests for module 'unistr/u16-strncmp'.
35368         * modules/unistr/u16-strncmp-tests: New file.
35369         * tests/unistr/test-u16-strncmp.c: New file.
35370
35371         Tests for module 'unistr/u8-strncmp'.
35372         * modules/unistr/u8-strncmp-tests: New file.
35373         * tests/unistr/test-u8-strncmp.c: New file.
35374         * tests/unistr/test-strncmp.h: New file.
35375
35376         Tests for module 'unistr/u32-strcoll'.
35377         * modules/unistr/u32-strcoll-tests: New file.
35378         * tests/unistr/test-u32-strcoll.c: New file.
35379
35380         Tests for module 'unistr/u16-strcoll'.
35381         * modules/unistr/u16-strcoll-tests: New file.
35382         * tests/unistr/test-u16-strcoll.c: New file.
35383
35384         Tests for module 'unistr/u8-strcoll'.
35385         * modules/unistr/u8-strcoll-tests: New file.
35386         * tests/unistr/test-u8-strcoll.c: New file.
35387
35388         Tests for module 'unistr/u32-strcmp'.
35389         * modules/unistr/u32-strcmp-tests: New file.
35390         * tests/unistr/test-u32-strcmp.c: New file.
35391         * tests/unistr/test-u32-strcmp.h: New file.
35392
35393         Tests for module 'unistr/u16-strcmp'.
35394         * modules/unistr/u16-strcmp-tests: New file.
35395         * tests/unistr/test-u16-strcmp.c: New file.
35396         * tests/unistr/test-u16-strcmp.h: New file.
35397
35398         Tests for module 'unistr/u8-strcmp'.
35399         * modules/unistr/u8-strcmp-tests: New file.
35400         * tests/unistr/test-u8-strcmp.c: New file.
35401         * tests/unistr/test-u8-strcmp.h: New file.
35402         * tests/unistr/test-strcmp.h: New file.
35403
35404         Tests for module 'unistr/u32-strncat'.
35405         * modules/unistr/u32-strncat-tests: New file.
35406         * tests/unistr/test-u32-strncat.c: New file.
35407
35408         Tests for module 'unistr/u16-strncat'.
35409         * modules/unistr/u16-strncat-tests: New file.
35410         * tests/unistr/test-u16-strncat.c: New file.
35411
35412         Tests for module 'unistr/u8-strncat'.
35413         * modules/unistr/u8-strncat-tests: New file.
35414         * tests/unistr/test-u8-strncat.c: New file.
35415         * tests/unistr/test-strncat.h: New file.
35416
35417         Tests for module 'unistr/u32-strcat'.
35418         * modules/unistr/u32-strcat-tests: New file.
35419         * tests/unistr/test-u32-strcat.c: New file.
35420
35421         Tests for module 'unistr/u16-strcat'.
35422         * modules/unistr/u16-strcat-tests: New file.
35423         * tests/unistr/test-u16-strcat.c: New file.
35424
35425         Tests for module 'unistr/u8-strcat'.
35426         * modules/unistr/u8-strcat-tests: New file.
35427         * tests/unistr/test-u8-strcat.c: New file.
35428         * tests/unistr/test-strcat.h: New file.
35429
35430         Tests for module 'unistr/u32-stpncpy'.
35431         * modules/unistr/u32-stpncpy-tests: New file.
35432         * tests/unistr/test-u32-stpncpy.c: New file.
35433
35434         Tests for module 'unistr/u16-stpncpy'.
35435         * modules/unistr/u16-stpncpy-tests: New file.
35436         * tests/unistr/test-u16-stpncpy.c: New file.
35437
35438         Tests for module 'unistr/u8-stpncpy'.
35439         * modules/unistr/u8-stpncpy-tests: New file.
35440         * tests/unistr/test-u8-stpncpy.c: New file.
35441         * tests/unistr/test-stpncpy.h: New file.
35442
35443         Tests for module 'unistr/u32-strncpy'.
35444         * modules/unistr/u32-strncpy-tests: New file.
35445         * tests/unistr/test-u32-strncpy.c: New file.
35446
35447         Tests for module 'unistr/u16-strncpy'.
35448         * modules/unistr/u16-strncpy-tests: New file.
35449         * tests/unistr/test-u16-strncpy.c: New file.
35450
35451         Tests for module 'unistr/u8-strncpy'.
35452         * modules/unistr/u8-strncpy-tests: New file.
35453         * tests/unistr/test-u8-strncpy.c: New file.
35454         * tests/unistr/test-strncpy.h: New file.
35455
35456         Tests for module 'unistr/u32-stpcpy'.
35457         * modules/unistr/u32-stpcpy-tests: New file.
35458         * tests/unistr/test-u32-stpcpy.c: New file.
35459
35460         Tests for module 'unistr/u16-stpcpy'.
35461         * modules/unistr/u16-stpcpy-tests: New file.
35462         * tests/unistr/test-u16-stpcpy.c: New file.
35463
35464         Tests for module 'unistr/u8-stpcpy'.
35465         * modules/unistr/u8-stpcpy-tests: New file.
35466         * tests/unistr/test-u8-stpcpy.c: New file.
35467         * tests/unistr/test-stpcpy.h: New file.
35468
35469         Tests for module 'unistr/u32-strcpy'.
35470         * modules/unistr/u32-strcpy-tests: New file.
35471         * tests/unistr/test-u32-strcpy.c: New file.
35472
35473         Tests for module 'unistr/u16-strcpy'.
35474         * modules/unistr/u16-strcpy-tests: New file.
35475         * tests/unistr/test-u16-strcpy.c: New file.
35476
35477         Tests for module 'unistr/u8-strcpy'.
35478         * modules/unistr/u8-strcpy-tests: New file.
35479         * tests/unistr/test-u8-strcpy.c: New file.
35480         * tests/unistr/test-strcpy.h: New file.
35481
35482         Tests for module 'unistr/u32-strnlen'.
35483         * modules/unistr/u32-strnlen-tests: New file.
35484         * tests/unistr/test-u32-strnlen.c: New file.
35485
35486         Tests for module 'unistr/u16-strnlen'.
35487         * modules/unistr/u16-strnlen-tests: New file.
35488         * tests/unistr/test-u16-strnlen.c: New file.
35489
35490         Tests for module 'unistr/u8-strnlen'.
35491         * modules/unistr/u8-strnlen-tests: New file.
35492         * tests/unistr/test-u8-strnlen.c: New file.
35493         * tests/unistr/test-strnlen.h: New file.
35494
35495         Tests for module 'unistr/u32-strlen'.
35496         * modules/unistr/u32-strlen-tests: New file.
35497         * tests/unistr/test-u32-strlen.c: New file.
35498
35499         Tests for module 'unistr/u16-strlen'.
35500         * modules/unistr/u16-strlen-tests: New file.
35501         * tests/unistr/test-u16-strlen.c: New file.
35502
35503         Tests for module 'unistr/u8-strlen'.
35504         * modules/unistr/u8-strlen-tests: New file.
35505         * tests/unistr/test-u8-strlen.c: New file.
35506
35507         Tests for module 'unistr/u32-prev'.
35508         * modules/unistr/u32-prev-tests: New file.
35509         * tests/unistr/test-u32-prev.c: New file.
35510
35511         Tests for module 'unistr/u16-prev'.
35512         * modules/unistr/u16-prev-tests: New file.
35513         * tests/unistr/test-u16-prev.c: New file.
35514
35515         Tests for module 'unistr/u8-prev'.
35516         * modules/unistr/u8-prev-tests: New file.
35517         * tests/unistr/test-u8-prev.c: New file.
35518
35519         Tests for module 'unistr/u32-next'.
35520         * modules/unistr/u32-next-tests: New file.
35521         * tests/unistr/test-u32-next.c: New file.
35522
35523         Tests for module 'unistr/u16-next'.
35524         * modules/unistr/u16-next-tests: New file.
35525         * tests/unistr/test-u16-next.c: New file.
35526
35527         Tests for module 'unistr/u8-next'.
35528         * modules/unistr/u8-next-tests: New file.
35529         * tests/unistr/test-u8-next.c: New file.
35530
35531         Tests for module 'unistr/u32-strmbtouc'.
35532         * modules/unistr/u32-strmbtouc-tests: New file.
35533         * tests/unistr/test-u32-strmbtouc.c: New file.
35534
35535         Tests for module 'unistr/u16-strmbtouc'.
35536         * modules/unistr/u16-strmbtouc-tests: New file.
35537         * tests/unistr/test-u16-strmbtouc.c: New file.
35538
35539         Tests for module 'unistr/u8-strmbtouc'.
35540         * modules/unistr/u8-strmbtouc-tests: New file.
35541         * tests/unistr/test-u8-strmbtouc.c: New file.
35542
35543         Tests for module 'unistr/u32-strmblen'.
35544         * modules/unistr/u32-strmblen-tests: New file.
35545         * tests/unistr/test-u32-strmblen.c: New file.
35546
35547         Tests for module 'unistr/u16-strmblen'.
35548         * modules/unistr/u16-strmblen-tests: New file.
35549         * tests/unistr/test-u16-strmblen.c: New file.
35550
35551         Tests for module 'unistr/u8-strmblen'.
35552         * modules/unistr/u8-strmblen-tests: New file.
35553         * tests/unistr/test-u8-strmblen.c: New file.
35554
35555         Tests for module 'unistr/u32-cpy-alloc'.
35556         * modules/unistr/u32-cpy-alloc-tests: New file.
35557         * tests/unistr/test-u32-cpy-alloc.c: New file.
35558
35559         Tests for module 'unistr/u16-cpy-alloc'.
35560         * modules/unistr/u16-cpy-alloc-tests: New file.
35561         * tests/unistr/test-u16-cpy-alloc.c: New file.
35562
35563         Tests for module 'unistr/u8-cpy-alloc'.
35564         * modules/unistr/u8-cpy-alloc-tests: New file.
35565         * tests/unistr/test-u8-cpy-alloc.c: New file.
35566         * tests/unistr/test-cpy-alloc.h: New file.
35567
35568         Tests for module 'unistr/u32-mbsnlen'.
35569         * modules/unistr/u32-mbsnlen-tests: New file.
35570         * tests/unistr/test-u32-mbsnlen.c: New file.
35571
35572         Tests for module 'unistr/u16-mbsnlen'.
35573         * modules/unistr/u16-mbsnlen-tests: New file.
35574         * tests/unistr/test-u16-mbsnlen.c: New file.
35575
35576         Tests for module 'unistr/u8-mbsnlen'.
35577         * modules/unistr/u8-mbsnlen-tests: New file.
35578         * tests/unistr/test-u8-mbsnlen.c: New file.
35579
35580         Tests for module 'unistr/u32-chr'.
35581         * modules/unistr/u32-chr-tests: New file.
35582         * tests/unistr/test-u32-chr.c: New file.
35583
35584         Tests for module 'unistr/u16-chr'.
35585         * modules/unistr/u16-chr-tests: New file.
35586         * tests/unistr/test-u16-chr.c: New file.
35587
35588         Tests for module 'unistr/u8-chr'.
35589         * modules/unistr/u8-chr-tests: New file.
35590         * tests/unistr/test-u8-chr.c: New file.
35591         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35592
35593         Tests for module 'unistr/u32-cmp2'.
35594         * modules/unistr/u32-cmp2-tests: New file.
35595         * tests/unistr/test-u32-cmp2.c: New file.
35596
35597         Tests for module 'unistr/u16-cmp2'.
35598         * modules/unistr/u16-cmp2-tests: New file.
35599         * tests/unistr/test-u16-cmp2.c: New file.
35600
35601         Tests for module 'unistr/u8-cmp2'.
35602         * modules/unistr/u8-cmp2-tests: New file.
35603         * tests/unistr/test-u8-cmp2.c: New file.
35604         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35605
35606         Tests for module 'unistr/u32-cmp'.
35607         * modules/unistr/u32-cmp-tests: New file.
35608         * tests/unistr/test-u32-cmp.c: New file.
35609
35610         Tests for module 'unistr/u16-cmp'.
35611         * modules/unistr/u16-cmp-tests: New file.
35612         * tests/unistr/test-u16-cmp.c: New file.
35613
35614         Tests for module 'unistr/u8-cmp'.
35615         * modules/unistr/u8-cmp-tests: New file.
35616         * tests/unistr/test-u8-cmp.c: New file.
35617         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35618
35619         Tests for module 'unistr/u32-set'.
35620         * modules/unistr/u32-set-tests: New file.
35621         * tests/unistr/test-u32-set.c: New file.
35622
35623         Tests for module 'unistr/u16-set'.
35624         * modules/unistr/u16-set-tests: New file.
35625         * tests/unistr/test-u16-set.c: New file.
35626
35627         Tests for module 'unistr/u8-set'.
35628         * modules/unistr/u8-set-tests: New file.
35629         * tests/unistr/test-u8-set.c: New file.
35630         * tests/unistr/test-set.h: New file.
35631
35632         Tests for module 'unistr/u32-move'.
35633         * modules/unistr/u32-move-tests: New file.
35634         * tests/unistr/test-u32-move.c: New file.
35635
35636         Tests for module 'unistr/u16-move'.
35637         * modules/unistr/u16-move-tests: New file.
35638         * tests/unistr/test-u16-move.c: New file.
35639
35640         Tests for module 'unistr/u8-move'.
35641         * modules/unistr/u8-move-tests: New file.
35642         * tests/unistr/test-u8-move.c: New file.
35643         * tests/unistr/test-move.h: New file.
35644
35645         Tests for module 'unistr/u32-cpy'.
35646         * modules/unistr/u32-cpy-tests: New file.
35647         * tests/unistr/test-u32-cpy.c: New file.
35648
35649         Tests for module 'unistr/u16-cpy'.
35650         * modules/unistr/u16-cpy-tests: New file.
35651         * tests/unistr/test-u16-cpy.c: New file.
35652
35653         Tests for module 'unistr/u8-cpy'.
35654         * modules/unistr/u8-cpy-tests: New file.
35655         * tests/unistr/test-u8-cpy.c: New file.
35656         * tests/unistr/test-cpy.h: New file.
35657
35658 2010-01-09  Bruno Haible  <bruno@clisp.org>
35659
35660         Tests for module 'unistr/u32-uctomb'.
35661         * modules/unistr/u32-uctomb-tests: New file.
35662         * tests/unistr/test-u32-uctomb.c: New file.
35663
35664         Tests for module 'unistr/u16-uctomb'.
35665         * modules/unistr/u16-uctomb-tests: New file.
35666         * tests/unistr/test-u16-uctomb.c: New file.
35667
35668         Tests for module 'unistr/u8-uctomb'.
35669         * modules/unistr/u8-uctomb-tests: New file.
35670         * tests/unistr/test-u8-uctomb.c: New file.
35671
35672         Tests for module 'unistr/u32-mbtoucr'.
35673         * modules/unistr/u32-mbtoucr-tests: New file.
35674         * tests/unistr/test-u32-mbtoucr.c: New file.
35675
35676         Tests for module 'unistr/u16-mbtoucr'.
35677         * modules/unistr/u16-mbtoucr-tests: New file.
35678         * tests/unistr/test-u16-mbtoucr.c: New file.
35679
35680         Tests for module 'unistr/u8-mbtoucr'.
35681         * modules/unistr/u8-mbtoucr-tests: New file.
35682         * tests/unistr/test-u8-mbtoucr.c: New file.
35683
35684         Tests for module 'unistr/u32-mbtouc'.
35685         * modules/unistr/u32-mbtouc-tests: New file.
35686         * tests/unistr/test-u32-mbtouc.c: New file.
35687
35688         Tests for module 'unistr/u16-mbtouc'.
35689         * modules/unistr/u16-mbtouc-tests: New file.
35690         * tests/unistr/test-u16-mbtouc.c: New file.
35691
35692         Tests for module 'unistr/u8-mbtouc'.
35693         * modules/unistr/u8-mbtouc-tests: New file.
35694         * tests/unistr/test-u8-mbtouc.c: New file.
35695
35696         Tests for module 'unistr/u32-mbtouc-unsafe'.
35697         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35698         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35699         * tests/unistr/test-u32-mbtouc.h: New file.
35700
35701         Tests for module 'unistr/u16-mbtouc-unsafe'.
35702         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35703         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35704         * tests/unistr/test-u16-mbtouc.h: New file.
35705
35706         Tests for module 'unistr/u8-mbtouc-unsafe'.
35707         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35708         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35709         * tests/unistr/test-u8-mbtouc.h: New file.
35710
35711         Tests for module 'unistr/u32-mblen'.
35712         * modules/unistr/u32-mblen-tests: New file.
35713         * tests/unistr/test-u32-mblen.c: New file.
35714
35715         Tests for module 'unistr/u16-mblen'.
35716         * modules/unistr/u16-mblen-tests: New file.
35717         * tests/unistr/test-u16-mblen.c: New file.
35718
35719         Tests for module 'unistr/u8-mblen'.
35720         * modules/unistr/u8-mblen-tests: New file.
35721         * tests/unistr/test-u8-mblen.c: New file.
35722
35723         Tests for module 'unistr/u32-to-u16'.
35724         * modules/unistr/u32-to-u16-tests: New file.
35725         * tests/unistr/test-u32-to-u16.c: New file.
35726
35727         Tests for module 'unistr/u32-to-u8'.
35728         * modules/unistr/u32-to-u8-tests: New file.
35729         * tests/unistr/test-u32-to-u8.c: New file.
35730
35731         Tests for module 'unistr/u16-to-u32'.
35732         * modules/unistr/u16-to-u32-tests: New file.
35733         * tests/unistr/test-u16-to-u32.c: New file.
35734
35735         Tests for module 'unistr/u16-to-u8'.
35736         * modules/unistr/u16-to-u8-tests: New file.
35737         * tests/unistr/test-u16-to-u8.c: New file.
35738
35739         Tests for module 'unistr/u8-to-u32'.
35740         * modules/unistr/u8-to-u32-tests: New file.
35741         * tests/unistr/test-u8-to-u32.c: New file.
35742
35743         Tests for module 'unistr/u8-to-u16'.
35744         * modules/unistr/u8-to-u16-tests: New file.
35745         * tests/unistr/test-u8-to-u16.c: New file.
35746
35747         Tests for module 'unistr/u32-check'.
35748         * modules/unistr/u32-check-tests: New file.
35749         * tests/unistr/test-u32-check.c: New file.
35750
35751         Tests for module 'unistr/u16-check'.
35752         * modules/unistr/u16-check-tests: New file.
35753         * tests/unistr/test-u16-check.c: New file.
35754
35755         Tests for module 'unistr/u8-check'.
35756         * modules/unistr/u8-check-tests: New file.
35757         * tests/unistr/test-u8-check.c: New file.
35758
35759         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35760         (category_equals): New function.
35761         (main): Add more tests.
35762         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35763
35764         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35765
35766 2010-01-10  Bruno Haible  <bruno@clisp.org>
35767
35768         unistr/u*-strcoll: Try harder to distinguish different strings.
35769         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35770         compare s1 and s2 to see if they are different.
35771
35772 2010-01-10  Bruno Haible  <bruno@clisp.org>
35773
35774         unistr/u*-stpncpy: Fix the return value.
35775         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35776         description of the return value consistent with stpncpy in glibc.
35777         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35778         written non-NUL unit.
35779
35780 2010-01-10  Bruno Haible  <bruno@clisp.org>
35781
35782         unistr/u*-next: Add missing dependencies.
35783         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35784         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35785         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35786
35787 2010-01-10  Bruno Haible  <bruno@clisp.org>
35788
35789         unistr/u8-mbsnlen: Fix return value for incomplete character.
35790         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35791         u8_mblen.
35792         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35793         Remove unistr/u8-mblen.
35794         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35795         u16_mblen.
35796         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35797         Remove unistr/u16-mblen.
35798
35799 2010-01-10  Bruno Haible  <bruno@clisp.org>
35800
35801         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35802         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35803         Reported by Brian Gough <bjg@gnu.org> and
35804         Chris Clayton <chris2553@googlemail.com> via
35805         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35806
35807 2010-01-09  Bruno Haible  <bruno@clisp.org>
35808
35809         unistr/u16-to-u32: Reject invalid input.
35810         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35811         u16_mbtouc.
35812         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35813         Remove unistr/u16-mbtouc.
35814
35815         unistr/u16-to-u8: Reject invalid input.
35816         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35817         u16_mbtouc.
35818         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35819         Remove unistr/u16-mbtouc.
35820
35821         unistr/u8-to-u32: Reject invalid input.
35822         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35823         u8_mbtouc.
35824         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35825         Remove unistr/u8-mbtouc.
35826
35827         unistr/u8-to-u16: Reject invalid input.
35828         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35829         u8_mbtouc.
35830         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35831         Remove unistr/u8-mbtouc.
35832
35833 2010-01-09  Bruno Haible  <bruno@clisp.org>
35834
35835         Tests for module 'getlogin'.
35836         * modules/getlogin-tests: New file.
35837         * tests/test-getlogin.c: New file.
35838
35839         New module 'getlogin'.
35840         * lib/unistd.in.h (getlogin): New declaration.
35841         * lib/getlogin.c: New file.
35842         * m4/getlogin.m4: New file.
35843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35844         HAVE_GETLOGIN.
35845         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35846         HAVE_GETLOGIN.
35847         * modules/getlogin: New file.
35848         * doc/posix-functions/getlogin.texi: Mention the new module.
35849         Reported by John W. Eaton <jwe@gnu.org>.
35850
35851 2010-01-09  Bruno Haible  <bruno@clisp.org>
35852
35853         getlogin_r: Support for native Windows.
35854         * lib/getlogin_r.c: Include <windows.h>
35855         (getlogin_r): Implement for native Windows.
35856         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35857         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35858         via John W. Eaton <jwe@gnu.org>.
35859
35860 2010-01-09  Bruno Haible  <bruno@clisp.org>
35861
35862         getlogin_r: Small fixes.
35863         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35864         succeeds.
35865         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35866         before testing whether getlogin_r is declared. No need to set
35867         HAVE_DECL_GETLOGIN_R to 1.
35868         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35869
35870 2010-01-09  Bruno Haible  <bruno@clisp.org>
35871
35872         * lib/unistd.in.h (getlogin_r): Add comment.
35873
35874 2010-01-09  Bruno Haible  <bruno@clisp.org>
35875
35876         Tests for module 'getlogin_r'.
35877         * modules/getlogin_r-tests: New file.
35878         * tests/test-getlogin_r.c: New file.
35879
35880 2010-01-09  Jim Meyering  <meyering@redhat.com>
35881
35882         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35883         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35884         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35885
35886 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35887
35888         * lib/dup2.c (rpl_dup2): Improve comment.
35889
35890 2010-01-08  Eric Blake  <ebb9@byu.net>
35891
35892         maint.mk: allow packages to add makefile @@ exceptions
35893         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35894         (sc_makefile_check): Rename...
35895         (sc_makefile_at_at_check): ...to this, and use hook.
35896
35897         dup2: work around mingw bug
35898         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35899         Reported by Simon Josefsson.
35900
35901 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35902
35903         glob: Fix C++ compilation.
35904         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35905         C++.
35906
35907 2010-01-07  Bruno Haible  <bruno@clisp.org>
35908
35909         Fix indentation of wctype.in.h, broken since 2007-01-06.
35910         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35911
35912 2010-01-07  Bruno Haible  <bruno@clisp.org>
35913
35914         mbslen: Avoid collision with system function.
35915         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35916         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35917         * m4/mbslen.m4: New file.
35918         * modules/mbslen (Files): Add it.
35919         (configure.ac): Invoke gl_MBSLEN.
35920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35921         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35922         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35923         via Ian Beckwith <ianb@erislabs.net>.
35924
35925 2010-01-07  Bruno Haible  <bruno@clisp.org>
35926
35927         dirent: Document the last fix.
35928         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35929
35930 2010-01-07  Bruno Haible  <bruno@clisp.org>
35931
35932         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35933         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35934         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35935         va_list are defined.
35936         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35937         Reported by Eric Blake.
35938
35939 2010-01-07  Bruno Haible  <bruno@clisp.org>
35940
35941         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35942         * modules/xlist (Depends-on): Add 'list',
35943         * modules/xoset (Depends-on): Add 'oset'.
35944         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35945
35946 2010-01-07  Bruno Haible  <bruno@clisp.org>
35947
35948         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35949         * doc/posix-functions/strncasecmp.texi: Likewise.
35950
35951 2010-01-07  Bruno Haible  <bruno@clisp.org>
35952
35953         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35954
35955 2010-01-07  John W. Eaton  <jwe@octave.org>
35956
35957         wctype: allow C++ use
35958         * lib/wctype.in.h: Add extern "C" block for C++.
35959
35960 2010-01-06  Eric Blake  <ebb9@byu.net>
35961
35962         maint.mk: detect incorrect GFDL usage
35963         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35964
35965 2010-01-06  Jim Meyering  <meyering@redhat.com>
35966         and Eric Blake  <ebb9@byu.net>
35967
35968         maint.mk: ignore multi-line copyright in NEWS
35969         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35970
35971 2010-01-06  Eric Blake  <ebb9@byu.net>
35972
35973         select: add missing dependency
35974         * modules/select-tests (Depends-on): Move sockets dependency...
35975         * modules/select (Depends-on): ...here.
35976         Reported by Ian Beckwith.
35977
35978         doc: regenerate INSTALL
35979         * doc/INSTALL: Reflect recent autoconf update.
35980         * doc/INSTALL.ISO: Likewise.
35981         * doc/INSTALL.UTF-8: Likewise.
35982
35983         pread: fix compilation on glibc
35984         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35985         Reported by Ralf Wildenhues.
35986
35987         dirent: fix test failure
35988         * lib/dirent.in.h (includes): Guarantee ino_t.
35989         Reported by Ralf Wildenhues.
35990
35991 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35992
35993         linkat, renameat: avoid bad free
35994         * lib/at-func2.c (at_func2): Fix typo.
35995         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35996
35997 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35998
35999         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
36000         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
36001         to avoid failure of symlink test later.
36002
36003 2010-01-06  Eric Blake  <ebb9@byu.net>
36004
36005         stdio, unistd: guarantee ssize_t
36006         * lib/unistd.in.h (includes): Ensure that types required by POSIX
36007         2008 are exposed when needed.
36008         * lib/stdio.in.h (includes): Likewise.
36009         Reported by Ralf Wildenhues.
36010
36011 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
36012
36013         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
36014         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
36015         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
36016
36017 2010-01-06  Jim Meyering  <meyering@redhat.com>
36018
36019         readtokens: this module *does* require xalloc.h
36020         It uses only functions that were omitted by the old syntax-check rule.
36021         * lib/readtokens.c: Include "xalloc.h" once again.
36022         * modules/readtokens (Depends-on): Add xalloc.
36023         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
36024
36025 2010-01-05  Eric Blake  <ebb9@byu.net>
36026
36027         maint: support 'make announcement' from a VPATH build
36028         * top/maint.mk (announcement): Look for correct NEWS file.
36029
36030 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
36031
36032         utimens (fdutimens): ignore a negative FD, per contract
36033         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
36034         when we have a valid file descriptor.  Otherwise, using a brand
36035         new glibc (with just-patched futimens that now fails with EBADF)
36036         would cause this function to fail with ENOSYS.
36037         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
36038         See also http://bugzilla.redhat.com/552320.
36039
36040 2010-01-05  Eric Blake  <ebb9@byu.net>
36041
36042         strcase: document what it provides
36043         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
36044         gnulib module.
36045         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
36046         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
36047
36048 2010-01-05  Jim Meyering  <meyering@redhat.com>
36049
36050         maint: remove useless inclusions of "xalloc.h"
36051         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
36052         * lib/readtokens.c: Likewise.
36053         * lib/same.c: Likewise.
36054         * modules/getloadavg (Depends-on): Remove xalloc.
36055         * modules/readtokens: Likewise.
36056         * modules/same: Likewise.
36057
36058         maint.mk: include 4 more function names in alloca.h-checking regexp
36059         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
36060         regexp.  Before, we would give a false-positive (saying alloca.h
36061         is included unnecessarily) when the only uses involved omitted symbols.
36062
36063         xalloc.h: use consistent formatting
36064         * lib/xalloc.h: Move declarations to start in the first column.
36065
36066 2010-01-05  Eric Blake  <ebb9@byu.net>
36067
36068         mkdir: avoid xalloc
36069         * lib/mkdir.c (includes): Drop unused header.
36070         Reported by John W. Eaton.
36071
36072 2010-01-04  Jim Meyering  <meyering@redhat.com>
36073
36074         nl_langinfo: avoid configure-time syntax error
36075         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
36076         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
36077         the empty string.  Don't let that provoke a shell syntax error.
36078
36079         regcomp, regexec, fnmatch: avoid array bounds read error
36080         * lib/regcomp.c (build_equiv_class): From glibc:
36081         Use only the low 24 bits of a findidx return value as an index
36082         into the weights array.  Patch by Ulrich Drepper:
36083         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
36084         * lib/regexec.c (check_node_accept_bytes): Likewise.
36085         * lib/fnmatch_loop.c (FCT): Likewise.
36086
36087         regcomp: skip collseq lookup when there are no rules
36088         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
36089         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
36090
36091         regcomp: recognize ill-formed { } expressions
36092         * lib/regcomp.c (parse_dup_op): From glibc:
36093         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
36094
36095         regcomp: fix typo in comment
36096         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
36097         s/satisfy/satisfies/.
36098
36099         regcomp: sync from glibc: remove dead store
36100         * lib/regcomp.c (duplicate_node_closure): Remove useless
36101         search_duplicated_node call and dead store.
36102
36103         regcomp: sync from glibc; always use nl_langinfo
36104         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
36105         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
36106         * modules/regex (Depends-on): Add nl_langinfo.
36107
36108 2010-01-04  Eric Blake  <ebb9@byu.net>
36109
36110         fdopendir: fix configure test
36111         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
36112
36113 2010-01-01  Bruno Haible  <bruno@clisp.org>
36114
36115         wchar: Remove unused configure check.
36116         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
36117
36118 2010-01-01  Eric Blake  <ebb9@byu.net>
36119
36120         headers: make check of system header explicit
36121         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
36122         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
36123         ourselves.
36124         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36125         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36126         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36127         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
36128         internals.
36129         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
36130         missing.
36131         Suggested by Bruno Haible.
36132
36133 2010-01-01  Jim Meyering  <meyering@redhat.com>
36134
36135         ChangeLog: tweak to eliminate unnecessary copyright line
36136         * ChangeLog: Remove a copyright line that was mistakenly updated
36137         by today's update-copyright run.  Reported by Eric Blake.
36138
36139         test-update-copyright: don't let envvar setting cause test failure
36140         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36141
36142 2010-01-01  Bruno Haible  <bruno@clisp.org>
36143
36144         localename: Avoid gcc warning.
36145         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36146         function if it is not used.
36147
36148 2010-01-01  Jim Meyering  <meyering@redhat.com>
36149
36150         update nearly all FSF copyright year lists to include 2010
36151         Use the same procedure as for 2009, outlined in
36152         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36153
36154         version-etc: set COPYRIGHT_YEAR to 2010
36155         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36156
36157 2009-12-31  Eric Blake  <ebb9@byu.net>
36158
36159         doc: correct availability of cygwin 1.5.x getopt
36160         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36161         variables.
36162         * doc/posix-functions/opterr.texi (opterr): Likewise.
36163         * doc/posix-functions/optind.texi (optind): Likewise.
36164         * doc/posix-functions/optopt.texi (optopt): Likewise.
36165         * doc/posix-functions/tzname.texi (tzname): Likewise.
36166
36167         openat: update maintainer
36168         * modules/openat (Maintainer): Add myself.
36169
36170         utimens: avoid shadowing warning
36171         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36172         buffers into one, to avoid shadowing, as well as avoiding a
36173         redundant stat.
36174         Reported by Jim Meyering.
36175
36176         test-dup2: avoid compiler warning
36177         * tests/test-dup2.c (is_inheritable): Only define if used.
36178
36179 2010-01-01  Bruno Haible  <bruno@clisp.org>
36180
36181         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36182         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36183         defined, use wctomb instead of wcrtomb.
36184
36185 2010-01-01  Bruno Haible  <bruno@clisp.org>
36186
36187         iconv: Reject native Solaris iconv.
36188         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36189         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36190
36191 2009-12-31  Bruno Haible  <bruno@clisp.org>
36192
36193         * tests/test-signal.c (main): Remove test of 'SIG'.
36194
36195 2009-12-31  Bruno Haible  <bruno@clisp.org>
36196
36197         spawn: Fix incomplete fix.
36198         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36199         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36200         warnings for GNULIB_POSIXCHECK again.
36201         Reported by Eric Blake.
36202
36203 2009-12-31  Bruno Haible  <bruno@clisp.org>
36204
36205         Avoid namespace pollution on glibc systems.
36206         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36207         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36208         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36209         glibc systems.
36210
36211 2009-12-31  Bruno Haible  <bruno@clisp.org>
36212
36213         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36214         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36215         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36216         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36217         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36218         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36219         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36220
36221 2009-12-31  Bruno Haible  <bruno@clisp.org>
36222
36223         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36224         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36225         afterwards.
36226
36227 2009-12-31  Bruno Haible  <bruno@clisp.org>
36228
36229         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36230         SYS_UTSNAME_H.
36231
36232 2009-12-31  Bruno Haible  <bruno@clisp.org>
36233
36234         spawn: Fix misapplied patch.
36235         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36236         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36237         warnings for GNULIB_POSIXCHECK.
36238
36239 2009-12-31  Bruno Haible  <bruno@clisp.org>
36240
36241         times: Update after sys_times changed.
36242         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36243         * modules/times (Files): Add it.
36244         (configure.ac): Invoke gl_FUNC_TIMES.
36245
36246 2009-12-31  Bruno Haible  <bruno@clisp.org>
36247
36248         Use AC_C_INLINE where necessary.
36249         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36250         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36251         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36252         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36253         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36254         * m4/mbiter.m4 (gl_MBITER): Likewise.
36255         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36256         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36257         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36258         * modules/u64 (configure.ac): Likewise.
36259
36260 2009-12-31  Bruno Haible  <bruno@clisp.org>
36261
36262         Use AC_C_INLINE instead of module 'inline' where possible.
36263         * modules/inline (Description): Clarify purpose.
36264         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36265         * modules/count-one-bits (Depends-on): Remove inline.
36266         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36267         * modules/openat (Depends-on): Remove inline.
36268         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36269         instead of depending on module 'inline'.
36270         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36271         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36272         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36273         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36274         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36275         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36276         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36277         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36278         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36279         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36280         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36281         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36282         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36283         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36284         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36285         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36286         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36287         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36288         Likewise.
36289         * modules/unictype/property-ascii-hex-digit (Depends-on,
36290         configure.ac): Likewise.
36291         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36292         configure.ac): Likewise.
36293         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36294         configure.ac): Likewise.
36295         * modules/unictype/property-bidi-block-separator (Depends-on,
36296         configure.ac): Likewise.
36297         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36298         configure.ac): Likewise.
36299         * modules/unictype/property-bidi-common-separator (Depends-on,
36300         configure.ac): Likewise.
36301         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36302         Likewise.
36303         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36304         configure.ac): Likewise.
36305         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36306         configure.ac): Likewise.
36307         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36308         configure.ac): Likewise.
36309         * modules/unictype/property-bidi-european-digit (Depends-on,
36310         configure.ac): Likewise.
36311         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36312         configure.ac): Likewise.
36313         * modules/unictype/property-bidi-left-to-right (Depends-on,
36314         configure.ac): Likewise.
36315         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36316         configure.ac): Likewise.
36317         * modules/unictype/property-bidi-other-neutral (Depends-on,
36318         configure.ac): Likewise.
36319         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36320         Likewise.
36321         * modules/unictype/property-bidi-segment-separator (Depends-on,
36322         configure.ac): Likewise.
36323         * modules/unictype/property-bidi-whitespace (Depends-on,
36324         configure.ac): Likewise.
36325         * modules/unictype/property-combining (Depends-on, configure.ac):
36326         Likewise.
36327         * modules/unictype/property-composite (Depends-on, configure.ac):
36328         Likewise.
36329         * modules/unictype/property-currency-symbol (Depends-on,
36330         configure.ac): Likewise.
36331         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36332         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36333         Likewise.
36334         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36335         configure.ac): Likewise.
36336         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36337         Likewise.
36338         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36339         Likewise.
36340         * modules/unictype/property-extender (Depends-on, configure.ac):
36341         Likewise.
36342         * modules/unictype/property-format-control (Depends-on, configure.ac):
36343         Likewise.
36344         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36345         Likewise.
36346         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36347         Likewise.
36348         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36349         Likewise.
36350         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36351         Likewise.
36352         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36353         Likewise.
36354         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36355         Likewise.
36356         * modules/unictype/property-id-start (Depends-on, configure.ac):
36357         Likewise.
36358         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36359         Likewise.
36360         * modules/unictype/property-ids-binary-operator (Depends-on,
36361         configure.ac): Likewise.
36362         * modules/unictype/property-ids-trinary-operator (Depends-on,
36363         configure.ac): Likewise.
36364         * modules/unictype/property-ignorable-control (Depends-on,
36365         configure.ac): Likewise.
36366         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36367         Likewise.
36368         * modules/unictype/property-join-control (Depends-on, configure.ac):
36369         Likewise.
36370         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36371         Likewise.
36372         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36373         Likewise.
36374         * modules/unictype/property-logical-order-exception (Depends-on,
36375         configure.ac): Likewise.
36376         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36377         Likewise.
36378         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36379         * modules/unictype/property-non-break (Depends-on, configure.ac):
36380         Likewise.
36381         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36382         Likewise.
36383         * modules/unictype/property-numeric (Depends-on, configure.ac):
36384         Likewise.
36385         * modules/unictype/property-other-alphabetic (Depends-on,
36386         configure.ac): Likewise.
36387         * modules/unictype/property-other-default-ignorable-code-point
36388         (Depends-on, configure.ac): Likewise.
36389         * modules/unictype/property-other-grapheme-extend (Depends-on,
36390         configure.ac): Likewise.
36391         * modules/unictype/property-other-id-continue (Depends-on,
36392         configure.ac): Likewise.
36393         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36394         Likewise.
36395         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36396         Likewise.
36397         * modules/unictype/property-other-math (Depends-on, configure.ac):
36398         Likewise.
36399         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36400         Likewise.
36401         * modules/unictype/property-paired-punctuation (Depends-on,
36402         configure.ac): Likewise.
36403         * modules/unictype/property-paragraph-separator (Depends-on,
36404         configure.ac): Likewise.
36405         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36406         Likewise.
36407         * modules/unictype/property-pattern-white-space (Depends-on,
36408         configure.ac): Likewise.
36409         * modules/unictype/property-private-use (Depends-on, configure.ac):
36410         Likewise.
36411         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36412         Likewise.
36413         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36414         Likewise.
36415         * modules/unictype/property-radical (Depends-on, configure.ac):
36416         Likewise.
36417         * modules/unictype/property-sentence-terminal (Depends-on,
36418         configure.ac): Likewise.
36419         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36420         Likewise.
36421         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36422         * modules/unictype/property-terminal-punctuation (Depends-on,
36423         configure.ac): Likewise.
36424         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36425         Likewise.
36426         * modules/unictype/property-unassigned-code-value (Depends-on,
36427         configure.ac): Likewise.
36428         * modules/unictype/property-unified-ideograph (Depends-on,
36429         configure.ac): Likewise.
36430         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36431         Likewise.
36432         * modules/unictype/property-variation-selector (Depends-on,
36433         configure.ac): Likewise.
36434         * modules/unictype/property-white-space (Depends-on, configure.ac):
36435         Likewise.
36436         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36437         Likewise.
36438         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36439         Likewise.
36440         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36441         Likewise.
36442         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36443         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36444         Likewise.
36445
36446 2009-12-31  Bruno Haible  <bruno@clisp.org>
36447
36448         Remove unnecessary AC_C_INLINE invocation.
36449         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36450         since 2009-08-21.
36451
36452 2009-12-31  Jim Meyering  <meyering@redhat.com>
36453
36454         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36455         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36456         With this change, we can all remove the gpg_key_ID = ... definition
36457         from our respective cfg.mk files.
36458
36459         maint.mk: create announcement template in ~/, not in /tmp
36460         * top/maint.mk (emit_upload_commands): Adjust.
36461         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36462         Remove temporary file, .ci-msg.
36463
36464 2009-12-31  Eric Blake  <ebb9@byu.net>
36465
36466         link-warning: always build headers with link warnings
36467         * modules/arpa_inet (Makefile.am): Always build replacement
36468         header.
36469         * modules/ctype (Makefile.am): Likewise.
36470         * modules/dirent (Makefile.am): Likewise.
36471         * modules/inttypes (Makefile.am): Likewise.
36472         * modules/langinfo (Makefile.am): Likewise.
36473         * modules/locale (Makefile.am): Likewise.
36474         * modules/spawn (Makefile.am): Likewise.
36475         * modules/sys_file (Makefile.am): Likewise.
36476         * modules/sys_ioctl (Makefile.am): Likewise.
36477         * modules/sys_select (Makefile.am): Likewise.
36478         * modules/sys_socket (Makefile.am): Likewise.
36479         * modules/sys_times (Makefile.am): Likewise.
36480         * modules/sys_utsname (Makefile.am): Likewise.
36481         * modules/sys_wait (Makefile.am): Likewise.
36482         * modules/wchar (Makefile.am): Likewise.
36483         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36484         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36485         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36486         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36487         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36488         Likewise.
36489         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36490         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36491         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36492         Likewise.
36493         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36494         Likewise.
36495         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36496         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36497         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36498         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36499         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36500         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36501         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36502         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36503         (gl_WCHAR_H_DEFAULTS): Likewise.
36504
36505 2009-12-31  Eric Blake  <ebb9@byu.net>
36506
36507         signal, spawn: use link warnings
36508         * lib/signal.in.h (sigset_t): Make unconditional.
36509         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36510         (sigpending, sigprocmask, sigaction): Add link warnings.
36511         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36512         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36513         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36514         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36515         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36516         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36517         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36518         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36519         (posix_spawn_file_actions_destroy)
36520         (posix_spawn_file_actions_addopen)
36521         (posix_spawn_file_actions_addclose)
36522         (posix_spawn_file_actions_adddup2): Likewise.
36523         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36524         * tests/test-signal.c (main): Enhance test.
36525
36526         spawn: improve wrapper support
36527         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36528         (gl_SPAWN_H_DEFAULTS): New defaults.
36529         * modules/spawn (Makefile.am): Substitute them.
36530         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36531         Only declare if missing or broken.
36532
36533         sys_times, sys_utsname: use include_next
36534         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36535         header.
36536         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36537         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36538         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36539         * modules/sys_times (Depends-on): Add include_next.
36540         (Makefile.am): Substitute additional values.
36541         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36542         * lib/sys_times.in.h (includes): Include native header, if
36543         available.
36544         * lib/sys_utsname.in.h (includes): Likewise.
36545         * tests/test-sys_times.c (main): Enhance test.
36546
36547         fdutimensat: revert prior patch
36548         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36549         utimens.h.
36550         Reported by Bruno Haible.
36551
36552 2009-12-30  Eric Blake  <ebb9@byu.net>
36553
36554         sys_wait: drop link-warning dependency
36555         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36556         link-warning efforts.
36557         * lib/sys_wait.in.h: Likewise.
36558
36559         fdutimensat: remove bogus dependency
36560         * modules/fdutimensat (Depends-on): Drop inline.
36561
36562         unistd: fix typo
36563         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36564
36565 2009-12-30  Bruno Haible  <bruno@clisp.org>
36566
36567         Fix compilation error with Solaris cc.
36568         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36569         * lib/unicase/u16-is-invariant.c: Likewise.
36570         * lib/unicase/u32-is-invariant.c: Likewise.
36571         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36572
36573 2009-12-30  Bruno Haible  <bruno@clisp.org>
36574
36575         Fix test crash.
36576         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36577         locales.
36578         Reported by Simon Josefsson <simon@josefsson.org>.
36579
36580 2009-12-30  Bruno Haible  <bruno@clisp.org>
36581
36582         Fix compilation error on most platforms.
36583         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36584         Reported by Simon Josefsson <simon@josefsson.org>
36585         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36586
36587 2009-12-30  Eric Blake  <ebb9@byu.net>
36588
36589         futimens, utimensat: work around ntfs-3g bug
36590         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36591         a ctime bug is present, and expand workaround to cover ntfs-3g.
36592         * lib/utimens.c (fdutimens, lutimens): Likewise.
36593         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36594         (validate_timespec): Adjust return value.
36595         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36596         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36597         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36598
36599 2009-12-29  Eric Blake  <ebb9@byu.net>
36600
36601         link-warning: make usage consistent
36602         * modules/ctype (Depends-on): Add link-warning.
36603         (Makefile.am): Update rules accordingly.
36604         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36605         * modules/locale (Depends-on, Makefile.am): Likewise.
36606         * modules/sys_file (Makefile.am): Likewise.
36607         * modules/getopt-posix (Makefile.am): Delete unused link warning
36608         efforts.
36609         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36610         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36611         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36612         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36613
36614         stdio: remove unused variables
36615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36616         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36617         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36618
36619         tests: test more substitute headers
36620         * modules/ctype-tests: New file.
36621         * modules/dirent-tests: Likewise.
36622         * modules/spawn-tests: Likewise.
36623         * modules/sys_file-tests: Likewise.
36624         * modules/sys_ioctl-tests: Likewise.
36625         * modules/sys_wait-tests: Likewise.
36626         * tests/test-ctype.c: Likewise.
36627         * tests/test-dirent.c: Likewise.
36628         * tests/test-spawn.c: Likewise.
36629         * tests/test-sys_file.c: Likewise.
36630         * tests/test-sys_ioctl.c: Likewise.
36631         * tests/test-sys_wait.c: Likewise.
36632         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36633         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36634         whether or not flock is in use.
36635
36636         tests: remove License section from module
36637         * modules/arpa_inet-tests: Remove unneeded section.
36638         * modules/byteswap-tests: Likewise.
36639         * modules/ceilf-tests: Likewise.
36640         * modules/ceill-tests: Likewise.
36641         * modules/crypto/des-tests: Likewise.
36642         * modules/crypto/gc-arcfour-tests: Likewise.
36643         * modules/crypto/gc-arctwo-tests: Likewise.
36644         * modules/crypto/gc-des-tests: Likewise.
36645         * modules/crypto/gc-hmac-md5-tests: Likewise.
36646         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36647         * modules/crypto/gc-md2-tests: Likewise.
36648         * modules/crypto/gc-md4-tests: Likewise.
36649         * modules/crypto/gc-md5-tests: Likewise.
36650         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36651         * modules/crypto/gc-rijndael-tests: Likewise.
36652         * modules/crypto/gc-sha1-tests: Likewise.
36653         * modules/crypto/gc-tests: Likewise.
36654         * modules/crypto/md2-tests: Likewise.
36655         * modules/crypto/md4-tests: Likewise.
36656         * modules/fcntl-h-tests: Likewise.
36657         * modules/floorf-tests: Likewise.
36658         * modules/floorl-tests: Likewise.
36659         * modules/frexp-nolibm-tests: Likewise.
36660         * modules/frexp-tests: Likewise.
36661         * modules/frexpl-nolibm-tests: Likewise.
36662         * modules/frexpl-tests: Likewise.
36663         * modules/getaddrinfo-tests: Likewise.
36664         * modules/inttypes-tests: Likewise.
36665         * modules/isfinite-tests: Likewise.
36666         * modules/isinf-tests: Likewise.
36667         * modules/ldexpl-tests: Likewise.
36668         * modules/locale-tests: Likewise.
36669         * modules/math-tests: Likewise.
36670         * modules/netdb-tests: Likewise.
36671         * modules/netinet_in-tests: Likewise.
36672         * modules/printf-frexp-tests: Likewise.
36673         * modules/printf-frexpl-tests: Likewise.
36674         * modules/priv-set-tests: Likewise.
36675         * modules/random_r-tests: Likewise.
36676         * modules/round-tests: Likewise.
36677         * modules/roundf-tests: Likewise.
36678         * modules/roundl-tests: Likewise.
36679         * modules/search-tests: Likewise.
36680         * modules/select-tests: Likewise.
36681         * modules/signal-tests: Likewise.
36682         * modules/stdbool-tests: Likewise.
36683         * modules/stddef-tests: Likewise.
36684         * modules/stdint-tests: Likewise.
36685         * modules/stdio-tests: Likewise.
36686         * modules/stdlib-tests: Likewise.
36687         * modules/string-tests: Likewise.
36688         * modules/strings-tests: Likewise.
36689         * modules/sys_select-tests: Likewise.
36690         * modules/sys_socket-tests: Likewise.
36691         * modules/sys_stat-tests: Likewise.
36692         * modules/sys_time-tests: Likewise.
36693         * modules/sys_utsname-tests: Likewise.
36694         * modules/sysexits-tests: Likewise.
36695         * modules/time-tests: Likewise.
36696         * modules/trunc-tests: Likewise.
36697         * modules/truncf-tests: Likewise.
36698         * modules/truncl-tests: Likewise.
36699         * modules/tsearch-tests: Likewise.
36700         * modules/unistd-tests: Likewise.
36701         * modules/wchar-tests: Likewise.
36702         * modules/wctype-tests: Likewise.
36703
36704         tests: fix license on several tests
36705         * tests/test-des.c: Update to GPLv3+.
36706         * tests/test-flock.c: Likewise.
36707         * tests/test-fsync.c: Likewise.
36708         * tests/test-futimens.h: Likewise.
36709         * tests/test-gc-arcfour.c: Likewise.
36710         * tests/test-gc-arctwo.c: Likewise.
36711         * tests/test-gc-des.c: Likewise.
36712         * tests/test-gc-hmac-md5.c: Likewise.
36713         * tests/test-gc-hmac-sha1.c: Likewise.
36714         * tests/test-gc-md2.c: Likewise.
36715         * tests/test-gc-md4.c: Likewise.
36716         * tests/test-gc-md5.c: Likewise.
36717         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36718         * tests/test-gc-rijndael.c: Likewise.
36719         * tests/test-gc-sha1.c: Likewise.
36720         * tests/test-gc.c: Likewise.
36721         * tests/test-getcwd.c: Likewise.
36722         * tests/test-link.c: Likewise.
36723         * tests/test-link.h: Likewise.
36724         * tests/test-lutimens.h: Likewise.
36725         * tests/test-md2.c: Likewise.
36726         * tests/test-md4.c: Likewise.
36727         * tests/test-mkdir.h: Likewise.
36728         * tests/test-rename.c: Likewise.
36729         * tests/test-rename.h: Likewise.
36730         * tests/test-safe-alloc.c: Likewise.
36731         * tests/test-utimens-common.h: Likewise.
36732         * tests/test-utimens.h: Likewise.
36733
36734         maint: sync license texts
36735         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36736         * doc/gpl-3.0.texi: Revert copyright year update.
36737         * doc/lgpl-3.0.texi: Likewise.
36738
36739 2009-12-29  Jim Meyering  <meyering@redhat.com>
36740
36741         update nearly all FSF copyright year lists to include 2009
36742         The files named by the following are exempted:
36743             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36744               test -f "$dst" && { echo "$dst"; continue; }
36745               test -d "$dst" || continue
36746               echo "$dst"/$(basename "$src")
36747             done > exempt
36748             git ls-files tests/unictype >> exempt
36749         In the remaining files, convert to all-interval notation if
36750         - there is already at least one year interval like 2000-2003
36751         - the file is maintained by me
36752         - the file is in lib/uni*/, where that style already prevails
36753         Otherwise, use update-copyright's default.
36754
36755 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36756         and Eric Blake  <ebb9@byu.net>
36757
36758         tests: don't require debug system() to pass
36759         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36760         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36761         * tests/test-unlink.h (test_unlink_func): Likewise.
36762         * tests/test-fstatat.c (main): ...into callers.
36763         * tests/test-lstat.c (main): Likewise.
36764         * tests/test-rmdir.c (main): Likewise.
36765         * tests/test-unlink.c (main): Likewise.
36766         * tests/test-unlinkat.c (main): Likewise.
36767         * tests/test-areadlink-with-size.c (main): Don't require a
36768         debug-only system call to pass, aiding cross-testing to mingw.
36769         * tests/test-areadlink.c (main): Likewise.
36770         * tests/test-areadlinkat-with-size.c (main): Likewise.
36771         * tests/test-areadlinkat.c (main): Likewise.
36772         * tests/test-canonicalize-lgpl.c (main): Likewise.
36773         * tests/test-canonicalize.c (main): Likewise.
36774         * tests/test-chown.c (main): Likewise.
36775         * tests/test-fchownat.c (main): Likewise.
36776         * tests/test-lchown.c (main): Likewise.
36777         * tests/test-fdutimensat.c (main): Likewise.
36778         * tests/test-futimens.c (main): Likewise.
36779         * tests/test-link.c (main): Likewise.
36780         * tests/test-linkat.c (main): Likewise.
36781         * tests/test-mkdir.c (main): Likewise.
36782         * tests/test-mkdirat.c (main): Likewise.
36783         * tests/test-mkfifo.c (main): Likewise.
36784         * tests/test-mkfifoat.c (main): Likewise.
36785         * tests/test-mknod.c (main): Likewise.
36786         * tests/test-readlink.c (main): Likewise.
36787         * tests/test-remove.c (main): Likewise.
36788         * tests/test-rename.c (main): Likewise.
36789         * tests/test-renameat.c (main): Likewise.
36790         * tests/test-symlink.c (main): Likewise.
36791         * tests/test-symlinkat.c (main): Likewise.
36792         * tests/test-utimens.c (main): Likewise.
36793         * tests/test-utimensat.c (main): Likewise.
36794
36795 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36796
36797         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36798         on $(UNUSED_PARAMETER_H) to avoid build failure.
36799
36800 2009-12-28  Jim Meyering  <meyering@redhat.com>
36801
36802         update-copyright: you may specify a max. line length other than 72
36803         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36804
36805         maint: use consistent FSF copyright line syntax
36806         * lib/posixtm.c: Add missing comma in FSF copyright line.
36807         * lib/posixtm.h: Likewise.
36808         * lib/getugroups.c: Add missing ", Inc.".
36809
36810         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36811         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36812         FSF copyright line.  Remove trailing blanks.
36813
36814 2009-12-28  Eric Blake  <ebb9@byu.net>
36815
36816         test-dup2: reduce dependencies
36817         * modules/cloexec (Configure.ac): Set witness.
36818         * modules/dup2-tests (Depends-on): Drop cloexec.
36819         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36820         not present.
36821         Suggested by Bruno Haible.
36822
36823 2009-12-26  Bruno Haible  <bruno@clisp.org>
36824
36825         Remove an unneeded dependency.
36826         * modules/fseterr (Depends-on): Remove dup2.
36827
36828 2009-12-26  Eric Blake  <ebb9@byu.net>
36829
36830         tests: use macros.h in more places
36831         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36832         (ASSERT_STREAM): Provide default of stderr.
36833         * tests/test-dirent-safer.c: Include macros.h, using alternate
36834         stream for assertions.
36835         * tests/test-dup-safer.c: Likewise.
36836         * tests/test-freopen-safer.c: Likewise.
36837         * tests/test-getopt.c: Likewise.
36838         * tests/test-openat-safer.c: Likewise.
36839         * tests/test-pipe.c: Likewise.
36840         * tests/test-popen-safer.c: Likewise.
36841         * modules/dirent-safer-tests (Files): Include macros.h.
36842         * modules/unistd-safer-tests (Files): Likewise.
36843         * modules/freopen-safer-tests (Files): Likewise.
36844         * modules/getopt-posix-tests (Files): Likewise.
36845         * modules/openat-safer-tests (Files): Likewise.
36846         * modules/pipe-tests (Files): Likewise.
36847
36848 2009-12-26  Bruno Haible  <bruno@clisp.org>
36849
36850         javacomp: Portability fix.
36851         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36852         that it also works on Solaris.
36853
36854 2009-12-26  Bruno Haible  <bruno@clisp.org>
36855
36856         localename: Fix storage allocation of gl_locale_name_thread's result.
36857         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36858         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36859         all platforms that have 'uselocale'.
36860         (gl_locale_name_thread_unsafe): New function, extracted from
36861         gl_locale_name_thread.
36862         (gl_locale_name_thread): Call struniq on all platforms that have
36863         'uselocale'.
36864         * tests/test-localename.c (test_locale_name_thread): Check that the
36865         resulting strings are permanently allocated.
36866         * modules/localename-tests (Depends-on): Add strdup.
36867
36868 2009-12-26  Bruno Haible  <bruno@clisp.org>
36869
36870         * tests/test-localename.c (categories): Fill in the strings.
36871
36872 2009-12-26  Jim Meyering  <meyering@redhat.com>
36873
36874         isdir: complete the removal of m4/isdir.m4
36875         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36876
36877         isdir: clean up, since at least grep still uses it
36878         * lib/isdir.c: Include "isdir.h".
36879         (S_ISDIR): Remove now-unneeded definition.
36880         * modules/isdir (Files): Add lib/isdir.h.
36881         * lib/isdir.h: New file, with declaration.
36882         * m4/isdir.m4: Remove file -- unneeded.
36883
36884 2009-12-25  Bruno Haible  <bruno@clisp.org>
36885
36886         selinux-h: Make generated .h files standalone.
36887         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36888         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36889         * lib/se-selinux.in.h: Likewise.
36890         * modules/selinux-h (Depends-on): Add unused-parameter.
36891         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36892         selinux/selinux.h and selinux/context.h.
36893         Suggested by Eric Blake.
36894
36895 2009-12-25  Bruno Haible  <bruno@clisp.org>
36896
36897         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36898         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36899         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36900         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36901         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36902
36903 2009-12-24  Bruno Haible  <bruno@clisp.org>
36904
36905         openat: Fix warning.
36906         * lib/openat-proc.c: Include <unistd.h>.
36907
36908 2009-12-24  Bruno Haible  <bruno@clisp.org>
36909
36910         New module 'unused-parameter'.
36911         * build-aux/unused-parameter.h: New file, extracted from earlier
36912         gnulib-common.m4.
36913         * modules/unused-parameter: New file.
36914         * lib/unistr.h: Include unused-parameter.h.
36915         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36916         _GL_UNUSED.
36917         * modules/unistr/base (Depends-on): Add unused-parameter.
36918
36919 2009-12-24  Bruno Haible  <bruno@clisp.org>
36920
36921         Add missing dependencies to 'extensions' module.
36922         * m4/extensions.m4: Add comment.
36923         * modules/accept4 (Depends-on): Add extensions.
36924         * modules/dup3 (Depends-on): Likewise.
36925         * modules/fcntl (Depends-on): Likewise.
36926         * modules/futimens (Depends-on): Likewise.
36927         * modules/mknod (Depends-on): Likewise.
36928         * modules/pipe2 (Depends-on): Likewise.
36929         * modules/stat-time (Depends-on): Likewise.
36930         * modules/strcasestr-simple (Depends-on): Likewise.
36931         * modules/strsignal (Depends-on): Likewise.
36932         * modules/utimensat (Depends-on): Likewise.
36933         * modules/localcharset (Depends-on): Likewise. Needed because of
36934         gl_FCNTL_O_FLAGS.
36935         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36936         AC_TYPE_MBSTATE_T.
36937         * modules/wcsnrtombs (Depends-on): Likewise.
36938         * modules/wcsrtombs (Depends-on): Likewise.
36939
36940 2009-12-24  Bruno Haible  <bruno@clisp.org>
36941
36942         binary-io: Avoid gcc warning due to SET_BINARY.
36943         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36944         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36945
36946 2009-12-24  Bruno Haible  <bruno@clisp.org>
36947
36948         Avoid future namespace pollution on glibc systems.
36949         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36950         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36951         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36952         glibc systems.
36953
36954 2009-12-24  Bruno Haible  <bruno@clisp.org>
36955
36956         Refactor common macros used in tests.
36957         * tests/macros.h: New file.
36958         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36959         and/or <stdlib.h>, if appropriate.
36960         (ASSERT, SIZEOF): Remove macros.
36961         * tests/test-areadlink-with-size.c: Likewise.
36962         * tests/test-areadlinkat.c: Likewise.
36963         * tests/test-areadlinkat-with-size.c: Likewise.
36964         * tests/test-argmatch.c: Likewise.
36965         * tests/test-argv-iter.c: Likewise.
36966         * tests/test-array-mergesort.c: Likewise.
36967         * tests/test-array_list.c: Likewise.
36968         * tests/test-array_oset.c: Likewise.
36969         * tests/test-avltree_list.c: Likewise.
36970         * tests/test-avltree_oset.c: Likewise.
36971         * tests/test-avltreehash_list.c: Likewise.
36972         * tests/test-base64.c: Likewise.
36973         * tests/test-binary-io.c: Likewise.
36974         * tests/test-bitrotate.c: Likewise.
36975         * tests/test-btowc.c: Likewise.
36976         * tests/test-byteswap.c: Likewise.
36977         * tests/test-c-ctype.c: Likewise.
36978         * tests/test-c-stack.c: Likewise.
36979         * tests/test-c-strcasecmp.c: Likewise.
36980         * tests/test-c-strcasestr.c: Likewise.
36981         * tests/test-c-strncasecmp.c: Likewise.
36982         * tests/test-c-strstr.c: Likewise.
36983         * tests/test-canonicalize-lgpl.c: Likewise.
36984         * tests/test-canonicalize.c: Likewise.
36985         * tests/test-carray_list.c: Likewise.
36986         * tests/test-ceilf1.c: Likewise.
36987         * tests/test-ceilf2.c: Likewise.
36988         * tests/test-ceill.c: Likewise.
36989         * tests/test-chown.c: Likewise.
36990         * tests/test-cloexec.c: Likewise.
36991         * tests/test-copy-acl.c: Likewise.
36992         * tests/test-copy-file.c: Likewise.
36993         * tests/test-count-one-bits.c: Likewise.
36994         * tests/test-dprintf-posix.c: Likewise.
36995         * tests/test-dup2.c: Likewise.
36996         * tests/test-dup3.c: Likewise.
36997         * tests/test-duplocale.c: Likewise.
36998         * tests/test-fbufmode.c: Likewise.
36999         * tests/test-fchdir.c: Likewise.
37000         * tests/test-fchownat.c: Likewise.
37001         * tests/test-fcntl-safer.c: Likewise.
37002         * tests/test-fcntl.c: Likewise.
37003         * tests/test-fdopendir.c: Likewise.
37004         * tests/test-fdutimensat.c: Likewise.
37005         * tests/test-fflush2.c: Likewise.
37006         * tests/test-file-has-acl.c: Likewise.
37007         * tests/test-filevercmp.c: Likewise.
37008         * tests/test-flock.c: Likewise.
37009         * tests/test-floorf1.c: Likewise.
37010         * tests/test-floorf2.c: Likewise.
37011         * tests/test-floorl.c: Likewise.
37012         * tests/test-fnmatch.c: Likewise.
37013         * tests/test-fopen.h: Likewise.
37014         * tests/test-fpending.c: Likewise.
37015         * tests/test-fprintf-posix.c: Likewise.
37016         * tests/test-fpurge.c: Likewise.
37017         * tests/test-freadable.c: Likewise.
37018         * tests/test-freadahead.c: Likewise.
37019         * tests/test-freading.c: Likewise.
37020         * tests/test-freadptr.c: Likewise.
37021         * tests/test-freadptr2.c: Likewise.
37022         * tests/test-freadseek.c: Likewise.
37023         * tests/test-freopen.c: Likewise.
37024         * tests/test-frexp.c: Likewise.
37025         * tests/test-frexpl.c: Likewise.
37026         * tests/test-fseek.c: Likewise.
37027         * tests/test-fseeko.c: Likewise.
37028         * tests/test-fstatat.c: Likewise.
37029         * tests/test-fstrcmp.c: Likewise.
37030         * tests/test-fsync.c: Likewise.
37031         * tests/test-ftell.c: Likewise.
37032         * tests/test-ftello.c: Likewise.
37033         * tests/test-func.c: Likewise.
37034         * tests/test-futimens.c: Likewise.
37035         * tests/test-fwritable.c: Likewise.
37036         * tests/test-fwriting.c: Likewise.
37037         * tests/test-getcwd.c: Likewise.
37038         * tests/test-getdate.c: Likewise.
37039         * tests/test-getdelim.c: Likewise.
37040         * tests/test-getdtablesize.c: Likewise.
37041         * tests/test-getgroups.c: Likewise.
37042         * tests/test-getline.c: Likewise.
37043         * tests/test-getndelim2.c: Likewise.
37044         * tests/test-glob.c: Likewise.
37045         * tests/test-hash.c: Likewise.
37046         * tests/test-i-ring.c: Likewise.
37047         * tests/test-iconv-utf.c: Likewise.
37048         * tests/test-iconv.c: Likewise.
37049         * tests/test-idpriv-drop.c: Likewise.
37050         * tests/test-idpriv-droptemp.c: Likewise.
37051         * tests/test-inet_ntop.c: Likewise.
37052         * tests/test-inet_pton.c: Likewise.
37053         * tests/test-isblank.c: Likewise.
37054         * tests/test-isfinite.c: Likewise.
37055         * tests/test-isinf.c: Likewise.
37056         * tests/test-isnan.c: Likewise.
37057         * tests/test-isnand.h: Likewise.
37058         * tests/test-isnanf.h: Likewise.
37059         * tests/test-isnanl.h: Likewise.
37060         * tests/test-lchown.c: Likewise.
37061         * tests/test-ldexpl.c: Likewise.
37062         * tests/test-link.c: Likewise.
37063         * tests/test-linkat.c: Likewise.
37064         * tests/test-linked_list.c: Likewise.
37065         * tests/test-linkedhash_list.c: Likewise.
37066         * tests/test-localename.c: Likewise.
37067         * tests/test-lseek.c: Likewise.
37068         * tests/test-lstat.c: Likewise.
37069         * tests/test-mbmemcasecmp.c: Likewise.
37070         * tests/test-mbmemcasecoll.c: Likewise.
37071         * tests/test-mbrtowc.c: Likewise.
37072         * tests/test-mbscasecmp.c: Likewise.
37073         * tests/test-mbscasestr1.c: Likewise.
37074         * tests/test-mbscasestr2.c: Likewise.
37075         * tests/test-mbscasestr3.c: Likewise.
37076         * tests/test-mbscasestr4.c: Likewise.
37077         * tests/test-mbschr.c: Likewise.
37078         * tests/test-mbscspn.c: Likewise.
37079         * tests/test-mbsinit.c: Likewise.
37080         * tests/test-mbsncasecmp.c: Likewise.
37081         * tests/test-mbsnrtowcs.c: Likewise.
37082         * tests/test-mbspbrk.c: Likewise.
37083         * tests/test-mbspcasecmp.c: Likewise.
37084         * tests/test-mbsrchr.c: Likewise.
37085         * tests/test-mbsrtowcs.c: Likewise.
37086         * tests/test-mbsspn.c: Likewise.
37087         * tests/test-mbsstr1.c: Likewise.
37088         * tests/test-mbsstr2.c: Likewise.
37089         * tests/test-mbsstr3.c: Likewise.
37090         * tests/test-memchr.c: Likewise.
37091         * tests/test-memchr2.c: Likewise.
37092         * tests/test-memcmp.c: Likewise.
37093         * tests/test-memmem.c: Likewise.
37094         * tests/test-memrchr.c: Likewise.
37095         * tests/test-mkdir.c: Likewise.
37096         * tests/test-mkdirat.c: Likewise.
37097         * tests/test-mkfifo.c: Likewise.
37098         * tests/test-mkfifoat.c: Likewise.
37099         * tests/test-mknod.c: Likewise.
37100         * tests/test-nanosleep.c: Likewise.
37101         * tests/test-nl_langinfo.c: Likewise.
37102         * tests/test-obstack-printf.c: Likewise.
37103         * tests/test-open.c: Likewise.
37104         * tests/test-openat.c: Likewise.
37105         * tests/test-pipe-filter-gi1.c: Likewise.
37106         * tests/test-pipe-filter-gi2-main.c: Likewise.
37107         * tests/test-pipe-filter-ii1.c: Likewise.
37108         * tests/test-pipe-filter-ii2-main.c: Likewise.
37109         * tests/test-pipe2.c: Likewise.
37110         * tests/test-popen.h: Likewise.
37111         * tests/test-posixtm.c: Likewise.
37112         * tests/test-pread.c: Likewise.
37113         * tests/test-printf-frexp.c: Likewise.
37114         * tests/test-printf-frexpl.c: Likewise.
37115         * tests/test-printf-posix.c: Likewise.
37116         * tests/test-priv-set.c: Likewise.
37117         * tests/test-quotearg.c: Likewise.
37118         * tests/test-random_r.c: Likewise.
37119         * tests/test-rawmemchr.c: Likewise.
37120         * tests/test-rbtree_list.c: Likewise.
37121         * tests/test-rbtree_oset.c: Likewise.
37122         * tests/test-rbtreehash_list.c: Likewise.
37123         * tests/test-readlink.c: Likewise.
37124         * tests/test-remove.c: Likewise.
37125         * tests/test-rename.c: Likewise.
37126         * tests/test-renameat.c: Likewise.
37127         * tests/test-rmdir.c: Likewise.
37128         * tests/test-round1.c: Likewise.
37129         * tests/test-roundf1.c: Likewise.
37130         * tests/test-roundl.c: Likewise.
37131         * tests/test-safe-alloc.c: Likewise.
37132         * tests/test-sameacls.c: Likewise.
37133         * tests/test-set-mode-acl.c: Likewise.
37134         * tests/test-setenv.c: Likewise.
37135         * tests/test-sigaction.c: Likewise.
37136         * tests/test-signbit.c: Likewise.
37137         * tests/test-sleep.c: Likewise.
37138         * tests/test-snprintf-posix.c: Likewise.
37139         * tests/test-snprintf.c: Likewise.
37140         * tests/test-sprintf-posix.c: Likewise.
37141         * tests/test-stat-time.c: Likewise.
37142         * tests/test-stat.c: Likewise.
37143         * tests/test-strcasestr.c: Likewise.
37144         * tests/test-strchrnul.c: Likewise.
37145         * tests/test-strerror.c: Likewise.
37146         * tests/test-striconv.c: Likewise.
37147         * tests/test-striconveh.c: Likewise.
37148         * tests/test-striconveha.c: Likewise.
37149         * tests/test-strsignal.c: Likewise.
37150         * tests/test-strstr.c: Likewise.
37151         * tests/test-strtod.c: Likewise.
37152         * tests/test-strverscmp.c: Likewise.
37153         * tests/test-symlink.c: Likewise.
37154         * tests/test-symlinkat.c: Likewise.
37155         * tests/test-trunc1.c: Likewise.
37156         * tests/test-trunc2.c: Likewise.
37157         * tests/test-truncf1.c: Likewise.
37158         * tests/test-truncf2.c: Likewise.
37159         * tests/test-truncl.c: Likewise.
37160         * tests/test-uname.c: Likewise.
37161         * tests/test-unlink.c: Likewise.
37162         * tests/test-unlinkat.c: Likewise.
37163         * tests/test-unsetenv.c: Likewise.
37164         * tests/test-usleep.c: Likewise.
37165         * tests/test-utimens.c: Likewise.
37166         * tests/test-utimensat.c: Likewise.
37167         * tests/test-vasnprintf-posix.c: Likewise.
37168         * tests/test-vasnprintf-posix2.c: Likewise.
37169         * tests/test-vasnprintf.c: Likewise.
37170         * tests/test-vasprintf-posix.c: Likewise.
37171         * tests/test-vasprintf.c: Likewise.
37172         * tests/test-vdprintf-posix.c: Likewise.
37173         * tests/test-vfprintf-posix.c: Likewise.
37174         * tests/test-vprintf-posix.c: Likewise.
37175         * tests/test-vsnprintf-posix.c: Likewise.
37176         * tests/test-vsnprintf.c: Likewise.
37177         * tests/test-vsprintf-posix.c: Likewise.
37178         * tests/test-wcrtomb.c: Likewise.
37179         * tests/test-wcsnrtombs.c: Likewise.
37180         * tests/test-wcsrtombs.c: Likewise.
37181         * tests/test-wctype.c: Likewise.
37182         * tests/test-wcwidth.c: Likewise.
37183         * tests/test-xfprintf-posix.c: Likewise.
37184         * tests/test-xmemdup0.c: Likewise.
37185         * tests/test-xprintf-posix.c: Likewise.
37186         * tests/test-xvasprintf.c: Likewise.
37187         * tests/unicase/test-locale-language.c: Likewise.
37188         * tests/unicase/test-mapping-part1.h: Likewise.
37189         * tests/unicase/test-predicate-part1.h: Likewise.
37190         * tests/unicase/test-u8-casecmp.c: Likewise.
37191         * tests/unicase/test-u8-casecoll.c: Likewise.
37192         * tests/unicase/test-u8-casefold.c: Likewise.
37193         * tests/unicase/test-u8-is-cased.c: Likewise.
37194         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37195         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37196         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37197         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37198         * tests/unicase/test-u8-tolower.c: Likewise.
37199         * tests/unicase/test-u8-totitle.c: Likewise.
37200         * tests/unicase/test-u8-toupper.c: Likewise.
37201         * tests/unicase/test-u16-casecmp.c: Likewise.
37202         * tests/unicase/test-u16-casecoll.c: Likewise.
37203         * tests/unicase/test-u16-casefold.c: Likewise.
37204         * tests/unicase/test-u16-is-cased.c: Likewise.
37205         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37206         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37207         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37208         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37209         * tests/unicase/test-u16-tolower.c: Likewise.
37210         * tests/unicase/test-u16-totitle.c: Likewise.
37211         * tests/unicase/test-u16-toupper.c: Likewise.
37212         * tests/unicase/test-u32-casecmp.c: Likewise.
37213         * tests/unicase/test-u32-casecoll.c: Likewise.
37214         * tests/unicase/test-u32-casefold.c: Likewise.
37215         * tests/unicase/test-u32-is-cased.c: Likewise.
37216         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37217         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37218         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37219         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37220         * tests/unicase/test-u32-tolower.c: Likewise.
37221         * tests/unicase/test-u32-totitle.c: Likewise.
37222         * tests/unicase/test-u32-toupper.c: Likewise.
37223         * tests/unicase/test-ulc-casecmp.c: Likewise.
37224         * tests/unicase/test-ulc-casecoll.c: Likewise.
37225         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37226         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37227         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37228         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37229         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37230         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37231         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37232         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37233         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37234         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37235         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37236         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37237         * tests/unictype/test-bidi_byname.c: Likewise.
37238         * tests/unictype/test-bidi_name.c: Likewise.
37239         * tests/unictype/test-bidi_of.c: Likewise.
37240         * tests/unictype/test-bidi_test.c: Likewise.
37241         * tests/unictype/test-block_list.c: Likewise.
37242         * tests/unictype/test-block_of.c: Likewise.
37243         * tests/unictype/test-block_test.c: Likewise.
37244         * tests/unictype/test-categ_and.c: Likewise.
37245         * tests/unictype/test-categ_and_not.c: Likewise.
37246         * tests/unictype/test-categ_byname.c: Likewise.
37247         * tests/unictype/test-categ_name.c: Likewise.
37248         * tests/unictype/test-categ_none.c: Likewise.
37249         * tests/unictype/test-categ_of.c: Likewise.
37250         * tests/unictype/test-categ_or.c: Likewise.
37251         * tests/unictype/test-categ_test_withtable.c: Likewise.
37252         * tests/unictype/test-combining.c: Likewise.
37253         * tests/unictype/test-decdigit.c: Likewise.
37254         * tests/unictype/test-digit.c: Likewise.
37255         * tests/unictype/test-mirror.c: Likewise.
37256         * tests/unictype/test-numeric.c: Likewise.
37257         * tests/unictype/test-pr_byname.c: Likewise.
37258         * tests/unictype/test-pr_test.c: Likewise.
37259         * tests/unictype/test-predicate-part1.h: Likewise.
37260         * tests/unictype/test-scripts.c: Likewise.
37261         * tests/unictype/test-sy_c_ident.c: Likewise.
37262         * tests/unictype/test-sy_java_ident.c: Likewise.
37263         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37264         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37265         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37266         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37267         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37268         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37269         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37270         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37271         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37272         * tests/uninorm/test-compat-decomposition.c: Likewise.
37273         * tests/uninorm/test-composition.c: Likewise.
37274         * tests/uninorm/test-decomposing-form.c: Likewise.
37275         * tests/uninorm/test-decomposition.c: Likewise.
37276         * tests/uninorm/test-u8-nfc.c: Likewise.
37277         * tests/uninorm/test-u8-nfd.c: Likewise.
37278         * tests/uninorm/test-u8-nfkc.c: Likewise.
37279         * tests/uninorm/test-u8-nfkd.c: Likewise.
37280         * tests/uninorm/test-u8-normcmp.c: Likewise.
37281         * tests/uninorm/test-u8-normcoll.c: Likewise.
37282         * tests/uninorm/test-u16-nfc.c: Likewise.
37283         * tests/uninorm/test-u16-nfd.c: Likewise.
37284         * tests/uninorm/test-u16-nfkc.c: Likewise.
37285         * tests/uninorm/test-u16-nfkd.c: Likewise.
37286         * tests/uninorm/test-u16-normcmp.c: Likewise.
37287         * tests/uninorm/test-u16-normcoll.c: Likewise.
37288         * tests/uninorm/test-u32-nfc.c: Likewise.
37289         * tests/uninorm/test-u32-nfd.c: Likewise.
37290         * tests/uninorm/test-u32-nfkc.c: Likewise.
37291         * tests/uninorm/test-u32-nfkd.c: Likewise.
37292         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37293         * tests/uninorm/test-u32-normcmp.c: Likewise.
37294         * tests/uninorm/test-u32-normcoll.c: Likewise.
37295         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37296         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37297         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37298         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37299         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37300         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37301         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37302         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37303         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37304         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37305         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37306         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37307         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37308         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37309         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37310         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37311         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37312         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37313         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37314         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37315         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37316         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37317         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37318         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37319         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37320         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37321         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37322         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37323         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37324         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37325         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37326         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37327         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37328         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37329         * tests/uniwidth/test-u8-width.c: Likewise.
37330         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37331         * tests/uniwidth/test-u16-width.c: Likewise.
37332         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37333         * tests/uniwidth/test-u32-width.c: Likewise.
37334         * tests/uniwidth/test-uc_width.c: Likewise.
37335         * tests/uniwidth/test-uc_width2.c: Likewise.
37336         * modules/acl-tests (Files): Add tests/macros.h.
37337         * modules/areadlink-tests (Files): Likewise.
37338         * modules/areadlink-with-size-tests (Files): Likewise.
37339         * modules/areadlinkat-tests (Files): Likewise.
37340         * modules/areadlinkat-with-size-tests (Files): Likewise.
37341         * modules/argmatch-tests (Files): Likewise.
37342         * modules/argv-iter-tests (Files): Likewise.
37343         * modules/array-list-tests (Files): Likewise.
37344         * modules/array-mergesort-tests (Files): Likewise.
37345         * modules/array-oset-tests (Files): Likewise.
37346         * modules/avltree-list-tests (Files): Likewise.
37347         * modules/avltree-oset-tests (Files): Likewise.
37348         * modules/avltreehash-list-tests (Files): Likewise.
37349         * modules/base64-tests (Files): Likewise.
37350         * modules/binary-io-tests (Files): Likewise.
37351         * modules/bitrotate-tests (Files): Likewise.
37352         * modules/btowc-tests (Files): Likewise.
37353         * modules/byteswap-tests (Files): Likewise.
37354         * modules/c-ctype-tests (Files): Likewise.
37355         * modules/c-stack-tests (Files): Likewise.
37356         * modules/c-strcase-tests (Files): Likewise.
37357         * modules/c-strcasestr-tests (Files): Likewise.
37358         * modules/c-strstr-tests (Files): Likewise.
37359         * modules/canonicalize-lgpl-tests (Files): Likewise.
37360         * modules/canonicalize-tests (Files): Likewise.
37361         * modules/carray-list-tests (Files): Likewise.
37362         * modules/ceilf-tests (Files): Likewise.
37363         * modules/ceill-tests (Files): Likewise.
37364         * modules/chown-tests (Files): Likewise.
37365         * modules/cloexec-tests (Files): Likewise.
37366         * modules/copy-file-tests (Files): Likewise.
37367         * modules/count-one-bits-tests (Files): Likewise.
37368         * modules/dprintf-posix-tests (Files): Likewise.
37369         * modules/dup2-tests (Files): Likewise.
37370         * modules/dup3-tests (Files): Likewise.
37371         * modules/duplocale-tests (Files): Likewise.
37372         * modules/fbufmode-tests (Files): Likewise.
37373         * modules/fchdir-tests (Files): Likewise.
37374         * modules/fcntl-safer-tests (Files): Likewise.
37375         * modules/fcntl-tests (Files): Likewise.
37376         * modules/fdopendir-tests (Files): Likewise.
37377         * modules/fdutimensat-tests (Files): Likewise.
37378         * modules/fflush-tests (Files): Likewise.
37379         * modules/filevercmp-tests (Files): Likewise.
37380         * modules/flock-tests (Files): Likewise.
37381         * modules/floorf-tests (Files): Likewise.
37382         * modules/floorl-tests (Files): Likewise.
37383         * modules/fnmatch-tests (Files): Likewise.
37384         * modules/fopen-safer-tests (Files): Likewise.
37385         * modules/fopen-tests (Files): Likewise.
37386         * modules/fpending-tests (Files): Likewise.
37387         * modules/fprintf-posix-tests (Files): Likewise.
37388         * modules/fpurge-tests (Files): Likewise.
37389         * modules/freadable-tests (Files): Likewise.
37390         * modules/freadahead-tests (Files): Likewise.
37391         * modules/freading-tests (Files): Likewise.
37392         * modules/freadptr-tests (Files): Likewise.
37393         * modules/freadseek-tests (Files): Likewise.
37394         * modules/freopen-tests (Files): Likewise.
37395         * modules/frexp-nolibm-tests (Files): Likewise.
37396         * modules/frexp-tests (Files): Likewise.
37397         * modules/frexpl-nolibm-tests (Files): Likewise.
37398         * modules/frexpl-tests (Files): Likewise.
37399         * modules/fseek-tests (Files): Likewise.
37400         * modules/fseeko-tests (Files): Likewise.
37401         * modules/fstrcmp-tests (Files): Likewise.
37402         * modules/fsync-tests (Files): Likewise.
37403         * modules/ftell-tests (Files): Likewise.
37404         * modules/ftello-tests (Files): Likewise.
37405         * modules/func-tests (Files): Likewise.
37406         * modules/futimens-tests (Files): Likewise.
37407         * modules/fwritable-tests (Files): Likewise.
37408         * modules/fwriting-tests (Files): Likewise.
37409         * modules/getcwd-tests (Files): Likewise.
37410         * modules/getdate-tests (Files): Likewise.
37411         * modules/getdelim-tests (Files): Likewise.
37412         * modules/getdtablesize-tests (Files): Likewise.
37413         * modules/getgroups-tests (Files): Likewise.
37414         * modules/getline-tests (Files): Likewise.
37415         * modules/getndelim2-tests (Files): Likewise.
37416         * modules/glob-tests (Files): Likewise.
37417         * modules/hash-tests (Files): Likewise.
37418         * modules/i-ring-tests (Files): Likewise.
37419         * modules/iconv-tests (Files): Likewise.
37420         * modules/iconv_open-utf-tests (Files): Likewise.
37421         * modules/idpriv-drop-tests (Files): Likewise.
37422         * modules/idpriv-droptemp-tests (Files): Likewise.
37423         * modules/inet_ntop-tests (Files): Likewise.
37424         * modules/inet_pton-tests (Files): Likewise.
37425         * modules/isblank-tests (Files): Likewise.
37426         * modules/isfinite-tests (Files): Likewise.
37427         * modules/isinf-tests (Files): Likewise.
37428         * modules/isnan-tests (Files): Likewise.
37429         * modules/isnand-nolibm-tests (Files): Likewise.
37430         * modules/isnand-tests (Files): Likewise.
37431         * modules/isnanf-nolibm-tests (Files): Likewise.
37432         * modules/isnanf-tests (Files): Likewise.
37433         * modules/isnanl-nolibm-tests (Files): Likewise.
37434         * modules/isnanl-tests (Files): Likewise.
37435         * modules/lchown-tests (Files): Likewise.
37436         * modules/ldexpl-tests (Files): Likewise.
37437         * modules/link-tests (Files): Likewise.
37438         * modules/linkat-tests (Files): Likewise.
37439         * modules/linked-list-tests (Files): Likewise.
37440         * modules/linkedhash-list-tests (Files): Likewise.
37441         * modules/localename-tests (Files): Likewise.
37442         * modules/lseek-tests (Files): Likewise.
37443         * modules/lstat-tests (Files): Likewise.
37444         * modules/mbmemcasecmp-tests (Files): Likewise.
37445         * modules/mbmemcasecoll-tests (Files): Likewise.
37446         * modules/mbrtowc-tests (Files): Likewise.
37447         * modules/mbscasecmp-tests (Files): Likewise.
37448         * modules/mbscasestr-tests (Files): Likewise.
37449         * modules/mbschr-tests (Files): Likewise.
37450         * modules/mbscspn-tests (Files): Likewise.
37451         * modules/mbsinit-tests (Files): Likewise.
37452         * modules/mbsncasecmp-tests (Files): Likewise.
37453         * modules/mbsnrtowcs-tests (Files): Likewise.
37454         * modules/mbspbrk-tests (Files): Likewise.
37455         * modules/mbspcasecmp-tests (Files): Likewise.
37456         * modules/mbsrchr-tests (Files): Likewise.
37457         * modules/mbsrtowcs-tests (Files): Likewise.
37458         * modules/mbsspn-tests (Files): Likewise.
37459         * modules/mbsstr-tests (Files): Likewise.
37460         * modules/memchr-tests (Files): Likewise.
37461         * modules/memchr2-tests (Files): Likewise.
37462         * modules/memcmp-tests (Files): Likewise.
37463         * modules/memmem-tests (Files): Likewise.
37464         * modules/memrchr-tests (Files): Likewise.
37465         * modules/mkdir-tests (Files): Likewise.
37466         * modules/mkfifo-tests (Files): Likewise.
37467         * modules/mkfifoat-tests (Files): Likewise.
37468         * modules/mknod-tests (Files): Likewise.
37469         * modules/nanosleep-tests (Files): Likewise.
37470         * modules/nl_langinfo-tests (Files): Likewise.
37471         * modules/obstack-printf-tests (Files): Likewise.
37472         * modules/open-tests (Files): Likewise.
37473         * modules/openat-tests (Files): Likewise.
37474         * modules/pipe-filter-gi-tests (Files): Likewise.
37475         * modules/pipe-filter-ii-tests (Files): Likewise.
37476         * modules/pipe2-tests (Files): Likewise.
37477         * modules/popen-safer-tests (Files): Likewise.
37478         * modules/popen-tests (Files): Likewise.
37479         * modules/posixtm-tests (Files): Likewise.
37480         * modules/pread-tests (Files): Likewise.
37481         * modules/printf-frexp-tests (Files): Likewise.
37482         * modules/printf-frexpl-tests (Files): Likewise.
37483         * modules/printf-posix-tests (Files): Likewise.
37484         * modules/priv-set-tests (Files): Likewise.
37485         * modules/quotearg-tests (Files): Likewise.
37486         * modules/random_r-tests (Files): Likewise.
37487         * modules/rawmemchr-tests (Files): Likewise.
37488         * modules/rbtree-list-tests (Files): Likewise.
37489         * modules/rbtree-oset-tests (Files): Likewise.
37490         * modules/rbtreehash-list-tests (Files): Likewise.
37491         * modules/readlink-tests (Files): Likewise.
37492         * modules/remove-tests (Files): Likewise.
37493         * modules/rename-tests (Files): Likewise.
37494         * modules/renameat-tests (Files): Likewise.
37495         * modules/rmdir-tests (Files): Likewise.
37496         * modules/round-tests (Files): Likewise.
37497         * modules/roundf-tests (Files): Likewise.
37498         * modules/roundl-tests (Files): Likewise.
37499         * modules/safe-alloc-tests (Files): Likewise.
37500         * modules/setenv-tests (Files): Likewise.
37501         * modules/sigaction-tests (Files): Likewise.
37502         * modules/signbit-tests (Files): Likewise.
37503         * modules/sleep-tests (Files): Likewise.
37504         * modules/snprintf-posix-tests (Files): Likewise.
37505         * modules/snprintf-tests (Files): Likewise.
37506         * modules/sprintf-posix-tests (Files): Likewise.
37507         * modules/stat-tests (Files): Likewise.
37508         * modules/stat-time-tests (Files): Likewise.
37509         * modules/strcasestr-tests (Files): Likewise.
37510         * modules/strchrnul-tests (Files): Likewise.
37511         * modules/strerror-tests (Files): Likewise.
37512         * modules/striconv-tests (Files): Likewise.
37513         * modules/striconveh-tests (Files): Likewise.
37514         * modules/striconveha-tests (Files): Likewise.
37515         * modules/strsignal-tests (Files): Likewise.
37516         * modules/strstr-tests (Files): Likewise.
37517         * modules/strtod-tests (Files): Likewise.
37518         * modules/strverscmp-tests (Files): Likewise.
37519         * modules/symlink-tests (Files): Likewise.
37520         * modules/symlinkat-tests (Files): Likewise.
37521         * modules/trunc-tests (Files): Likewise.
37522         * modules/truncf-tests (Files): Likewise.
37523         * modules/truncl-tests (Files): Likewise.
37524         * modules/uname-tests (Files): Likewise.
37525         * modules/unicase/cased-tests (Files): Likewise.
37526         * modules/unicase/ignorable-tests (Files): Likewise.
37527         * modules/unicase/locale-language-tests (Files): Likewise.
37528         * modules/unicase/tolower-tests (Files): Likewise.
37529         * modules/unicase/totitle-tests (Files): Likewise.
37530         * modules/unicase/toupper-tests (Files): Likewise.
37531         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37532         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37533         * modules/unicase/u8-casefold-tests (Files): Likewise.
37534         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37535         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37536         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37537         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37538         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37539         * modules/unicase/u8-tolower-tests (Files): Likewise.
37540         * modules/unicase/u8-totitle-tests (Files): Likewise.
37541         * modules/unicase/u8-toupper-tests (Files): Likewise.
37542         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37543         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37544         * modules/unicase/u16-casefold-tests (Files): Likewise.
37545         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37546         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37547         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37548         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37549         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37550         * modules/unicase/u16-tolower-tests (Files): Likewise.
37551         * modules/unicase/u16-totitle-tests (Files): Likewise.
37552         * modules/unicase/u16-toupper-tests (Files): Likewise.
37553         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37554         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37555         * modules/unicase/u32-casefold-tests (Files): Likewise.
37556         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37557         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37558         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37559         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37560         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37561         * modules/unicase/u32-tolower-tests (Files): Likewise.
37562         * modules/unicase/u32-totitle-tests (Files): Likewise.
37563         * modules/unicase/u32-toupper-tests (Files): Likewise.
37564         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37565         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37566         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37567         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37568         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37569         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37570         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37571         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37572         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37573         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37574         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37575         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37576         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37577         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37578         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37579         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37580         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37581         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37582         * modules/unictype/block-list-tests (Files): Likewise.
37583         * modules/unictype/block-of-tests (Files): Likewise.
37584         * modules/unictype/block-test-tests (Files): Likewise.
37585         * modules/unictype/category-C-tests (Files): Likewise.
37586         * modules/unictype/category-Cc-tests (Files): Likewise.
37587         * modules/unictype/category-Cf-tests (Files): Likewise.
37588         * modules/unictype/category-Cn-tests (Files): Likewise.
37589         * modules/unictype/category-Co-tests (Files): Likewise.
37590         * modules/unictype/category-Cs-tests (Files): Likewise.
37591         * modules/unictype/category-L-tests (Files): Likewise.
37592         * modules/unictype/category-Ll-tests (Files): Likewise.
37593         * modules/unictype/category-Lm-tests (Files): Likewise.
37594         * modules/unictype/category-Lo-tests (Files): Likewise.
37595         * modules/unictype/category-Lt-tests (Files): Likewise.
37596         * modules/unictype/category-Lu-tests (Files): Likewise.
37597         * modules/unictype/category-M-tests (Files): Likewise.
37598         * modules/unictype/category-Mc-tests (Files): Likewise.
37599         * modules/unictype/category-Me-tests (Files): Likewise.
37600         * modules/unictype/category-Mn-tests (Files): Likewise.
37601         * modules/unictype/category-N-tests (Files): Likewise.
37602         * modules/unictype/category-Nd-tests (Files): Likewise.
37603         * modules/unictype/category-Nl-tests (Files): Likewise.
37604         * modules/unictype/category-No-tests (Files): Likewise.
37605         * modules/unictype/category-P-tests (Files): Likewise.
37606         * modules/unictype/category-Pc-tests (Files): Likewise.
37607         * modules/unictype/category-Pd-tests (Files): Likewise.
37608         * modules/unictype/category-Pe-tests (Files): Likewise.
37609         * modules/unictype/category-Pf-tests (Files): Likewise.
37610         * modules/unictype/category-Pi-tests (Files): Likewise.
37611         * modules/unictype/category-Po-tests (Files): Likewise.
37612         * modules/unictype/category-Ps-tests (Files): Likewise.
37613         * modules/unictype/category-S-tests (Files): Likewise.
37614         * modules/unictype/category-Sc-tests (Files): Likewise.
37615         * modules/unictype/category-Sk-tests (Files): Likewise.
37616         * modules/unictype/category-Sm-tests (Files): Likewise.
37617         * modules/unictype/category-So-tests (Files): Likewise.
37618         * modules/unictype/category-Z-tests (Files): Likewise.
37619         * modules/unictype/category-Zl-tests (Files): Likewise.
37620         * modules/unictype/category-Zp-tests (Files): Likewise.
37621         * modules/unictype/category-Zs-tests (Files): Likewise.
37622         * modules/unictype/category-and-not-tests (Files): Likewise.
37623         * modules/unictype/category-and-tests (Files): Likewise.
37624         * modules/unictype/category-byname-tests (Files): Likewise.
37625         * modules/unictype/category-name-tests (Files): Likewise.
37626         * modules/unictype/category-none-tests (Files): Likewise.
37627         * modules/unictype/category-of-tests (Files): Likewise.
37628         * modules/unictype/category-or-tests (Files): Likewise.
37629         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37630         * modules/unictype/combining-class-tests (Files): Likewise.
37631         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37632         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37633         * modules/unictype/ctype-blank-tests (Files): Likewise.
37634         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37635         * modules/unictype/ctype-digit-tests (Files): Likewise.
37636         * modules/unictype/ctype-graph-tests (Files): Likewise.
37637         * modules/unictype/ctype-lower-tests (Files): Likewise.
37638         * modules/unictype/ctype-print-tests (Files): Likewise.
37639         * modules/unictype/ctype-punct-tests (Files): Likewise.
37640         * modules/unictype/ctype-space-tests (Files): Likewise.
37641         * modules/unictype/ctype-upper-tests (Files): Likewise.
37642         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37643         * modules/unictype/decimal-digit-tests (Files): Likewise.
37644         * modules/unictype/digit-tests (Files): Likewise.
37645         * modules/unictype/mirror-tests (Files): Likewise.
37646         * modules/unictype/numeric-tests (Files): Likewise.
37647         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37648         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37649         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37650         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37651         Likewise.
37652         * modules/unictype/property-bidi-block-separator-tests (Files):
37653         Likewise.
37654         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37655         Likewise.
37656         * modules/unictype/property-bidi-common-separator-tests (Files):
37657         Likewise.
37658         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37659         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37660         Likewise.
37661         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37662         Likewise.
37663         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37664         Likewise.
37665         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37666         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37667         Likewise.
37668         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37669         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37670         Likewise.
37671         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37672         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37673         * modules/unictype/property-bidi-segment-separator-tests (Files):
37674         Likewise.
37675         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37676         * modules/unictype/property-byname-tests (Files): Likewise.
37677         * modules/unictype/property-combining-tests (Files): Likewise.
37678         * modules/unictype/property-composite-tests (Files): Likewise.
37679         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37680         * modules/unictype/property-dash-tests (Files): Likewise.
37681         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37682         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37683         Likewise.
37684         * modules/unictype/property-deprecated-tests (Files): Likewise.
37685         * modules/unictype/property-diacritic-tests (Files): Likewise.
37686         * modules/unictype/property-extender-tests (Files): Likewise.
37687         * modules/unictype/property-format-control-tests (Files): Likewise.
37688         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37689         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37690         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37691         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37692         * modules/unictype/property-hyphen-tests (Files): Likewise.
37693         * modules/unictype/property-id-continue-tests (Files): Likewise.
37694         * modules/unictype/property-id-start-tests (Files): Likewise.
37695         * modules/unictype/property-ideographic-tests (Files): Likewise.
37696         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37697         * modules/unictype/property-ids-trinary-operator-tests (Files):
37698         Likewise.
37699         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37700         * modules/unictype/property-iso-control-tests (Files): Likewise.
37701         * modules/unictype/property-join-control-tests (Files): Likewise.
37702         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37703         * modules/unictype/property-line-separator-tests (Files): Likewise.
37704         * modules/unictype/property-logical-order-exception-tests (Files):
37705         Likewise.
37706         * modules/unictype/property-lowercase-tests (Files): Likewise.
37707         * modules/unictype/property-math-tests (Files): Likewise.
37708         * modules/unictype/property-non-break-tests (Files): Likewise.
37709         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37710         * modules/unictype/property-numeric-tests (Files): Likewise.
37711         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37712         * modules/unictype/property-other-default-ignorable-code-point-tests
37713         (Files): Likewise.
37714         * modules/unictype/property-other-grapheme-extend-tests (Files):
37715         Likewise.
37716         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37717         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37718         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37719         * modules/unictype/property-other-math-tests (Files): Likewise.
37720         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37721         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37722         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37723         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37724         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37725         * modules/unictype/property-private-use-tests (Files): Likewise.
37726         * modules/unictype/property-punctuation-tests (Files): Likewise.
37727         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37728         * modules/unictype/property-radical-tests (Files): Likewise.
37729         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37730         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37731         * modules/unictype/property-space-tests (Files): Likewise.
37732         * modules/unictype/property-terminal-punctuation-tests (Files):
37733         Likewise.
37734         * modules/unictype/property-test-tests (Files): Likewise.
37735         * modules/unictype/property-titlecase-tests (Files): Likewise.
37736         * modules/unictype/property-unassigned-code-value-tests (Files):
37737         Likewise.
37738         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37739         * modules/unictype/property-uppercase-tests (Files): Likewise.
37740         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37741         * modules/unictype/property-white-space-tests (Files): Likewise.
37742         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37743         * modules/unictype/property-xid-start-tests (Files): Likewise.
37744         * modules/unictype/property-zero-width-tests (Files): Likewise.
37745         * modules/unictype/scripts-tests (Files): Likewise.
37746         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37747         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37748         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37749         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37750         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37751         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37752         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37753         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37754         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37755         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37756         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37757         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37758         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37759         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37760         * modules/uninorm/composition-tests (Files): Likewise.
37761         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37762         * modules/uninorm/decomposition-tests (Files): Likewise.
37763         * modules/uninorm/filter-tests (Files): Likewise.
37764         * modules/uninorm/nfc-tests (Files): Likewise.
37765         * modules/uninorm/nfd-tests (Files): Likewise.
37766         * modules/uninorm/nfkc-tests (Files): Likewise.
37767         * modules/uninorm/nfkd-tests (Files): Likewise.
37768         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37769         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37770         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37771         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37772         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37773         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37774         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37775         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37776         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37777         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37778         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37779         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37780         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37781         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37782         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37783         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37784         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37785         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37786         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37787         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37788         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37789         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37790         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37791         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37792         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37793         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37794         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37795         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37796         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37797         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37798         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37799         * modules/uniwidth/u8-width-tests (Files): Likewise.
37800         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37801         * modules/uniwidth/u16-width-tests (Files): Likewise.
37802         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37803         * modules/uniwidth/u32-width-tests (Files): Likewise.
37804         * modules/uniwidth/width-tests (Files): Likewise.
37805         * modules/unlink-tests (Files): Likewise.
37806         * modules/unsetenv-tests (Files): Likewise.
37807         * modules/usleep-tests (Files): Likewise.
37808         * modules/utimens-tests (Files): Likewise.
37809         * modules/utimensat-tests (Files): Likewise.
37810         * modules/vasnprintf-posix-tests (Files): Likewise.
37811         * modules/vasnprintf-tests (Files): Likewise.
37812         * modules/vasprintf-posix-tests (Files): Likewise.
37813         * modules/vasprintf-tests (Files): Likewise.
37814         * modules/vdprintf-posix-tests (Files): Likewise.
37815         * modules/vfprintf-posix-tests (Files): Likewise.
37816         * modules/vprintf-posix-tests (Files): Likewise.
37817         * modules/vsnprintf-posix-tests (Files): Likewise.
37818         * modules/vsnprintf-tests (Files): Likewise.
37819         * modules/vsprintf-posix-tests (Files): Likewise.
37820         * modules/wcrtomb-tests (Files): Likewise.
37821         * modules/wcsnrtombs-tests (Files): Likewise.
37822         * modules/wcsrtombs-tests (Files): Likewise.
37823         * modules/wctype-tests (Files): Likewise.
37824         * modules/wcwidth-tests (Files): Likewise.
37825         * modules/xmemdup0-tests (Files): Likewise.
37826         * modules/xprintf-posix-tests (Files): Likewise.
37827         * modules/xvasprintf-tests (Files): Likewise.
37828
37829 2009-12-24  Eric Blake  <ebb9@byu.net>
37830
37831         test-nanosleep: fix typo
37832         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37833         patch.
37834         Reported by Bruno Haible.
37835
37836 2009-12-24  Bruno Haible  <bruno@clisp.org>
37837
37838         Reduce namespace pollution on glibc systems.
37839         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37840         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37841         systems.
37842         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37843         <getopt.h> on glibc systems.
37844         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37845         systems.
37846         * lib/fcntl.c: Include <unistd.h> here instead.
37847
37848 2009-12-24  Bruno Haible  <bruno@clisp.org>
37849
37850         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37851
37852 2009-12-24  Eric Blake  <ebb9@byu.net>
37853
37854         tests: add signature checks
37855         * tests/signature.h (SIGNATURE_CHECK): New file.
37856         * modules/atexit-tests (Files): Use it.
37857         * modules/btowc-tests (Files): Likewise.
37858         * modules/canonicalize-lgpl-tests (Files): Likewise.
37859         * modules/ceilf-tests (Files): Likewise.
37860         * modules/ceill-tests (Files): Likewise.
37861         * modules/chown-tests (Files): Likewise.
37862         * modules/dprintf-posix-tests (Files): Likewise.
37863         * modules/dup2-tests (Files): Likewise.
37864         * modules/dup3-tests (Files): Likewise.
37865         * modules/duplocale-tests (Files): Likewise.
37866         * modules/fchdir-tests (Files): Likewise.
37867         * modules/fcntl-tests (Files): Likewise.
37868         * modules/fdopendir-tests (Files): Likewise.
37869         * modules/fflush-tests (Files): Likewise.
37870         * modules/flock-tests (Files): Likewise.
37871         * modules/floorf-tests (Files): Likewise.
37872         * modules/floorl-tests (Files): Likewise.
37873         * modules/fnmatch-tests (Files): Likewise.
37874         * modules/fopen-tests (Files): Likewise.
37875         * modules/fprintf-posix-tests (Files): Likewise.
37876         * modules/freopen-tests (Files): Likewise.
37877         * modules/frexp-nolibm-tests (Files): Likewise.
37878         * modules/frexp-tests (Files): Likewise.
37879         * modules/frexpl-nolibm-tests (Files): Likewise.
37880         * modules/frexpl-tests (Files): Likewise.
37881         * modules/fseek-tests (Files): Likewise.
37882         * modules/fseeko-tests (Files): Likewise.
37883         * modules/fsync-tests (Files): Likewise.
37884         * modules/ftell-tests (Files): Likewise.
37885         * modules/ftello-tests (Files): Likewise.
37886         * modules/futimens-tests (Files): Likewise.
37887         * modules/getaddrinfo-tests (Files): Likewise.
37888         * modules/getcwd-tests (Files): Likewise.
37889         * modules/getdelim-tests (Files): Likewise.
37890         * modules/getdtablesize-tests (Files): Likewise.
37891         * modules/getgroups-tests (Files): Likewise.
37892         * modules/gethostname-tests (Files): Likewise.
37893         * modules/getline-tests (Files): Likewise.
37894         * modules/getopt-posix-tests (Files): Likewise.
37895         * modules/gettimeofday-tests (Files): Likewise.
37896         * modules/glob-tests (Files): Likewise.
37897         * modules/iconv-tests (Files): Likewise.
37898         * modules/inet_ntop-tests (Files): Likewise.
37899         * modules/inet_pton-tests (Files): Likewise.
37900         * modules/isblank-tests (Files): Likewise.
37901         * modules/lchown-tests (Files): Likewise.
37902         * modules/ldexpl-tests (Files): Likewise.
37903         * modules/link-tests (Files): Likewise.
37904         * modules/linkat-tests (Files): Likewise.
37905         * modules/lseek-tests (Files): Likewise.
37906         * modules/lstat-tests (Files): Likewise.
37907         * modules/mbrtowc-tests (Files): Likewise.
37908         * modules/mbsinit-tests (Files): Likewise.
37909         * modules/mbsnrtowcs-tests (Files): Likewise.
37910         * modules/mbsrtowcs-tests (Files): Likewise.
37911         * modules/memchr-tests (Files): Likewise.
37912         * modules/memcmp-tests (Files): Likewise.
37913         * modules/memmem-tests (Files): Likewise.
37914         * modules/memrchr-tests (Files): Likewise.
37915         * modules/mkdir-tests (Files): Likewise.
37916         * modules/mkfifo-tests (Files): Likewise.
37917         * modules/mkfifoat-tests (Files): Likewise.
37918         * modules/mknod-tests (Files): Likewise.
37919         * modules/nanosleep-tests (Files): Likewise.
37920         * modules/nl_langinfo-tests (Files): Likewise.
37921         * modules/obstack-printf-tests (Files): Likewise.
37922         * modules/open-tests (Files): Likewise.
37923         * modules/openat-tests (Files): Likewise.
37924         * modules/perror-tests (Files): Likewise.
37925         * modules/pipe2-tests (Files): Likewise.
37926         * modules/poll-tests (Files): Likewise.
37927         * modules/popen-tests (Files): Likewise.
37928         * modules/posix_spawn-tests (Files): Likewise.
37929         * modules/posix_spawnp-tests (Files): Likewise.
37930         * modules/pread-tests (Files): Likewise.
37931         * modules/printf-posix-tests (Files): Likewise.
37932         * modules/pty-tests (Files): Likewise.
37933         * modules/random_r-tests (Files): Likewise.
37934         * modules/rawmemchr-tests (Files): Likewise.
37935         * modules/readlink-tests (Files): Likewise.
37936         * modules/remove-tests (Files): Likewise.
37937         * modules/rename-tests (Files): Likewise.
37938         * modules/renameat-tests (Files): Likewise.
37939         * modules/rmdir-tests (Files): Likewise.
37940         * modules/round-tests (Files): Likewise.
37941         * modules/roundf-tests (Files): Likewise.
37942         * modules/roundl-tests (Files): Likewise.
37943         * modules/select-tests (Files): Likewise.
37944         * modules/setenv-tests (Files): Likewise.
37945         * modules/sigaction-tests (Files): Likewise.
37946         * modules/sleep-tests (Files): Likewise.
37947         * modules/snprintf-posix-tests (Files): Likewise.
37948         * modules/snprintf-tests (Files): Likewise.
37949         * modules/sprintf-posix-tests (Files): Likewise.
37950         * modules/stat-tests (Files): Likewise.
37951         * modules/strcasestr-tests (Files): Likewise.
37952         * modules/strchrnul-tests (Files): Likewise.
37953         * modules/strerror-tests (Files): Likewise.
37954         * modules/strsignal-tests (Files): Likewise.
37955         * modules/strstr-tests (Files): Likewise.
37956         * modules/strtod-tests (Files): Likewise.
37957         * modules/strverscmp-tests (Files): Likewise.
37958         * modules/symlink-tests (Files): Likewise.
37959         * modules/symlinkat-tests (Files): Likewise.
37960         * modules/times-tests (Files): Likewise.
37961         * modules/trunc-tests (Files): Likewise.
37962         * modules/truncf-tests (Files): Likewise.
37963         * modules/truncl-tests (Files): Likewise.
37964         * modules/tsearch-tests (Files): Likewise.
37965         * modules/uname-tests (Files): Likewise.
37966         * modules/unlink-tests (Files): Likewise.
37967         * modules/unsetenv-tests (Files): Likewise.
37968         * modules/usleep-tests (Files): Likewise.
37969         * modules/utimensat-tests (Files): Likewise.
37970         * modules/vasprintf-tests (Files): Likewise.
37971         * modules/vdprintf-posix-tests (Files): Likewise.
37972         * modules/vfprintf-posix-tests (Files): Likewise.
37973         * modules/vprintf-posix-tests (Files): Likewise.
37974         * modules/vsnprintf-posix-tests (Files): Likewise.
37975         * modules/vsnprintf-tests (Files): Likewise.
37976         * modules/vsprintf-posix-tests (Files): Likewise.
37977         * modules/wcrtomb-tests (Files): Likewise.
37978         * modules/wcsnrtombs-tests (Files): Likewise.
37979         * modules/wcsrtombs-tests (Files): Likewise.
37980         * modules/wcwidth-tests (Files): Likewise.
37981         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37982         * tests/test-isinf.c (isinf): Likewise.
37983         * tests/test-isnan.c (isnan): Likewise.
37984         * tests/test-signbit.c (signbit): Likewise.
37985         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37986         declaration, either as macro or with correct signature.
37987         (select): Ensure function under test is declared with correct
37988         signature in correct header.
37989         * tests/test-atexit.c (atexit): Likewise.
37990         * tests/test-btowc.c (btowc): Likewise.
37991         * tests/test-canonicalize-lgpl.c (realpath)
37992         (canonicalize_file_name): Likewise.
37993         * tests/test-ceilf1.c (ceilf): Likewise.
37994         * tests/test-ceill.c (ceill): Likewise.
37995         * tests/test-chown.c (chown): Likewise.
37996         * tests/test-dprintf-posix.c (dprintf): Likewise.
37997         * tests/test-dup2.c (dup2): Likewise.
37998         * tests/test-dup3.c (dup3): Likewise.
37999         * tests/test-duplocale.c (duplocale): Likewise.
38000         * tests/test-fchdir.c (fchdir): Likewise.
38001         * tests/test-fchownat.c (fchownat): Likewise.
38002         * tests/test-fcntl.c (fcntl): Likewise.
38003         * tests/test-fdopendir.c (fdopendir): Likewise.
38004         * tests/test-fflush.c (fflush): Likewise.
38005         * tests/test-flock.c (flock): Likewise.
38006         * tests/test-floorf1.c (floorf): Likewise.
38007         * tests/test-floorl.c (floorl): Likewise.
38008         * tests/test-fnmatch.c (fnmatch): Likewise.
38009         * tests/test-fopen.c (fopen): Likewise.
38010         * tests/test-fprintf-posix.c (fprintf): Likewise.
38011         * tests/test-freopen.c (freopen): Likewise.
38012         * tests/test-frexp.c (frexp): Likewise.
38013         * tests/test-frexpl.c (frexpl): Likewise.
38014         * tests/test-fseek.c (fseek): Likewise.
38015         * tests/test-fseeko.c (fseeko): Likewise.
38016         * tests/test-fstatat.c (fstatat): Likewise.
38017         * tests/test-fsync.c (fsync): Likewise.
38018         * tests/test-ftell.c (ftell): Likewise.
38019         * tests/test-ftello.c (ftello): Likewise.
38020         * tests/test-futimens.c (futimens): Likewise.
38021         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
38022         (gai_strerror): Likewise.
38023         * tests/test-getcwd.c (getcwd): Likewise.
38024         * tests/test-getdelim.c (getdelim): Likewise.
38025         * tests/test-getdtablesize.c (getdtablesize): Likewise.
38026         * tests/test-getgroups.c (getgroups): Likewise.
38027         * tests/test-gethostname.c (gethostname): Likewise.
38028         * tests/test-getline.c (getline): Likewise.
38029         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
38030         Likewise.
38031         * tests/test-gettimeofday.c (gettimeofday): Likewise.
38032         * tests/test-glob.c (glob, globfree): Likewise.
38033         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
38034         * tests/test-inet_ntop.c (inet_ntop): Likewise.
38035         * tests/test-inet_pton.c (inet_pton): Likewise.
38036         * tests/test-isblank.c (isblank): Likewise.
38037         * tests/test-lchown.c (lchown): Likewise.
38038         * tests/test-ldexpl.c (ldexpl): Likewise.
38039         * tests/test-link.c (link): Likewise.
38040         * tests/test-linkat.c (linkat): Likewise.
38041         * tests/test-lseek.c (lseek): Likewise.
38042         * tests/test-lstat.c (lstat): Likewise.
38043         * tests/test-mbrtowc.c (mbrtowc): Likewise.
38044         * tests/test-mbsinit.c (mbsinit): Likewise.
38045         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
38046         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
38047         * tests/test-memchr.c (memchr): Likewise.
38048         * tests/test-memcmp.c (memcmp): Likewise.
38049         * tests/test-memmem.c (memmem): Likewise.
38050         * tests/test-memrchr.c (memrchr): Likewise.
38051         * tests/test-mkdir.c (mkdir): Likewise.
38052         * tests/test-mkdirat.c (mkdirat): Likewise.
38053         * tests/test-mkfifo.c (mkfifo): Likewise.
38054         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
38055         * tests/test-mknod.c (mknod): Likewise.
38056         * tests/test-nanosleep.c (nanosleep): Likewise.
38057         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
38058         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
38059         Likewise.
38060         * tests/test-open.c (open): Likewise.
38061         * tests/test-openat.c (openat): Likewise.
38062         * tests/test-perror.c (perror): Likewise.
38063         * tests/test-pipe2.c (pipe2): Likewise.
38064         * tests/test-poll.c (poll): Likewise.
38065         * tests/test-popen.c (popen, pclose): Likewise.
38066         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
38067         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
38068         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
38069         (posix_spawn_file_actions_destroy)
38070         (posix_spawn_file_actions_addclose)
38071         (posix_spawn_file_actions_addopen)
38072         (posix_spawn_file_actions_adddup2): Likewise.
38073         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
38074         * tests/test-pread.c (pread): Likewise.
38075         * tests/test-printf-posix.c (printf): Likewise.
38076         * tests/test-pty.c (openpty, forkpty): Likewise.
38077         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
38078         (random_r): Likewise.
38079         * tests/test-rawmemchr.c (rawmemchr): Likewise.
38080         * tests/test-readlink.c (readlink): Likewise.
38081         * tests/test-remove.c (remove): Likewise.
38082         * tests/test-rename.c (rename): Likewise.
38083         * tests/test-renameat.c (renameat): Likewise.
38084         * tests/test-rmdir.c (rmdir): Likewise.
38085         * tests/test-round1.c (round): Likewise.
38086         * tests/test-roundf1.c (roundf): Likewise.
38087         * tests/test-roundl.c (roundl): Likewise.
38088         * tests/test-setenv.c (setenv): Likewise.
38089         * tests/test-sigaction.c (sigaction): Likewise.
38090         * tests/test-sleep.c (sleep): Likewise.
38091         * tests/test-snprintf.c (snprintf): Likewise.
38092         * tests/test-sprintf-posix.c (sprintf): Likewise.
38093         * tests/test-stat.c (stat): Likewise.
38094         * tests/test-stpncpy.c (stpncpy): Likewise.
38095         * tests/test-strcasestr.c (strcasestr): Likewise.
38096         * tests/test-strchrnul.c (strchrnul): Likewise.
38097         * tests/test-strerror.c (strerror): Likewise.
38098         * tests/test-strsignal.c (strsignal): Likewise.
38099         * tests/test-strstr.c (strstr): Likewise.
38100         * tests/test-strtod.c (strtod): Likewise.
38101         * tests/test-strverscmp.c (strverscmp): Likewise.
38102         * tests/test-symlink.c (symlink): Likewise.
38103         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
38104         * tests/test-times.c (times): Likewise.
38105         * tests/test-trunc1.c (trunc): Likewise.
38106         * tests/test-truncf1.c (truncf): Likewise.
38107         * tests/test-truncl.c (truncl): Likewise.
38108         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
38109         Likewise.
38110         * tests/test-uname.c (uname): Likewise.
38111         * tests/test-unlink.c (unlink): Likewise.
38112         * tests/test-unlinkat.c (unlinkat): Likewise.
38113         * tests/test-unsetenv.c (unsetenv): Likewise.
38114         * tests/test-usleep.c (usleep): Likewise.
38115         * tests/test-utimensat.c (utimensat): Likewise.
38116         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
38117         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
38118         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
38119         * tests/test-vprintf-posix.c (vprintf): Likewise.
38120         * tests/test-vsnprintf.c (vsnprintf): Likewise.
38121         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
38122         * tests/test-wcrtomb.c (wcrtomb): Likewise.
38123         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
38124         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
38125         * tests/test-wcwidth.c (wcwidth): Likewise.
38126
38127         build: pull in conditional headers during GNULIB_POSIXCHECK
38128         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
38129         definitions from any conditionally-included headers.
38130         * lib/stdlib.in.h (includes): Likewise.
38131         * lib/unistd.in.h (includes): Likewise.
38132
38133 2009-12-24  Bruno Haible  <bruno@clisp.org>
38134
38135         * tests/test-argv-iter.c: Include header file being tested immediately
38136         after config.h.
38137         * tests/test-base64.c: Likewise.
38138         * tests/test-flock.c: Likewise.
38139         * tests/test-fsync.c: Likewise.
38140         * tests/test-getdate.c: Likewise.
38141         * tests/test-getndelim2.c: Likewise.
38142         * tests/test-isfinite.c: Likewise.
38143         * tests/test-isinf.c: Likewise.
38144         * tests/test-strerror.c: Likewise.
38145         * tests/test-strsignal.c: Likewise.
38146
38147 2009-12-23  Eric Blake  <ebb9@byu.net>
38148
38149         unistd: work around cygwin bug
38150         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38151         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38152         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38153
38154 2009-12-23  Bruno Haible  <bruno@clisp.org>
38155
38156         localename: More tests.
38157         * tests/test-localename.c (SIZEOF): New macro.
38158         (categories): New variable.
38159         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38160         test_locale_name_default): Add test w.r.t. thread locale.
38161         (test_locale_name_thread): New function.
38162         (main): Invoke it.
38163
38164         localename: Make aware of thread locale.
38165         * lib/localename.h (gl_locale_name_thread): New declaration.
38166         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38167         behaviour with respect to thread locale.
38168         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38169         <langinfo.h>, glthread/lock.h.
38170         (SIZE_BITS): New macro.
38171         (string_hash): New function.
38172         (struct hash_node): New type.
38173         (HASH_TABLE_SIZE): New macro.
38174         (struniq_hash_table, struniq_lock): New variables.
38175         (struniq): New function.
38176         (gl_locale_name_thread): New function.
38177         (gl_locale_name): Invoke it.
38178         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38179         * modules/localename (Depends-on): Add lock.
38180         Reported by Mike Gran <spk121@yahoo.com>.
38181
38182 2009-12-23  Eric Blake  <ebb9@byu.net>
38183
38184         va-args: new module
38185         * modules/va-args: New file.
38186         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38187         * MODULES.html.sh (Core language properties): Mention it.
38188
38189         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38190         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38191         named alias for __attribute__((__unused__)).
38192         * lib/chown.c: Update client.
38193         * lib/fchmodat.c: Likewise.
38194         * lib/fts.c: Likewise.
38195         * lib/getdate.y: Likewise.
38196         * lib/getgroups.c: Likewise.
38197         * lib/getopt.c: Likewise.
38198         * lib/getugroups.c: Likewise.
38199         * lib/mkdir.c: Likewise.
38200         * lib/mkfifo.c: Likewise.
38201         * lib/mkfifoat.c: Likewise.
38202         * lib/mknod.c: Likewise.
38203         * lib/mknodat.c: Likewise.
38204         * lib/readlink.c: Likewise.
38205         * lib/se-context.in.h: Likewise.
38206         * lib/se-selinux.in.h: Likewise.
38207         * lib/sockets.c: Likewise.
38208         * lib/symlink.c: Likewise.
38209         * lib/symlinkat.c: Likewise.
38210         * lib/unicodeio.c: Likewise.
38211         * lib/unistr.h: Likewise.
38212         * tests/test-areadlink.c: Likewise.
38213         * tests/test-areadlinkat.c: Likewise.
38214         * tests/test-filenamecat.c: Likewise.
38215         * tests/test-fseeko.c: Likewise.
38216         * tests/test-ftello.c: Likewise.
38217         * tests/test-getdate.c: Likewise.
38218         * tests/test-getgroups.c: Likewise.
38219         * tests/test-gethostname.c: Likewise.
38220         * tests/test-quotearg.c: Likewise.
38221         * tests/test-version-etc.c: Likewise.
38222         * tests/test-xalloc-die.c: Likewise.
38223         * tests/test-xfprintf-posix.c: Likewise.
38224         * tests/test-xprintf-posix.c: Likewise.
38225         * tests/test-xvasprintf.c: Likewise.
38226
38227         tests: avoid compiler warnings
38228         * tests/test-fcntl.c (main): Delete unused parameters.
38229         * tests/test-freopen-safer.c (main): Likewise.
38230         * tests/test-xalloc-die.c (main): Mark unused parameters.
38231         * tests/test-fseeko.c (main): Likewise.
38232         * tests/test-ftello.c (main): Likewise.
38233         * tests/test-nanosleep.c (main): Avoid declaration warning.
38234         * tests/test-sleep.c (main): Likewise.
38235         * tests/test-unsetenv.c (main): Silence warning about string
38236         literal.
38237         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38238
38239 2009-12-23  Bruno Haible  <bruno@clisp.org>
38240
38241         * tests/test-localename.c (test_locale_name): New function, extracted
38242         from main. Also test mixed situations.
38243         (test_locale_name_posix, test_locale_name_environ,
38244         test_locale_name_default): New functions.
38245         (main): Invoke them all.
38246         * modules/localename-tests (configure.ac): Test for newlocale.
38247
38248 2009-12-23  Bruno Haible  <bruno@clisp.org>
38249
38250         unistd: Ensure getcwd gets declared before being overridden.
38251         * lib/unistd.in.h: Conditionally include <io.h>.
38252
38253 2009-12-22  Bruno Haible  <bruno@clisp.org>
38254
38255         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38256         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38257         (gl_WCHAR_H): Invoke it.
38258         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38259         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38260         Reported by Karl Berry <karl@freefriends.org>.
38261
38262 2009-12-22  Eric Blake  <ebb9@byu.net>
38263
38264         math, unistd: avoid redundant includes
38265         * lib/math.in.h (isnan): No need to re-include <math.h>.
38266         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38267
38268         getsubopt: work around cygwin bug
38269         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38270         avoid conflicting with system getsubopt.
38271         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38272         bug.
38273
38274         getopt: synchronize from glibc
38275         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38276         parameter order.  Adjust all callers.
38277         (_getopt_internal_r, main): Adjust quoting in error messages.
38278         Drop considerations for outdated POSIX 1003.2 error message.
38279         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38280         callers.
38281         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38282
38283         test-getopt: test stderr behavior
38284         * modules/getopt-posix-tests (Depends-on): Add dup2.
38285         * tests/test-getopt.c (ASSERT): Avoid stderr.
38286         (main): Move stderr to a temporary file.
38287         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38288         Instead, add parameter to inform caller if output occurred.
38289         (test_getopt): Adjust all existing tests to expect silence, and
38290         add new tests of leading ":".
38291         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38292         glibc shortcomings with leading "-:" or "+:" in optstring.
38293         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38294         Likewise.
38295         * doc/posix-functions/getopt.texi (getopt): Likewise.
38296
38297         test-getopt: enhance test
38298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38299         supports optind=0.
38300         * tests/test-getopt.c (OPTIND_MIN): Move...
38301         * tests/test-getopt.h (OPTIND_MIN): ...here.
38302         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38303         Require that optind=0 works, since modern BSD supports it in
38304         addition to optreset, and since coreutils expects it.
38305         (test_getopt_long_only): New test.
38306         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38307         glibc shortcomings with 'W;', and enforcement of optind=0.
38308         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38309         Likewise.
38310
38311 2009-12-21  Bruno Haible  <bruno@clisp.org>
38312
38313         localename: Improvements for MacOS X and Cygwin.
38314         * lib/localename.h (gl_locale_name_environ): New declaration.
38315         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38316         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38317         (gl_locale_name_posix): Invoke it.
38318         (gl_locale_name_default): Add comments. Use Windows native API also on
38319         Cygwin.
38320
38321 2009-12-21  Bruno Haible  <bruno@clisp.org>
38322
38323         Update list of Win32 locale ids.
38324         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38325         (LANG_SAMI): Renamed from LANG_SAAMI.
38326         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38327         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38328         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38329         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38330         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38331         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38332         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38333         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38334         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38335         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38336         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38337         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38338         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38339         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38340         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38341         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38342         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38343         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38344         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38345         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38346         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38347         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38348         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38349         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38350         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38351         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38352         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38353         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38354         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38355         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38356         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38357         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38358         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38359         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38360         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38361         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38362         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38363         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38364         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38365         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38366         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38367         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38368         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38369         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38370         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38371         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38372         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38373         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38374         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38375         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38376         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38377         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38378         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38379         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38380         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38381         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38382         Add more languages and countries for Sami, Sorbian. Add more countries
38383         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38384         for Pashto. Change country for Syriac, Tswana.
38385
38386 2009-12-21  Eric Blake  <ebb9@byu.net>
38387
38388         test-utimens: avoid spurious failure
38389         * tests/test-chown.h (nap): Factor...
38390         * tests/nap.h: ...into new file.
38391         * tests/test-lchown.h (nap): Avoid duplication.
38392         * tests/test-utimens-common.h (nap): Use shared implementation,
38393         necessary on file systems with 1-second resolution.
38394         * modules/chown-tests (Files): Include new file.
38395         * modules/fdutimensat-tests (Files): Likewise.
38396         * modules/futimens-tests (Files): Likewise.
38397         * modules/lchown-tests (Files): Likewise.
38398         * modules/openat-tests (Files): Likewise.
38399         * modules/utimens-tests (Files): Likewise.
38400         * modules/utimensat-tests (Files): Likewise.
38401
38402 2009-12-19  Eric Blake  <ebb9@byu.net>
38403
38404         futimens, utimensat: work around Linux bug
38405         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38406         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38407         * lib/utimensat.c (rpl_utimensat): Work around it.
38408         * lib/futimens.c (rpl_futimens): Adjust comment.
38409
38410         utimens: work around Linux ctime bug
38411         * lib/utimens.c (detect_ctime_bug): New helper function.
38412         (update_timespec): Differentiate between workaround needed for
38413         this bug vs. what is needed for systems that lack utimensat.
38414         (fdutimens, lutimens): Work around bug.
38415
38416         utimens: check for ctime update
38417         * tests/test-utimens-common.h (check_ctime): Define.
38418         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38419         * tests/test-futimens.h (test_futimens): Likewise.
38420         * tests/test-lutimens.h (test_lutimens): Likewise.
38421         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38422         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38423
38424 2009-12-19  Bruno Haible  <bruno@clisp.org>
38425
38426         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38427         * tests/test-dprintf-posix2.sh: New file.
38428         * tests/test-dprintf-posix2.c: New file.
38429         * modules/dprintf-posix-tests (Files): Add them.
38430         (configure.ac): Check for getrlimit and setrlimit.
38431         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38432
38433 2009-12-19  Bruno Haible  <bruno@clisp.org>
38434
38435         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38436         * tests/test-fprintf-posix3.sh: New file.
38437         * tests/test-fprintf-posix3.c: New file.
38438         * modules/fprintf-posix-tests (Files): Add them.
38439         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38440
38441 2009-12-19  Eric Blake  <ebb9@byu.net>
38442
38443         dirfd: fix prototype
38444         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38445         * lib/dirfd.c (dirfd): Likewise.
38446
38447         canonicalize: reduce memory usage
38448         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38449         allocation to size.
38450         Reported by Solar Designer <solar@openwall.com>.
38451
38452 2009-12-19  Bruno Haible  <bruno@clisp.org>
38453
38454         New module attribute 'Applicability'.
38455         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38456         * gnulib-tool: New option --extract-applicability.
38457         (func_usage): Document it.
38458         (sed_extract_prog): Recognize it.
38459         (func_get_applicability): New function.
38460         (func_import): Generalize handling of 'link-warning' module.
38461         * modules/link-warning (Applicability): New section.
38462         * modules/arg-nonnull (Applicability): New section.
38463         Repoted by Simon Josefsson <simon@josefsson.org>.
38464
38465 2009-12-19  Bruno Haible  <bruno@clisp.org>
38466
38467         fflush: tweak
38468         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38469         * lib/fseeko.c (rpl_fseeko): Likewise.
38470
38471 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38472
38473         * lib/gl_list.h: Fix typo in comment.
38474
38475 2009-12-16  Eric Blake  <ebb9@byu.net>
38476
38477         fcntl: use to simplify other modules
38478         * modules/cloexec (Depends-on): Add fcntl.
38479         * modules/fchdir (Depends-on): Likewise.
38480         * modules/fd-safer-flag (Depends-on): Likewise.
38481         * modules/unistd-safer (Depends-on): Likewise.
38482         * modules/dup3 (configure.ac): Set module indicator.
38483         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38484         missing.
38485         * lib/fchdir.c (_gl_register_dup): Fix comment.
38486         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38487         * lib/dup-safer.c (dup_safer): Likewise.
38488         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38489         * lib/dup3.c (dup3): Likewise.
38490         * tests/test-fchdir.c (main): Enhance test.
38491         Fixes a dup_cloexec bug reported by Ondřej Vašík.
38492
38493         fcntl: port portions of fcntl to mingw
38494         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38495         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38496         replacement for mingw.
38497         * modules/fcntl (Description): Update.
38498         (Depends-on): Add dup2.
38499         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38500         * modules/fcntl-h (Makefile.am): Substitute it.
38501         * lib/fcntl.in.h (fcntl): Update declaration.
38502         (F_DUPFD, F_GETFD): New macros, when needed.
38503         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38504         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38505         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38506         we now guarantee.
38507
38508         fcntl: work around cygwin bug in F_DUPFD
38509         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38510         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38511         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38512         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38513         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38514
38515         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38516         * modules/fcntl (Files): List new files.
38517         (configure.ac): Run a test.
38518         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38519         * lib/fcntl.c (rpl_fcntl): Likewise.
38520         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38521         (gl_FCNTL_H): Always replace fcntl.h.
38522         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38523         * lib/fcntl.in.h (fcntl): Declare replacement.
38524         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38525         needed, plus a witness.
38526         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38527         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38528         * tests/test-fcntl.c: New file.
38529         * modules/fcntl-tests: Likewise.
38530
38531         binary-io: avoid potential compilation warning
38532         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38533         directives.
38534
38535         fflush: avoid compilation error on NetBSD
38536         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38537         between off_t and fpos_t, since the latter is sometimes a struct.
38538         * lib/fseeko.c (rpl_fseeko): Likewise.
38539         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38540
38541 2009-12-15  Eric Blake  <ebb9@byu.net>
38542
38543         fcntl-h, stdio, sys_ioctl: fix declarations
38544         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38545         function must not take arguments.
38546         * lib/sys_ioctl.in.h (ioctl): Likewise.
38547         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38548         (open): Add a link warning.
38549
38550 2009-12-15  Jim Meyering  <meyering@redhat.com>
38551
38552         areadlink, areadlink-with-size: relax license to LGPLv2+
38553         * modules/areadlink (License): Relax to LGPLv2+.
38554         * modules/areadlink-with-size (License): Likewise.
38555
38556 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38557             Bruno Haible  <bruno@clisp.org>
38558
38559         *printf: Fix memory leak.
38560         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38561         * lib/vfprintf.c (vfprintf): Likewise.
38562         * lib/dprintf.c (dprintf): Likewise.
38563         * lib/vdprintf.c (vdprintf): Likewise.
38564
38565 2009-12-14  Eric Blake  <ebb9@byu.net>
38566
38567         accept4: adjust module dependencies
38568         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38569
38570         utimens: one more try at avoiding compiler warning
38571         * lib/utimens.c (lutimens): Lower scope of result.
38572
38573 2009-12-13  Bruno Haible  <bruno@clisp.org>
38574
38575         Move the malloc checking from module 'list' to new module 'xlist'.
38576         * modules/xlist: New file.
38577         * lib/gl_xlist.h: New file.
38578         * lib/gl_xlist.c: New file.
38579         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38580         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38581         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38582         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38583         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38584         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38585         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38586         gl_sortedlist_nx_add): New declarations.
38587         (struct gl_list_implementation): Rename and change methods accordingly.
38588         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38589         (gl_list_nx_create): Renamed from gl_list_create.
38590         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38591         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38592         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38593         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38594         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38595         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38596         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38597         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38598         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38599         gl_list_create_empty.
38600         (gl_list_nx_create): Renamed from gl_list_create.
38601         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38602         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38603         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38604         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38605         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38606         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38607         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38608         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38609         * lib/gl_array_list.c: Don't include xalloc.h.
38610         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38611         NULL upon out-of-memory.
38612         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38613         out-of-memory.
38614         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38615         Change return type to 'int'.
38616         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38617         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38618         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38619         upon out-of-memory.
38620         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38621         upon out-of-memory.
38622         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38623         upon out-of-memory.
38624         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38625         upon out-of-memory.
38626         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38627         out-of-memory.
38628         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38629         Update.
38630         (gl_array_list_implementation): Update.
38631         * lib/gl_carray_list.c: Don't include xalloc.h.
38632         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38633         Return NULL upon out-of-memory.
38634         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38635         out-of-memory.
38636         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38637         Change return type to 'int'.
38638         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38639         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38640         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38641         upon out-of-memory.
38642         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38643         upon out-of-memory.
38644         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38645         out-of-memory.
38646         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38647         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38648         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38649         Update.
38650         (gl_carray_list_implementation): Update.
38651         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38652         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38653         gl_linked_create_empty. Return NULL upon out-of-memory.
38654         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38655         out-of-memory.
38656         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38657         Change return type to 'int'. Return -1 upon out-of-memory.
38658         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38659         out-of-memory.
38660         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38661         upon out-of-memory.
38662         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38663         upon out-of-memory.
38664         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38665         NULL upon out-of-memory.
38666         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38667         upon out-of-memory.
38668         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38669         out-of-memory.
38670         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38671         Update.
38672         * lib/gl_linked_list.c: Don't include xalloc.h.
38673         (gl_linked_list_implementation): Update.
38674         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38675         (add_to_bucket): Change return type to 'int'.
38676         (gl_linkedhash_list_implementation): Update.
38677         * lib/gl_anytree_list1.h (free_subtree): New function.
38678         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38679         gl_tree_create_empty. Return NULL upon out-of-memory.
38680         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38681         Change return type to 'int'. Return -1 upon out-of-memory.
38682         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38683         out-of-memory.
38684         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38685         (gl_tree_remove_node): New function, moved here from
38686         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38687         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38688         Update.
38689         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38690         malloc, not xmalloc. Return NULL upon out-of-memory.
38691         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38692         out-of-memory.
38693         (gl_tree_remove_node_from_tree): New function, extracted from
38694         gl_tree_remove_node.
38695         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38696         upon out-of-memory.
38697         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38698         out-of-memory.
38699         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38700         upon out-of-memory.
38701         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38702         upon out-of-memory.
38703         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38704         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38705         not xmalloc. Return NULL upon out-of-memory.
38706         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38707         out-of-memory.
38708         (gl_tree_remove_node_from_tree): New function, extracted from
38709         gl_tree_remove_node.
38710         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38711         upon out-of-memory.
38712         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38713         out-of-memory.
38714         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38715         upon out-of-memory.
38716         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38717         upon out-of-memory.
38718         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38719         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38720         gl_anytree_list1.h before gl_anyavltree_list2.h.
38721         (gl_avltree_list_implementation): Update.
38722         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38723         gl_anytree_list1.h before gl_anyavltree_list2.h.
38724         (gl_rbtree_list_implementation): Update.
38725         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38726         Change return type to 'int'. Return -1 upon out-of-memory. Use
38727         __builtin_expect.
38728         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38729         (gl_avltreehash_list_implementation): Update.
38730         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38731         (gl_rbtreehash_list_implementation): Update.
38732         * modules/array-list (Depends-on): Remove xalloc.
38733         * modules/carray-list (Depends-on): Likewise.
38734         * modules/linked-list (Depends-on): Likewise.
38735         * modules/linkedhash-list (Depends-on): Likewise.
38736         * modules/avltree-list (Depends-on): Likewise.
38737         * modules/rbtree-list (Depends-on): Likewise.
38738         * modules/avltreehash-list (Depends-on): Likewise.
38739         * modules/rbtreehash-list (Depends-on): Likewise.
38740
38741         * modules/xsublist: New file.
38742         * lib/gl_xsublist.h: New file.
38743         * lib/gl_xsublist.c: New file.
38744         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38745         (gl_sublist_nx_create): New declaration.
38746         * lib/gl_sublist.c: Don't include xalloc.h.
38747         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38748         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38749         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38750         Change return type to 'int'. Return -1 upon out-of-memory.
38751         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38752         upon out-of-memory.
38753         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38754         NULL upon out-of-memory.
38755         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38756         upon out-of-memory.
38757         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38758         NULL upon out-of-memory.
38759         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38760         NULL upon out-of-memory.
38761         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38762         upon out-of-memory.
38763         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38764         (gl_sublist_list_implementation): Update.
38765         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38766         upon out-of-memory.
38767         * modules/sublist (Depends-on): Remove xalloc.
38768
38769         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38770         * tests/test-carray_list.c: Likewise.
38771         * tests/test-linked_list.c: Likewise.
38772         * tests/test-linkedhash_list.c: Likewise.
38773         * tests/test-avltree_list.c: Likewise.
38774         * tests/test-rbtree_list.c: Likewise.
38775         * tests/test-avltreehash_list.c: Likewise.
38776         * tests/test-rbtreehash_list.c: Likewise.
38777         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38778         * modules/carray-list-tests (Makefile.am): Likewise.
38779         * modules/linked-list-tests (Makefile.am): Likewise.
38780         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38781         * modules/avltree-list-tests (Makefile.am): Likewise.
38782         * modules/rbtree-list-tests (Makefile.am): Likewise.
38783         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38784         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38785
38786         * NEWS: Mention the changes.
38787
38788         * lib/clean-temp.c: Include gl_xlist.h.
38789         * modules/clean-temp (Depends-on): Add xlist.
38790
38791         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38792         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38793
38794         * tests/test-array_oset.c: Include gl_xlist.h.
38795         * modules/array-oset-tests (Depends-on): Add xlist.
38796
38797         Reported by José E. Marchesi <jemarch@gnu.org>.
38798
38799 2009-12-13  Bruno Haible  <bruno@clisp.org>
38800
38801         Move the malloc checking from module 'oset' to new module 'xoset'.
38802         * modules/xoset: New file.
38803         * lib/gl_xoset.h: New file.
38804         * lib/gl_xoset.c: New file.
38805         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38806         declarations.
38807         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38808         (struct gl_oset_implementation): Rename and change methods accordingly.
38809         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38810         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38811         'int'. Mark as __warn_unused_result__.
38812         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38813         gl_oset_create_empty.
38814         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38815         'int'.
38816         * lib/gl_array_oset.c: Don't include xalloc.h.
38817         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38818         malloc, not xmalloc.
38819         (grow): Change return type to 'int'. Don't call xalloc_die.
38820         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38821         to 'int'.
38822         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38823         'int'.
38824         (gl_array_oset_implementation): Update.
38825         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38826         gl_tree_create_empty.
38827         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38828         'int'.
38829         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38830         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38831         xmalloc.
38832         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38833         not xmalloc.
38834         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38835         xmalloc.
38836         (gl_avltree_oset_implementation): Update.
38837         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38838         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38839         xmalloc.
38840         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38841         not xmalloc.
38842         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38843         xmalloc.
38844         (gl_rbtree_oset_implementation): Update.
38845         * modules/array-oset (Depends-on): Remove xalloc.
38846         * modules/avltree-oset (Depends-on): Likewise.
38847         * modules/rbtree-oset (Depends-on): Likewise.
38848         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38849         * tests/test-avltree_oset.c: Likewise.
38850         * tests/test-rbtree_oset.c: Likewise.
38851         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38852         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38853         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38854         * NEWS: Mention the change.
38855
38856 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38857
38858         maint.mk: allow a project to override release-prep commands
38859         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38860         commands into a new rule.
38861         (release-prep): New rule.
38862         (release-prep-hook): New overridable variable.
38863
38864 2009-12-13  Bruno Haible  <bruno@clisp.org>
38865
38866         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38867
38868 2009-12-13  Jim Meyering  <meyering@redhat.com>
38869
38870         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38871         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38872
38873 2009-12-12  Bruno Haible  <bruno@clisp.org>
38874
38875         duplocale: Tweak.
38876         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38877
38878 2009-12-12  Karl Berry  <karl@gnu.org>
38879
38880         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38881
38882 2009-12-12  Bruno Haible  <bruno@clisp.org>
38883
38884         * m4/po.m4: Undo incorrect untabification.
38885
38886 2009-12-12  Bruno Haible  <bruno@clisp.org>
38887
38888         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38889         * modules/c-strtod (Depends-on): Add locale.
38890         * modules/c-strtold (Depends-on): Likewise.
38891
38892 2009-12-12  Bruno Haible  <bruno@clisp.org>
38893
38894         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38895
38896 2009-12-11  Eric Blake  <ebb9@byu.net>
38897
38898         setenv: relax requirement in light of POSIX ruling
38899         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38900         not NULL.
38901         * tests/test-setenv.c (main): Relax test.
38902         * tests/test-unsetenv.c (main): Likewise.
38903         * doc/posix-functions/setenv.texi (setenv): Document this.
38904         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38905
38906 2009-12-11  Bruno Haible  <bruno@clisp.org>
38907
38908         New module 'fd-safer-flag'.
38909         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38910         * lib/dup-safer.c (dup_safer_flag): Remove function.
38911         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38912         * lib/fd-safer.c (fd_safer_flag): Remove function.
38913         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38914         * modules/cloexec (configure.ac): Drop indicator macro.
38915         * modules/fd-safer-flag: New file.
38916         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38917         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38918         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38919
38920 2009-12-11  Bruno Haible  <bruno@clisp.org>
38921
38922         Tests for module 'nl_langinfo'.
38923         * modules/nl_langinfo-tests: New file.
38924         * tests/test-nl_langinfo.sh: New file.
38925         * tests/test-nl_langinfo.c: New file.
38926
38927         New module 'nl_langinfo'.
38928         * lib/nl_langinfo.c: New file.
38929         * m4/nl_langinfo.m4: New file.
38930         * modules/nl_langinfo: New file.
38931         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38932
38933 2009-12-11  Bruno Haible  <bruno@clisp.org>
38934
38935         Tests for module 'langinfo'.
38936         * modules/langinfo-tests: New file.
38937         * tests/test-langinfo.c: New file.
38938
38939         New module 'langinfo'.
38940         * lib/langinfo.in.h: New file.
38941         * m4/langinfo_h.m4: New file.
38942         * modules/langinfo: New file.
38943         * doc/posix-headers/langinfo.texi: Mention the new module.
38944
38945 2009-12-11  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/config.charset: Untabify.
38948
38949 2009-12-11  Bruno Haible  <bruno@clisp.org>
38950
38951         * modules/unistd-safer (configure.ac): Drop indicator macro.
38952
38953 2009-12-11  Bruno Haible  <bruno@clisp.org>
38954
38955         Move pipe2-safer code to its own file.
38956         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38957         * lib/pipe-safer.c (pipe2_safer): Remove function.
38958         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38959         (Makefile.am): Add it to lib_SOURCES.
38960
38961 2009-12-10  Bruno Haible  <bruno@clisp.org>
38962
38963         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38964
38965 2009-12-10  Bruno Haible  <bruno@clisp.org>
38966
38967         Declare which arguments expect non-NULL values, for GCC and clang.
38968         * build-aux/arg-nonnull.h: New file.
38969         * modules/arg-nonnull: New file.
38970         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38971         (inet_ntop, inet_pton): Use it.
38972         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38973         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38974         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38975         (open, openat): Use it.
38976         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38977         (fnmatch): Use it.
38978         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38979         (getopt, getopt_long, getopt_long_only): Use it.
38980         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38981         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38982         Use it.
38983         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38984         (iconv_open): Use it.
38985         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38986         (strtoimax, strtoumax): Use it.
38987         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38988         (duplocale): Use it.
38989         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38990         (frexp, frexpl): Use it.
38991         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38992         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38993         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38994         (tsearch, tfind, tdelete, twalk): Use it.
38995         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38996         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38997         sigpending): Use it.
38998         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38999         (posix_spawn, posix_spawnp, posix_spawnattr_init,
39000         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
39001         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
39002         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
39003         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
39004         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
39005         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
39006         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
39007         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
39008         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
39009         Use it.
39010         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
39011         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
39012         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
39013         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
39014         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
39015         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
39016         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
39017         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
39018         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
39019         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
39020         strtoull, unsetenv): Use it.
39021         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
39022         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
39023         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
39024         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39025         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39026         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
39027         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
39028         (strcasecmp, strncasecmp): Use it.
39029         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
39030         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
39031         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
39032         rpl_setsockopt): Use it.
39033         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
39034         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
39035         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
39036         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
39037         (gettimeofday): Use it.
39038         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
39039         (times): Use it.
39040         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
39041         (uname): Use it.
39042         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
39043         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
39044         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
39045         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
39046         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
39047         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
39048         unlinkat, write): Use it.
39049         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
39050         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
39051         * lib/argv-iter.h: Include arg-nonnull.h.
39052         (_ATTRIBUTE_NONNULL_): Remove macro.
39053         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
39054         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
39055         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
39056         optimization.
39057         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
39058         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
39059         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
39060         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
39061         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
39062         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
39063         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
39064         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
39065         * modules/arpa_inet (Depends-on): Add arg-nonnull.
39066         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
39067         * modules/dirent (Depends-on): Add arg-nonnull.
39068         (Makefile.am): Insert arg-nonnull.h into dirent.h.
39069         * modules/fcntl-h (Depends-on): Add arg-nonnull.
39070         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
39071         * modules/fnmatch (Depends-on): Add arg-nonnull.
39072         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
39073         * modules/getopt-posix (Depends-on): Add arg-nonnull.
39074         (Makefile.am): Insert arg-nonnull.h into getopt.h.
39075         * modules/glob (Depends-on): Add arg-nonnull.
39076         (Makefile.am): Insert arg-nonnull.h into glob.h.
39077         * modules/iconv_open (Depends-on): Add arg-nonnull.
39078         (Makefile.am): Insert arg-nonnull.h into iconv.h.
39079         * modules/inttypes (Depends-on): Add arg-nonnull.
39080         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
39081         * modules/locale (Depends-on): Add arg-nonnull.
39082         (Makefile.am): Insert arg-nonnull.h into locale.h.
39083         * modules/math (Depends-on): Add arg-nonnull.
39084         (Makefile.am): Insert arg-nonnull.h into math.h.
39085         * modules/netdb (Depends-on): Add arg-nonnull.
39086         (Makefile.am): Insert arg-nonnull.h into netdb.h.
39087         * modules/search (Depends-on): Add arg-nonnull.
39088         (Makefile.am): Insert arg-nonnull.h into search.h.
39089         * modules/signal (Depends-on): Add arg-nonnull.
39090         (Makefile.am): Insert arg-nonnull.h into signal.h.
39091         * modules/spawn (Depends-on): Add arg-nonnull.
39092         (Makefile.am): Insert arg-nonnull.h into spawn.h.
39093         * modules/stdio (Depends-on): Add arg-nonnull.
39094         (Makefile.am): Insert arg-nonnull.h into stdio.h.
39095         * modules/stdlib (Depends-on): Add arg-nonnull.
39096         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
39097         * modules/string (Depends-on): Add arg-nonnull.
39098         (Makefile.am): Insert arg-nonnull.h into string.h.
39099         * modules/strings (Depends-on): Add arg-nonnull.
39100         (Makefile.am): Insert arg-nonnull.h into strings.h.
39101         * modules/sys_socket (Depends-on): Add arg-nonnull.
39102         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
39103         * modules/sys_stat (Depends-on): Add arg-nonnull.
39104         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
39105         * modules/sys_time (Depends-on): Add arg-nonnull.
39106         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
39107         * modules/sys_times (Depends-on): Add arg-nonnull.
39108         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
39109         * modules/sys_utsname (Depends-on): Add arg-nonnull.
39110         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
39111         * modules/time (Depends-on): Add arg-nonnull.
39112         (Makefile.am): Insert arg-nonnull.h into time.h.
39113         * modules/unistd (Depends-on): Add arg-nonnull.
39114         (Makefile.am): Insert arg-nonnull.h into unistd.h.
39115         * modules/wchar (Depends-on): Add arg-nonnull.
39116         (Makefile.am): Insert arg-nonnull.h into wchar.h.
39117         * modules/argv-iter (Depends-on): Add arg-nonnull.
39118         * tests/test-canonicalize.c (null_ptr): New function.
39119         (main): Use it.
39120         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
39121         (main): Use it.
39122         * tests/test-memmem.c (null_ptr): New function.
39123         (main): Use it.
39124         Reported by Jim Meyering.
39125
39126 2009-12-10  Bruno Haible  <bruno@clisp.org>
39127
39128         Use spaces for indentation, not tabs.
39129         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
39130         * m4/*.m4: Untabify.
39131         * build-aux/*.h: Untabify.
39132         * tests/**/*.[hc]: Untabify.
39133         * README: New section "Indent with spaces, not TABs", based on
39134         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39135         * NEWS: Mention the change.
39136
39137 2009-12-10  Bruno Haible  <bruno@clisp.org>
39138
39139         pty test: Fix link error.
39140         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39141         test_pty_LDADD.
39142
39143 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39144
39145         * modules/pty: New file.
39146         * modules/pty-tests: New file.
39147         * m4/pty.m4: New file.
39148         * tests/test-pty.c: New file.
39149         * doc/glibc-headers/pty.texi: Modified.
39150         * doc/glibc-functions/forkpty.texi: Modified.
39151         * doc/glibc-functions/openpty.texi: Modified.
39152
39153 2009-12-10  Bruno Haible  <bruno@clisp.org>
39154
39155         Avoid syntax error in C++ mode.
39156         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39157
39158 2009-12-10  Bruno Haible  <bruno@clisp.org>
39159
39160         Use sed with option -e.
39161         * gnulib-tool (func_version, func_emit_copyright_notice,
39162         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39163         option -e to sed.
39164         * modules/link-warning (Makefile.am): Likewise.
39165
39166 2009-12-10  Jim Meyering  <meyering@redhat.com>
39167
39168         mgetgroups: do not write bytes beyond end of malloc'd buffer
39169         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39170         username, we call getgroups with a one-element-shorter buffer,
39171         but still told it the length was original, max_n_groups.
39172
39173 2009-12-09  Eric Blake  <ebb9@byu.net>
39174
39175         cloexec: relax license
39176         * modules/cloexec (Maintainer): Add myself.
39177         (License): Use LGPL, not GPL.
39178
39179         link-warning: optimize generation
39180         * modules/link-warning (Makefile.am): Reduce process usage.
39181
39182 2009-12-09  Bruno Haible  <bruno@clisp.org>
39183
39184         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39185         workaround was added on 2009-11-17.
39186
39187 2009-12-09  Jim Meyering  <meyering@redhat.com>
39188             Bruno Haible  <bruno@clisp.org>
39189
39190         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39191         * modules/link-warning (Makefile.am): Make the comment-removing sed
39192         command more robust in the face of bootstrap-prepended comment lines.
39193
39194 2009-12-09  Bruno Haible  <bruno@clisp.org>
39195
39196         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39197         most one group.
39198
39199 2009-12-09  Simon Josefsson <simon@josefsson.org>
39200             Bruno Haible  <bruno@clisp.org>
39201
39202         * build-aux/link-warning.h: Add copyright notice.
39203         * modules/link-warning (Makefile.am): Generate link-warning.h from
39204         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39205         * NEWS: Mention change in link-warning module.
39206         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39207         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39208         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39209         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39210         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39211         * modules/math (Makefile.am): Add dependency to math.h.
39212         * modules/search (Makefile.am): Add dependency to search.h.
39213         * modules/signal (Makefile.am): Add dependency to signal.h.
39214         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39215         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39216         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39217         * modules/string (Makefile.am): Add dependency to string.h.
39218         * modules/strings (Makefile.am): Add dependency to strings.h.
39219         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39220         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39221         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39222         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39223         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39224         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39225         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39226         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39227         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39228
39229 2009-12-09  Bruno Haible  <bruno@clisp.org>
39230
39231         fchdir: Optimize away rpl_fstat when possible.
39232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39233         REPLACE_OPEN_DIRECTORY.
39234         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39235
39236 2009-12-09  Bruno Haible  <bruno@clisp.org>
39237
39238         * lib/fchdir.c: Update comment.
39239
39240 2009-12-09  Bruno Haible  <bruno@clisp.org>
39241
39242         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39243
39244 2009-12-08  Eric Blake  <ebb9@byu.net>
39245
39246         fchdir: avoid memory leak on re-registration.
39247         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39248
39249 2009-12-08  Jim Meyering  <meyering@redhat.com>
39250
39251         init.sh: avoid Solaris 10 /bin/sh portability problem
39252         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39253         sourced script:
39254           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39255           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39256           bar
39257         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39258         and two tests used that idiom.
39259         * tests/init.sh: Update suggested usage comments.
39260         (path_prepend_): New function, to be used in place
39261         of the --src-path=DIR option.
39262         (setup_): Move PATH-prepending code into path_prepend_.
39263         * tests/test-pread.sh: Adapt to new usage.
39264         * tests/test-xalloc-die.sh: Likewise.
39265
39266 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39267
39268         * doc/gnulib.texi (Glibc pty.h): Add.
39269         * doc/glibc-functions/forkpty.texi: Add.
39270         * doc/glibc-functions/openpty.texi: Add.
39271         Suggested by Bruno Haible.
39272
39273 2009-12-08  Eric Blake  <ebb9@byu.net>
39274
39275         fchdir: fix logic bugs
39276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39277         * tests/test-fchdir.c (main): Enhance test.
39278         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39279         is in use.
39280
39281         dup2: fix logic bugs
39282         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39283         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39284         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39285         exists.
39286         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39287
39288 2009-12-07  Eric Blake  <ebb9@byu.net>
39289
39290         unlink: fix m4 detection
39291         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39292
39293         unistd-safer: add unit test
39294         * modules/unistd-safer-tests: New file.
39295         * tests/test-dup-safer.c: Likewise.
39296         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39297         * tests/test-dup2.c (setmode): Likewise.
39298         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39299
39300         cloexec: preserve text vs. binary across dup_cloexec
39301         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39302         mode.
39303         * modules/dup2-tests (Depends-on): Add binary-io.
39304         * modules/cloexec-tests (Depends-on): Likewise.
39305         * tests/test-dup2.c (setmode, is_mode): New helpers.
39306         (main): Add tests that translation mode is preserved.
39307         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39308         Reported by Bruno Haible.
39309
39310         mgetgroups: reduce duplicate listings
39311         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39312         resulting array.
39313         * tests/test-chown.h (test_chown): Simplify client.
39314         * tests/test-lchown.h (test_lchown): Likewise.
39315
39316 2009-12-06  Bruno Haible  <bruno@clisp.org>
39317
39318         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39319         value.
39320
39321 2009-12-06  Bruno Haible  <bruno@clisp.org>
39322
39323         * lib/progname.c: Include stdio.h, stdlib.h.
39324         (set_program_name): Reject a NULL argument.
39325
39326 2009-12-05  Eric Blake  <ebb9@byu.net>
39327
39328         pipe2-safer: new module
39329         * modules/pipe2-safer: New file.
39330         * lib/unistd-safer.h (pipe2_safer): New prototype.
39331         * lib/unistd--.h (pipe2): New wrapper.
39332         * lib/pipe-safer.c (pipe2_safer): New function.
39333         * modules/pipe (Depends-on): Add pipe2-safer.
39334         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39335
39336         stdlib-safer: preserve cloexec flag for mkostemp[s]
39337         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39338         fd_safer_flag.
39339
39340         unistd-safer: allow preservation of cloexec status via flag
39341         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39342         prototypes.
39343         * lib/dup-safer.c (dup_safer_flag): New function.
39344         * lib/fd-safer.c (fd_safer_flag): Likewise.
39345         * modules/cloexec (configure.ac): Set witness.
39346
39347         test-dup2: enhance test
39348         * modules/dup2-tests (Depends-on): Add cloexec.
39349         * tests/test-dup2.c (main): Enhance test.
39350
39351         cloexec: add dup_cloexec
39352         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39353         header and comments.
39354         * lib/cloexec.c (set_cloexec_flag): Add comments.
39355         (dup_cloexec): New function, with mingw implementation borrowed
39356         from...
39357         * lib/w32spawn.h (dup_noinherit): ...here.
39358         * modules/execute (Depends-on): Add cloexec.
39359         * modules/pipe (Depends-on): Likewise.
39360         * modules/cloexec (Depends-on): Add dup2.
39361         * modules/cloexec-tests (Files): New file.
39362         * tests/test-cloexec.c: Likewise.
39363
39364         test-xalloc-die: fix test for mingw
39365         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39366         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39367         directory and .exe suffix off argv[0] output.
39368
39369         test-fseeko: fix test for mingw
39370         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39371         than undefining fseek, so test will pass on mingw.
39372
39373 2009-12-05  Bruno Haible  <bruno@clisp.org>
39374
39375         * lib/progname.h (set_program_name): Clarify specification.
39376         * lib/progname.c (set_program_name): Likewise.
39377         Reported by Jim Meyering.
39378
39379 2009-12-05  Jim Meyering  <meyering@redhat.com>
39380
39381         maint.mk: backslash-escape parens in default regexp
39382         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39383         backslash-escape the literal parentheses.
39384
39385         maint.mk: news-date-check: use grep -E
39386         * top/maint.mk (today): Define a Make variable, not a...
39387         (news-date-check): ...shell variable.
39388         (news-date-regexp): Use the Make variable.
39389         Use grep's -E option.  Change the failing diagnostic to mention
39390         the variable, $(news-date-regexp).
39391
39392 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39393
39394         maintainer-makefile: allow customization of NEWS entry format
39395         * top/maint.mk (news-date-regexp): New overridable variable.
39396         (news-date-check): Use it.
39397
39398 2009-12-04  Eric Blake  <ebb9@byu.net>
39399
39400         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39401         * lib/mgetgroups.h (xgetgroups): New prototype.
39402         * lib/mgetgroups.c (xgetgroups): New wrapper.
39403         (mgetgroups): Handle ENOSYS.
39404         * modules/mgetgroups (Depends-on): Add realloc.
39405         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39406
39407         mgetgroups: avoid argument promotion issues with -1
39408         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39409         for invalid gid_t.
39410         * tests/test-chown.h (getegid, test_chown): Likewise.
39411         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39412
39413 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39414
39415         exclude: Fix header file problems.
39416         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39417
39418 2009-12-01  Jim Meyering  <meyering@redhat.com>
39419
39420         fts: fts_open: do not let an empty string cause immediate failure
39421         This is required in support of GNU rm, for which the command
39422         "rm A '' B" must process and remove both A and B, in spite of
39423         the empty string argument.
39424         * lib/fts.c (fts_open): Do not let the presence of an empty string
39425         cause fts_open to fail immediately.  Most fts-using tools must be
39426         able to process all arguments, in order, and can be expected to
39427         diagnose such arguments themselves.
39428
39429 2009-11-30  Eric Blake  <ebb9@byu.net>
39430
39431         utimens: fix compilation error
39432         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39433         Declare variable at right scope.
39434
39435 2009-11-29  Jim Meyering  <meyering@redhat.com>
39436
39437         bootstrap: handle perl-5.11's changed --version output
39438         * build-aux/bootstrap (get_version): Handle perl separately,
39439         since perl-5.11's --version output is different.
39440
39441 2009-11-28  Jim Meyering  <meyering@redhat.com>
39442
39443         userspec: depend on the inttostr module, too
39444         * modules/userspec (Depends-on): Add inttostr.
39445
39446         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39447         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39448         number of MAXUID when it evaluates to (uid_t) -1.
39449         Likewise for group ID.  Reported by Matt McCutchen in
39450         <http://savannah.gnu.org/bugs/?28113>
39451
39452         userspec: reformat to use spaces, not TABs
39453         * lib/userspec.c: Expand TABs to spaces.
39454         Add Emacs' "indent-tabs-mode: nil" hint.
39455
39456 2009-11-27  Eric Blake  <ebb9@byu.net>
39457
39458         getopt-gnu: flush out another BSD bug
39459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39460         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39461         flush out BSD bug.
39462         * tests/test-getopt.h (test_getopt): End lists with NULL.
39463         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39464         (test_getopt_long_posix): Enhance test.
39465         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39466         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39467         getopt-gnu.
39468         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39469         Likewise.
39470
39471 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39472
39473         * modules/idpriv-droptemp-tests (Notice): Fix text.
39474
39475 2009-11-27  Jim Meyering  <meyering@redhat.com>
39476
39477         test-xalloc-die: avoid spurious failure due to libtool argv difference
39478         In a libtool-enabled project, this test would fail due to a difference
39479         in the emitted program name, e.g.,
39480         -test-xalloc-die: memory exhausted
39481         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39482         Use program to avoid that.
39483         * modules/xalloc-die-tests (Depends-on): Add progname.
39484         * tests/test-xalloc-die.c: Include progname.h".
39485         (program_name): Remove decl.
39486         (main): Call set_program_name.
39487         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39488
39489 2009-11-26  Richard Jones  <rjones@redhat.com>
39490
39491         w32sock: leave win32 error in place.
39492         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39493
39494 2009-11-26  Eric Blake  <ebb9@byu.net>
39495
39496         init.sh: suggest to use skip_ and fail_ functions in comments
39497         * tests/init.sh: Add a sentence.
39498
39499 2009-11-25  Bruno Haible  <bruno@clisp.org>
39500
39501         init.sh: add documentation in comments
39502         * tests/init.sh: Add some developer and user documentation.
39503
39504 2009-11-26  Jim Meyering  <meyering@redhat.com>
39505
39506         init.sh: accommodate even those who specify bogus srcdir manually
39507         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39508         configure-time tests to be sanitized, so that there is no need to
39509         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39510         (with no double quotes) suffices.  However, since tests may be
39511         invoked manually, and since you may explicitly set srcdir to the
39512         name of a directory containing spaces, do quote its uses here.
39513         * tests/test-pread.sh: Likewise.
39514         Suggested by Bruno Haible.
39515
39516         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39517         * tests/test-pread.sh: Write no data into the pipe, because
39518         test-pread actually reads none.  This avoids a diagnostic,
39519         "bash: echo: write error: Broken pipe", that arises in the unusual
39520         event something is ignoring SIGPIPE, and might be interpreted
39521         as some sort of failure.  Reported by Bruno Haible.
39522
39523 2009-11-25  Jim Meyering  <meyering@redhat.com>
39524
39525         test-pread: cover failure with ESPIPE and EINVAL
39526         * tests/test-pread.c (main): Test for failure, too.
39527         * tests/test-pread.sh: Invoke with stdin on a pipe.
39528         Suggested by Eric Blake.
39529
39530         pread: improvement and fix
39531         * modules/pread (Depends-on): Depend on lseek, for portability to
39532         e.g., mingw.  Suggested by Eric Blake.
39533         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39534
39535         unistd.in.h: correct declaration of pread
39536         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39537         Reported by Richard W.M. Jones.
39538
39539         test-pread.sh: distribute the test script
39540         * modules/pread-tests (Files): Include test-pread.sh.
39541
39542         test-pread.sh: clean up
39543         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39544         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39545         That is unnecessary, since it's always ".".
39546         Suggestion from Eric Blake.
39547
39548         test-pread.sh: make executable
39549         * tests/test-pread.sh: Set executable bit.
39550         Reported by Eric Blake.
39551
39552         correct typo in test-pread.sh
39553         * tests/test-pread.sh: Add #! line.
39554
39555         test pread
39556         * tests/test-pread.c: New file.
39557         * tests/test-pread.sh: Likewise.
39558         * modules/pread-tests: Likewise.
39559
39560         pread: new module
39561         * modules/pread: New file.
39562         * lib/unistd.in.h (pread): Define/declare.
39563         * lib/pread.c (pread): New file.
39564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39565         * modules/unistd (Makefile.am): Substitute witnesses.
39566         * doc/posix-functions/pread.texi (pread): Update.
39567         * MODULES.html.sh: Add pread.
39568
39569 2009-11-25  Jim Meyering  <meyering@redhat.com>
39570
39571         tests/init.sh: new file to be used via most *.sh tests
39572         * tests/init.sh: New file.
39573
39574 2009-11-25  Eric Blake  <ebb9@byu.net>
39575
39576         utimens: work around older Linux failure with symlinks
39577         * lib/utimens.c (lutimensat_works_really): New variable.
39578         (fdutimens, lutimens): Use it to manage kernels that support
39579         nanosecond times on files, but not on symlinks.
39580         Reported by Ondřej Vašík.
39581
39582         utimes: fix configure grammar
39583         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39584
39585 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39586
39587         regex: Fix fastmap for multibyte character ranges.
39588         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39589         characters when a multibyte character range is included.
39590
39591 2009-11-22  Andy Wingo  <wingo@pobox.com>
39592
39593         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39594         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39595
39596 2009-11-24  Bruno Haible  <bruno@clisp.org>
39597
39598         doc: Most *_l functions exist in MacOS X 10.5.
39599         * doc/posix-functions/duplocale.texi: Update platforms list.
39600         * doc/posix-functions/freelocale.texi: Likewise.
39601         * doc/posix-functions/newlocale.texi: Likewise.
39602         * doc/posix-functions/uselocale.texi: Likewise.
39603         * doc/posix-functions/isalnum_l.texi: Likewise.
39604         * doc/posix-functions/isalpha_l.texi: Likewise.
39605         * doc/posix-functions/isblank_l.texi: Likewise.
39606         * doc/posix-functions/iscntrl_l.texi: Likewise.
39607         * doc/posix-functions/isdigit_l.texi: Likewise.
39608         * doc/posix-functions/isgraph_l.texi: Likewise.
39609         * doc/posix-functions/islower_l.texi: Likewise.
39610         * doc/posix-functions/isprint_l.texi: Likewise.
39611         * doc/posix-functions/ispunct_l.texi: Likewise.
39612         * doc/posix-functions/isspace_l.texi: Likewise.
39613         * doc/posix-functions/isupper_l.texi: Likewise.
39614         * doc/posix-functions/iswalnum_l.texi: Likewise.
39615         * doc/posix-functions/iswalpha_l.texi: Likewise.
39616         * doc/posix-functions/iswblank_l.texi: Likewise.
39617         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39618         * doc/posix-functions/iswctype_l.texi: Likewise.
39619         * doc/posix-functions/iswdigit_l.texi: Likewise.
39620         * doc/posix-functions/iswgraph_l.texi: Likewise.
39621         * doc/posix-functions/iswlower_l.texi: Likewise.
39622         * doc/posix-functions/iswprint_l.texi: Likewise.
39623         * doc/posix-functions/iswpunct_l.texi: Likewise.
39624         * doc/posix-functions/iswspace_l.texi: Likewise.
39625         * doc/posix-functions/iswupper_l.texi: Likewise.
39626         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39627         * doc/posix-functions/isxdigit_l.texi: Likewise.
39628         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39629         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39630         * doc/posix-functions/strcoll_l.texi: Likewise.
39631         * doc/posix-functions/strfmon_l.texi: Likewise.
39632         * doc/posix-functions/strftime_l.texi: Likewise.
39633         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39634         * doc/posix-functions/strxfrm_l.texi: Likewise.
39635         * doc/posix-functions/tolower_l.texi: Likewise.
39636         * doc/posix-functions/toupper_l.texi: Likewise.
39637         * doc/posix-functions/towctrans_l.texi: Likewise.
39638         * doc/posix-functions/towlower_l.texi: Likewise.
39639         * doc/posix-functions/towupper_l.texi: Likewise.
39640         * doc/posix-functions/wcscoll_l.texi: Likewise.
39641         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39642         * doc/posix-functions/wctrans_l.texi: Likewise.
39643         * doc/posix-functions/wctype_l.texi: Likewise.
39644         * doc/glibc-functions/strptime_l.texi: Likewise.
39645         * doc/glibc-functions/strtod_l.texi: Likewise.
39646         * doc/glibc-functions/strtof_l.texi: Likewise.
39647         * doc/glibc-functions/strtol_l.texi: Likewise.
39648         * doc/glibc-functions/strtold_l.texi: Likewise.
39649         * doc/glibc-functions/strtoll_l.texi: Likewise.
39650         * doc/glibc-functions/strtoul_l.texi: Likewise.
39651         * doc/glibc-functions/strtoull_l.texi: Likewise.
39652         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39653         * doc/glibc-functions/wcstod_l.texi: Likewise.
39654         * doc/glibc-functions/wcstof_l.texi: Likewise.
39655         * doc/glibc-functions/wcstol_l.texi: Likewise.
39656         * doc/glibc-functions/wcstold_l.texi: Likewise.
39657         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39658         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39659         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39660
39661 2009-11-24  Bruno Haible  <bruno@clisp.org>
39662
39663         duplocale: Fix logic bug.
39664         * lib/duplocale.c: Don't include <langinfo.h>.
39665         (_NL_LOCALE_NAME): Remove macro.
39666         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39667         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39668
39669 2009-11-23  Jim Meyering  <meyering@redhat.com>
39670
39671         test-update-copyright: don't hard-code /usr/bin/perl
39672         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39673         perl to print the current year.  Gilles Espinasse reported that
39674         the replaced use of perl was hard-coded as /usr/bin/perl.
39675
39676 2009-11-23  Bruno Haible  <bruno@clisp.org>
39677
39678         duplocale: Add support for glibc 2.3.x.
39679         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39680
39681 2009-11-22  Bruno Haible  <bruno@clisp.org>
39682
39683         vasnprintf: Tiny optimization.
39684         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39685         MacOS X.
39686
39687 2009-11-22  Bruno Haible  <bruno@clisp.org>
39688
39689         Tests for module 'duplocale'.
39690         * modules/duplocale-tests: New file.
39691         * tests/test-duplocale.c: New file.
39692
39693         New module 'duplocale'.
39694         * m4/duplocale.m4: New file.
39695         * lib/locale.in.h (duplocale): New declaration.
39696         * lib/duplocale.c: New file.
39697         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39698         gl_LOCALE_H_DEFAULTS): New macros.
39699         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39700         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39701         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39702         REPLACE_DUPLOCALE.
39703         * modules/duplocale: New file.
39704         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39705
39706 2009-11-22  Bruno Haible  <bruno@clisp.org>
39707
39708         * modules/locale-tests (configure.ac): Test for newlocale function.
39709         * tests/test-locale.c: When the system has extended locale functions,
39710         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39711
39712         locale: Make locale_t available when possible.
39713         * lib/locale.in.h: Include <xlocale.h> when it exists.
39714         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39715         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39716         * modules/locale (Depends-on): Add extensions.
39717         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39718         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39719
39720 2009-11-22  Bruno Haible  <bruno@clisp.org>
39721
39722         Add comments.
39723         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39724         invocation.
39725         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39726         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39727         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39728
39729 2009-11-22  Bruno Haible  <bruno@clisp.org>
39730
39731         error: account for the possibility of freopen (stdout).
39732         * lib/error.c: Include <unistd.h>.
39733         (flush_stdout): New function, extracted from error and error_at_line.
39734         Determine stdout's fd dynamically.
39735         (error, error_at_line): Invoke flush_stdout.
39736         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39737         * modules/error (Depends-on): Add unistd.
39738
39739 2009-11-22  Bruno Haible  <bruno@clisp.org>
39740
39741         diffseq: Add comment.
39742         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39743
39744 2009-11-22  Jim Meyering  <meyering@redhat.com>
39745
39746         c-stack: avoid defining an unused static function
39747         * lib/c-stack.c (find_stack_direction): Do not define this function
39748         when it will not be used.
39749
39750         diffseq: avoid spurious gcc warnings
39751         * lib/diffseq.h (IF_LINT2): Define.
39752         (compareseq): Use it to initialize two members of "part".
39753         This avoids two used-uninitialized warnings.
39754
39755 2009-11-21  Jim Meyering  <meyering@redhat.com>
39756
39757         c-stack: avoid "ignoring return value of `write'" warning
39758         * lib/c-stack.c: Include "ignore-value.h".
39759         (die): Explicitly ignore each write return value.
39760         * modules/c-stack (Depends-on): Add ignore-value.
39761
39762 2009-11-21  Bruno Haible  <bruno@clisp.org>
39763
39764         diffseq: reduce scope of variable 'best'.
39765         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39766         variable, earlier used for two different purposes.
39767
39768 2009-11-21  Jim Meyering  <meyering@redhat.com>
39769
39770         diffseq: remove useless assignment to "best"
39771         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39772         assignment.  At that point "best" is already guaranteed to be zero.
39773
39774 2009-11-20  Eric Blake  <ebb9@byu.net>
39775
39776         build: mention ftp redirector in release announcements
39777         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39778         values that used to come from cfg.mk; mention FTP redirect URL.
39779         * build-aux/announce-gen: Mention the mirror list.
39780         Suggested by Karl Berry.
39781
39782         nanosleep: improve port to mingw
39783         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39785         LIB_NANOSLEEP, but only when needed.
39786         * modules/select (Link): Document LIBSOCKET.
39787         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39788         enough.
39789
39790         nanosleep: work around cygwin bug
39791         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39792         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39793         bug.
39794         (getnow): Delete, not needed.
39795         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39796         LIB_CLOCK_GETTIME.
39797         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39798         clock-time, gettime.
39799         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39800         bug.
39801         * modules/nanosleep-tests: New test.
39802         * tests/test-nanosleep.c: New file.
39803
39804         sleep: work around cygwin bug
39805         * lib/sleep.c (rpl_sleep): Work around the bug.
39806         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39807         (gl_PREREQ_SLEEP): Delete unused macro.
39808         * modules/sleep (Depends-on): Add verify.
39809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39810         * modules/unistd (Makefile.am): Substitute witness.
39811         * lib/unistd.in.h (sleep): Update prototype.
39812         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39813         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39814         * modules/sleep-tests (Depends-on): Check for alarm.
39815
39816 2009-11-20  Jim Meyering  <meyering@redhat.com>
39817
39818         maint.mk: improve sc_prohibit_magic_number_exit
39819         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39820         so it does not match uses like System.exit(1).
39821         Add comments showing how to correct all offenders.
39822
39823 2009-11-19  Eric Blake  <ebb9@byu.net>
39824
39825         xalloc-die-tests: add missing library
39826         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39827
39828         test-xvasprintf: silence compiler warnings
39829         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39830         empty string from gcc.
39831
39832 2009-11-19  Jim Meyering  <meyering@redhat.com>
39833
39834         xfreopen: new module, from coreutils
39835         * modules/xfreopen: New module.
39836         * lib/xfreopen.c: New file.
39837         * lib/xfreopen.h: New file.
39838         * MODULES.html.sh (File stream based Input/Output"): Add it.
39839
39840 2009-11-19  Eric Blake  <ebb9@byu.net>
39841
39842         manywarnings: depend on warnings
39843         * modules/manywarnings (Depends-on): Add warnings.
39844
39845         build: avoid compiler warnings
39846         * lib/select.c (rpl_select): Delete unused variable.
39847         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39848
39849 2009-11-18  Eric Blake  <ebb9@byu.net>
39850
39851         tests: avoid false negative with --with-packager
39852         * tests/test-version-etc.sh: Discard packager information.
39853         * tests/test-argp-version-etc-1.sh: Likewise.
39854         Reported by Mike Frysinger.
39855
39856         utimens: fix regression on Solaris
39857         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39858         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39859         can only change fd timestamps via futimesat.  Instead, use an
39860         additional witness macro to avoid BSD bug.
39861         Reported by Jim Meyering.
39862
39863 2009-11-17  Eric Blake  <ebb9@byu.net>
39864
39865         usleep: use it to simplify tests
39866         * modules/stat-time-tests (Depends-on): Add usleep.
39867         (configure.ac): Drop usleep check.
39868         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39869         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39870         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39871         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39872         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39873         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39874         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39875         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39876         Likewise.
39877         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39878         * tests/test-lchown.h (nap): Likewise.
39879         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39880         * tests/test-stat-time.c (nap): Likewise.
39881         * tests/test-utimens-common.h (nap): Update comments.
39882
39883         usleep: new module
39884         * modules/usleep: New file.
39885         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39886         * lib/usleep.c (usleep): Likewise.
39887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39888         * modules/unistd (Makefile.am): Substitute witnesses.
39889         * lib/unistd.in.h (usleep): Add declaration.
39890         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39891         * MODULES.html.sh (Date and time): Likewise.
39892         * modules/usleep-tests (Depends-on): New test.
39893         * tests/test-usleep.c: New file.
39894
39895         chown: work around OpenBSD bug
39896         * lib/chown.c (rpl_chown): Work around the bug.
39897         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39898         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39899         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39900         * modules/chown (Depends-on): Add stdbool.
39901         * modules/lchown (Depends-on): Likewise.
39902         * doc/posix-functions/chown.texi (chown): Document the bug.
39903         * doc/posix-functions/lchown.texi (lchown): Likewise.
39904         * tests/test-lchown.h (test_chown): Relax test.
39905
39906         mkstemp: avoid conflict with C++ keyword template
39907         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39908         * lib/mkostemp.c (mkostemp): Likewise.
39909         * lib/mkostemps.c (mkostemps): Likewise.
39910         * lib/mkstemp.c (mkstemp): Likewise.
39911         * lib/mkstemps.c (mkstemps): Likewise.
39912
39913         xalloc-die-tests: optimize
39914         * tests/test-xalloc-die.sh: Reduce number of processes.
39915
39916 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39917
39918         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39919         patch from ludo@gnu.org (Ludovic Courtès).
39920
39921 2009-11-17  Jim Meyering  <meyering@redhat.com>
39922
39923         version-etc: use proper license string
39924         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39925         * modules/version-etc-fsf: Likewise.
39926
39927 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39928
39929         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39930         printed to stdout.  Deal with EOL differences.
39931
39932 2009-11-17  Eric Blake  <ebb9@byu.net>
39933
39934         unsetenv: work around Solaris bug
39935         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39936         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39937         Reported by Jim Meyering.
39938
39939         vasnprintf: avoid compiler warnings
39940         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39941         variables.
39942         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39943
39944 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39945
39946         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39947         settings since xalloc-die is no longer the self test,
39948         xalloc-die.sh is.
39949
39950 2009-11-17  Jim Meyering  <meyering@redhat.com>
39951
39952         test-xalloc-die.sh: make the code agree with the commit log
39953         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39954         at the end, just in case you happen to have a test-xalloc-die
39955         program in some other PATH directory.
39956
39957         test-xalloc-die.sh: fix a portability bug
39958         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39959         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39960         Otherwise, argv[0] (as often seen in diagnostics) would be too
39961         system-dependent, sometimes with, and sometimes without the leading "./".
39962
39963         version-etc-fsf: relax license to LGPLv3+
39964         * modules/version-etc-fsf (License): Relax license.
39965
39966 2009-11-16  Eric Blake  <ebb9@byu.net>
39967
39968         xalloc-die-tests: avoid printing null pointer
39969         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39970         shell script.
39971         * tests/test-xalloc-die.c (program_name): Declare.
39972         * tests/test-xalloc-die.sh (tmpfiles): New file.
39973
39974         setenv, unsetenv: work around various bugs
39975         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39976         (setenv) [HAVE_SETENV]: Work around bugs.
39977         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39978         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39979         for bugs.
39980         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39981         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39983         * modules/stdlib (Makefile.am): Update substitutions.
39984         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39985         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39986         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39987         * modules/setenv-tests: New test.
39988         * modules/unsetenv-tests: Likewise.
39989         * tests/test-setenv.c: New file.
39990         * tests/test-unsetenv.c: Likewise.
39991
39992 2009-11-16  Jim Meyering  <meyering@redhat.com>
39993
39994         version-etc: relax license to LGPLv3+
39995         * modules/version-etc (License): Relax license.
39996
39997         better AC_REQUIRE expanded-before-required-warning avoidance
39998         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39999         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
40000         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
40001         which is no longer needed.
40002
40003 2009-11-16  Eric Blake  <ebb9@byu.net>
40004
40005         test-freading: clean up temporary file
40006         * tests/test-freading.c (main): Remove file on success, and use
40007         ASSERT more liberally.
40008         Reported by Jim Meyering.
40009
40010 2009-11-16  Jim Meyering  <meyering@redhat.com>
40011
40012         avoid new AC_REQUIRE expanded-before-required warnings
40013         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
40014         merely using it.
40015         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
40016         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
40017
40018 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40019
40020         * tests/test-xalloc-die.c: New file.
40021         * modules/xalloc-die-tests: New file.
40022         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
40023         XFAIL_TESTS so it can be appended by modules.
40024
40025 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40026
40027         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
40028         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
40029
40030 2009-11-14  Eric Blake  <ebb9@byu.net>
40031
40032         fnmatch: avoid compiler warning
40033         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
40034         to silence compiler warning about mismatch signedness in ?:.
40035         Reported by Robert Millan.
40036
40037         intprops: add double-inclusion guard
40038         * lib/intprops.h: Allow idempotent includes.
40039         Suggested by Bruce Korb.
40040
40041         openat: detect Solaris fchownat bug
40042         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
40043         penalizing glibc chownat when only lchownat is broken.
40044         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
40045         trailing slash bugs.
40046         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
40047         * modules/openat-tests (Files): Include more files.
40048         (Depends-on): Add mgetgroups, sleep, stat-time.
40049         (configure.ac): Add additional checks.
40050         (Makefile.am): Build new test.
40051         * tests/test-fchownat.c: New file.
40052
40053         lchown: detect Solaris and FreeBSD bug
40054         * lib/lchown.c (rpl_lchown): Work around bug.
40055         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
40056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40057         * modules/unistd (Makefile.am): Populate it.
40058         * lib/unistd.in.h (lchown): Update declaration.
40059         * doc/posix-functions/lchown.texi (lchown): Document the bug.
40060         * modules/lchown-tests: New file.
40061         * tests/test-lchown.h (test_lchown): Likewise.
40062         * tests/test-lchown.c (main): Likewise.
40063
40064         chown: detect Solaris and FreeBSD bug
40065         * lib/chown.c (rpl_chown): Work around bug.
40066         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
40067         (gl_PREREQ_CHOWN): Delete.
40068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40069         * modules/unistd (Makefile.am): Populate it.
40070         * lib/unistd.in.h (chown): Update declaration.
40071         * lib/lchown.c (chown): Update client.
40072         * modules/lchown (Depends-on): Add lstat.
40073         * doc/posix-functions/chown.texi (chown): Document the bug.
40074         * doc/posix-functions/getgroups.texi (getgroups): Document
40075         getgroups pitfall.
40076         * modules/chown-tests: New file.
40077         * tests/test-chown.h (test_chown): Likewise.
40078         * tests/test-chown.c (main): Likewise.
40079
40080 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
40081
40082         gnulib-tool: correctly detect absence of m4 directories
40083         * gnulib-tool: Avoid extra newline on data passed to wc -l.
40084
40085 2009-11-14  Jim Meyering  <meyering@redhat.com>
40086
40087         maint.mk: Prohibit inclusion of "xalloc.h" without use.
40088         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40089
40090 2009-11-14  John W. Eaton  <jwe@gnu.org>
40091
40092         strftime.h: wrap function declaration in extern "C" block
40093         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
40094
40095 2009-11-13  Eric Blake  <ebb9@byu.net>
40096
40097         getgroups: avoid compiler warning
40098         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
40099
40100         getgroups: work around FreeBSD bug
40101         * lib/getgroups.c (rpl_getgroups): Work around the bug.
40102         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
40103         * doc/posix-functions/getgroups.texi (getgroups): Document it.
40104         * tests/test-getgroups.c (main): Fix buffer overrun.
40105
40106         getgroups: avoid compilation failure
40107         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
40108         * modules/getgroups (Depends-on): Add stdint.
40109
40110 2009-11-13  Jim Meyering  <meyering@redhat.com>
40111
40112         test-getgroups: avoid compilation failure
40113         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
40114
40115 2009-11-13  Eric Blake  <ebb9@byu.net>
40116
40117         mgetgroups: new module, taken from coreutils
40118         * modules/mgetgroups: New file.
40119         * lib/mgetgroups.h: Likewise.
40120         * lib/mgetgroups.c (mgetgroups): Likewise.
40121         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
40122         * MODULES.html.sh (Users and groups): Mention it.
40123
40124         getgroups: don't expose GETGROUPS_T to user
40125         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
40126         an element at a time if GETGROUPS_T is wrong size.
40127         * lib/getugroups.h (getugroups): Change signature.
40128         * lib/unistd.in.h (getgroups): Likewise.
40129         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
40130         signature needs fixing.
40131         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
40132         AC_TYPE_GETGROUPS.
40133         * modules/group-member (Depends-on): Add getgroups.
40134         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40135         (group_member): Rely on getgroups replacement.
40136         * lib/getugroups.c (getugroups): Use gid_t.
40137         * tests/test-getgroups.c (main): Likewise.
40138         * NEWS: Mention the signature change.
40139         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40140         problem with signature.
40141         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40142         GETGROUPS_T is still useful for setgroups.
40143
40144         getgroups, getugroups: provide stubs for mingw
40145         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40146         * lib/getugroups.c (getugroups): Likewise.
40147         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40148         function.  Modernize replacement scheme.
40149         (gl_PREREQ_GETGROUPS): Delete.
40150         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40151         * modules/getgroups (configure.ac): Declare witness.
40152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40153         * modules/unistd (Depends-on): Substitute witness.
40154         * lib/unistd.in.h (getgroups): Declare replacement.
40155
40156         getgroups: avoid calling exit
40157         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40158         drop xalloc.
40159         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40160         dependencies.
40161         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40162         exiting, in the rare case of malloc failure.
40163
40164         getgroups: fix logic error
40165         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40166         has more than 20 groups.
40167         * modules/getgroups-tests: New test.
40168         * tests/test-getgroups.c: New file.
40169
40170 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40171
40172         * tests/test-base64.c: Improve.
40173
40174 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40175
40176         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40177         Blake <ebb9@byu.net>.
40178
40179 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40180
40181         * tests/test-xvasprintf.c: Add %s%s related checks.
40182
40183 2009-11-12  Eric Blake  <ebb9@byu.net>
40184
40185         version-etc: match standards.texi style
40186         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40187         and use <> only for URLs.
40188
40189 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40190
40191         fts: do not fail on a submount during traversal
40192         * lib/fts.c (fts_build): Read the stat info again after opening
40193         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40194         Original report at http://bugzilla.redhat.com/501848.
40195
40196 2009-11-12  Jim Meyering  <meyering@redhat.com>
40197
40198         bootstrap: sync from coreutils
40199         * build-aux/bootstrap (bootstrap_epilogue): New function.
40200         Use git_modules_config in one more place.  This make bootstrap's
40201         --gnulib-srcdir option more useful for testing.
40202
40203         bootstrap: generalize autoheader check
40204         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40205         AC_CONFIG_HEADERS.
40206
40207 2009-11-11  Eric Blake  <ebb9@byu.net>
40208
40209         mkfifoat: use new modules for Solaris and BSD bugs
40210         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40211         * lib/mkfifoat.c (mknodat): Split...
40212         * lib/mknodat.c (mknodat): ...into new file.
40213         * modules/mkfifoat (Files): Ship new file.
40214         (Depends-on): Add mkfifo, mknod.
40215         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40216         (Depends-on): Add symlink.
40217         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40218         redundant with test_mkfifo.h.
40219         (do_mkfifoat, do_mknodat): New helpers.
40220
40221         mknod: new module
40222         * modules/mknod: New file.
40223         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40224         * lib/mknod.c (mknod): Likewise.
40225         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40226         defaults.
40227         * modules/sys_stat (Makefile.am): Substitute them.
40228         * lib/sys_stat.in.h (mknod): Declare replacement.
40229         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40230         Document it.
40231         * doc/posix-functions/mknod.texi (mknod): Likewise.
40232         * modules/mknod-tests: New test.
40233         * tests/test-mknod.c: Likewise.
40234
40235         mkfifo: new module
40236         * modules/mkfifo: New file.
40237         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40238         * lib/mkfifo.c (mkfifo): Likewise.
40239         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40240         defaults.
40241         * modules/sys_stat (Makefile.am): Substitute them.
40242         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40243         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40244         Document it.
40245         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40246         * modules/mkfifo-tests: New test.
40247         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40248         from test-mkfifoat.c.
40249         * tests/test-mkfifo.c: New file.
40250
40251         readlink: detect FreeBSD bug
40252         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40253         slash on symlink.
40254         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40255         * tests/test-readlink.h (test_readlink): Enhance test.
40256
40257         symlink: detect FreeBSD bug
40258         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40259         slash on symlink.
40260         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40261         * tests/test-symlink.h (test_symlink): Enhance test.
40262
40263 2009-11-10  Eric Blake  <ebb9@byu.net>
40264
40265         link: detect FreeBSD bug
40266         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40267         symlink.
40268         * doc/posix-functions/link.texi (link): Document the bug.
40269         * tests/test-link.h (test_link): Enhance test.
40270         * tests/test-linkat.c (main): Update caller.
40271
40272         unlink, remove: detect FreeBSD bug
40273         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40274         slash on symlink.
40275         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40276         * doc/posix-functions/remove.texi (remove): Likewise.
40277         * tests/test-unlink.h (test_unlink): Enhance test.
40278         * tests/test-remove.c (main): Likewise.
40279
40280 2009-11-09  Eric Blake  <ebb9@byu.net>
40281
40282         rename: detect FreeBSD bug
40283         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40284         slash on symlink.
40285         * modules/renameat-tests (Depends-on): Add filenamecat.
40286         * tests/test-rename.h (test_rename): Allow one more errno.
40287         * tests/test-renameat.c (main): Likewise.
40288         * doc/posix-functions/rename.texi (rename): Document the bug.
40289
40290         open: detect FreeBSD bug
40291         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40292         symlink.
40293         * doc/posix-functions/open.texi (open): Document the bug.
40294         * doc/posix-functions/utimes.texi (utimes): Likewise.
40295         * tests/test-open.h (test_open): Add parameters, and test symlink
40296         handling.
40297         * tests/test-open.c (main): Adjust caller.
40298         * tests/test-fcntl-safer.c (main): Likewise.
40299         * modules/open-tests (Depends-on): Add stdbool, symlink.
40300         * modules/fcntl-safer-tests (Depends-on): Likewise.
40301         * tests/test-openat.c (main): Add test-open tests.
40302
40303         stat: detect FreeBSD bug
40304         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40305         symlink.
40306         * doc/posix-functions/stat.texi (stat): Document the bug.
40307         * tests/test-stat.h (test_stat_func): Add argument.
40308         * tests/test-stat.c (main): Adjust caller.
40309         * tests/test-fstatat.c (main): Likewise.
40310         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40311         Reported by Jim Meyering.
40312
40313 2009-11-09  James Youngman  <jay@gnu.org>
40314
40315         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40316         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40317
40318 2009-11-08  Jim Meyering  <meyering@redhat.com>
40319
40320         utimens: remove invalid futimesat call
40321         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40322         It used the file descriptor of the target file as the DIR_FD
40323         parameter and NULL as the file name.  That caused failure with
40324         errno == EFAULT on FreeBSD-8.0-rc2
40325
40326 2009-11-07  Eric Blake  <ebb9@byu.net>
40327
40328         fflush, freadseek: use fseeko, not fseek
40329         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40330         (clear_ungetc_buffer): Avoid potential problems on large files.
40331         * lib/freadseek.c (freadseek): Likewise.
40332         * modules/freadseek (Depends-on): Add fseeko.
40333         * modules/fseek (configure.ac): Set a witness.
40334         * tests/test-fflush.c (main): Use fseeko.
40335         * tests/test-fpurge.c (fseek): Disable link warning.
40336         * tests/test-freadable.c (fseek): Likewise.
40337         * tests/test-freading.c (fseek): Likewise.
40338         * tests/test-fseeko.c (fseek): Likewise.
40339         * tests/test-ftell.c (fseek): Likewise.
40340         * tests/test-ftello.c (fseek): Likewise.
40341         * tests/test-fwritable.c (fseek): Likewise.
40342         * tests/test-fwriting.c (fseek): Likewise.
40343
40344 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40345
40346         * modules/memchr (Depends-on): Drop getpagesize dependency.
40347
40348 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40349
40350         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40351         Reported by Ludovic Courtès.
40352         * build-aux/pmccabe2html: Improve example usage.
40353         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40354
40355 2009-11-06  Jim Meyering  <meyering@redhat.com>
40356
40357         do-release-commit-and-tag: New module.
40358         Automate the release-commit and tag process.
40359         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40360         * modules/do-release-commit-and-tag: New file.
40361         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40362
40363 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40364
40365         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40366         because test-select.c uses inet_pton.
40367
40368 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40369
40370         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40371         GETADDRINFO_LIB.  Bump serial number.
40372         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40373         Suggested by Eric Blake <ebb9@byu.net>.
40374
40375 2009-11-05  Eric Blake  <ebb9@byu.net>
40376
40377         strtod: detect darwin bug
40378         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40379         Reported by Leo Davis.
40380
40381         freopen-safer: new module
40382         * modules/freopen-safer: New module.
40383         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40384         * lib/freopen-safer.c (freopen_safer): New file.
40385         * lib/stdio-safer.h (freopen_safer): New declaration.
40386         * lib/stdio--.h (freopen): New override.
40387         * MODULES.html.sh (File stream based Input/Output): Mention it.
40388         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40389         freopen-safer module.
40390         * doc/posix-functions/stderr.texi (stderr): Likewise.
40391         * doc/posix-functions/stdin.texi (stdin): Likewise.
40392         * doc/posix-functions/stdout.texi (stdout): Likewise.
40393         * modules/freopen-safer-tests: New test.
40394         * tests/test-reopen-safer.c: New file.
40395
40396 2009-11-05  Jim Meyering  <meyering@redhat.com>
40397
40398         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40399         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40400
40401 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40402
40403         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40404
40405 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40406
40407         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40408
40409 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40410
40411         Fix link error.
40412         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40413         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40414
40415 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40416
40417         * tests/test-func.c: Also test value of __func__.
40418
40419 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40420
40421         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40422         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40423
40424 2009-11-05  Bruno Haible  <bruno@clisp.org>
40425
40426         Fix link error.
40427         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40428         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40429         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40430
40431 2009-11-05  Bruno Haible  <bruno@clisp.org>
40432
40433         Tests for module 'inet_pton'.
40434         * modules/inet_pton-tests: New file.
40435         * tests/test-inet_pton.c: New file.
40436
40437 2009-11-05  Bruno Haible  <bruno@clisp.org>
40438
40439         Tests for module 'inet_ntop'.
40440         * modules/inet_ntop-tests: New file.
40441         * tests/test-inet_ntop.c: New file.
40442
40443 2009-11-04  Eric Blake  <ebb9@byu.net>
40444
40445         stdlib-safer: wrap all mkstemp variants
40446         * modules/mkostemp (configure.ac): Set witness.
40447         * modules/mkostemps (configure.ac): Likewise.
40448         * modules/mkstemps (configure.ac): Likewise.
40449         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40450         (mkstemps_safer): Wrap more functions.
40451         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40452         wrapping.
40453         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40454         (mkstemps_safer): Implement the wrappers.
40455
40456         mkstemps, mkostemps: new modules
40457         * modules/mkostemps: New module.
40458         * modules/mkstemps: Likewise.
40459         * lib/mkostemps.c (mkostemps): New file.
40460         * lib/mkstemps.c (mkstemps): Likewise.
40461         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40462         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40464         * modules/stdlib (Makefile.am): Substitute them.
40465         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40466         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40467         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40468         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40469         * MODULES.html.sh (File system functions): Mention them.
40470
40471         tempname: resync from glibc
40472         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40473         same values for __GT_FILE as glibc.  Abort even when assertions
40474         are disabled.
40475         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40476         match its value otherwise.  Allow idempotent inclusion.
40477         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40478         * lib/mkostemp.c (mkostemp): Likewise.
40479         * lib/mkstemp.c (mkstemp): Likewise.
40480         * lib/tmpfile.c (tmpfile): Likewise.
40481         * NEWS: Document this.
40482
40483         utimens: fix use of futimens on older Linux
40484         * lib/utimens.c (fdutimens): Use updated, rather than original,
40485         timespec to avoid bug in older Linux kernel.
40486         Reported by Simon Josefsson.
40487
40488 2009-11-04  Bruno Haible  <bruno@clisp.org>
40489
40490         Make num_processors more flexible and consistent.
40491         * lib/nproc.h (enum nproc_query): New type.
40492         (num_processors): Add a 'query' argument.
40493         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40494         (num_processors): Add a 'query' argument. Test the value of the
40495         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40496         mingw, count the number of CPUs available for the current process.
40497         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40498         Check for sched_getaffinity and sched_getaffinity_np.
40499         * modules/nproc (Depends-on): Add c-ctype, extensions.
40500         * NEWS: Mention the change.
40501
40502 2009-11-03  Bruno Haible  <bruno@clisp.org>
40503
40504         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40505
40506 2009-11-03  Jim Meyering  <meyering@redhat.com>
40507
40508         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40509         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40510         if it is defined.
40511
40512 2009-11-02  Eric Blake  <ebb9@byu.net>
40513
40514         mktime, timegm: share common declaration
40515         * lib/mktime-internal.h: New file.
40516         * lib/mktime.c: Use it rather than open-coding a declaration.
40517         * lib/timegm.c: Likewise.
40518         * modules/mktime (Files): Ship it.
40519         * modules/timegm (Files): Likewise.
40520         Suggested by Bruno Haible.
40521
40522         test-update-copyright: update test to match script changes
40523         * tests/test-update-copyright.sh: Avoid hard-coding perl
40524         location.  Don't update *.bak created by earlier runs.
40525
40526 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40527             Simon Josefsson  <simon@josefsson.org>
40528             Bruno Haible  <bruno@clisp.org>
40529
40530         Fix link error on Solaris 8.
40531         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40532         also in libnsl. Define also INET_PTON_LIB.
40533         * modules/inet_pton (Link): New section.
40534
40535 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40536             Bruno Haible  <bruno@clisp.org>
40537
40538         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40539         * modules/inet_ntop (Link): New section.
40540         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40541
40542 2009-11-02  Eric Blake  <ebb9@byu.net>
40543
40544         maint: avoid compiler warnings in m4 macros
40545         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40546         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40547
40548 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40549
40550         * m4/pmccabe2html.m4: Remove file.
40551         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40552         function.  Change maintainer.
40553         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40554         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40555         Courtès).
40556
40557 2009-10-31  Eric Blake  <ebb9@byu.net>
40558
40559         fseeko: fix m4 regression
40560         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40561         regression from 2009-10-27.
40562         Reported by Ralf Wildenhues.
40563
40564 2009-10-31  Jim Meyering  <meyering@redhat.com>
40565
40566         inttostr: aesthetics and improved (compile-time) safety
40567         Define inttype_is_signed rather than inttype_is_unsigned,
40568         since the sole use is via "#if inttype_is_signed".
40569         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40570         inttype_is_unsigned.
40571         * lib/offtostr.c (inttype_is_signed): Likewise.
40572         * lib/uinttostr.c (inttype_is_signed): Likewise.
40573         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40574         * lib/inttostr.c (inttostr): Use verify to cross-check the
40575         inttype_is_signed value and the signedness of the actual type.
40576         * modules/inttostr (Depends-on): Add verify.
40577
40578 2009-10-30  Eric Blake  <ebb9@byu.net>
40579
40580         build: avoid compiler warnings
40581         * lib/fchmodat.c (lchmod): Mark unused variables.
40582         * lib/getopt.c (_getopt_initialize): Likewise.
40583         * lib/mktime.c (__mktime_internal): Provide prototype.
40584         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40585         older gcc that do not understand #pragma GCC diagnostic.
40586         * lib/uinttostr.c (inttype_is_unsigned): Define.
40587         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40588
40589 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40590
40591         stat: fix compilation on AIX
40592         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40593         only see struct stat64.
40594
40595 2009-10-30  Eric Blake  <ebb9@byu.net>
40596
40597         exclude: make more robust
40598         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40599         rather than masking a coding bug.
40600         Suggested by Bruno Haible.
40601
40602 2009-10-30  Jim Meyering  <meyering@redhat.com>
40603
40604         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40605         Rather than putting #!/usr/bin/perl on the first line,
40606         start with a variant of what's recommended by "man perlrun" that
40607         invokes the first "perl" program from your shell's search path.
40608         * build-aux/gitlog-to-changelog: Replace #!... as above.
40609         Add a "Local Variables" perl mode setting.
40610         Prompted by a patch from Ludovic Courtès.
40611         Improved by Eric Blake.
40612         * build-aux/useless-if-before-free: Likewise.
40613         * build-aux/announce-gen: Likewise.
40614         * build-aux/update-copyright: Likewise.
40615
40616 2009-10-29  Eric Blake  <ebb9@byu.net>
40617
40618         filenamecat-lgpl: adjust clients
40619         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40620         filenamecat.
40621         * modules/renameat (Depends-on): Likewise.
40622
40623         filenamecat: split into filenamecat-lgpl
40624         * modules/filenamecat-lgpl: New module.
40625         * modules/filenamecat (Files): Move library-safe files into
40626         filenamecat-lgpl.
40627         (Depends-on): Add filenamecat-lgpl.
40628         (configure.ac): Declare witness.
40629         * lib/filenamecat.h (file_name_concat): Only declare when using
40630         GPL module.
40631         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40632         Move...
40633         * lib/filenamecat-lgpl.c: ...into new file.
40634         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40635         (gl_FILE_NAME_CONCAT): Use it.
40636         * MODULES.html.sh (File system functions): Mention new module.
40637
40638         argp: avoid memory leak
40639         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40640         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40641         base_name, since the latter malloc()s and can call exit().
40642         Leak introduced 2006-07-03.
40643
40644         dirname-lgpl: adjust clients that don't need full dirname
40645         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40646         * modules/filenamecat (Depends-on): Likewise.
40647         * modules/linkat (Depends-on): Likewise.
40648         * modules/mkancesdirs (Depends-on): Likewise.
40649         * modules/mkdir (Depends-on): Likewise.
40650         * modules/openat (Depends-on): Likewise.
40651         * modules/savewd (Depends-on): Likewise.
40652         * modules/rename (Depends-on): Likewise.
40653         (License): Relax license.
40654         * modules/mkdir-tests (Depends-on): Drop progname.
40655         (Makefile.am): Delete unneeded LDADD.
40656         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40657
40658         dirname: split into dirname-lgpl
40659         * modules/dirname-lgpl: New module.
40660         * modules/dirname (Files): Move library-safe files into
40661         dirname-lgpl.
40662         (Depends-on): Add dirname-lgpl.
40663         (configure.ac): Declare witness.
40664         * modules/double-slash-root (License): Relax license.
40665         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40666         module.
40667         * lib/dirname.c (dir_len, mdir_name): Move...
40668         * lib/dirname-lgpl.c: ...into new file.
40669         * lib/basename.c (last_component, base_len): Move...
40670         * lib/basename-lgpl.c: ...into new file.
40671         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40672         (gl_DIRNAME): Use it.
40673         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40674         Mention new module.
40675         * modules/dirname-tests (Depends-on): Add progname.
40676         * tests/test-dirname.c (program_name): Delete.
40677
40678         mkdir: make safe for libraries
40679         * modules/mkdir (Depends-on): Drop xalloc.
40680         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40681         exit.
40682
40683         tests: avoid some compiler warnings
40684         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40685         literals.
40686         * tests/test-memchr.c (main): Avoid type mismatch.
40687         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40688         * tests/test-base64.c (main): Likewise.
40689         * tests/test-getdelim.c (main): Likewise.
40690         * tests/test-gethostname.c (main): Likewise.
40691         * tests/test-getline.c (main): Likewise.
40692         * tests/test-netinet_in.c (main): Likewise.
40693         * tests/test-select.c (open_server_socket, main): Likewise.
40694         * tests/test-select-stdin.c (main): Likewise.
40695         * tests/test-sockets.c (main): Likewise.
40696         * tests/test-strsignal.c (main): Likewise.
40697         * tests/test-sys_select.c (main): Likewise.
40698         * tests/test-sys_socket.c (main): Likewise.
40699         * tests/test-u64.c (main): Likewise.
40700         * tests/test-xfprintf-posix.c (main): Likewise.
40701         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40702
40703         sockets: avoid compiler warning
40704         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40705
40706         maint: detect usage(1) and other suspicious exits
40707         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40708
40709 2009-10-29  Jim Meyering  <meyering@redhat.com>
40710
40711         timespec: long-to-int truncation could make timespec_cmp malfunction
40712         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40713         a multiple of 2^32 nanoseconds as no difference.
40714
40715 2009-10-28  Jim Meyering  <meyering@redhat.com>
40716
40717         fprintftime: wrap macro code argument in "do {...} while(0)"
40718         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40719         cpy macro must be a statement that can be followed by a semicolon.
40720         Now that the else clause contains a comment and is hence longer
40721         than one line, I require curly braces.  That in turn requires
40722         that we wrap this code block in the standard do...while(0).
40723
40724         fprintftime: remove stray semicolon from previous change
40725         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40726
40727         fprintftime: avoid a warning about ignored fwrite return value
40728         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40729         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40730         that is unsafe.
40731         * modules/fprintftime (Depends-on): Add ignore-value.
40732
40733         exclude: avoid an unwarranted warning
40734         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40735
40736 2009-10-27  Eric Blake  <ebb9@byu.net>
40737
40738         fseek: avoid compilation failure when fflush is replaced
40739         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40740         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40741         module is in use.
40742         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40743         module is not in use; since REPLACE_FSEEK worked otherwise.
40744         (GNULIB_FTELLO): Likewise for ftell.
40745         Reported by Ian Beckwith and others.
40746
40747 2009-10-27  Bruno Haible  <bruno@clisp.org>
40748
40749         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40750         Reported by Jim Meyering.
40751
40752 2009-10-27  Jim Meyering  <jim@meyering.net>
40753             Bruno Haible  <bruno@clisp.org>
40754
40755         Avoid warning despite dropping the return value of fwrite.
40756         * lib/unicodeio.c: Include ignore-value.h.
40757         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40758         * modules/unicodeio (Depends-on): Add ignore-value.
40759
40760 2009-10-26  Eric Blake  <ebb9@byu.net>
40761
40762         areadlinkat: fix fallback path
40763         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40764         pointer and zero.
40765
40766 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40767
40768         Use a better IO block size for modern systems
40769         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40770         * lib/md2.c: Likewise.
40771         * lib/md4.c: Likewise.
40772         * lib/md5.c: Likewise.
40773         * lib/sha1.c: Likewise.
40774         * lib/sha256.c: Likewise.
40775         * lib/sha512.c: Likewise.
40776
40777 2009-10-22  Eric Blake  <ebb9@byu.net>
40778
40779         tests: avoid several compiler warnings
40780         * tests/test-getcwd.c (main): Avoid buffer underflow.
40781         * tests/test-getdate.c (main): String literals are not safe with
40782         putenv, so use setenv.  Declare unused argument.
40783         * modules/getdate-tests (Depends-on): Add setenv.
40784         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40785         problems with string literals in char *.
40786         * tests/test-hash.c (main): Avoid shadowing declaration.
40787         (insert_new): Treat string literals as char const *.
40788         * tests/test-getopt.h (test_getopt): Likewise.
40789         (getopt_loop): Alter types to minimize casting elsewhere.
40790         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40791         (test_getopt_long_posix): Likewise.
40792         (do_getopt_long): Add wrapper to minimize casting.
40793         * tests/test-atexit.c (clear_temp_file): Use void.
40794         * tests/test-areadlink-with-size.c (main): Declare unused
40795         arguments.
40796         * tests/test-areadlink.c (main): Likewise.
40797         * tests/test-areadlinkat-with-size.c (main): Likewise.
40798         * tests/test-areadlinkat.c (main): Likewise.
40799         * tests/test-canonicalize-lgpl.c (main): Likewise.
40800         * tests/test-canonicalize.c (main): Likewise.
40801         * tests/test-dirent-safer.c (main): Likewise.
40802         * tests/test-dirname.c (main): Likewise.
40803         * tests/test-dup2.c (main): Likewise.
40804         * tests/test-fchdir.c (main): Likewise.
40805         * tests/test-fcntl-h.c (main): Likewise.
40806         * tests/test-fcntl-safer.c (main): Likewise.
40807         * tests/test-fdopendir.c (main): Likewise.
40808         * tests/test-fdutimensat.c (main): Likewise.
40809         * tests/test-fflush.c (main): Likewise.
40810         * tests/test-filenamecat.c (main): Likewise.
40811         * tests/test-filevercmp.c (main): Likewise.
40812         * tests/test-fopen-safer.c (main): Likewise.
40813         * tests/test-fopen.c (main): Likewise.
40814         * tests/test-fpending.c (main): Likewise.
40815         * tests/test-fpurge.c (main): Likewise.
40816         * tests/test-freading.c (main): Likewise.
40817         * tests/test-fstatat.c (main): Likewise.
40818         * tests/test-fsync.c (main): Likewise.
40819         * tests/test-futimens.c (main): Likewise.
40820         * tests/test-getndelim2.c (main): Likewise.
40821         * tests/test-gettimeofday.c (main): Likewise.
40822         * tests/test-getopt.c (main): Likewise.
40823         * tests/test-i-ring.c (main): Likewise.
40824         * tests/test-inttypes.c (main): Likewise.
40825         * tests/test-link.c (main): Likewise.
40826         * tests/test-lstat.c (main): Likewise.
40827         * tests/test-math.c (main): Likewise.
40828         * tests/test-md5.c (main): Likewise.
40829         * tests/test-memchr2.c (main): Likewise.
40830         * tests/test-memrchr.c (main): Likewise.
40831         * tests/test-mkdir.c (main): Likewise.
40832         * tests/test-mkdirat.c (main): Likewise.
40833         * tests/test-mkfifoat.c (main): Likewise.
40834         * tests/test-open.c (main): Likewise.
40835         * tests/test-openat-safer.c (main): Likewise.
40836         * tests/test-openat.c (main): Likewise.
40837         * tests/test-quotearg.c (main): Likewise.
40838         * tests/test-rawmemchr.c (main): Likewise.
40839         * tests/test-readlink.c (main): Likewise.
40840         * tests/test-remove.c (main): Likewise.
40841         * tests/test-rename.c (main): Likewise.
40842         * tests/test-renameat.c (main): Likewise.
40843         * tests/test-rmdir.c (main): Likewise.
40844         * tests/test-sha1.c (main): Likewise.
40845         * tests/test-signal.c (main): Likewise.
40846         * tests/test-sigaction.c (main): Likewise.
40847         * tests/test-stat.c (main): Likewise.
40848         * tests/test-stat-time.c (main): Likewise.
40849         * tests/test-stddef.c (main): Likewise.
40850         * tests/test-stdint.c (main): Likewise.
40851         * tests/test-stdio.c (main): Likewise.
40852         * tests/test-stdlib.c (main): Likewise.
40853         * tests/test-strchrnul.c (main): Likewise.
40854         * tests/test-strerror.c (main): Likewise.
40855         * tests/test-string.c (main): Likewise.
40856         * tests/test-strtod.c (main): Likewise.
40857         * tests/test-strverscmp.c (main): Likewise.
40858         * tests/test-symlink.c (main): Likewise.
40859         * tests/test-symlinkat.c (main): Likewise.
40860         * tests/test-sys_stat.c (main): Likewise.
40861         * tests/test-sys_time.c (main): Likewise.
40862         * tests/test-time.c (main): Likewise.
40863         * tests/test-unistd.c (main): Likewise.
40864         * tests/test-unlink.c (main): Likewise.
40865         * tests/test-unlinkat.c (main): Likewise.
40866         * tests/test-utimens.c (main): Likewise.
40867         * tests/test-utimensat.c (main): Likewise.
40868         * tests/test-version-etc.c (main): Likewise.
40869         * tests/test-wchar.c (main): Likewise.
40870         * tests/test-wctype.c (main): Likewise.
40871         * tests/test-xprintf-posix.c (main): Likewise.
40872         * tests/test-posixtm.c (main): Likewise.
40873         (STREQ): Delete unused macro.
40874         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40875         shadowed variables.
40876         * tests/test-memchr.c (main): Likewise.
40877
40878 2009-10-21  Eric Blake  <ebb9@byu.net>
40879
40880         areadlinkat: avoid failure on older glibc
40881         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40882         rather than mis-comparing 0 against FUNC_RESULT of char*.
40883
40884 2009-10-21  Bruno Haible  <bruno@clisp.org>
40885
40886         * modules/stpncpy (License): Relicense under LGPLv2+.
40887         Reported by David Lutterkort <lutter@redhat.com>.
40888
40889 2009-10-20  Eric Blake  <ebb9@byu.net>
40890
40891         utimensat: work around Solaris 9 bug
40892         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40893         has trailing slash bugs.
40894         * tests/test-lutimens.h (test_lutimens): Enhance test.
40895         * tests/test-utimens.h (test_utimens): Likewise.
40896         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40897         * doc/posix-functions/utimes.texi (utimes): Likewise.
40898         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40899         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40900         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40901         * doc/posix-functions/futimens.texi (futimens): Likewise.
40902
40903         fdutimensat: new module
40904         * modules/fdutimensat: New file.
40905         * lib/fdutimensat.c (fdutimensat): Likewise.
40906         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40907         * MODULES.html.sh (File system functions): Mention module.
40908         * modules/fdutimensat-tests: New test.
40909         * tests/test-fdutimensat.c: Likewise.
40910
40911         doc: regenerate INSTALL
40912         * doc/INSTALL: Reflect recent autoconf update.
40913         * doc/INSTALL.ISO: Likewise.
40914         * doc/INSTALL.UTF-8: Likewise.
40915
40916 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40917
40918         acl: warn if ACL support is not detected
40919         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40920
40921 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40922
40923         * lib/nproc.h: Add extern "C" block for C++.
40924
40925 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40926             Bruno Haible  <bruno@clisp.org>
40927
40928         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40929         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40930         * doc/posix-functions/isalpha.texi: Likewise.
40931         * doc/posix-functions/isblank.texi: Likewise.
40932         * doc/posix-functions/iscntrl.texi: Likewise.
40933         * doc/posix-functions/isdigit.texi: Likewise.
40934         * doc/posix-functions/isgraph.texi: Likewise.
40935         * doc/posix-functions/islower.texi: Likewise.
40936         * doc/posix-functions/isprint.texi: Likewise.
40937         * doc/posix-functions/ispunct.texi: Likewise.
40938         * doc/posix-functions/isspace.texi: Likewise.
40939         * doc/posix-functions/isupper.texi: Likewise.
40940         * doc/posix-functions/isxdigit.texi: Likewise.
40941
40942 2009-10-18  Bruno Haible  <bruno@clisp.org>
40943
40944         Tests for module 'isblank'.
40945         * modules/isblank-tests: New file.
40946         * tests/test-isblank.c: New file.
40947
40948         New module 'isblank'.
40949         * lib/isblank.c: New file.
40950         * m4/isblank.m4: New file.
40951         * modules/isblank: New file.
40952         * doc/posix-functions/isblank.texi: Mention the new module.
40953
40954 2009-10-18  Bruno Haible  <bruno@clisp.org>
40955
40956         New module 'ctype'.
40957         * lib/ctype.in.h: New file.
40958         * m4/ctype.m4: New file.
40959         * modules/ctype: New file.
40960         * doc/posix-headers/ctype.texi: Mention the new module.
40961
40962 2009-10-18  Jim Meyering  <meyering@redhat.com>
40963
40964         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40965         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40966         right after its initialization, rather than farther down.
40967         Keeping these in close proximity makes it easier to ensure
40968         that each such variable is initialized.  E.g.,
40969
40970             LIB_CLOCK_GETTIME=
40971             AC_SUBST([LIB_CLOCK_GETTIME])
40972
40973         This change also increments these serial numbers.
40974         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40975         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40977
40978 2009-10-18  Bruno Haible  <bruno@clisp.org>
40979
40980         Don't let environment variables perturb build.
40981         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40982         (gl_PREREQ_GETHRXTIME): ... not here.
40983
40984 2009-10-18  Bruno Haible  <bruno@clisp.org>
40985
40986         Avoid symlink attack in localcharset module.
40987         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40988         (O_NOFOLLOW): Define fallback.
40989         (get_charset_aliases): Don't open the file if it is a symbolic link.
40990         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40991         gl_FCNTL_H.
40992         (gl_FCNTL_H): Require it.
40993         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40994         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40995         Reported by Fergal Glynn <fglynn@veracode.com>.
40996
40997 2009-10-18  Bruno Haible  <bruno@clisp.org>
40998
40999         Implement nproc for mingw.
41000         * lib/nproc.c: Include <windows.h>
41001         (num_processors): On native Windows platforms, try GetSystemInfo.
41002
41003 2009-10-18  Bruno Haible  <bruno@clisp.org>
41004
41005         Implement nproc for IRIX.
41006         * lib/nproc.c: Include <sys/sysmp.h>.
41007         (num_processors): On IRIX systems, try sysmp.
41008         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
41009
41010 2009-10-18  Bruno Haible  <bruno@clisp.org>
41011
41012         Implement nproc for HP-UX.
41013         * lib/nproc.c: Include <sys/pstat.h>
41014         (num_processors): On HP-UX systems, try pstat_getdynamic.
41015         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
41016         pstat_getdynamic.
41017
41018 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
41019             Bruno Haible  <bruno@clisp.org>
41020
41021         Implement nproc for NetBSD, OpenBSD.
41022         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
41023         (ARRAY_SIZE): New macro.
41024         (num_processors): On BSD systems, try sysctl of HW_NCPU.
41025         * m4/nproc.m4: New file.
41026         * modules/nproc (Files): Add m4/nproc.m4.
41027         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
41028         (Makefile.am): Instead, augment lib_SOURCES.
41029
41030 2009-10-18  Bruno Haible  <bruno@clisp.org>
41031
41032         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
41033         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
41034         sys/param.h.
41035
41036 2009-10-16  Eric Blake  <ebb9@byu.net>
41037
41038         utimensat: new module
41039         * modules/utimensat: New file.
41040         * lib/utimensat.c (utimensat): Likewise.
41041         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41042         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
41043         so we can work around Linux bugs.
41044         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41045         * modules/sys_stat (Makefile.am): Substitute them.
41046         * lib/sys_stat.in.h (utimensat): Declare it.
41047         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41048         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41049         * modules/utimensat-tests: New test.
41050         * tests/test-utimensat.c: Likewise.
41051
41052         utimens: let lutimens work on non-symlinks
41053         * lib/utimens.c (lutimens): Fall back to utimens rather than
41054         failing with ENOSYS, when file is not a symlink.
41055         (utimens): Reduce redirection.
41056         * tests/test-lutimens.h (test_lutimens): Update test to cover
41057         non-symlinks.
41058         * tests/test-utimens.h (test_utimens): Update test to cover
41059         symlinks.
41060         * tests/test-utimens.c (main): Update caller.
41061
41062         utimens: cache whether utimensat syscall works
41063         * lib/utimens.c (utimensat_works_really): New cache variable.
41064         (fdutimens, lutimens): Use it to avoid failing syscall.
41065
41066         test-stat-time, test-utimens: improve portability
41067         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
41068         ext4 on alpha, and for cygwin.
41069         * tests/test-utimens-common.h: New file.
41070         (nap): Factor delays into single function.
41071         * tests/test-lutimens.h (test_lutimens): Use new header.
41072         * tests/test-futimens.h (test_futimens): Likewise.
41073         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
41074         timestamps to occur from same machine, as was done previously for
41075         test_utimens.
41076         * modules/utimens-tests (Files): Ship new file.
41077         * modules/futimens-tests (Files): Likewise.
41078         Reported in part by Jim Meyering.
41079
41080         sys_stat: sort replacement declarations
41081         * lib/sys_stat.in.h: Sort declarations.
41082         * lib/futimens.c (futimens): Fix typo.
41083
41084 2009-10-15  Jim Meyering  <meyering@redhat.com>
41085
41086         don't let environment settings perturb build
41087         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
41088         could cause a configure-time and/or build-time malfunction.
41089         Typically, a configure-time function-in-library test is performed
41090         via code like this:
41091
41092           LIB_VAR=
41093           AC_SUBST([LIB_VAR])
41094           prefix_saved_LIBS=$LIBS
41095             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
41096                        [test "$ac_cv_search_FUNC" = "none required" ||
41097                         LIB_VAR=$ac_cv_search_FUNC])
41098           LIBS=$prefix_saved_LIBS
41099
41100         However, in each of the files affected by this change, the LIB_VAR=
41101         initialization was omitted.  Thus, when set in the environment, its
41102         value would propagate into generated Makefiles when FUNC is not found
41103         in LIB_NAME.
41104         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
41105         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41107
41108 2009-10-14  Eric Blake  <ebb9@byu.net>
41109
41110         fchdir: avoid infinite recursion in mingw
41111         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
41112         recursing.
41113
41114         test-stat-time: port to mingw
41115         * tests/test-stat-time.c (force_unlink): Return a value.
41116         (test_ctime) [W32]: Fix compilation error.
41117         (nap): Don't call usleep with too large an argument.  Use
41118         force_unlink.
41119         * doc/pastposix-functions/usleep.texi (usleep): Document the
41120         portability issue.
41121
41122 2009-10-13  Jim Meyering  <meyering@redhat.com>
41123
41124         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
41125         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
41126         * modules/pipe-filter-ii: Likewise.
41127         * modules/sys_socket-tests: Likewise.
41128         * modules/tsearch-tests: Likewise.
41129         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
41130         (check): Depend on it.
41131
41132 2009-10-12  Eric Blake  <ebb9@byu.net>
41133
41134         utimens-tests: port to NFS file systems
41135         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41136         comparisons to avoid spurious failures from timestamp drift
41137         between NFS machines.
41138
41139 2009-10-12  Eric Blake  <ebb9@byu.net>
41140
41141         stat-time-tests: minor cleanups
41142         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41143         * tests/test-stat-time.c (nap): Separate assignment from call.
41144         Suggested by Paolo Bonzini and Bruno Haible.
41145
41146         sys_stat: guarantee struct timespec
41147         * lib/sys_stat.in.h (includes): Always include <time.h>
41148         * modules/sys_stat (Depends-on): Add time.
41149         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41150         mode_t permission values.
41151         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41152         get at subsecond timestamps.
41153
41154 2009-10-10  Eric Blake  <ebb9@byu.net>
41155
41156         futimens: new module
41157         * modules/futimens: New file.
41158         * lib/futimens.c (futimens): Likewise.
41159         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41160         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41161         we can work around Linux bugs.
41162         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41163         * modules/sys_stat (Makefile.am): Substitute them.
41164         * lib/sys_stat.in.h (futimens): Declare it.
41165         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41166         * doc/posix-functions/futimens.texi (futimens): Likewise.
41167         * modules/futimens-tests: New test.
41168         * tests/test-futimens.c: Likewise.
41169
41170         utimens: introduce fdutimens
41171         * lib/utimens.h (fdutimens): New prototype.
41172         * lib/utimens.c (gl_futimens): Move guts...
41173         (fdutimens): ...to new interface.
41174         * tests/test-utimens.c (do_fdutimens): Use it.
41175
41176         utimens: add UTIME_NOW and UTIME_OMIT support
41177         * lib/utimens.c (validate_timespec, update_timespec): New helper
41178         functions.
41179         (gl_futimens, lutimens): Use them.
41180         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41181         stdbool, sys_stat.
41182         (Link): Mention resulting library dependency.
41183         * modules/utimecmp (Link): Likewise.
41184         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41185         (Makefile.am): Pick up library dependency.
41186         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41187         definition.
41188         * tests/test-sys_stat.c: Test the definitions.
41189         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41190         * NEWS: Document library dependency.
41191
41192         utimecmp: support symlink timestamps
41193         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41194         hashing when possible.  Use pathconf when available.
41195         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41196         * modules/utimecmp (Depends-on): Add lstat.
41197
41198         utimens: add lutimens interface
41199         * lib/utimens.c (lutimens): New function.
41200         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41201         * lib/utimens.h (lutimens): Declare new interface.
41202         * tests/test-utimens.c (main): Enhance test.
41203         * tests/test-lutimens.h (test_lutimens): New file.
41204         * modules/utimens-tests (Files): Distribute it.
41205         (Depends-on): Add symlink.
41206         (configure.ac): Check for usleep.
41207
41208         utimens: validate futimens usage
41209         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41210         fewer syscalls on failure later on.  Avoid compiler warning on
41211         mingw.
41212         * modules/utimens (Depends-on): Add dup2.
41213
41214         utimens: add test
41215         * modules/utimens-tests: New test.
41216         * tests/test-utimens.h: New file.
41217         * tests/test-futimens.h: Likewise.
41218         * tests/test-utimens.c: Likewise.
41219
41220         doc: mention timestamp portability issues
41221         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41222         instead.
41223         * doc/posix-functions/utime.texi (utime): Likewise.
41224         * doc/posix-functions/utimes.texi (utimes): Likewise.
41225         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41226         instead.
41227         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41228         module.
41229         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41230         Mention weakness with symlink timestamps.
41231         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41232         to utimensat/futimens instead.
41233         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41234
41235         test-dup2: enhance test
41236         * tests/test-dup2.c (main): Also check AT_FDCWD.
41237
41238         test-stat-time: avoid more spurious failures
41239         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41240         xfs; and avoid race if the two timestamps cross quantization edge.
41241
41242         relocatable: prefer 'file system' over 'filesystem'
41243         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41244         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41245         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41246         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41247         * lib/relocatable.c (compute_curr_prefix): Likewise.
41248
41249 2009-10-10  Jim Meyering  <meyering@redhat.com>
41250
41251         stat-time-tests: check for the usleep function
41252         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41253
41254 2009-10-10  Bruno Haible  <bruno@clisp.org>
41255
41256         * modules/xnanosleep: Put the Link section after the Include section.
41257
41258 2009-10-09  Eric Blake  <ebb9@byu.net>
41259
41260         dup2: work around FreeBSD 6.1 bug
41261         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41262         * doc/posix-functions/dup2.texi (dup2): Document it.
41263         Reported by Nelson H. F. Beebe and Jim Meyering.
41264
41265         test-stat-time: port to buggy NFS clients
41266         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41267         (test_ctime): Also skip test if mtime and ctime are skewed.
41268
41269         maint: prefer 'file system' over 'filesystem'
41270         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41271         * doc/posix-functions/lstat.texi (lstat): Likewise.
41272         * lib/file-has-acl.c (file_has_acl): Likewise.
41273         * lib/fwriteerror.c [TEST]: Likewise.
41274         * tests/test-areadlink.h (test_areadlink): Likewise.
41275         * tests/test-areadlinkat-with-size.c (main): Likewise.
41276         * tests/test-areadlinkat.c (main): Likewise.
41277         * tests/test-canonicalize-lgpl.c (main): Likewise.
41278         * tests/test-canonicalize.c (main): Likewise.
41279         * tests/test-fstatat.c (main): Likewise.
41280         * tests/test-linkat.c (main): Likewise.
41281         * tests/test-lstat.h (test_lstat_func): Likewise.
41282         * tests/test-mkdir.h (test_mkdir): Likewise.
41283         * tests/test-readlink.h (test_readlink): Likewise.
41284         * tests/test-remove.c (main): Likewise.
41285         * tests/test-rename.h (test_rename): Likewise.
41286         * tests/test-renameat.c (main): Likewise.
41287         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41288         * tests/test-symlink.h (test_symlink): Likewise.
41289         * tests/test-symlinkat.c (main): Likewise.
41290         * tests/test-unlink.h (test_unlink_func): Likewise.
41291         * tests/test-unlinkat.c (main): Likewise.
41292
41293         maint: make realtime library usage explicit
41294         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41295         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41296         * modules/settime (Link): Likewise.
41297         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41298
41299         test-stat-time: speed up execution
41300         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41301         warning on mingw.
41302         (nap): New helper function.
41303         (prepare_test): Use it to reduce sleep time.
41304         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41305         execution.
41306         * modules/stat-time-tests (configure.ac): Check for usleep.
41307
41308 2009-10-09  Jim Meyering  <meyering@redhat.com>
41309
41310         selinux-h: always use getfilecon wrappers
41311         * lib/getfilecon.c: New file.
41312         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41313         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41314         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41315         (fgetfilecon): Provide a stub.
41316         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41317         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41318         file unconditionally.
41319         When <selinux/selinux.h> is found, arrange to use wrappers.
41320         * modules/selinux-h (Files): Add getfilecon.c.
41321         (Makefile.am): Substitute include-next-related bits
41322         into the now-always-generated selinux/selinux.h file.
41323         * doc/glibc-functions/lgetfilecon.texi: New file.
41324         * doc/glibc-functions/fgetfilecon.texi: New file.
41325         * doc/glibc-functions/getfilecon.texi: New file.
41326         * doc/glibc-functions/getfilecon-desc.texi: New file.
41327         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41328         which to pull in the new files.
41329         * MODULES.html.sh (Misc): Add selinux-h.
41330
41331 2009-10-08  Jim Meyering  <meyering@redhat.com>
41332
41333         unistd: fix comment typo
41334         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41335
41336 2009-10-08  Eric Blake  <ebb9@byu.net>
41337
41338         areadlink: use SIZE_MAX consistently
41339         * modules/areadlink (Depends-on): Add stdint.
41340         * modules/areadlink-with-size (Depends-on): Likewise.
41341         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41342         gives NULL; drop sys/types, since unistd gives size_t; and add
41343         stdint for SIZE_MAX.
41344         (SIZE_MAX): Rely on headers.
41345         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41346         and add stdint.
41347         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41348         (SIZE_MAX): Likewise.
41349         (INITIAL_BUF_SIZE): Turn into enum.
41350         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41351
41352 2009-10-08  Jim Meyering  <meyering@redhat.com>
41353
41354         areadlinkat: avoid compilation failure
41355         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41356         Fix typo in comment.
41357
41358 2009-10-07  Eric Blake  <ebb9@byu.net>
41359
41360         areadlinkat-with-size: new module
41361         * modules/areadlinkat-with-size: New module.
41362         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41363         * lib/areadlink.h (areadlinkat): Declare it.
41364         * MODULES.html.sh (File system functions): Mention it.
41365         * modules/areadlinkat-with-size-tests: New test.
41366         * tests/test-areadlinkat-with-size.c: New file.
41367
41368         xreadlinkat: new module
41369         * modules/xreadlinkat: New module.
41370         * lib/xreadlinkat.c (xreadlinkat): New file.
41371         * lib/xreadlink.h (xreadlinkat): Declare it.
41372         * MODULES.html.sh (File system functions): Mention it.
41373
41374         areadlinkat: new module
41375         * lib/at-func.c (FUNC_FAIL): New define.
41376         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41377         * modules/areadlinkat: New module.
41378         * lib/linkat.c (areadlinkat): Move...
41379         * lib/areadlinkat.c (areadlinkat): ...to new file.
41380         * lib/areadlink.h (areadlinkat): Declare it.
41381         * modules/linkat (Depends-on): Add areadlinkat.
41382         * MODULES.html.sh (File system functions): Mention it.
41383         * modules/areadlinkat-tests: New test.
41384         * tests/test-areadlinkat.c: New file.
41385
41386         areadlink, areadlink-with-size: add tests
41387         * modules/areadlink-tests: New test.
41388         * modules/areadlink-with-size-tests: Likewise.
41389         * tests/test-areadlink.h: New file.
41390         * tests/test-areadlink.c: Likewise.
41391         * tests/test-areadlink-with-size.c: Likewise.
41392
41393         maint: minor cleanups
41394         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41395         _UNUSED_PARAMETER_ instead.
41396         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41397         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41398         * modules/linkat-tests (Files): Distribute test-link.h.
41399
41400         openat, utimens: whitespace cleanup
41401         * lib/openat.c: Prefer space throughout, rather than mix of 8
41402         spaces vs. tabs.
41403         * lib/at-func.c: Likewise.
41404         * lib/utimens.c: Likewise.
41405
41406         openat: avoid using wrong fd
41407         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41408         working directory chooses same fd.
41409         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41410
41411         mkdir, mkdirat: fix cygwin 1.5.x bug
41412         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41413         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41414         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41415         bug.
41416         (gl_PREREQ_MKDIR): Delete unused macro.
41417         * modules/mkdir (Files): Track file rename.
41418         (configure.ac): Update macro name.
41419         * modules/openat (Depends-on): Add mkdir.
41420         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41421
41422         mkdir, mkdirat: add tests
41423         * modules/mkdir-tests: New test.
41424         * tests/test-mkdir.h: New file.
41425         * tests/test-mkdir.c: Likewise.
41426         * tests/test-mkdirat.c: Likewise.
41427         * modules/openat-tests (Files): Add new files.
41428         (Makefile.am): Run new test.
41429
41430 2009-10-06  Eric Blake  <ebb9@byu.net>
41431
41432         doc: tweak *at function documentation
41433         * doc/posix-functions/faccessat.texi (faccessat): Mention
41434         known issue with replacement.
41435         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41436         * doc/posix-functions/linkat.texi (linkat): Likewise.
41437         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41438         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41439         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41440         * doc/posix-functions/renameat.texi (renameat): Likewise.
41441         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41442
41443         openat: fix GNU/Hurd bug in unlinkat
41444         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41445         broken.
41446         * doc/posix-functions/unlink.texi (unlink): Document this.
41447         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41448
41449         fdopendir: fix GNU/Hurd bug
41450         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41451         allowing non-directory fds.
41452         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41453         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41454         * modules/dirent (Makefile.am): Substitute it.
41455         * lib/dirent.in.h (fdopendir): Declare replacement.
41456         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41457         * tests/test-fdopendir.c (main): Test something other than
41458         /dev/null, since on Hurd that behaves like a directory.
41459
41460         test-symlink: port to GNU/Hurd
41461         * tests/test-symlink.h (test_symlink): Relax expected errno.
41462
41463         doc: tweak more cygwin information
41464         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41465         now compatible with glibc.
41466         * doc/posix-functions/getopt.texi (getopt): Likewise.
41467
41468         getopt-gnu: add another test
41469         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41470         guarantee behavior relied on by m4.
41471         * tests/test-getopt.c (main): Use it.
41472         * modules/getopt-posix-tests (Depends-on): Add setenv.
41473         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41474
41475         getopt: fix compilation on darwin
41476         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41477         include.
41478         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41479         Reported by Ludovic Courtès.
41480
41481 2009-10-06  Bruno Haible  <bruno@clisp.org>
41482
41483         * modules/size_max (Description): Discourage its use.
41484         Reported by Simon Josefsson.
41485
41486 2009-10-06  Jim Meyering  <meyering@redhat.com>
41487
41488         linkat: avoid compilation failure
41489         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41490
41491 2009-10-05  Eric Blake  <ebb9@byu.net>
41492
41493         linkat: support Linux 2.6.17
41494         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41495         linkat on Linux, but allow cache variable override.
41496         * lib/linkat.c (rpl_linkat): Define override.
41497         * modules/linkat (Depends-on): Add symlinkat.
41498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41499         * modules/unistd (Makefile.am): Substitute it.
41500         * lib/unistd.in.h (linkat): Declare replacement.
41501         Reported by Pádraig Brady.
41502
41503         quotearg: port test to systems with C.UTF-8 locale
41504         * tests/test-quotearg.c (struct result_strings): Add another
41505         member, differentiating between C.ASCII and C.UTF-8 handling.
41506         (compare_strings): Add parameter.
41507         (main): Adjust all callers.
41508
41509         getopt: avoid clash with FreeBSD _getopt_internal
41510         * lib/getopt.in.h (_getopt_internal): Override the name.
41511         * lib/getopt_int.h (includes): Pick up any overrides.
41512         Reported by Reuben Thomas.
41513
41514         hash: allow C89 compilation
41515         * lib/hash.c (check_tuning): Move declaration before statement.
41516         Reported by Reuben Thomas.
41517
41518 2009-10-05  Karl Berry  <karl@gnu.org>
41519
41520         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41521
41522 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41523             Bruno Haible  <bruno@clisp.org>
41524
41525         * lib/uname.c (uname): Use a table-driven algorithm to compute
41526         Windows NT versions.
41527
41528 2009-10-04  Bruno Haible  <bruno@clisp.org>
41529
41530         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41531         program_invocation_short_name.
41532         * modules/progname (configure.ac): Test for presence of
41533         program_invocation_short_name.
41534         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41535
41536 2009-10-04  Bruno Haible  <bruno@clisp.org>
41537
41538         * lib/progname.c (set_program_name): Fix comment.
41539         Reported by Jim Meyering.
41540
41541 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41542             Bruno Haible  <bruno@clisp.org>
41543
41544         * lib/uname.c: Include <string.h>.
41545         (uname): Do only one call to GetVersionEx in the common case.
41546
41547 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41548             Bruno Haible  <bruno@clisp.org>
41549
41550         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41551         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41552         (uname): Add support for Windows CE and various non-x86 CPU types.
41553
41554 2009-10-03  Bruno Haible  <bruno@clisp.org>
41555
41556         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41557         invocation to tests/configure.ac.
41558         Reported by Ian Beckwith <ianb@erislabs.net>.
41559
41560 2009-10-02  Eric Blake  <ebb9@byu.net>
41561
41562         fchdir: avoid compiler warning
41563         * lib/fchdir.c (canonicalize_file_name)
41564         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41565
41566         test-open: support mingw errno values
41567         * tests/test-open.h (test_open): Relax test.
41568         * tests/test-fopen.h (test_fopen): Likewise.
41569         * tests/test-openat-safer.c (main): Likewise.
41570
41571         open: fix opening directory on mingw
41572         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41573
41574         test-open: on GNU/Hurd, /dev/null is a directory
41575         * tests/test-fopen.h (main): Rename...
41576         (test_fopen): ...to this.  Use a guaranteed non-directory when
41577         confirming open behavior on trailing slash.
41578         * tests/test-openat-safer.c (main): Likewise.
41579         * tests/test-open.h (main): Likewise....
41580         (test_open): ...to this.
41581         * tests/test-fopen.c (main): Adjust caller.
41582         * tests/test-fopen-safer.c (main): Likewise.
41583         * tests/test-open.c (main): Likewise.
41584         * tests/test-fcntl-safer.c (main): Likewise.
41585         Reported by Samuel Thibault.
41586
41587         rename, fchdir: don't ignore chdir failure
41588         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41589         * lib/rename.c (rpl_rename) [W32]: Likewise.
41590         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41591         an empty destination directory if source cannot be renamed,
41592         although there is still possibility for failure.
41593         * doc/posix-functions/rename.texi (rename): Document the race.
41594         Reported by Jim Meyering.
41595
41596         maint: cleanup whitespace in recent commits
41597         * lib/rename.c (rpl_rename): Remove tabs.
41598         * tests/test-link.h (test_link): Likewise.
41599         * lib/fchdir.c (get_name): Likewise.
41600         Reported by Jim Meyering.
41601
41602 2009-10-02  Ben Pfaff  <blp@gnu.org>
41603
41604         relocatable-prog-wrapper: Add missing dependency on
41605         double-slash-root.
41606         * modules/relocatable-prog-wrapper: Add dependency.
41607         Reported by Ian Beckwith <ianb@erislabs.net>.
41608
41609 2009-10-02  Eric Blake  <ebb9@byu.net>
41610
41611         renameat: fix Solaris bugs
41612         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41613         needed fixing.
41614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41615         * modules/stdio (Makefile.am): Substitute it.
41616         * lib/stdio.in.h (renameat): Declare replacement.
41617         * lib/renameat.c (rpl_renameat): Implement fix.
41618
41619         renameat: new module
41620         * modules/renameat: New file.
41621         * lib/renameat.c (renameat): Likewise.
41622         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41624         * modules/stdio (Makefile.am): Substitute them.
41625         * lib/stdio.in.h (renameat): Declare it.
41626         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41627         * doc/posix-functions/renameat.texi (renameat): Likewise.
41628         * modules/renameat-tests: New test.
41629         * tests/test-renameat.c: Likewise.
41630
41631         rename: fix mingw bugs
41632         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41633         directory overwrite bugs.
41634
41635         rename: fix another cygwin 1.5 bug
41636         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41637         checks.
41638         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41639         unnecessary cygwin workarounds.  Also work around bug with moving
41640         full directory onto an empty one.
41641         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41642
41643         rename-dest-slash: merge into rename module
41644         * modules/rename-dest-slash (Status): Mark obsolete.
41645         (Depends-on): Add rename.
41646         (Files): Let rename do it all.
41647         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41648         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41649         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41650         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41651         * lib/rename.c (rpl_rename): Update comments.
41652
41653         rename: fix cygwin 1.5.x bugs
41654         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41655         * lib/rename.c (rpl_rename): Work around them.
41656         * modules/rename (Depends-on): Add same-inode.
41657
41658         rename: fix Solaris 10 bug
41659         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41660         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41661         was the only bug.
41662
41663         rename: fix Solaris 9 bug
41664         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41665         on non-directory.  Avoid calling exit.
41666         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41667         strdup.
41668         * modules/rename-tests (Depends-on): Drop lstat.
41669         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41670         (gl_PREREQ_RENAME): Delete unused macro.
41671
41672         rename-dest-slash: fix NetBSD bug
41673         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41674         links.
41675         * modules/rename-dest-slash (Depends-on): Add same-inode.
41676
41677         rename-tests: new test, exposes several platform bugs
41678         * modules/rename-tests: New file.
41679         * tests/test-rename.h: Likewise.
41680         * tests/test-rename.c: Likewise.
41681         * doc/posix-functions/rename.texi (rename): Improve documentation,
41682         including bugs that will eventually be fixed in gnulib.
41683
41684 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41685
41686         * lib/uname.c: Include <stdlib.h>
41687         (uname): Assume version info is available.
41688
41689 2009-10-02  Jim Meyering  <meyering@redhat.com>
41690
41691         gnu-web-doc-update: correct --help output
41692         * build-aux/gnu-web-doc-update: Make --help output relevant.
41693
41694         gnu-web-doc-update: add standard options
41695         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41696
41697         gnu-web-doc-update: New module.
41698         Use this script to automatically update the on-line web documentation
41699         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41700         * modules/gnu-web-doc-update: New file, from coreutils.
41701         * build-aux/gnu-web-doc-update: New script.
41702
41703 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41704
41705         link: LoadLibrary is not needed.
41706         * lib/link.c: Use GetModuleHandle.
41707
41708 2009-10-01  Eric Blake  <ebb9@byu.net>
41709
41710         getopt: bump serial number
41711         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41712         change.
41713
41714         tests: tighten link, rmdir, and remove tests
41715         * tests/test-link.h (includes): No need to use <config.h> here.
41716         Clean up if directory hard link was created, otherwise test for
41717         trailing '.'.
41718         * tests/test-linkat.c (main): Simplify.
41719         * tests/test-remove.c (main): Enhance test for trailing '.'.
41720         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41721
41722 2009-10-01  Jim Meyering  <meyering@redhat.com>
41723
41724         maint.mk: requiring "make major" was annoying, for a "minor" release.
41725         What is intended is "stable", to contrast with alpha and beta,
41726         so require "make stable", not "make major".
41727         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41728         (get_tool_versions): Likewise.
41729         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41730
41731 2009-09-30  Ben Pfaff  <blp@gnu.org>
41732
41733         Fix broken build of replacement for Windows tmpfile().
41734         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41735         flags argument added along with the 'mkostemp' module.
41736
41737 2009-09-28  Bruno Haible  <bruno@clisp.org>
41738
41739         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41740         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41741         to 'remove_elt'.
41742         (gl_list_remove): Update.
41743         * lib/gl_list.c (gl_list_remove): Update.
41744         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41745         to 'remove_elt'.
41746         (gl_oset_remove): Update.
41747         * lib/gl_list.c (gl_oset_remove): Update.
41748         Reported by Eric Blake.
41749
41750 2009-09-28  Eric Blake  <ebb9@byu.net>
41751
41752         doc: mention yet more cygwin 1.7 status
41753         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41754         cygwin.
41755         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41756         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41757
41758         argp: fix test failure
41759         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41760         that are not upper-case.  Pass correct range to tolower.
41761
41762 2009-09-27  Jim Meyering  <meyering@redhat.com>
41763
41764         test-yesno: work around sparc-dash here-document infelicity
41765         Without this change, the literal \177 byte in a here document
41766         would make dash 0.5.5.1-3 access uninitialized memory.
41767         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41768         Instead, use a marker, "@", and filter through tr to create the desired
41769         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41770
41771 2009-09-27  Bruno Haible  <bruno@clisp.org>
41772
41773         Disable untested support for new flavours of ACLs on AIX.
41774         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41775         progress.
41776         * lib/set-mode-acl.c (qset_acl): Likewise.
41777
41778 2008-12-07  Bruno Haible  <bruno@clisp.org>
41779
41780         Add support for new flavours of ACLs on AIX. (Untested.)
41781         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41782         (file_has_acl): Add support for newer AIX.
41783         * lib/set-mode-acl.c (qset_acl): Likewise.
41784         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41785         Rainer Tammer <tammer@tammer.net>.
41786
41787 2009-09-26  Eric Blake  <ebb9@byu.net>
41788
41789         argp: fix compilation of getopt
41790         * lib/getopt.in.h (includes): Use different guard than glibc.
41791         Reported by Sergey Poznyakoff.
41792
41793         doc: mention more cygwin 1.7 status
41794         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41795         bug.
41796         * doc/posix-functions/execl.texi (execl): Likewise.
41797         * doc/posix-functions/execle.texi (execle): Likewise.
41798         * doc/posix-functions/execlp.texi (execlp): Likewise.
41799         * doc/posix-functions/execv.texi (execv): Likewise.
41800         * doc/posix-functions/execve.texi (execve): Likewise.
41801         * doc/posix-functions/execvp.texi (execvp): Likewise.
41802         * doc/glibc-functions/canonicalize_file_name.texi
41803         (canonicalize_file_name): Cygwin 1.7 now provides this.
41804         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41805         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41806         on AT_SYMLINK_NOFOLLOW.
41807
41808 2009-09-24  Eric Blake  <ebb9@byu.net>
41809
41810         test-linkat: make test more robust
41811         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41812
41813         getopt: fix inclusion guards for cygwin
41814         * modules/getopt-posix (Depends-on): Add include-next.
41815         (Makefile.am): Substitute more items in replacement header.
41816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41817         <getopt.h>.
41818         * lib/getopt.in.h (includes): Use split inclusion guard, and
41819         prefer <getopt.h> over include <unistd.h> when one is present.
41820         (option): Also override name of 'struct option'.
41821
41822         same-inode: revert prior change; it is not yet ready
41823         * NEWS: Undo mention of this change.
41824         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41825         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41826         * lib/cycle-check.c (cycle_check): Likewise.
41827         * lib/same.c (same_name): Likewise.
41828         * lib/at-func2.c (at_func2): Likewise.
41829
41830 2009-09-23  Eric Blake  <ebb9@byu.net>
41831
41832         linkat: new module
41833         * modules/linkat: New file.
41834         * lib/at-func2.c (at_func2): Likewise.
41835         * lib/linkat.c (linkat): Likewise.
41836         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41837         * lib/openat-priv.h (at_func2): Add declaration.
41838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41839         * modules/unistd (Makefile.am): Substitute them.
41840         * lib/unistd.in.h (linkat): Declare it.
41841         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41842         * doc/posix-functions/linkat.texi (linkat): Likewise.
41843         * doc/posix-functions/link.texi (link): Tweak wording.
41844         * tests/test-link.c (main): Move guts...
41845         * tests/test-link.h (test_link): ...into new file.
41846         * modules/linkat-tests: New test.
41847         * tests/test-linkat.c: Likewise.
41848         * modules/link-tests (Files): Ship new file.
41849         (Depends-on): Add stdbool.
41850
41851         dirname: add library-safe mdir_name
41852         * lib/dirname.h (mdir_name): New prototype.
41853         * lib/dirname.c (dir_name): Move guts...
41854         (mdir_name): ...to new function that avoids xalloc_die.
41855
41856         fchdir: another mingw fix
41857         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41858         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41859         on mingw (where it has not yet been ported), and make it optional
41860         elsewhere.
41861         (_gl_register_fd): Use it.
41862
41863         same-inode: make SAME_INODE tri-state, to port to mingw
41864         * NEWS: Mention this change.
41865         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41866         st_ino always being 0.
41867         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41868         * lib/cycle-check.c (cycle_check): Likewise.
41869         * lib/same.c (same_name): Likewise.
41870
41871         lstat: avoid mingw compilation error
41872         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41873         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41874         lstat ourselves.
41875         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41876         was adequate.
41877         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41878         the checks for lstat.
41879         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41880
41881         link: fix test failure on Solaris 9
41882         * lib/link.c (rpl_link): Don't assume link will catch bogus
41883         trailing slash on source.
41884
41885         test-symlinkat: enhance test
41886         * tests/test-readlink.c (main): Move guts...
41887         * tests/test-readlink.h (test_readlink): ...into new file.
41888         * tests/test-symlink.c (main): Move guts...
41889         * tests/test-symlink.h (test_symlink): ...into new file.
41890         * tests/test-symlinkat.c (main): Use new files for further
41891         coverage.
41892         (do_symlink, do_readlink): New helper functions.
41893         * modules/symlink-tests (Files): Ship new file.
41894         (Depends-on): Add stdbool.
41895         * modules/readlink-tests (Files): Ship new file.
41896         (Depends-on): Add stdbool.
41897         * modules/symlinkat-tests (Files): Use new files.
41898
41899 2009-09-23  Eric Blake  <ebb9@byu.net>
41900
41901         readlink: document portability issue with symlink length
41902         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41903         systems have bogus st_size on symlinks, and mention the
41904         areadlink-with-size module.
41905         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41906         * doc/posix-functions/readlink.texi (readlink): Mention the
41907         areadlink module, and ERANGE failure.
41908         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41909         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41910
41911         readlink: fix Solaris 9 bug with trailing slash
41912         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41913         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41914         * doc/posix-functions/readlink.texi (readlink): Document this.
41915         * modules/readlink-tests: New test.
41916         * tests/test-readlink.c: Likewise.
41917
41918         readlink: fix cygwin 1.5.x bug with return type
41919         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41920         * lib/unistd.in.h (readlink): Use ssize_t.
41921         * lib/readlink.c (readlink): Likewise.
41922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41923         * modules/unistd (Makefile.am): Substitute it.
41924         * lib/unistd.in.h (readlink): Declare replacement.
41925         * doc/posix-functions/readlink.texi (readlink): Document this.
41926
41927         symlink: use throughout gnulib
41928         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41929         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41930         symlink is not used.
41931         * modules/symlinkat (Depends-on): Add symlink.
41932         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41933         * modules/canonicalize-tests (Depends-on): Likewise.
41934         * modules/lstat-tests (Depends-on): Likewise.
41935         * modules/openat-tests (Depends-on): Likewise.
41936         * modules/remove-tests (Depends-on): Likewise.
41937         * modules/rmdir-tests (Depends-on): Likewise.
41938         * modules/unlink-tests (Depends-on): Likewise.
41939         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41940         * tests/test-canonicalize.c (symlink): Likewise.
41941         * tests/test-fstatat.c (symlink): Likewise.
41942         * tests/test-lstat.c (symlink): Likewise.
41943         * tests/test-remove.c (symlink): Likewise.
41944         * tests/test-rmdir.c (symlink): Likewise.
41945         * tests/test-unlink.c (symlink): Likewise.
41946         * tests/test-unlinkat.c (symlink): Likewise.
41947
41948         symlink: new module, for Solaris 9 bug
41949         * modules/symlink: New file.
41950         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41951         * lib/symlink.c: Likewise.
41952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41953         * modules/unistd (Makefile.am): Substitute them.
41954         * lib/unistd.in.h (symlink): Declare replacement.
41955         * MODULES.html.sh (File system functions): Mention it.
41956         * doc/posix-functions/symlink.texi (symlink): Likewise.
41957         * modules/symlink-tests: New test.
41958         * tests/test-symlink.c: Likewise.
41959
41960 2009-09-23  Bruno Haible  <bruno@clisp.org>
41961
41962         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41963         when needed.
41964         Test case: gnulib-tool --import --with-tests atexit inttypes.
41965         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41966
41967 2009-09-23  Bruno Haible  <bruno@clisp.org>
41968
41969         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41970         subcommand, not in a subshell.
41971
41972 2009-09-22  Eric Blake  <ebb9@byu.net>
41973
41974         unistd: sort replacement declarations
41975         * lib/unistd.in.h: Sort declarations.
41976
41977         open, openat: minor optimization
41978         * lib/open.c (open): If open succeeded, len is non-zero.
41979         * lib/openat.c (rpl_openat): Likewise.
41980
41981         link-follow: ensure correct result
41982         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41983         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41984         distinguish between possible failures.
41985
41986 2009-09-21  Eric Blake  <ebb9@byu.net>
41987
41988         fts: avoid compiler warning
41989         * lib/fts.c (dirent_inode_sort_may_be_useful)
41990         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41991
41992 2009-09-19  Bruno Haible  <bruno@clisp.org>
41993
41994         * lib/progreloc.c (canonicalize_file_name): New declaration.
41995
41996 2009-09-19  Eric Blake  <ebb9@byu.net>
41997
41998         link: fix quoting
41999         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
42000
42001         openat: fix openat bugs on Solaris 9
42002         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
42003         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
42004         * modules/openat (Depends-on): Add open.
42005         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
42006         * modules/fcntl-h (Makefile.am): Substitute it.
42007         * lib/fcntl.in.h (openat): Declare replacement.
42008         * doc/posix-functions/openat.texi (openat): Document this.
42009
42010         openat: move fstatat and unlinkat into correct files
42011         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
42012         compiled.
42013         * lib/openat.c (fstatat, unlinkat): Move...
42014         * lib/fstatat.c (fstatat): ...into correct files.
42015         * lib/unlinkat.c (unlinkat): Likewise.
42016
42017         openat: fix unlinkat bugs on Solaris 9
42018         * lib/unlinkat.c (unlinkat): New file.
42019         * modules/openat (Depends-on): Add unlink.
42020         (Files): Distribute it.
42021         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
42022         trailing slash behavior is broken.
42023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42024         * modules/unistd (Makefile.am): Substitute it.
42025         * lib/unistd.in.h (unlinkat): Declare replacement.
42026         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
42027
42028         openat: fix fstatat bugs on Solaris 9
42029         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
42030         stat.
42031         * doc/posix-functions/fstatat.texi (fstatat): Document this.
42032
42033         test-unlinkat: enhance test, to expose Solaris 9 bug
42034         * tests/test-unlink.c (main): Factor guts...
42035         * tests/test-unlink.h (test_rmdir_func): ...into new file.
42036         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
42037         * tests/test-rmdir.c (main): Adjust caller.
42038         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
42039         (unlinker): New helper function.
42040         (rmdirat): Enhance check.
42041         * modules/rmdir-tests (Depends-on): Add stdbool.
42042         * modules/unlink-tests (Depends-on): Likewise.
42043         (Files): Add test-unlink.h.
42044         * modules/openat-tests (Files): Likewise.
42045         (Depends-on): Add unlinkdir.
42046
42047         test-fstatat: new test, to expose Solaris 9 bugs
42048         * tests/test-stat.c (main): Factor guts...
42049         * tests/test-stat.h (test_stat_func): ...into new file.
42050         * tests/test-lstat.c (main): Factor guts...
42051         * tests/test-lstat.h (test_lstat_func): ...into new file.
42052         * tests/test-fstatat.c: New file.
42053         * modules/stat-tests (Files): Add test-stat.h.
42054         * modules/lstat-tests (Files): Add test-lstat.h.
42055         (Depends-on): Add stdbool.
42056         * modules/openat-tests (Depends-on): Add pathmax.
42057         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
42058         (Makefile.am): Run new test.
42059
42060         remove: new module, for mingw and Solaris 9 bugs
42061         * modules/remove: New file.
42062         * lib/remove.c: Likewise.
42063         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
42064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42065         * modules/stdio (Makefile.am): Use them.
42066         * lib/stdio.in.h (remove): Declare replacement.
42067         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42068         * doc/posix-functions/remove.texi (remove): Likewise.
42069         * modules/remove-tests: New test.
42070         * tests/test-remove.c: Likewise.
42071
42072         unlink: new module, for Solaris 9 bug
42073         * modules/unlink: New file.
42074         * lib/unlink.c: Likewise.
42075         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42077         * modules/unistd (Makefile.am): Use them.
42078         * lib/unistd.in.h (stat): Declare replacement.
42079         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42080         * doc/posix-functions/unlink.texi (unlink): Likewise.
42081         * modules/unlink-tests: New test.
42082         * tests/test-unlink.c: Likewise.
42083
42084         lstat: fix Solaris 9 bug
42085         * lib/lstat.c (lstat): Also check for trailing slash on
42086         non-symlink, non-directories.  Use stat module to simplify logic.
42087         * doc/posix-functions/lstat.texi (lstat): Document it.
42088         * modules/lstat-tests (Depends-on): Add errno, same-inode.
42089         (configure.ac): Check for symlink.
42090         * tests/test-lstat.c (main): Add more tests.
42091
42092         stat: add as dependency to other modules
42093         * modules/chown (Depends-on): Add stat.
42094         * modules/euidaccess (Depends-on): Likewise.
42095         * modules/fchdir (Depends-on): Likewise.
42096         * modules/isdir (Depends-on): Likewise.
42097         * modules/link (Depends-on): Likewise.
42098         * modules/lstat (Depends-on): Likewise.
42099         * modules/mkdir-p (Depends-on): Likewise.
42100         * modules/modechange (Depends-on): Likewise.
42101         * modules/open (Depends-on): Likewise.
42102         * modules/readlink (Depends-on): Likewise.
42103         * modules/same (Depends-on): Likewise.
42104
42105         stat: fix Solaris 9 bug
42106         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
42107         slash.
42108         * lib/stat.c (rpl_stat): Work around it.
42109         * doc/posix-functions/stat.texi (stat): Update documentation.
42110
42111         stat: new module, for mingw bug
42112         * modules/stat: New file.
42113         * lib/stat.c: Likewise.
42114         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42116         * modules/sys_stat (Makefile.am): Use them.
42117         * lib/sys_stat.in.h (stat): Declare replacement.
42118         * lib/openat.c (fstatat): Deal with lstat and stat being function
42119         macros.
42120         * modules/openat (Depends-on): Add inline.
42121         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42122         * doc/posix-functions/stat.texi (stat): Likewise.
42123         * modules/stat-tests: New test.
42124         * tests/test-stat.c: Likewise.
42125
42126 2009-09-19  Jim Meyering  <meyering@redhat.com>
42127
42128         syntax-check: detect unnecessary inclusion of canonicalize.h
42129         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
42130
42131 2009-09-19  Eric Blake  <ebb9@byu.net>
42132
42133         canonicalize-lgpl: adjust clients to use correct header
42134         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42135         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42136         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42137         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42138         * lib/progreloc.c (includes): Likewise.
42139
42140 2009-09-19  Jim Meyering  <meyering@redhat.com>
42141
42142         test-posixtm.c: correct a comment
42143         * tests/test-posixtm.c: Correct first-line comment.
42144         Spotted by Eric Blake.
42145
42146 2009-09-16  Jim Meyering  <meyering@redhat.com>
42147
42148         posixtm-tests: make T const-correct; add a test case
42149         * tests/test-posixtm.c (T): Declare const.
42150         Add a test for -(2^31+1).
42151         Remove useless can-succeed-only-in-2002 test.
42152
42153         posixtm-tests: adjust the sole failing test
42154         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42155         expected output matches what mktime now produces.  Cross-checked via
42156         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42157
42158         posixtm: move #ifdef'd tests into a new module
42159         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42160         * tests/test-posixtm.c: ... this new file.
42161         * modules/posixtm-tests: New module.
42162
42163 2009-09-19  Eric Blake  <ebb9@byu.net>
42164
42165         openat: simplify use of at-func.c
42166         * lib/at-func.c (includes): Include prerequisites here, to
42167         simplify requirements on client files.
42168         * lib/openat-priv.h: Add double-inclusion guard.
42169         * lib/faccessat.c (includes): Simplify.
42170         * lib/fchmodat.c (includes): Likewise.
42171         * lib/fchownat.c (includes): Likewise.
42172         * lib/mkdirat.c (includes): Likewise.
42173         * lib/mkfifoat.c (includes): Likewise.
42174         * lib/symlinkat.c (includes): Likewise.
42175
42176         openat: allow return of fd 0
42177         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42178         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42179         unistd-safer.
42180         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42181         <fcntl.h>; this module does not leak fds.
42182         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42183         must be allowed to return 0, leaving openat_safer to add the
42184         safety.
42185         (openat_permissive): Avoid writing to just-opened fd 2 if
42186         restoring the current directory fails.
42187         * lib/openat-die.c (openat_restore_fail): Add comment.
42188         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42189         (save_cwd): Guarantee safe fd, but without use of open_safer.
42190         * tests/test-openat.c: New test.
42191         * modules/openat-tests (Files, Makefile.am): Distribute and build
42192         new file.
42193
42194         relocatable-prog-wrapper: fix build
42195         * modules/relocatable-prog-wrapper (Files): Update name of
42196         canonicalize m4 file, broken on 2009-09-17.
42197         Reported by emad hajjar <aleppos@hotmail.com>.
42198
42199 2009-09-19  Bruno Haible  <bruno@clisp.org>
42200
42201         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42202         * lib/safe-alloc.c: Likewise.
42203         Reported by Ian Beckwith <ianb@erislabs.net>.
42204
42205 2009-09-18  Bruno Haible  <bruno@clisp.org>
42206
42207         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42208         Reported by <erobles@sensacd.com.mx>.
42209
42210 2009-09-17  Eric Blake  <ebb9@byu.net>
42211
42212         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42213         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42214         slashes when checking if last component is missing.
42215         * tests/test-canonicalize.c (main): Test this.
42216
42217         canonicalize, canonicalize-lgpl: honor // if distinct from /
42218         * modules/canonicalize (Files): Add double-slash-root.m4.
42219         * modules/canonicalize-lgpl (Files): Likewise.
42220         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42221         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42222         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42223         fallback definition.
42224         (canonicalize_filename_mode): Use it to protect //.
42225         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42226         (__realpath): Likewise.
42227         * tests/test-canonicalize.c (main): Test this.
42228         * tests/test-canonicalize-lgpl.c (main): Likewise.
42229         * modules/canonicalize-tests (Depends-on): Add same-inode.
42230         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42231
42232         canonicalize-lgpl: fix glibc bug with trailing slash
42233         * m4/canonicalize-lgpl.m4: Move contents...
42234         * m4/canonicalize.m4: ...here.
42235         (gl_CANONICALIZE_LGPL): Factor realpath check...
42236         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42237         glibc 2.3.5 bug, fixed 2005-04-27.
42238         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42239         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42240         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42241         * modules/canonicalize-lgpl (Files): Manage file rename.
42242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42243         * modules/stdlib (Makefile.am): Substitute witness.
42244         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42245         is needed.
42246         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42247         replacement is required.
42248         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42249         * doc/glibc-functions/canonicalize_file_name.texi
42250         (canonicalize_file_name): Document this.
42251         * doc/posix-functions/realpath.texi (realpath): Likewise.
42252
42253         canonicalize-lgpl: reject non-directory with trailing slash
42254         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42255         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42256         catches failures in glibc 2.3.5.
42257         * tests/test-canonicalize.c (main): Likewise.
42258
42259         canonicalize-lgpl: use native realpath if it works
42260         * lib/canonicalize-lgpl.c (realpath): Guard with
42261         FUNC_REALPATH_WORKS.
42262         * lib/stdlib.in.h (realpath): Make declaration optional based on
42263         HAVE_REALPATH.
42264         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42265         native realpath works.
42266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42267         * modules/stdlib (Makefile.am): Substitute witness.
42268
42269         canonicalize, canonicalize-lgpl: use <stdlib.h>
42270         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42271         (Include): Mention <stdlib.h>.
42272         (configure.ac): Mention functions we provide.
42273         * modules/canonicalize (configure.ac): Likewise.
42274         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42275         realpath if canonicalize_file_name is missing.
42276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42277         * modules/stdlib (Makefile.am): Substitute witnesses.
42278         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42279         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42280         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42281         * NEWS: Document this.
42282         * doc/glibc-functions/canonicalize_file_name.texi
42283         (canonicalize_file_name): Likewise.
42284         * doc/posix-functions/realpath.texi (realpath): Likewise.
42285         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42286
42287         test-canonicalize: consolidate into single C program
42288         * tests/test-canonicalize.sh: Delete; move setup into...
42289         * tests/test-canonicalize.c (main): ...the program, making it
42290         easier to run in debugger.  Add some tests.
42291         * modules/canonicalize-tests (Files): Remove unused file.
42292         (Depends-on): Add progname.
42293         (configure.ac, Makefile.am): Simplify.
42294
42295         test-canonicalize-lgpl: consolidate into single C program
42296         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42297         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42298         easier to run in debugger.  Add some tests.
42299         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42300         (configure.ac, Makefile.am): Simplify.
42301
42302         canonicalize: avoid resolvepath
42303         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42304         unnecessary checks.
42305         * lib/canonicalize.c (includes): Simplify.
42306         (canonicalize_file_name): Drop resolvepath implementation.
42307         * modules/canonicalize (Depends-on): Drop filenamecat.
42308
42309         canonicalize: don't lose errno
42310         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42311         over calls to free.
42312
42313         canonicalize: simplify errno handling
42314         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42315         assignment.
42316
42317         canonicalize, canonicalize-lgpl: update module dependencies
42318         * modules/canonicalize (Depends-on): Add extensions, lstat,
42319         pathmax, stdlib.
42320         (Files): Drop pathmax.h.
42321         (configure.ac): Adjust macro name.
42322         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42323         lstat, stdlib, sys_stat.
42324         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42325         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42326         extensions.
42327         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42328         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42329         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42330         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42331         declaration, if available.
42332         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42333         we can rely on the readlink module.
42334         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42335         (includes): Use <unistd.h> unconditionally.
42336
42337 2009-09-17  Eric Blake  <ebb9@byu.net>
42338
42339         maint: make Include sections of modules consistent
42340         * modules/alloca: Use only header name; no need to list #include.
42341         * modules/alloca-opt: Likewise.
42342         * modules/arpa_inet: Likewise.
42343         * modules/canon-host: Likewise.
42344         * modules/configmake: Likewise.
42345         * modules/dirent: Likewise.
42346         * modules/eealloc: Likewise.
42347         * modules/environ: Likewise.
42348         * modules/fchdir: Likewise.
42349         * modules/fcntl: Likewise.
42350         * modules/fcntl-h: Likewise.
42351         * modules/gethrxtime: Likewise.
42352         * modules/gettime: Likewise.
42353         * modules/ignore-value: Likewise.
42354         * modules/inet_ntop: Likewise.
42355         * modules/inet_pton: Likewise.
42356         * modules/inttypes: Likewise.
42357         * modules/isnand-nolibm: Likewise.
42358         * modules/isnanf-nolibm: Likewise.
42359         * modules/mbchar: Likewise.
42360         * modules/mbfile: Likewise.
42361         * modules/mbiter: Likewise.
42362         * modules/mbuiter: Likewise.
42363         * modules/netdb: Likewise.
42364         * modules/netinet_in: Likewise.
42365         * modules/nproc: Likewise.
42366         * modules/pagealign_alloc: Likewise.
42367         * modules/poll: Likewise.
42368         * modules/printf-frexp: Likewise.
42369         * modules/pthread: Likewise.
42370         * modules/putenv: Likewise.
42371         * modules/random_r: Likewise.
42372         * modules/relocatable-prog: Likewise.
42373         * modules/search: Likewise.
42374         * modules/select: Likewise.
42375         * modules/selinux-h: Likewise.
42376         * modules/settime: Likewise.
42377         * modules/signal: Likewise.
42378         * modules/size_max: Likewise.
42379         * modules/socklen: Likewise.
42380         * modules/ssize_t: Likewise.
42381         * modules/stdarg: Likewise.
42382         * modules/stdbool: Likewise.
42383         * modules/stddef: Likewise.
42384         * modules/stdint: Likewise.
42385         * modules/stdio: Likewise.
42386         * modules/stdlib: Likewise.
42387         * modules/string: Likewise.
42388         * modules/strings: Likewise.
42389         * modules/sys_file: Likewise.
42390         * modules/sys_ioctl: Likewise.
42391         * modules/sys_select: Likewise.
42392         * modules/sys_socket: Likewise.
42393         * modules/sys_stat: Likewise.
42394         * modules/sys_time: Likewise.
42395         * modules/sys_times: Likewise.
42396         * modules/sys_utsname: Likewise.
42397         * modules/sys_wait: Likewise.
42398         * modules/sysexits: Likewise.
42399         * modules/time: Likewise.
42400         * modules/times: Likewise.
42401         * modules/tmpfile: Likewise.
42402         * modules/trim: Likewise.
42403         * modules/unistd: Likewise.
42404         * modules/wchar: Likewise.
42405         * modules/wctype: Likewise.
42406
42407 2009-09-17  Bruno Haible  <bruno@clisp.org>
42408
42409         Make getdate.y compile on QNX and NetBSD 5 / i386.
42410         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42411         TIME_T_FITS_IN_LONG_INT.
42412         * lib/getdate.y (long_time_t): New type.
42413         (relative_time): Change type of 'seconds' field to long_time_t.
42414         (get_date): Update types of local variables. Check against overflow
42415         during conversion from long_time_t to time_t.
42416         Reported by Matt Kraai <kraai@ftbfs.org>
42417         and Hasso Tepper <hasso@netbsd.org>.
42418
42419 2009-09-17  Bruno Haible  <bruno@clisp.org>
42420
42421         * modules/COPYING: Update copyright years.
42422         * modules/README: Likeiwse.
42423         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42424         Reported by Ian Beckwith <ianb@erislabs.net>.
42425
42426 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42427
42428         * users.txt: Update references for gnuit package.
42429
42430 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42431
42432         * m4/getdelim.m4: Fix typo in copyright line.
42433
42434 2009-09-17  Bruno Haible  <bruno@clisp.org>
42435
42436         * lib/atoll.c: Use the standard header with GPL copyright.
42437         * lib/argz.in.h: Likewise.
42438         * lib/glob.c: Likewise.
42439         * lib/glob-libc.h: Likewise.
42440         * lib/random_r.c: Likewise.
42441         * lib/siglist.h: Likewise.
42442         * lib/strsignal.c: Likewise.
42443         Reported by Ian Beckwith <ianb@erislabs.net>.
42444
42445 2009-09-17  Eric Blake  <ebb9@byu.net>
42446
42447         rmdir: ensure correct dependency order
42448         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42449
42450 2009-09-17  Bruno Haible  <bruno@clisp.org>
42451
42452         Disable assertion that fails on NetBSD 5 / i386.
42453         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42454         Reported by Sam Steingold <sds@gnu.org>
42455         and Hasso Tepper <hasso@netbsd.org>.
42456
42457 2009-09-16  Eric Blake  <ebb9@byu.net>
42458
42459         unlinkdir: port to mingw
42460         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42461         on which no one can unlink a directory.
42462
42463         stdlib: sort witness names
42464         * modules/stdlib (Makefile.am): Sort replacements.
42465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42466         * lib/stdlib.in.h: Likewise.
42467
42468         parse-duration-tests: avoid link failure
42469         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42470         LIBINTL.
42471         Reported by Tom G. Christensen.
42472
42473         openat-tests: ensure unlinkat behaves like rmdir
42474         * tests/test-rmdir.c (main): Factor guts...
42475         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42476         * modules/rmdir-tests (Files): Ship new file.
42477         * modules/openat-tests: New test.
42478         * tests/test-unlinkat.c: Likewise.
42479
42480         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42481         * modules/rmdir-errno (Status, Notice): Now obsolete.
42482
42483         rmdir: work around cygwin 1.5.x and mingw bugs
42484         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42485         * lib/rmdir.c (rmdir): Work around it.
42486         * modules/rmdir (Status, Notice): No longer obsolete.
42487         (Files): Add dos.m4.
42488         (Depends-on): Add unistd.
42489         (configure.ac): Set witnesses.
42490         (License): Relax to LGPLv2+.
42491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42492         * modules/unistd (Makefile.am): Substitute witnesses.
42493         * lib/unistd.in.h (rmdir): Declare replacement.
42494         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42495         * modules/rmdir-tests: New tests.
42496         * tests/test-rmdir.c: Likewise.
42497
42498 2009-09-15  Eric Blake  <ebb9@byu.net>
42499
42500         fchdir: improve use of replacement functions
42501         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42502         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42503         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42504         REPLACE_CLOSEDIR.
42505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42506         * modules/sys_stat (Makefile.am): Substitute correct witness.
42507         * modules/dirent (Makefile.am): Likewise.
42508         * modules/unistd (Makefile.am): Likewise.
42509         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42510         * lib/unistd.in.h (dup): Likewise.
42511         * lib/sys_stat.in.h (fstat): Likewise.
42512
42513         maint: ignore gnulib-tool temp files
42514         * .gitignore: Ignore files created during gnulib-tool --test.
42515
42516 2009-09-13  Jim Meyering  <meyering@redhat.com>
42517
42518         posixtm: don't reject a time that specify "60" as the number of seconds
42519         * lib/posixtm.c (posixtime): The code to reject invalid dates
42520         would also reject a time specified with the .60 suffix.
42521         But POSIX allows that, in order to accommodate leap seconds.
42522         So don't reject it.
42523         (main): Adjust tests accordingly.
42524         * modules/posixtm (Depends-on): Add stpcpy.
42525
42526 2009-09-11  Jim Meyering  <meyering@redhat.com>
42527
42528         announce-gen: include [$release_type] in emitted Subject:
42529         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42530         e.g., [stable] in the emitted Subject: line.
42531
42532 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42533
42534         Remove obsolete macros from several modules.
42535         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42536         obsolete Autoconf macros with their modern counterparts.
42537         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42538         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42539         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42540         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42541         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42542         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42544         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42545         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42546         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42547         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42548         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42549         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42550         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42551         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42552         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42553         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42554         * m4/time_r.m4 (gl_TIME_R): Likewise.
42555         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42556         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42557         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42558
42559         Fix copyright header in build-aux scripts.
42560         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42561         recommendation.
42562         * build-aux/ncftpput-ftp: Likewise.
42563         * build-aux/update-copyright: Likewise.
42564
42565 2009-09-09  Eric Blake  <ebb9@byu.net>
42566
42567         test-link: allow Linux choice of errno
42568         * tests/test-link.c (main): Relax test for alternate error.
42569
42570         strndup: fix improper m4 caching
42571         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42572         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42573         (gl_PREREQ_STRNDUP): Delete.
42574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42575         * modules/string (Makefile.am): Substitute it.
42576         * lib/string.in.h (strndup): Modernize prototype.
42577
42578         getcwd: port to mingw
42579         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42580         different from the POSIX assumptions made throughout the getcwd
42581         module; fortunately, the mingw getcwd does not need replacement.
42582         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42583         * modules/getcwd-tests: New test.
42584         * tests/test-getcwd.c: Likewise.
42585
42586         link: fix platform bugs
42587         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42588         * lib/link.c (link): Work around them.  Fix related mingw bug.
42589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42590         * modules/unistd (Makefile.am): Substitute it.
42591         * lib/unistd.in.h (link): Declare replacement.
42592         * doc/posix-functions/link.texi (link): Document this.
42593         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42594
42595         test-link: consolidate into single C program, test more cases
42596         * tests/test-link.sh: Delete.
42597         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42598         at least Cygwin and Solaris.
42599         * modules/link-tests (Files): Remove unused file.
42600         (Depends-on): Add errno, sys_stat.
42601         (Makefile.am): Simplify.
42602
42603 2009-09-08  Bruno Haible  <bruno@clisp.org>
42604
42605         Work around towlower, towupper bug on mingw.
42606         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42607         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42608         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42609         * doc/posix-functions/towupper.texi: Likewise.
42610         Reported by Eric Blake.
42611
42612 2009-09-08  Jim Meyering  <meyering@redhat.com>
42613
42614         build: don't try to run autoheader if we don't use it
42615         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42616         is not used in configure.ac.
42617
42618 2009-09-08  Eric Blake  <ebb9@byu.net>
42619
42620         euidaccess: fix compilation error
42621         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42622
42623         rawmemchr: relax license
42624         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42625         okay.
42626         Reported by Jim Meyering.
42627
42628         mkfifoat: new module
42629         * modules/mkfifoat: New file.
42630         * lib/mkfifoat.c: Likewise.
42631         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42632         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42633         * modules/sys_stat (Makefile.am): Use them.
42634         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42635         * MODULES.html.sh (File system functions): Mention module.
42636         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42637         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42638         * modules/mkfifoat-tests: New test.
42639         * tests/test-mkfifoat.c: Likewise.
42640
42641         strchrnul: relax license
42642         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42643         okay.
42644         Reported by Jim Meyering.
42645
42646 2009-09-08  Eric Blake  <ebb9@byu.net>
42647
42648         fstatat: fix compilation on Solaris
42649         * lib/fstatat.c (includes): Add fcntl.h.
42650         Reported by Pádraig Brady.
42651
42652 2009-09-07  Eric Blake  <ebb9@byu.net>
42653
42654         rename: modernize replacement
42655         * modules/rename (Depends-on): Add stdio.
42656         (configure.ac): Declare witness.
42657         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42658         stdio take care of replacement.
42659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42660         * modules/stdio (Makefile.am): Substitute them.
42661         * lib/stdio.in.h (rename): Declare replacement.
42662         * lib/rename.c (includes): Allow cross-compilation to non-windows
42663         machines.
42664         * doc/posix-functions/rename.texi (rename): Improve
42665         documentation.
42666
42667         stdio: sort witness names
42668         * modules/stdio (Makefile.am): Sort replacements.
42669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42670         * lib/stdio.in.h: Likewise.
42671
42672         getcwd: minor cleanups
42673         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42674         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42675
42676         openat: provide more convenience names
42677         * modules/faccessat (configure.ac): Add C witness.
42678         * lib/unistd.in.h (readlinkat): Fix typo.
42679         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42680         convenience wrappers.
42681         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42682         wrappers in syntax checks.
42683
42684 2009-09-06  Eric Blake  <ebb9@byu.net>
42685
42686         doc: fix comments in recent patches
42687         * lib/faccessat.c: Mention correct function.
42688         * lib/fchmodat.c: Likewise.
42689         * lib/fchownat.c: Likewise.
42690         * lib/symlinkat.c: Likewise.
42691         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42692         constants.
42693
42694         faccessat, symlinkat: continue cleanup of previous patch
42695         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42696         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42697         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42699         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42700         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42701         set.
42702
42703 2009-09-06  Bruno Haible  <bruno@clisp.org>
42704
42705         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42706         (fstatat): Declare if GNULIB_FSTATAT is set.
42707         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42708         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42709         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42710         * modules/fcntl-h (Files): Remove m4/openat.m4.
42711         * modules/sys_stat (Files): Remove m4/openat.m4.
42712         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42713         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42714         * modules/unistd (Files): Remove m4/openat.m4.
42715         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42716         GNULIB_OPENAT.
42717         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42718         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42719         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42720         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42721         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42722         gl_OPENAT_DEFAULTS.
42723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42724         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42725         Don't require gl_OPENAT_DEFAULTS.
42726         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42727         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42728         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42729         (gl_OPENAT_DEFAULTS): Remove macro.
42730
42731 2009-09-06  Bruno Haible  <bruno@clisp.org>
42732
42733         * modules/openat (configure.ac): Remove unneeded witness.
42734
42735 2009-09-06  Bruno Haible  <bruno@clisp.org>
42736
42737         Set errno to ENOSYS when a function is entirely unsupported.
42738         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42739         EOPNOTSUPP.
42740         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42741         * modules/chown (Depends-on): Remove errno.
42742
42743 2009-09-06  Bruno Haible  <bruno@clisp.org>
42744
42745         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42746
42747 2009-09-06  Bruno Haible  <bruno@clisp.org>
42748
42749         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42750
42751 2009-09-06  Ben Pfaff  <blp@gnu.org>
42752             Bruno Haible  <bruno@clisp.org>
42753
42754         Work around a glibc bug in strtok_r.
42755         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42756         Undefine if UNDEFINE_STRTOK_R is set.
42757         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42759         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42760         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42761         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42762         UNDEFINE_STRTOK_R.
42763         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42764
42765 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42766
42767         exclude: minor fix
42768         * lib/exclude.c: Include wctype.h
42769
42770 2009-09-06  Akim Demaille  <demaille@gostai.com>
42771
42772         bootstrap: improve error message
42773         * build-aux/bootstrap (find_tool): Upon failure, report the list
42774         of candidates.
42775         Honor the initial value of the envvar.
42776
42777 2009-09-05  Eric Blake  <ebb9@byu.net>
42778
42779         symlinkat: new module
42780         * modules/symlinkat: New file.
42781         * lib/symlinkat.c: Likewise.
42782         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42784         * modules/unistd (Makefile.am): Use them.
42785         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42786         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42787         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42788         * MODULES.html.sh (File system functions): Mention module.
42789         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42790         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42791         * modules/symlinkat-tests: New test.
42792         * tests/test-symlinkat.c: Likewise.
42793
42794         test-openat-safer: add more checks
42795         * tests/test-openat-safer.c (main): Check more code paths.
42796
42797 2009-09-05  Jim Meyering  <meyering@redhat.com>
42798
42799         syntax-check: detect unnecessary inclusion of openat.h
42800         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42801
42802 2009-09-05  Bruno Haible  <bruno@clisp.org>
42803
42804         Support towlower, towupper.
42805         * doc/posix-functions/towlower.texi: Mention module wctype.
42806         * doc/posix-functions/towupper.texi: Likewise.
42807         * lib/wctype.in.h (towlower, towupper): New functions.
42808         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42809         (ASSERT): New macro.
42810         (e): New variable.
42811         (main): Test also towlower, towupper. Test WEOF argument.
42812         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42813
42814 2009-09-05  Bruno Haible  <bruno@clisp.org>
42815
42816         Fix conversion behaviour when the input is invalid.
42817         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42818         mark occurring in first pass of indirect conversion.
42819         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42820         input.
42821         Found by clang's static analyzer.
42822
42823 2009-09-05  Bruno Haible  <bruno@clisp.org>
42824
42825         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42826         where direct conversion is possible.
42827
42828 2009-09-04  Eric Blake  <ebb9@byu.net>
42829
42830         openat: fail with ENOENT on empty name
42831         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42832         buffer.
42833
42834         link-follow: fix logic bug in prior patch
42835         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42836         reversed sense of yes and no in prior patch.  Avoid confusing
42837         compilation failure with desired semantics.
42838
42839         link-follow: accommodate mingw and cross-compilation
42840         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42841         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42842         cross-compilation results to -1, to make linkat easier to
42843         implement when cross-compiling.  Trivially support mingw.
42844         * modules/link-follow (configure.ac): Call new name.
42845         * NEWS: Mention this.
42846
42847 2009-09-03  Eric Blake  <ebb9@byu.net>
42848
42849         faccessat: compile replacement
42850         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42851         needed.
42852
42853         fts: fix compilation error
42854         * lib/fts.c (includes): Re-add "openat.h", for
42855         openat_needs_fchdir.
42856
42857         faccessat: new module
42858         * modules/faccessat: New file.
42859         * lib/faccessat.c: Likewise.
42860         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42862         * modules/unistd (Makefile.am): Use it.
42863         * lib/unistd.in.h (faccessat): Declare it.
42864         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42865         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42866         * MODULES.html.sh (File system functions): Mention it.
42867         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42868         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42869
42870         euidaccess: prefer POSIX over non-standard implementation
42871         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42872         * lib/euidaccess.c (euidaccess): Use it if available.
42873
42874         openat: make template easier to use
42875         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42876         AT_FUNC_F2 to be undefined.
42877         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42878         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42879         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42880         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42881         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42882         Likewise.
42883         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42884         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42885         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42886         Likewise.
42887
42888         openat: declare in POSIX headers
42889         * NEWS: Mention this.
42890         * modules/openat (configure.ac): Declare witnesses.
42891         (Depends-on): Add fcntl-h, sys_stat, unistd.
42892         (Include): Mention correct headers.
42893         * modules/fcntl-h (Depends-on): Add link-warning.
42894         (Files): Add openat.m4.
42895         (Makefile.am): Substitute witnesses.
42896         * modules/sys_stat (Files, Makefile.am): Likewise.
42897         * modules/unistd (Files, Makefile.am): Likewise.
42898         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42899         (gl_OPENAT_DEFAULTS): New macro.
42900         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42903         (SYS_STAT_H): Remove unused variable.
42904         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42905         * lib/fcntl--.h (includes): Remove unneeded header.
42906         * lib/openat-safer.c (includes): Likewise.
42907         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42908         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42909         appropriate headers.
42910         (__OPENAT_PREFIX): Delete.
42911         * lib/fcntl.in.h (openat): Provide declaration.
42912         (AT_FDCWD): Fix Solaris bug.
42913         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42914         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42915         * lib/fchmodat.c (includes):  Adjust to find declaration.
42916         * lib/fchownat.c (includes): Likewise.
42917         * lib/mkdirat.c (includes): Likewise.
42918         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42919         still visible.
42920
42921 2009-09-02  Eric Blake  <ebb9@byu.net>
42922
42923         errno: use consistently
42924         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42925         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42926         * lib/canonicalize.c (ELOOP): Likewise.
42927         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42928         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42929         * lib/lchown.c (EOPNOTSUPP): Likewise.
42930         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42931         * lib/savewd.c (ESTALE): Likewise.
42932         * lib/settime.c (ENOSYS): Likewise.
42933         * lib/utimens.c (ENOSYS): Likewise.
42934         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42935         * lib/chdir-safer.c (ELOOP): Likewise.
42936         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42937         * modules/c-stack (Depends-on): Add errno.
42938         * modules/canonicalize (Depends-on): Likewise.
42939         * modules/chdir-safer (Depends-on): Likewise.
42940         * modules/fdopendir (Depends-on): Likewise.
42941         * modules/inet_ntop (Depends-on): Likewise.
42942         * modules/inet_pton (Depends-on): Likewise.
42943         * modules/lchown (Depends-on): Likewise.
42944         * modules/openat (Depends-on): Likewise.
42945         * modules/savewd (Depends-on): Likewise.
42946         * modules/settime (Depends-on): Likewise.
42947         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42948
42949         fts: avoid leaking fds
42950         * modules/fts (Depends-on): Add cloexec.
42951         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42952         flag.
42953
42954         fts: make directory fds more robust
42955         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42956         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42957
42958         backupfile, chdir-long, fts, savedir: make safer
42959         * lib/backupfile.c (includes): Use "dirent--.h", since
42960         numbered_backup can write to stderr during readdir.
42961         * lib/savedir.c (includes): Likewise.
42962         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42963         emulation can write to stderr on failure.
42964         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42965         * lib/getcwd.c: Document why opendir_safer is unused.
42966         * lib/glob.c: Likewise.
42967         * lib/scandir.c: Likewise.
42968         * lib/openat-proc.c: Likewise, for open_safer.
42969         * modules/backupfile (Depends-on): Add dirent-safer.
42970         * modules/savedir (Depends-on): Likewise.
42971         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42972         * modules/chdir-long (Depends-on): Add openat-safer.
42973
42974         openat-safer: new module
42975         * modules/openat-safer: New file.
42976         * lib/openat-safer.c: Likewise.
42977         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42978         * lib/fcntl-safer.h (openat_safer): Declare.
42979         * lib/fcntl--.h (openat): Override.
42980         * MODULES.html.sh (File descriptor based I/O): Mention it.
42981         * lib/openat.h: Add double-inclusion guards.
42982         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42983         "fcntl--.h", so we can implement openat.
42984         * modules/openat-safer-tests: New test.
42985         * tests/test-openat-safer.c: New file.
42986
42987         dirent-safer: new module
42988         * modules/dirent-safer: New file.
42989         * lib/dirent--.h: Likewise.
42990         * lib/dirent-safer.h: Likewise.
42991         * lib/opendir-safer.c: Likewise.
42992         * m4/dirent-safer.m4: Likewise.
42993         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42994         * modules/dirent-safer-tests: New test.
42995         * tests/test-dirent-safer.c: New file.
42996         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42997
42998         fdopendir: optimize on mingw
42999         * lib/unistd.in.h (_gl_directory_name): New prototype.
43000         * lib/fchdir.c (_gl_directory_name): Implement it.
43001         (fchdir): Use it to simplify implementation.
43002         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
43003         fchdir, when available, to avoid calling [f]chdir().
43004
43005         fdopendir: split into its own module
43006         * lib/openat.c (fdopendir): Move...
43007         * lib/fdopendir.c: ...into new file.
43008         * modules/fdopendir: New module.
43009         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
43010         * modules/openat (Depends-on): Add fdopendir.
43011         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
43012         fdopendir here.
43013         * modules/savedir (Depends-on): Only need fdopendir, not full
43014         openat.
43015         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
43016         * lib/openat.h (fdopendir): Drop prototype.
43017         * lib/dirent.in.h (fdopendir): Provide prototype.
43018         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
43019         * modules/dirent (Makefile.am): Substitute them.
43020         * MODULES.html.sh (File system functions): Mention it.
43021         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
43022         * modules/fdopendir-tests: New file.
43023         * tests/test-fdopendir.c: Likewise.
43024
43025         fchdir: use more consistent macro convention
43026         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
43027         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
43028         REPLACE_FCHDIR, rather than relying on config.h macros.
43029         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
43030         inside a single make-time REPLACE_FCHDIR block, rather than using
43031         the config.h FCHDIR_REPLACEMENT.
43032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
43033         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
43034         Manage fstat replacement.
43035         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
43036         REPLACE_FCHDIR.
43037         * modules/sys_stat (Files): Add m4/unistd_h.m4.
43038         (Makefile.am): Substitute REPLACE_FCHDIR.
43039         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
43040         FCHDIR_REPLACEMENT.
43041         * lib/dup-safer.c (dup_safer): Likewise.
43042         * lib/dup2.c (rpl_dup2): Likewise.
43043         * lib/dup3.c (rpl_dup3): Likewise.
43044         * lib/open.c (rpl_open): Likewise.
43045
43046         fchdir: simplify error handling, and support dup3
43047         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
43048         stdbool, malloc-posix, realloc-posix.
43049         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
43050         (ensure_dirs_slot): Return false on allocation failure.
43051         (rpl_dup2): Delete.
43052         (_gl_register_dup): New function.
43053         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
43054         (_gl_register_fd): Close fd on allocation failure.
43055         * lib/fcntl.in.h (_gl_register_fd): Update signature.
43056         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
43057         prototype.
43058         (rpl_dup2_fchdir): Delete prototype.
43059         * lib/open.c (open): Update caller.
43060         * lib/dup2.c (dup2): Track fchdir metadata.
43061         * lib/dup3.c (dup3): Likewise.
43062         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
43063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
43064
43065 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43066
43067         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
43068         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
43069         don't pass arguments to AC_OUTPUT.
43070
43071 2009-09-02  Bruno Haible  <bruno@clisp.org>
43072
43073         * modules/mkdtemp (License): Relicense under LGPLv2+.
43074         Reported by Paolo Bonzini.
43075
43076 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43077
43078         Replace uses of obsolete autoconf macros in Jim's modules.
43079         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
43080         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
43081         can evoke a warning from autoconf when run with -Wobsolete
43082         enabled.  They were declared obsolete for good reasons (see
43083         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
43084         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
43085         should not continue using the deprecated macros.
43086         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
43087         obsolete Autoconf macros with modern counterparts.
43088         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43089         * m4/dos.m4 (gl_AC_DOS): Likewise.
43090         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
43091         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43092         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
43093         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
43094         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
43095         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
43096         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
43097         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
43098         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43099         Likewise.
43100         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43101         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43102         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
43103         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
43104         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43105         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43106
43107 2009-09-01  Eric Blake  <ebb9@byu.net>
43108
43109         fchdir: fix off-by-one bug in previous patch
43110         * lib/fchdir.c (rpl_fstat): Use correct bounds.
43111         (_gl_unregister_fd): Delete useless if.
43112
43113 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
43114
43115         maint.mk: sort the list of syntax-check rules
43116         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
43117         easier to get a sense of progress when the rules are run sequentially
43118         and take a long time.
43119
43120 2009-09-01  Simon Josefsson  <simon@josefsson.org>
43121
43122         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
43123         * modules/netinet_in: Likewise.
43124         * modules/sys_file: Likewise.
43125         * modules/sys_ioctl: Likewise.
43126         * modules/sys_select: Likewise.
43127         * modules/sys_socket: Likewise.
43128         * modules/sys_stat: Likewise.
43129         * modules/sys_time: Likewise.
43130         * modules/sys_times: Likewise.
43131         * modules/sys_utsname: Likewise.
43132         * modules/sys_wait: Likewise.
43133
43134 2009-09-01  Jim Meyering  <meyering@redhat.com>
43135
43136         fts: help ensure that return values are not ignored
43137         * lib/fts_.h (__GNUC_PREREQ): Define.
43138         (__attribute_warn_unused_result__): Define.
43139         (fts_children, fts_close, fts_open, fts_read): Declare with
43140         __attribute_warn_unused_result__.
43141
43142         fts: fts_close now fails also when closing a dir file descriptor fails
43143         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43144         and propagate to caller, along with errno.
43145
43146         announce-gen: correct formatting in --help output
43147         * build-aux/announce-gen (usage): Move the one-line description in
43148         --help output "up", to where it belongs, just after Usage:.
43149
43150 2009-08-31  Eric Blake  <ebb9@byu.net>
43151
43152         fchdir: port to mingw
43153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43154         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43155         opened, then use a substitute.
43156         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43157         replacement.
43158         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43159         (_gl_register_fd): No need to check stat if open already filters
43160         all directories.
43161         (fchdir): Fix error condition to match POSIX.
43162         * modules/fchdir (Depends-on): Add sys_stat.
43163         * doc/posix-functions/open.texi (open): Document the limitation.
43164         * modules/fchdir-tests: New file.
43165         * tests/test-fchdir.c: Likewise.
43166
43167         canonicalize: allow cross-testing from cygwin to mingw
43168         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43169         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43170         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43171         Likewise.
43172         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43173         target does not support symlinks.
43174         * tests/test-canonicalize-lgpl.sh: Likewise.
43175
43176         chown: avoid compilation warning on mingw
43177         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43178         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43179         mingw.
43180         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43181         * modules/chown (Depends-on): Add errno.
43182
43183 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43184
43185         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43186         command.
43187
43188 2009-08-31  Jim Meyering  <meyering@redhat.com>
43189
43190         canonicalize: remove useless initialization
43191         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43192         initialization of local, "end".
43193
43194 2009-08-30  Bruno Haible  <bruno@clisp.org>
43195
43196         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43197         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43198         ENOSYS.
43199
43200 2009-08-30  Bruno Haible  <bruno@clisp.org>
43201
43202         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43203         /usr/xpg4/bin/tr when it exists.
43204         * tests/test-pipe-filter-gi1.sh: Likewise.
43205
43206 2009-08-30  Bruno Haible  <bruno@clisp.org>
43207
43208         Work around deficient /usr/bin/id program on Solaris.
43209         * tests/test-file-has-acl.sh (ID): New variable.
43210         * tests/test-set-mode-acl.sh (ID): Likewise.
43211         * tests/test-copy-acl.sh (ID): Likewise.
43212         * tests/test-copy-file.sh (ID): Likewise.
43213
43214 2009-08-30  Bruno Haible  <bruno@clisp.org>
43215
43216         New module 'xstriconveh'.
43217         * lib/xstriconveh.h: New file.
43218         * lib/xstriconveh.c: New file.
43219         * modules/xstriconveh: New file.
43220
43221 2009-08-30  Bruno Haible  <bruno@clisp.org>
43222
43223         Make it easier to use mem_cd_iconveh.
43224         * lib/striconveh.h (iconveh_t): New type.
43225         (iconveh_open, iconveh_close): New declarations.
43226         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43227         with a single 'const iconveh_t *' argument.
43228         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43229         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43230         with a single 'const iconveh_t *' argument.
43231         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43232         * tests/test-striconveh.c (main): Update.
43233         * NEWS: Mention the change.
43234
43235 2009-08-30  Bruno Haible  <bruno@clisp.org>
43236
43237         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43238         problem.
43239
43240 2009-08-30  Bruno Haible  <bruno@clisp.org>
43241
43242         Work around iconv_open problem on Solaris.
43243         * lib/iconv_open-solaris.gperf: New file.
43244         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43245         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43246         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43247         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43248         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43249         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43250
43251 2009-08-29  Jim Meyering  <meyering@redhat.com>
43252
43253         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43254         * top/maint.mk (cvs-check): Remove target; it was just an alias
43255         to the better-named vc-diff-check.
43256         (maintainer-distcheck): Remove rule.  It was used only from
43257         the (alpha/beta/major) target, and all of its commands but one
43258         were coreutils-specific.
43259         (vc-dist): Remove rule.
43260         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43261         Run vc-diff-check, not vc-dist.
43262         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43263
43264 2009-08-27  Bruno Haible  <bruno@clisp.org>
43265
43266         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43267         of 0.
43268
43269 2009-08-27  Bruno Haible  <bruno@clisp.org>
43270
43271         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43272         compilers.
43273         * doc/func.texi: Document the SunPRO C bug.
43274
43275 2009-08-27  Bruno Haible  <bruno@clisp.org>
43276
43277         Fix link error on Solaris.
43278         * tests/test-parse-duration.c (xstrdup): Remove function.
43279
43280 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43281
43282         ignore-value: handle pointer types, too
43283         * lib/ignore-value.h (__attribute__): Remove definition.
43284         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43285         of a more concise and more-often effective "(void) i" statement.
43286         (ignore_ptr): New function to suppress warnings from functions that
43287         return pointers, and to make it explicit that one function doesn't
43288         handle all cases.
43289
43290 2009-08-25  Bruno Haible  <bruno@clisp.org>
43291
43292         dup2: work around a Linux bug.
43293         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43294         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43295         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43296         Reported by Simon Josefsson.
43297
43298 2009-08-25  Jim Meyering  <meyering@redhat.com>
43299
43300         libguestfs uses gnulib
43301         * users.txt: Add libguestfs.
43302
43303 2009-08-24  Eric Blake  <ebb9@byu.net>
43304
43305         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43306         * lib/pipe2.c (includes): Add binary-io.h.
43307         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43308
43309 2009-08-24  Bruno Haible  <bruno@clisp.org>
43310
43311         Tolerate declared but missing accept4 syscall.
43312         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43313         available.
43314         * lib/sys_socket.in.h (accept4): If the function is already present,
43315         override it.
43316         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43317         * modules/accept4 (Makefile.am): Compile accept4.c always.
43318         Reported by Paolo Bonzini and Eric Blake.
43319
43320 2009-08-23  Bruno Haible  <bruno@clisp.org>
43321
43322         New module 'accept4'.
43323         * lib/sys_socket.in.h (accept4): New declaration.
43324         * lib/accept4.c: New file.
43325         * m4/accept4.m4: New file.
43326         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43327         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43328         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43329         HAVE_ACCEPT4.
43330         * modules/accept4: New file.
43331         * doc/glibc-functions/accept4.texi: Mention the new module.
43332
43333 2009-08-24  Jim Meyering  <meyering@redhat.com>
43334
43335         progname: also set global program_invocation_name, when possible
43336         Before this change, a libtool-enabled program that calls glibc's
43337         error function would report the program name as
43338         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43339         * modules/progname (configure.ac): Check for a declaration of
43340         program_invocation_name.
43341         * lib/progname.c:  Include <errno.h>.
43342         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43343         Set program_invocation_name.
43344
43345 2009-08-23  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/dup3.c: Include <string.h>.
43348
43349 2009-08-23  Bruno Haible  <bruno@clisp.org>
43350
43351         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43352         * lib/pipe2.c (pipe2): Likewise.
43353         Suggested by Eric Blake.
43354
43355 2009-08-23  Bruno Haible  <bruno@clisp.org>
43356
43357         Tolerate declared but missing dup3 syscall.
43358         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43359         * lib/unistd.in.h (dup3): If the function is already present,
43360         override it.
43361         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43362         * modules/dup3 (Makefile.am): Compile dup3.c always.
43363         Reported by Paolo Bonzini.
43364
43365 2009-08-23  Bruno Haible  <bruno@clisp.org>
43366
43367         Tolerate declared but missing pipe2 syscall.
43368         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43369         available.
43370         * lib/unistd.in.h (pipe2): If the function is already present,
43371         override it.
43372         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43373         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43374         Reported by Paolo Bonzini.
43375
43376 2009-08-23  Bruno Haible  <bruno@clisp.org>
43377
43378         * lib/pipe2.c (pipe2): Move #ifs inside function.
43379
43380 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43381
43382         quotearg: document limitations of quote_these_too
43383         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43384         those limitations are created.
43385         * lib/quotearg.h (set_char_quoting): Document that digits and
43386         letters that are special after backslash are not permitted.
43387         (quotearg_char): Cross-reference set_char_quoting documentation.
43388
43389 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43390
43391         quotearg: implement custom_quoting_style
43392         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43393         right_quote fields.
43394         (set_custom_quoting): New public function.
43395         (quotearg_buffer_restyled): Add left_quote and right_quote
43396         arguments, handle them very much like locale quoting, and update
43397         all uses.
43398         (quotearg_n_custom): New public function.
43399         (quotearg_n_custom_mem): New public function.
43400         (quotearg_custom): New public function.
43401         (quotearg_custom_mem): New public function.
43402         * lib/quotearg.h: Prototype and document new public functions.
43403         (enum quoting_style): For escape_quoting_style and
43404         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43405         ignored even though they're otherwise like c_quoting_style.
43406         Add custom_quoting_style member and document with comparison to
43407         clocale_quoting_style.
43408         * tests/test-quotearg.c (custom_quotes): New array.
43409         (custom_results): New array.
43410         (main): Extend to test custom quoting.
43411
43412 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43413
43414         quotearg: fix right quote escaping when it's in quote_these_too
43415         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43416         quote, be sure to prepend only one backslash.
43417         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43418         (main): Test it.
43419
43420 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43421
43422         quotearg-tests: test escaping of embedded locale quotes
43423         * tests/test-quotearg.c (struct result_strings): Add member for
43424         new input.
43425         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43426         (inputs): Add new input.
43427         (results_g): Add expected results.
43428         (flag_results): Likewise.
43429         (locale_results): Likewise.
43430         (compare_strings): Check those.
43431
43432 2009-08-23  Bruno Haible  <bruno@clisp.org>
43433
43434         Tests for module 'dup3'.
43435         * modules/dup3-tests: New file.
43436         * tests/test-dup3.c: New file.
43437
43438         New module 'dup3'.
43439         * lib/unistd.in.h (dup3): New declaration.
43440         * lib/dup3.c: New file.
43441         * m4/dup3.m4: New file.
43442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43443         HAVE_DUP3.
43444         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43445         * modules/dup3: New file.
43446         * doc/glibc-functions/dup3.texi: Mention the new module.
43447
43448 2009-08-23  Bruno Haible  <bruno@clisp.org>
43449
43450         Tweak the dup2 test.
43451         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43452         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43453         the test file is still empty. Fix argument order of lseek.
43454
43455 2009-08-23  Bruno Haible  <bruno@clisp.org>
43456
43457         Avoid test link errors when the modules getopt-gnu, gettext are used.
43458         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43459         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43460
43461 2009-08-23  Bruno Haible  <bruno@clisp.org>
43462
43463         Fix getdtablesize() on mingw.
43464         * lib/getdtablesize.c (getdtablesize): Implement differently.
43465         * lib/unistd.in.h (getdtablesize): Improve comment.
43466
43467 2009-08-23  Bruno Haible  <bruno@clisp.org>
43468
43469         New module 'mkostemp'.
43470         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43471         * lib/stdlib.in.h (mksotemp): New declaration.
43472         * lib/mkostemp.c: New file, from glibc with modifications.
43473         * lib/tempname.h (GT_FILE): Remove outdated comment.
43474         (gen_tempname): Add flags argument.
43475         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43476         (__GT_FILE): Map to 1.
43477         (small_open, large_open): Remove macros.
43478         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43479         * lib/mkstemp.c (mkstemp): Update.
43480         * lib/mkdtemp.c (mkdtemp): Likewise.
43481         * m4/mkostemp.m4: New file.
43482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43483         HAVE_MKOSTEMP.
43484         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43485         HAVE_MKOSTEMP.
43486         * modules/mkostemp: New file, based on modules/mkstemp.
43487         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43488         * NEWS: Mention the change.
43489
43490 2009-08-23  Bruno Haible  <bruno@clisp.org>
43491
43492         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43493         Reported by Eric Blake.
43494
43495 2009-08-23  Bruno Haible  <bruno@clisp.org>
43496
43497         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43498         Reported by Eric Blake.
43499
43500 2009-08-23  Bruno Haible  <bruno@clisp.org>
43501
43502         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43503         * modules/pipe2 (Depends-on): Likewise.
43504
43505 2009-08-23  Eric Blake  <ebb9@byu.net>
43506
43507         fcntl-h: add O_TTY_INIT support
43508         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43509         * tests/test-fcntl-h.c (o): Test it.
43510         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43511
43512         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43513         * modules/fcntl: Move <fcntl.h> header replacement...
43514         * modules/fcntl-h: ...to new name, so as not to collide with
43515         like-named function.
43516         * tests/test-fcntl.c: Rename...
43517         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43518         * modules/fcntl-tests: Rename...
43519         * modules/fcntl-h-tests: ...to this.  Update test file name.
43520         * modules/chdir-long (Depends-on): Update clients.
43521         * modules/chdir-safer (Depends-on): Likewise.
43522         * modules/fcntl-safer (Depends-on): Likewise.
43523         * modules/fts (Depends-on): Likewise.
43524         * modules/mkancesdirs (Depends-on): Likewise.
43525         * modules/mkdir-p (Depends-on): Likewise.
43526         * modules/open (Depends-on): Likewise.
43527         * modules/savewd (Depends-on): Likewise.
43528         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43529         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43530
43531 2009-08-22  Bruno Haible  <bruno@clisp.org>
43532
43533         * modules/binary-io (License): Relicense under LGPL.
43534         * modules/pipe2 (License): Likewise.
43535
43536 2009-08-22  Bruno Haible  <bruno@clisp.org>
43537
43538         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43539         return value.
43540         * lib/pipe-filter-gi.c (filter_init): Likewise.
43541         Reported by Eric Blake.
43542
43543 2009-08-22  Bruno Haible  <bruno@clisp.org>
43544
43545         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43546         * modules/pipe (Depends-on): Add pipe2.
43547
43548 2009-08-22  Bruno Haible  <bruno@clisp.org>
43549
43550         Tests for module 'pipe2'.
43551         * modules/pipe2-tests: New file.
43552         * tests/test-pipe2.c: New file.
43553
43554         New module 'pipe2'.
43555         * lib/unistd.in.h (pipe2): New declaration.
43556         * lib/pipe2.c: New file.
43557         * m4/pipe2.m4: New file.
43558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43559         HAVE_PIPE2.
43560         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43561         * modules/pipe2: New file.
43562         * doc/glibc-functions/pipe2.texi: Mention the new module.
43563
43564 2009-08-22  Bruno Haible  <bruno@clisp.org>
43565
43566         Reference some new glibc functions.
43567         * doc/glibc-functions/accept4.texi: New file.
43568         * doc/glibc-functions/dup3.texi: New file.
43569         * doc/glibc-functions/mkostemp.texi: New file.
43570         * doc/glibc-functions/pipe2.texi: New file.
43571         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43572         (Glibc sys/socket.h): Refer to accept4.
43573         (Glibc unistd.h): Refer to dup3, pipe2.
43574         Reported by Eric Blake.
43575
43576 2009-08-22  Jim Meyering  <meyering@redhat.com>
43577             Bruno Haible  <bruno@clisp.org>
43578
43579         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43580         This makes it so packages using automake-1.11's silent-rules option
43581         can print e.g., a single "GEN    configmake.h" line, rather than
43582         the 30+ statements that perform the job.  If you want to see the
43583         actual commands, you can still run "make V=1".
43584         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43585         so that make output is abbreviated when those variables are defined
43586         appropriately.
43587         * modules/argz: Likewise.
43588         * modules/arpa_inet: Likewise.
43589         * modules/byteswap: Likewise.
43590         * modules/configmake: Likewise.
43591         * modules/dirent: Likewise.
43592         * modules/errno: Likewise.
43593         * modules/fcntl: Likewise.
43594         * modules/float: Likewise.
43595         * modules/fnmatch: Likewise.
43596         * modules/getopt-posix: Likewise.
43597         * modules/glob: Likewise.
43598         * modules/iconv_open: Likewise.
43599         * modules/inttypes: Likewise.
43600         * modules/localcharset: Likewise.
43601         * modules/locale: Likewise.
43602         * modules/math: Likewise.
43603         * modules/netdb: Likewise.
43604         * modules/netinet_in: Likewise.
43605         * modules/poll: Likewise.
43606         * modules/posix_spawnp-tests: Likewise.
43607         * modules/sched: Likewise.
43608         * modules/search: Likewise.
43609         * modules/selinux-h: Likewise.
43610         * modules/signal: Likewise.
43611         * modules/spawn: Likewise.
43612         * modules/stdarg: Likewise.
43613         * modules/stdbool: Likewise.
43614         * modules/stddef: Likewise.
43615         * modules/stdint: Likewise.
43616         * modules/stdio: Likewise.
43617         * modules/stdlib: Likewise.
43618         * modules/string: Likewise.
43619         * modules/strings: Likewise.
43620         * modules/sys_file: Likewise.
43621         * modules/sys_ioctl: Likewise.
43622         * modules/sys_select: Likewise.
43623         * modules/sys_socket: Likewise.
43624         * modules/sys_stat: Likewise.
43625         * modules/sys_time: Likewise.
43626         * modules/sys_times: Likewise.
43627         * modules/sys_utsname: Likewise.
43628         * modules/sys_wait: Likewise.
43629         * modules/sysexits: Likewise.
43630         * modules/time: Likewise.
43631         * modules/unistd: Likewise.
43632         * modules/wchar: Likewise.
43633         * modules/wctype: Likewise.
43634
43635 2009-08-22  Jim Meyering  <meyering@redhat.com>
43636
43637         announce-gen: detect write failure
43638         * build-aux/announce-gen: Add Coda at end.
43639         Remove equivalent-but-more-verbose block at top.
43640
43641 2009-08-19  Akim Demaille  <demaille@gostai.com>
43642
43643         bootstrap: --help to stdout.
43644         * bootstrap (usage): Don't send --help to stderr.
43645         Use a here doc instead of a long string.
43646
43647 2009-08-21  Eric Blake  <ebb9@byu.net>
43648
43649         test-popen-safer: split from test-popen
43650         * tests/test-popen.c (main): Move...
43651         * tests/test-popen.h: ...into new file.
43652         * tests/test-popen-safer2.c: New file.
43653         * modules/popen-tests (Files): Add test-popen.h.
43654         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43655         Suggested by Bruno Haible.
43656
43657         test-fcntl-safer: split from test-open
43658         * tests/test-open.c (main): Move...
43659         * tests/test-open.h: ...into new file.
43660         * tests/test-fcntl-safer.c: New file.
43661         * modules/open-tests (Files): Add test-open.h.
43662         * modules/fcntl-safer-tests: New file.
43663         Suggested by Bruno Haible.
43664
43665         test-fopen-safer: split from test-fopen
43666         * tests/test-fopen.c (main): Move...
43667         * tests/test-fopen.h: ...into new file.
43668         * tests/test-fopen-safer.c: New file.
43669         * modules/fopen-tests (Files): Add test-fopen.h.
43670         * modules/fopen-safer-tests: New file.
43671         Suggested by Bruno Haible.
43672
43673 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43674
43675         popen-safer: test O_CLOEXEC at run-time.
43676         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43677
43678 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43679
43680         fcntl: move more flags to the header
43681         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43682         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43683         * lib/fcntl.in.h: Do both things here.
43684
43685 2009-08-21  Jim Meyering  <meyering@redhat.com>
43686
43687         consistently remove $@-t before redirecting to it
43688         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43689         * modules/alloca-opt: Likewise.
43690         * modules/byteswap: Likewise.
43691         * modules/fnmatch: Likewise.
43692         * modules/getopt-posix: Likewise.
43693         * modules/glob: Likewise.
43694         * modules/poll: Likewise.
43695         * modules/posix_spawnp-tests: Likewise.
43696         * modules/sys_socket: Likewise.
43697         * modules/sysexits: Likewise.
43698
43699 2009-08-21  Eric Blake  <ebb9@byu.net>
43700
43701         popen: simplify access to original popen
43702         * lib/popen.c (rpl_popen): No need to worry about popen being a
43703         macro.
43704         Reported by Bruno Haible.
43705
43706 2009-08-20  Eric Blake  <ebb9@byu.net>
43707
43708         build: avoid some compiler warnings
43709         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43710         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43711         type.
43712         (new_exclude_segment, excluded_file_pattern_p)
43713         (excluded_file_name_p): Reduce scope.
43714         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43715         old-style declaration.
43716
43717 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43718
43719         * tests/test-exclude1.sh: Handle Windows EOL.
43720         * tests/test-exclude2.sh: Likewise.
43721         * tests/test-exclude3.sh: Likewise.
43722         * tests/test-exclude4.sh: Likewise.
43723         * tests/test-exclude5.sh: Likewise.
43724         * tests/test-exclude6.sh: Likewise.
43725         * tests/test-exclude7.sh: Likewise.
43726
43727 2009-08-19  Akim Demaille  <demaille@gostai.com>
43728
43729         bootstrap: find sha1sum when named gsha1sum.
43730         * bootstrap (find_tool): New.
43731         ($SHA1SUM): New.
43732         Use it.
43733
43734 2009-08-20  Jim Meyering  <meyering@redhat.com>
43735
43736         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43737         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43738         expression that converts "." in a file name to "\." in the resulting
43739         regexp.  Start with a dummy statement, so that prior shell variable
43740         definitions are expanded portably.  Reported by Simon Josefsson.
43741
43742 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43743
43744         Fix polling for writeability of a screen buffer.
43745         * lib/poll.c: Distinguish input and screen buffers for the
43746         Win32 implementation.
43747         * lib/select.c: Likewise.
43748
43749 2009-08-19  Eric Blake  <ebb9@byu.net>
43750
43751         popen-safer: prevent popen from clobbering std descriptors
43752         * modules/popen-safer: New file.
43753         * lib/popen-safer.c: Likewise.
43754         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43755         * lib/stdio--.h (popen): Provide override.
43756         * lib/stdio-safer.h (popen_safer): Provide declaration.
43757         * tests/test-popen.c (includes): Partially test this.
43758         * modules/popen-safer-tests: New file, for more tests.
43759         * tests/test-popen-safer.c: Likewise.
43760         * MODULES.html.sh (file stream based Input/Output): Mention it.
43761
43762         tests: test some of the *-safer modules
43763         * modules/fopen-safer (Depends-on): Add fopen.
43764         * modules/fcntl-safer (Depends-on): Add fcntl.
43765         * modules/stdlib-safer (Depends-on): Add stdlib.
43766         (configure.ac): Set indicator.
43767         * modules/unistd-safer (configure.ac): Likewise.
43768         * modules/tmpfile-safer (configure.ac): Likewise.
43769         (Depends-on): Add tmpfile.
43770         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43771         active.
43772         * tests/test-fopen.c (includes): Test safer versions when they are
43773         in use.
43774         * tests/test-open.c (includes): Likewise.
43775
43776         popen: fix cygwin 1.5 bug when stdin closed
43777         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43778         * modules/popen: New file.
43779         * modules/popen-tests: Likewise.
43780         * tests/test-popen.c: Likewise.
43781         * m4/popen.m4: Likewise.
43782         * lib/popen.c: Likewise.
43783         * lib/stdio.in.h (popen): New declaration.
43784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43785         * modules/stdio (Makefile.am): Likewise.
43786         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43787
43788 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43789
43790         maint.mk: give full control over update-copyright exclusions
43791         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43792         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43793         (update-copyright): Don't force inclusion of top-level
43794         ChangeLog.  Don't force exclusion of all COPYING files, but make
43795         them the default exclusion instead.
43796
43797 2009-08-16  Bruno Haible  <bruno@clisp.org>
43798
43799         Fix test failures on Solaris 10.
43800         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43801         tests when Solaris iconv() is used.
43802         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43803         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43804         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43805         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43806         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43807
43808 2009-08-16  Bruno Haible  <bruno@clisp.org>
43809
43810         Fix test failures on Solaris 10.
43811         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43812         'tr' program and pass it as first argument.
43813         * tests/test-pipe-filter-gi1.sh: Likewise.
43814         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43815         program as first argument.
43816         * tests/test-pipe-filter-gi1.c (main): Likewise.
43817
43818 2009-08-16  Eric Blake  <ebb9@byu.net>
43819
43820         fpurge: fix previous commits
43821         * modules/fpurge (Makefile.am): Make replacement conditional,
43822         partially reverting 2007-04-29 change; missed in previous
43823         attempt.
43824         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43825         is missing.
43826
43827 2009-08-16  Bruno Haible  <bruno@clisp.org>
43828
43829         Clarify fpurge's effect on the file position.
43830         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43831         * tests/test-fpurge.c (main): Make a second pass for checking the file
43832         position.
43833
43834 2009-08-16  Bruno Haible  <bruno@clisp.org>
43835
43836         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43837         declaration of fpurge is missing.
43838         * tests/test-fpurge.c (main): Check that the file has not more contents
43839         than expected. Close the file before removing it.
43840
43841 2009-08-15  Eric Blake  <ebb9@byu.net>
43842
43843         fpurge: don't wrap working cygwin implementation
43844         * lib/fpurge.c (fpurge): Fix comment typo.
43845         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43846         1.7 to avoid replacement.
43847         * tests/test-fpurge.c (main): Enhance test.
43848
43849 2009-08-15  Eric Blake  <ebb9@byu.net>
43850         and Jim Meyering  <meyering@redhat.com>
43851
43852         test-update-copyright: skip if perl is insufficient
43853         * tests/test-update-copyright.sh: Failure to run maintainer tool
43854         should not cause testsuite failure on cygwin 1.5.
43855
43856 2009-08-14  Eric Blake  <ebb9@byu.net>
43857
43858         doc: mention more functions added in cygwin 1.7.0
43859         * doc/posix-headers/limits.texi (limits.h): Update for recent
43860         cygwin additions.
43861         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43862         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43863         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43864         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43865         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43866
43867 2009-08-14  Eric Blake  <ebb9@byu.net>
43868
43869         maint.mk: simplify update-copyright rule
43870         * top/maint.mk (update-copyright-local): Delete, and document how
43871         to do it in cfg.mk instead.
43872         (update-copyright-exclude-regexp): Delete, and document how to do
43873         it in .x-update-copyright instead.
43874         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43875         exclude ChangeLog.
43876
43877 2009-08-14  Bruno Haible  <bruno@clisp.org>
43878
43879         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43880
43881 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43882
43883         maint.mk: support update-copyright-env
43884         * top/maint.mk (update-copyright-env): Define place-holder.
43885         (update-copyright): Expand $(update-copyright-env) before
43886         invoking update-copyright.
43887
43888 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43889
43890         update-copyright: implement forced reformatting
43891         * build-aux/update-copyright: Implement and document
43892         UPDATE_COPYRIGHT_FORCE.
43893         * tests/test-update-copyright.sh: Test it.
43894
43895 2009-08-14  Eric Blake  <ebb9@byu.net>
43896         and Bruno Haible  <bruno@clisp.org>
43897
43898         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43899         * tests/test-locale.c: Revert previous patch related to NULL.
43900         * tests/test-stdio.c: Likewise.
43901         * tests/test-stdlib.c: Likewise.
43902         * tests/test-string.c: Likewise.
43903         * tests/test-unistd.c: Likewise.
43904         * modules/time-tests (Depends-on): Add verify.
43905         * modules/wchar-tests (Depends-on): Likewise.
43906         * tests/test-time.c: Test for NULL compliance.
43907         * tests/test-wchar.c: Likewise.
43908         * modules/locale (Depends-on): Add stddef.
43909         * modules/stdio (Depends-on): Likewise.
43910         * modules/stdlib (Depends-on): Likewise.
43911         * modules/string (Depends-on): Likewise.
43912         * modules/time (Depends-on): Likewise.
43913         * modules/unistd (Depends-on): Likewise.
43914         * modules/wchar (Depends-on): Likewise.
43915         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43916         * lib/stdlib.in.h (includes): Likewise.
43917         * lib/string.in.h (includes): Likewise.
43918         * lib/time.in.h (includes): Likewise.
43919         * lib/unistd.in.h (includes): Likewise.
43920         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43921         replaced.
43922         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43923         * m4/stddef_h.m4: New file.
43924         * modules/stddef: Likewise.
43925         * lib/stddef.in.h: Likewise.
43926         * modules/stddef-tests: Likewise.
43927         * tests/test-stddef.c: Likewise.
43928         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43929         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43930         * doc/posix-headers/locale.texi (locale.h): Likewise.
43931         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43932         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43933         * doc/posix-headers/string.texi (string.h): Likewise.
43934         * doc/posix-headers/time.texi (time.h): Likewise.
43935         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43936         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43937
43938 2009-08-14  Eric Blake  <ebb9@byu.net>
43939
43940         doc: improve git diff of texinfo files
43941         * .gitattributes: Add rule for *.texi files, with hint on how to
43942         use it.
43943         Copied from m4, and based on a report by Bruno Haible.
43944
43945 2009-08-14  Bruno Haible  <bruno@clisp.org>
43946
43947         Disable multithread support by default on Cygwin 1.5.x for real.
43948         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43949
43950 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43951
43952         update-copyright: much ado about intervals
43953         * build-aux/update-copyright: Implement and document
43954         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43955         of copyright year intervals.
43956         Also, document UPDATE_COPYRIGHT_YEAR.
43957         * tests/test-update-copyright.sh: Test it.
43958
43959         update-copyright: convert 2-digit to 4-digit years
43960         * build-aux/update-copyright: Implement and document.
43961         * tests/test-update-copyright.sh: Update.
43962
43963 2009-08-14  Jim Meyering  <meyering@redhat.com>
43964
43965         test-exclude: avoid coreutils "make check" failure
43966         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43967         just as in test-argmatch.c.
43968
43969 2009-08-13  Eric Blake  <ebb9@byu.net>
43970
43971         test-dup2: fix bad assumption
43972         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43973         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43974
43975         test-version-etc: fix CRLF portability issue
43976         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43977         recognize \r.
43978         * tests/test-argp-version-etc-1.sh: Likewise.
43979
43980         getopt: update client modules
43981         * modules/argp (Depends-on): Use getopt-gnu.
43982         * modules/git-merge-changelog (Depends-on): Likewise.
43983         * modules/long-options (Depends-on): Likewise.
43984         * modules/xstrtol (Depends-on): Likewise.
43985
43986 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43987
43988         * tests/test-version-etc.sh: Don't fail on different
43989         project/version.  Don't fail on CRLF differences.  Rewrite to use
43990         multiple -e instead of multiple sed forks, suggested by Eric Blake
43991         <ebb9@byu.net>.
43992         * tests/test-argp-version-etc-1.sh: Likewise.
43993
43994 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43995
43996         * tests/test-version-etc.sh: Don't fail on different
43997         project/version.
43998
43999 2009-08-12  Bruno Haible  <bruno@clisp.org>
44000
44001         Tests for modules 'getopt-posix', 'getopt-gnu'.
44002         * modules/getopt-posix-tests: New file.
44003         * tests/test-getopt.c: New file.
44004         * tests/test-getopt.h: New file.
44005         * tests/test-getopt_long.h: New file.
44006
44007         New modules 'getopt-posix', 'getopt-gnu'.
44008         * modules/getopt-gnu: New file, renamed from modules/getopt.
44009         * modules/getopt-posix: New file.
44010         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
44011         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
44012         (gl_GETOPT): Remove macro.
44013         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
44014         Disable the test against BSD systems that declare optreset. Test
44015         against mingw bug. Test against lack of support of optional arguments
44016         on many platforms.
44017         * doc/glibc-headers/getopt.texi: Update module name and list of
44018         relevant platforms.
44019         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
44020         'getopt-gnu' and more portability problems.
44021         * NEWS: Mention the changes.
44022
44023 2009-08-12  Bruno Haible  <bruno@clisp.org>
44024
44025         Ensure that optarg etc. get declared by <unistd.h>.
44026         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
44027         AC_USE_SYSTEM_EXTENSIONS.
44028         * modules/getopt (Depends-on): Add 'extensions'.
44029
44030 2009-08-12  Bruno Haible  <bruno@clisp.org>
44031
44032         Avoid test link errors.
44033         * modules/pipe-filter-ii-tests (Makefile.am): Define
44034         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
44035         * modules/pipe-filter-gi-tests (Makefile.am): Define
44036         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
44037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44038
44039 2009-08-12  Bruno Haible  <bruno@clisp.org>
44040
44041         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
44042         gl_GETOPT_SUBSTITUTE before.
44043         (gl_GETOPT): Use it.
44044         * m4/argp.m4 (gl_ARGP): Update.
44045         Reported by Sergey Poznyakoff.
44046
44047         * m4/getopt.m4: Reorder macros.
44048         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
44049         (gl_GETOPT_SUBSTITUTE): Remove macro.
44050
44051 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44052
44053         Minor improvement in gitlog-to-changelog
44054
44055         * build-aux/gitlog-to-changelog: New option `--format' makes
44056         output format string configurable.
44057
44058 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44059
44060         Optimize exclude: use hash tables for non-wildcard patterns.
44061
44062         * lib/exclude.c: Include hash.h and mbuiter.h
44063         (struct exclude_pattern, exclude_segment): New data types.
44064         (struct exclude): Rewrite.
44065         (fnmatch_pattern_has_wildcards): New function.
44066         (new_exclude_segment, free_exclude_segment): New functions.
44067         (excluded_file_pattern_p, excluded_file_name_p): New functions.
44068         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
44069         * lib/exclude.h (is_fnmatch_pattern): New prototype.
44070         * modules/exclude: Depend on hash and mbuiter.
44071
44072         * modules/exclude-tests: New file.
44073         * tests/test-exclude.c: New file.
44074         * tests/test-exclude1.sh: New file.
44075         * tests/test-exclude2.sh: New file.
44076         * tests/test-exclude3.sh: New file.
44077         * tests/test-exclude4.sh: New file.
44078         * tests/test-exclude5.sh: New file.
44079         * tests/test-exclude6.sh: New file.
44080         * tests/test-exclude7.sh: New file.
44081
44082 2009-08-12  Bruno Haible  <bruno@clisp.org>
44083
44084         Ensure that getopt() gets declared by <unistd.h>.
44085         * lib/unistd.in.h: Conditionally include getopt.h.
44086         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
44087         Set GNULIB_UNISTD_H_GETOPT.
44088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44089         GNULIB_UNISTD_H_GETOPT.
44090         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
44091
44092 2009-08-12  Bruno Haible  <bruno@clisp.org>
44093
44094         Clarify logic.
44095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
44096         gl_replace_getopt instead of GETOPT_H.
44097
44098 2009-08-12  Bruno Haible  <bruno@clisp.org>
44099
44100         * m4/getopt.m4: Add comments.
44101
44102 2009-08-12  Bruno Haible  <bruno@clisp.org>
44103
44104         Disable multithread support by default on Cygwin 1.5.x.
44105         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
44106         set gl_use_threads=no if not specified otherwise.
44107
44108 2009-08-11  Bruno Haible  <bruno@clisp.org>
44109
44110         Avoid compilation error on NetBSD 5.0.
44111         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
44112         * tests/test-stdio.c: Likewise.
44113         * tests/test-stdlib.c: Likewise.
44114         * tests/test-string.c: Likewise.
44115         * tests/test-unistd.c: Likewise.
44116         Reported by Greg Troxel <gdt@ir.bbn.com>
44117         at <https://savannah.gnu.org/support/?106973>.
44118
44119 2009-08-11  Bruno Haible  <bruno@clisp.org>
44120
44121         * modules/dup2-tests (Depends-on): Remove close.
44122
44123         Undo 2009-07-19 commit.
44124         * modules/acl-tests (Depends-on): Remove close.
44125         * modules/binary-io-tests (Depends-on): Likewise.
44126         * modules/closein-tests (Depends-on): Likewise.
44127         * modules/flock-tests (Depends-on): Likewise.
44128         * modules/fsync-tests (Depends-on): Likewise.
44129         * modules/lseek-tests (Depends-on): Likewise.
44130         * modules/pipe-tests (Depends-on): Likewise.
44131         * modules/posix_spawn-tests (Depends-on): Likewise.
44132         * modules/posix_spawnp-tests (Depends-on): Likewise.
44133         * modules/stat-time-tests (Depends-on): Likewise.
44134         * modules/yesno-tests (Depends-on): Likewise.
44135
44136 2009-08-10  Bruno Haible  <bruno@clisp.org>
44137
44138         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44139
44140 2009-08-10  Bruno Haible  <bruno@clisp.org>
44141
44142         Fix a gcc warning.
44143         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44144
44145 2009-08-10  Bruno Haible  <bruno@clisp.org>
44146
44147         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44148         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44149         not only the first time.
44150         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44151         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44152         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44153         is 1, not only the the first time.
44154
44155 2009-08-10  Bruno Haible  <bruno@clisp.org>
44156
44157         Make it possible to use module 'gethostname' without module 'close'.
44158         * lib/unistd.in.h (close): Evoke a link error only if
44159         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44161         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44162         * modules/unistd (Makefile.am): Substitute
44163         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44164         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44165         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44166         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44167         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44168         * modules/sys_ioctl (Makefile.am): Substitute
44169         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44170         * modules/socket (configure.ac): On native Windows, set
44171         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44172         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44173         Reported by Sam Steingold <sds@gnu.org>.
44174
44175 2009-08-10  Bruno Haible  <bruno@clisp.org>
44176
44177         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44178         * modules/ioctl (configure.ac): Likewise.
44179
44180 2009-08-10  Bruno Haible  <bruno@clisp.org>
44181
44182         Avoid collision between gnulib wrapper and libintl wrapper.
44183         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44184         already defined in intl/printf.c.
44185         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44186         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44187
44188 2009-08-09  Bruno Haible  <bruno@clisp.org>
44189
44190         Make <sys/select.h> really self-contained, also on Solaris 10.
44191         * lib/sys_select.in.h: Include <string.h>.
44192         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44193         Solaris 10 problem.
44194         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44195         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44196         Reported by Jim Meyering.
44197
44198 2009-08-09  Bruno Haible  <bruno@clisp.org>
44199
44200         Avoid warnings from 'aclocal' that are due to a use of macro name
44201         AM_XGETTEXT_OPTION that is not defined in automake.
44202         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44203         automake.
44204         * modules/error (configure.ac): Likewise.
44205         * modules/propername (configure.ac): Likewise.
44206         * modules/vasprintf (configure.ac): Likewise.
44207         * modules/verror (configure.ac): Likewise.
44208         * modules/xprintf (configure.ac): Likewise.
44209         * modules/xvasprintf (configure.ac): Likewise.
44210
44211 2009-08-08  Bruno Haible  <bruno@clisp.org>
44212
44213         Avoid compilation error in C++ mode.
44214         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44215         Reported by Sam Steingold <sds@gnu.org>.
44216
44217 2009-08-08  Bruno Haible  <bruno@clisp.org>
44218
44219         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44220         for the various Unix platforms.
44221         * doc/posix-headers/limits.texi: Update platforms list regarding
44222         HOST_NAME_MAX.
44223         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44224
44225 2009-08-07  Jim Meyering  <meyering@redhat.com>
44226
44227         selinux-at: fix typo in a comment
44228         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44229         Spotted by Paolo Bonzini.
44230
44231         selinux-at: remove redundant m4 code, add documentation
44232         * modules/selinux-at (configure.ac): Remove redundant code.
44233         LIB_SELINUX is already set via the dependent module, selinux-h.
44234         (Include): Add quotes around selinux-at.h.
44235         * lib/selinux-at.h: Add documentation.
44236         Reported by Bruno Haible in
44237         http://marc.info/?l=gnulib-bug&m=124958988300749
44238
44239 2009-08-07  Bruno Haible  <bruno@clisp.org>
44240
44241         Avoid link error on MacOS X 10.3 and 10.4.
44242         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44243         on non-ELF systems.
44244         * lib/argp-pv.c (argp_program_version): Likewise.
44245         Reported by Simon Josefsson.
44246
44247 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44248
44249         * tests/test-version-etc.sh: Use $EXEEXT.
44250
44251 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44252
44253         update-copyright: update documentation to point to maint.mk
44254         * build-aux/update-copyright: Here.
44255
44256 2009-08-06  Jim Meyering  <meyering@redhat.com>
44257
44258         maint.mk: support update-copyright-local
44259         * top/maint.mk (update-copyright-local): Define place-holder.
44260         (update-copyright): Depend on $(update-copyright-local).
44261
44262 2009-08-06  Jim Meyering  <meyering@redhat.com>
44263
44264         selinux-at: new module
44265         Initially written for coreutils, this module will soon be
44266         used by findutils, too.
44267         * MODULES.html.sh [Misc]: Add selinux-at.
44268         * lib/selinux-at.h: New file, from coreutils.
44269         * lib/selinux-at.c: Likewise.
44270         * modules/selinux-at: Likewise.
44271         (License): Change from LGPL to GPL, since it depends
44272         on the GPL'd openat module.
44273
44274         doc: update README
44275         * README: Remove references to cogito.
44276         Remove cvs-repo-updating instructions from 2007.
44277         Don't imply that CVS is better if you have limited disk space.
44278
44279 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44280
44281         update-copyright: support C-style comments
44282         * build-aux/update-copyright: Implement and document.
44283         * tests/test-update-copyright.sh: Test.
44284
44285 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44286
44287         update-copyright: support omitted "(C)"
44288         * build-aux/update-copyright: Implement and document.  Also,
44289         allow variable whitespace before "(C)".
44290         * tests/test-update-copyright.sh: Test.
44291
44292 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44293
44294         update-copyright: don't trip on non-FSF copyright statements
44295         * build-aux/update-copyright: Fix so that the first correctly
44296         formatted FSF copyright statement is recognized no matter what
44297         appears before it.  Update documentation.
44298         * tests/test-update-copyright.sh: Test that.
44299
44300 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44301
44302         update-copyright: clean up code a little
44303         * build-aux/update-copyright: Append "_re" to the name of any
44304         variable holding a regular expression.
44305         Replace "old" and "new" with "stmt" in variable names.
44306         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44307         handled correctly.
44308         Format code more consistently.
44309
44310 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44311
44312         update-copyright-tests: improve portability
44313         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44314         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44315
44316 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44317
44318         update-copyright: support @copyright{} and &copy;
44319         * build-aux/update-copyright: Implement and document.
44320         * tests/test-update-copyright.sh: Test.
44321
44322 2009-08-04  Jim Meyering  <meyering@redhat.com>
44323
44324         update-copyright-tests: correctly test EOL=\r\n handling
44325         * tests/test-update-copyright.sh: Put \r at the end of some lines
44326         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44327
44328         maint.mk: make update-copyright exclusion list more configurable
44329         * top/maint.mk (update-copyright): Default to excluding COPYING,
44330         but allow an override, in case someone does want to update that file.
44331
44332         maint.mk: don't update copyright date in COPYING
44333         * top/maint.mk (update-copyright): Exclude COPYING.
44334
44335         maint.mk: add a copyright-updating rule
44336         * top/maint.mk (update-copyright): New rule.
44337         Derived from coreutils/Makefile.am.
44338
44339         update-copyright: rename some variables
44340         * build-aux/update-copyright: Rename a few variables for clarity.
44341         Tweak syntax.  List Joel E. Denny as coauthor.
44342
44343 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44344
44345         update-copyright: fix bug for 2-digit last year and add tests
44346         * build-aux/update-copyright: Fix bug.
44347         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44348         specified.
44349         * modules/update-copyright-tests: New
44350         * tests/test-update-copyright.sh: New.
44351
44352 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44353
44354         update-copyright: handle leading tabs in line prefix
44355         * build-aux/update-copyright: Count leading tabs as 8 spaces
44356         when computing margin.  This helps with the formatting of
44357         ChangeLogs, for example.
44358         Fix documentation a little.
44359
44360 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44361
44362         update-copyright: support EOL=\r\n
44363         * build-aux/update-copyright: Implement that.
44364
44365 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44366
44367         update-copyright: automatically format copyright statements
44368         * build-aux/update-copyright: Implement that.
44369         Also, be a little more predictable and safer by always failing
44370         when the full copyright format is not perfectly recognized as an
44371         unbroken whole.  Discussed at
44372         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44373         Rewrite documentation.
44374
44375 2009-08-03  Bruno Haible  <bruno@clisp.org>
44376
44377         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44378
44379 2009-08-02  Bruno Haible  <bruno@clisp.org>
44380
44381         Tests for module 'uname'.
44382         * modules/uname-tests: New file.
44383         * tests/test-uname.c: New file.
44384
44385         New module 'uname'.
44386         * lib/uname.c: New file.
44387         * m4/uname.m4: New file.
44388         * modules/uname: New file.
44389         * doc/posix-functions/uname.texi: Mention the new module.
44390
44391 2009-08-02  Bruno Haible  <bruno@clisp.org>
44392
44393         Tests for module 'sys_utsname'.
44394         * modules/sys_utsname-tests: New file.
44395         * tests/test-sys_utsname.c: New file.
44396
44397         New module 'sys_utsname'.
44398         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44399         * m4/sys_utsname_h.m4: New file.
44400         * modules/sys_utsname: New file.
44401         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44402
44403 2009-08-02  Bruno Haible  <bruno@clisp.org>
44404
44405         Implicitly initialize the sockets library.
44406         * lib/gethostname.c: Include sockets.h.
44407         (rpl_gethostname): Invoke gl_sockets_startup.
44408         * lib/socket.c: Include sockets.h.
44409         (rpl_socket): Invoke gl_sockets_startup.
44410         * modules/gethostname (Depends-on): Add sockets.
44411         * modules/socket (Depends-on): Likewise.
44412         * tests/test-poll.c: Don't include sockets.h.
44413         (main): Don't invoke gl_sockets_startup.
44414         * tests/test-select.c: Don't include sockets.h.
44415         (main): Don't invoke gl_sockets_startup.
44416
44417 2009-08-02  Bruno Haible  <bruno@clisp.org>
44418
44419         Allow multiple calls to gl_sockets_startup.
44420         * lib/sockets.c (initialized_sockets_version): New variable.
44421         (gl_sockets_startup): Do nothing if already called for this or a higher
44422         version.
44423         (gl_sockets_cleanup): Reset initialized_sockets_version.
44424
44425 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44426
44427         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44428         different project/version.
44429
44430 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44431             Bruno Haible  <bruno@clisp.org>
44432
44433         Tests for module 'pipe-filter-gi'.
44434         * modules/pipe-filter-gi-tests: New file.
44435         * tests/test-pipe-filter-gi1.sh: New file.
44436         * tests/test-pipe-filter-gi1.c: New file.
44437         * tests/test-pipe-filter-gi2.sh: New file.
44438         * tests/test-pipe-filter-gi2-main.c: New file.
44439         * tests/test-pipe-filter-gi2-child.c: New file.
44440
44441         New module 'pipe-filter-gi'.
44442         * lib/pipe-filter-gi.c: New file.
44443         * modules/pipe-filter-gi: New file.
44444
44445 2009-08-02  Bruno Haible  <bruno@clisp.org>
44446             Paolo Bonzini  <bonzini@gnu.org>
44447
44448         Tests for module 'pipe-filter-ii'.
44449         * modules/pipe-filter-ii-tests: New file.
44450         * tests/test-pipe-filter-ii1.sh: New file.
44451         * tests/test-pipe-filter-ii1.c: New file.
44452         * tests/test-pipe-filter-ii2.sh: New file.
44453         * tests/test-pipe-filter-ii2-main.c: New file.
44454         * tests/test-pipe-filter-ii2-child.c: New file.
44455
44456         New module 'pipe-filter-ii'.
44457         * lib/pipe-filter.h: New file.
44458         * lib/pipe-filter-ii.c: New file.
44459         * lib/pipe-filter-aux.h: New file.
44460         * modules/pipe-filter-ii: New file.
44461
44462 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44463
44464         * lib/gc-libgcrypt.c: Change copyright to FSF.
44465         * lib/gc-gnulib.c: Likewise.
44466
44467 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44468
44469         * lib/gethostname.c: Include limits.h.
44470
44471 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44472             Bruno Haible  <bruno@clisp.org>
44473
44474         Ensure HOST_NAME_MAX as part of the gethostname module.
44475         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44476         define also HOST_NAME_MAX.
44477         * tests/test-gethostname.c: Include <limits.h>.
44478         (main): Check also HOST_NAME_MAX.
44479         * doc/posix-headers/limits.texi: Document the mingw problem.
44480
44481 2009-08-02  Bruno Haible  <bruno@clisp.org>
44482
44483         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44484         Add comments.
44485
44486 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44487
44488         * lib/gethostname.c: Add Windows wrapper.
44489         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44490         * modules/gethostname: Depend on sys_socket & errno, for also
44491         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44492         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44493
44494 2009-07-31  Jim Meyering  <meyering@redhat.com>
44495
44496         getloadavg: fix symbol name in comment
44497         * lib/getloadavg.c: Correct a typo I introduced when adding
44498         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44499         Matt Kraai spotted the problem.
44500
44501 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44502
44503         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44504         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44505         code also if ! defined N_NAME_POINTER.
44506         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44507         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44508         but the n_name member is a 12-byte array.
44509
44510 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44511
44512         update-copyright: generalize comment handling
44513         * build-aux/update-copyright: Handle copyright statements
44514         within more comment styles.
44515         Document usage.
44516         Report any file with an external copyright holder or parse failure.
44517
44518 2009-07-29  Jim Meyering  <meyering@redhat.com>
44519
44520         mktime: correct setting of REPLACE_MKTIME
44521         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44522
44523         update-copyright: new module
44524         * modules/update-copyright: New file.
44525         * build-aux/update-copyright: New file.
44526         * MODULES.html.sh (maint+release support): Add update-copyright.
44527
44528 2009-07-27  Bruno Haible  <bruno@clisp.org>
44529
44530         Fix compilation error when <ctime> is used and mktime is replaced.
44531         * lib/time.in.h (mktime): New declaration.
44532         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44533         REPLACE_MKTIME instead of defining mktime in config.h.
44534         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44535         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44536         Reported by Ross McFarland <rwmcfa1@neces.com>.
44537
44538 2009-07-27  Bruno Haible  <bruno@clisp.org>
44539
44540         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44541         Reported by Matt Kraai <mkraai@beckman.com>.
44542
44543 2009-07-25  Jim Meyering  <meyering@redhat.com>
44544
44545         maint.mk: avoid warnings about missing files
44546         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44547         diagnostic when .prev-version does not exist.
44548         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44549         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44550         nonexistent cfg.mk.
44551         Suggestions from Simon Josefsson.
44552
44553 2009-07-25  Bruno Haible  <bruno@clisp.org>
44554
44555         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44556         defined as macros. Needed on QNX 6.4.1.
44557         Reported by Matt Kraai <mkraai@beckman.com>.
44558
44559 2009-07-23  Jim Meyering  <meyering@redhat.com>
44560
44561         maint.mk: invoke "make dist" with a working value of XZ_OPT
44562         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44563
44564 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44565
44566         Make fseeko.c compile on QNX.
44567         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44568
44569 2009-07-22  Peter Simons  <simons@cryp.to>
44570
44571         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44572         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44573         * lib/md4.h: Likewise.
44574         * lib/md5.h: Likewise.
44575         * lib/sha1.h: Likewise.
44576         * lib/sha256.h: Likewise.
44577         * lib/sha512.h: Likewise.
44578
44579         tests-sha1: don't assign literal string to 'char *' variable
44580         * tests/test-sha1.c (main): Declare locals with "const" to match
44581         attributes of the right hand side.
44582
44583 2009-07-21  Eric Blake  <ebb9@byu.net>
44584
44585         dup2: fix more mingw problems
44586         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44587         fd to itself.
44588         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44589         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44590         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44591         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44592         care of mingw bugs.
44593
44594 2009-07-21  Jim Meyering  <meyering@redhat.com>
44595
44596         vc-list-files: avoid failure when /bin/sh is dash
44597         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44598         On some Debian based systems, /bin/sh is a symlink to dash, and running
44599         this command would omit the "/" following each 'tests' prefix:
44600           dash -x build-aux/vc-list-files -C . tests
44601         That is because bash and dash work differently:
44602           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44603           bash ok
44604           dash odd
44605
44606 2009-07-21  Eric Blake  <ebb9@byu.net>
44607
44608         dup2-tests: test previous patch
44609         * modules/dup2-tests: New file.
44610         * tests/test-dup2.c: Likewise.
44611         * tests/test-open.c (main): Avoid unspecified behavior.
44612         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44613         test.
44614
44615         dup2: work around mingw and cygwin 1.5 bug
44616         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44618         * modules/unistd (Makefile.am): Substitute it.
44619         * lib/unistd.in.h (dup2): Declare the replacement.
44620         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44621         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44622         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44623         * modules/execute (Depends-on): Add dup2.
44624         * modules/fseterr (Depends-on): Likewise.
44625         * modules/pipe (Depends-on): Likewise.
44626         * modules/posix_spawn-internal (Depends-on): Likewise.
44627
44628 2009-07-21  Bruno Haible  <bruno@clisp.org>
44629
44630         * modules/.gitattributes: New file.
44631
44632 2009-07-20  Bruno Haible  <bruno@clisp.org>
44633
44634         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44635         (main): Use it.
44636
44637 2009-07-20  Eric Blake  <ebb9@byu.net>
44638
44639         test-pipe: make a bit more robust.
44640         * tests/test-pipe.c (myerr): Allow error messages regardless of
44641         what we do to stderr.
44642         (test_pipe): Rearrange to avoid deadlock.
44643         (child_main): Try a larger read, to ensure we avoided deadlock.
44644         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44645         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44646         if misused.
44647
44648 2009-07-19  Jim Meyering  <meyering@redhat.com>
44649
44650         fts: avoid false-positive cycle-detection
44651         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44652         for each new command line argument.
44653
44654 2009-07-19  Bruno Haible  <bruno@clisp.org>
44655
44656         Fix build error on mingw with the modules sys_select and unistd.
44657         * modules/acl-tests (Depends-on): Add close.
44658         * modules/binary-io-tests (Depends-on): Likewise.
44659         * modules/closein-tests (Depends-on): Likewise.
44660         * modules/flock-tests (Depends-on): Likewise.
44661         * modules/fsync-tests (Depends-on): Likewise.
44662         * modules/lseek-tests (Depends-on): Likewise.
44663         * modules/pipe-tests (Depends-on): Likewise.
44664         * modules/posix_spawn-tests (Depends-on): Likewise.
44665         * modules/posix_spawnp-tests (Depends-on): Likewise.
44666         * modules/stat-time-tests (Depends-on): Likewise.
44667         * modules/yesno-tests (Depends-on): Likewise.
44668
44669 2009-07-19  Bruno Haible  <bruno@clisp.org>
44670
44671         Unify conditionals.
44672         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44673         macros, not at the compiler macros.
44674         * lib/pipe.c: Likewise.
44675         * lib/execute.c: Likewise.
44676         * lib/spawni.c: Likewise.
44677
44678 2009-07-19  Bruno Haible  <bruno@clisp.org>
44679
44680         Fix handling of closed stdin/stdout/stderr on mingw.
44681         * lib/w32spawn.h: Include unistd.h.
44682         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44683         file descriptor with O_NOINHERIT flag.
44684         (fd_safer_noinherit): New function, based on fd-safer.c.
44685         (dup_safer_noinherit): New function, based on dup-safer.c.
44686         (undup_safer_noinherit): New function.
44687         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44688         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44689         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44690         instead of fd_safer.
44691         * tests/test-pipe.c: Include <windows.h>.
44692         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44693         result.
44694
44695         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44696         from main.
44697         (test_pipe): Pass an extra argument for disambiguation.
44698         (main): Invoke parent_main or child_main.
44699
44700         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44701         consistently.
44702
44703 2009-07-18  Eric Blake  <ebb9@byu.net>
44704
44705         test-pipe: fix mingw build
44706         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44707
44708 2009-07-18  Bruno Haible  <bruno@clisp.org>
44709
44710         * modules/pipe-tests (Makefile.am): Fix typo.
44711
44712 2009-07-18  Eric Blake  <ebb9@byu.net>
44713
44714         error: fix mingw build
44715         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44716         Reported by Bruno Haible.
44717
44718         error: avoid undefined use of stdout
44719         * lib/error.c (error, error_at_line): Check that fd 1 is open
44720         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44721         is handling faults and the close_stdout module wants to report the
44722         detection of closed stdout as an error.
44723
44724 2009-07-17  Eric Blake  <ebb9@byu.net>
44725
44726         pipe: be robust in face of closed fds
44727         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44728         should cause child to misbehave.
44729         * modules/pipe-tests: New module.
44730         * tests/test-pipe.c: New file.
44731         * tests/test-pipe.sh: New file.
44732         Reported by Akim Demaille.
44733
44734 2009-07-14  Bruno Haible  <bruno@clisp.org>
44735
44736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44737         Reported by anonymous kc.
44738
44739 2009-07-07  Jim Meyering  <meyering@redhat.com>
44740
44741         maint.mk: don't look for translatable strings in *.m4 or *.mk
44742         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44743         when searching for translatable strings.
44744
44745 2009-07-05  Jim Meyering  <meyering@redhat.com>
44746
44747         remove superfluous parentheses in STREQ definition
44748         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44749         * lib/getugroups.c (STREQ): Likewise.
44750         * lib/fnmatch.c (STREQ): Likewise.
44751         Spotted by Bruno Haible.
44752
44753 2009-07-04  Jim Meyering  <meyering@redhat.com>
44754
44755         argv-iter: new module
44756         * MODULES.html.sh: Add argv-iter.
44757         * lib/argv-iter.c, lib/argv-iter.h: New files.
44758         * modules/argv-iter: New file.
44759         * modules/argv-iter-tests: New file.
44760         * tests/test-argv-iter.c: Test it.
44761
44762 2009-07-04  Bruno Haible  <bruno@clisp.org>
44763
44764         Fix assertion.
44765         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44766         contains more exact copies of a given entry than file2, leave the extra
44767         copies unpaired rather than aborting.
44768         Reported by Eric Blake.
44769
44770 2009-07-02  Bruno Haible  <bruno@clisp.org>
44771
44772         Speedup git-merge-changelog for git cherry-pick.
44773         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44774         (entries_mapping_get): New function, extracted from compute_mapping.
44775         (entries_mapping_reverse_get): New function.
44776         (compute_mapping): Add a 'full' argument. Return the result in a
44777         'struct entries_mapping'.
44778         (main): Update. Access the mappings through entries_mapping_get.
44779         Reported by Eric Blake.
44780
44781 2009-07-02  Bruno Haible  <bruno@clisp.org>
44782
44783         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44784         best_i.
44785
44786 2009-07-02  Bruno Haible  <bruno@clisp.org>
44787
44788         Speed up approximate search for matching ChangeLog entries.
44789         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44790         argument. Call fstrcmp_bounded instead of fstrcmp.
44791         (compute_mapping, try_split_merged_entry, main): Update callers.
44792
44793 2009-07-02  Bruno Haible  <bruno@clisp.org>
44794
44795         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44796
44797 2009-06-30  Bruno Haible  <bruno@clisp.org>
44798
44799         Reduce the number of uc_is_cased calls.
44800         * lib/unicase.h (casing_suffix_context_t): Add
44801         'first_char_except_ignorable' field.
44802         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44803         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44804         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44805         Update initializer.
44806         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44807         case-ignorable characters.
44808         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44809         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44810         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44811         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44812         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44813
44814 2009-06-30  Bruno Haible  <bruno@clisp.org>
44815
44816         Tests for module 'unicase/ignorable'.
44817         * modules/unicase/ignorable-tests: New file.
44818         * tests/unicase/test-ignorable.c: New file, generated by
44819         gen-uni-tables.
44820
44821         Tests for module 'unicase/cased'.
44822         * modules/unicase/cased-tests: New file.
44823         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44824         * tests/unicase/test-predicate-part1.h: New file, derived from
44825         tests/unictype/test-predicate-part1.h.
44826         * tests/unicase/test-predicate-part2.h: New file, same as
44827         tests/unictype/test-predicate-part2.h.
44828
44829         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44830         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44831         (output_casing_properties): New function.
44832         (main): Call it.
44833         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44834         * lib/unicase/cased.c: Include unictype/bitmap.h.
44835         (uc_is_cased): Define through a bitmap lookup.
44836         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44837         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44838         (uc_is_case_ignorable): Define through a bitmap lookup.
44839         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44840         lib/unictype/bitmap.h.
44841         (Depends-on): Add inline. Clean up.
44842         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44843         lib/unictype/bitmap.h.
44844         (Depends-on): Add inline. Clean up.
44845         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44846         recognition.
44847         * tests/unicase/test-u16-tolower.c (main): Likewise.
44848         * tests/unicase/test-u32-tolower.c (main): Likewise.
44849
44850 2009-06-30  Bruno Haible  <bruno@clisp.org>
44851
44852         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44853         * lib/unicase/u16-casemap.c: Likewise.
44854         * lib/unicase/u32-casemap.c: Likewise.
44855
44856 2009-06-29  Bruno Haible  <bruno@clisp.org>
44857
44858         Define u32_casefold as a wrapper around u32_ct_casefold.
44859         * lib/unicase/u32-casefold.c: Update.
44860         * modules/unicase/u32-casefold (Depends-on): Add
44861         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44862         unicase/empty-suffix-context. Clean up.
44863
44864         Define u16_casefold as a wrapper around u16_ct_casefold.
44865         * lib/unicase/u16-casefold.c: Update.
44866         * modules/unicase/u16-casefold (Depends-on): Add
44867         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44868         unicase/empty-suffix-context. Clean up.
44869
44870         Define u8_casefold as a wrapper around u8_ct_casefold.
44871         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44872         * lib/unicase/u8-casefold.c: Update.
44873         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44874         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44875
44876         Define u32_totitle as a wrapper around u32_ct_totitle.
44877         * lib/unicase/u32-totitle.c: Update.
44878         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44879         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44880
44881         Define u16_totitle as a wrapper around u16_ct_totitle.
44882         * lib/unicase/u16-totitle.c: Update.
44883         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44884         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44885
44886         Define u8_totitle as a wrapper around u8_ct_totitle.
44887         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44888         functions.
44889         (FUNC): Delegate to U_CT_TOTITLE.
44890         * lib/unicase/u8-totitle.c: Update.
44891         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44892         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44893
44894         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44895         invocation.
44896         * modules/unicase/u32-tolower (Depends-on): Add
44897         unicase/empty-prefix-context, unicase/empty-suffix-context.
44898
44899         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44900         invocation.
44901         * modules/unicase/u16-tolower (Depends-on): Add
44902         unicase/empty-prefix-context, unicase/empty-suffix-context.
44903
44904         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44905         * modules/unicase/u8-tolower (Depends-on): Add
44906         unicase/empty-prefix-context, unicase/empty-suffix-context.
44907
44908         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44909         invocation.
44910         * modules/unicase/u32-toupper (Depends-on): Add
44911         unicase/empty-prefix-context, unicase/empty-suffix-context.
44912
44913         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44914         invocation.
44915         * modules/unicase/u16-toupper (Depends-on): Add
44916         unicase/empty-prefix-context, unicase/empty-suffix-context.
44917
44918         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44919         * modules/unicase/u8-toupper (Depends-on): Add
44920         unicase/empty-prefix-context, unicase/empty-suffix-context.
44921
44922         New module 'unicase/u32-ct-casefold'.
44923         * lib/unicase/u32-ct-casefold.c: New file.
44924         * modules/unicase/u32-ct-casefold: New file.
44925
44926         New module 'unicase/u16-ct-casefold'.
44927         * lib/unicase/u16-ct-casefold.c: New file.
44928         * modules/unicase/u16-ct-casefold: New file.
44929
44930         New module 'unicase/u8-ct-casefold'.
44931         * lib/unicase/u8-ct-casefold.c: New file.
44932         * lib/unicase/u-ct-casefold.h: New file, derived from
44933         lib/unicase/u-casefold.h.
44934         * modules/unicase/u8-ct-casefold: New file.
44935
44936         New module 'unicase/u32-ct-totitle'.
44937         * lib/unicase/u32-ct-totitle.c: New file.
44938         * modules/unicase/u32-ct-totitle: New file.
44939
44940         New module 'unicase/u16-ct-totitle'.
44941         * lib/unicase/u16-ct-totitle.c: New file.
44942         * modules/unicase/u16-ct-totitle: New file.
44943
44944         New module 'unicase/u8-ct-totitle'.
44945         * lib/unicase/u8-ct-totitle.c: New file.
44946         * lib/unicase/u-ct-totitle.h: New file, derived from
44947         lib/unicase/u-totitle.h.
44948         * modules/unicase/u8-ct-totitle: New file.
44949
44950         New module 'unicase/u32-ct-tolower'.
44951         * lib/unicase/u32-ct-tolower.c: New file.
44952         * modules/unicase/u32-ct-tolower: New file.
44953
44954         New module 'unicase/u16-ct-tolower'.
44955         * lib/unicase/u16-ct-tolower.c: New file.
44956         * modules/unicase/u16-ct-tolower: New file.
44957
44958         New module 'unicase/u8-ct-tolower'.
44959         * lib/unicase/u8-ct-tolower.c: New file.
44960         * modules/unicase/u8-ct-tolower: New file.
44961
44962         New module 'unicase/u32-ct-toupper'.
44963         * lib/unicase/u32-ct-toupper.c: New file.
44964         * modules/unicase/u32-ct-toupper: New file.
44965
44966         New module 'unicase/u16-ct-toupper'.
44967         * lib/unicase/u16-ct-toupper.c: New file.
44968         * modules/unicase/u16-ct-toupper: New file.
44969
44970         New module 'unicase/u8-ct-toupper'.
44971         * lib/unicase/u8-ct-toupper.c: New file.
44972         * modules/unicase/u8-ct-toupper: New file.
44973
44974         Add context arguments to u*_casemap functions.
44975         * lib/unicase/unicasemap.h: Include unicase.h.
44976         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44977         suffix_context arguments.
44978         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44979         functions.
44980         (FUNC): Add prefix_context and suffix_context arguments. Use
44981         uc_is_cased and uc_is_case_ignorable.
44982         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44983         * lib/unicase/u16-casemap.c: Likewise.
44984         * lib/unicase/u32-casemap.c: Likewise.
44985         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44986         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44987         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44988         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44989         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44990         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44991
44992         New module 'unicase/u32-suffix-context'.
44993         * lib/unicase/u32-suffix-context.c: New file.
44994         * modules/unicase/u32-suffix-context: New file.
44995
44996         New module 'unicase/u16-suffix-context'.
44997         * lib/unicase/u16-suffix-context.c: New file.
44998         * modules/unicase/u16-suffix-context: New file.
44999
45000         New module 'unicase/u8-suffix-context'.
45001         * lib/unicase/u8-suffix-context.c: New file.
45002         * lib/unicase/u-suffix-context.h: New file.
45003         * modules/unicase/u8-suffix-context: New file.
45004
45005         New module 'unicase/empty-suffix-context'.
45006         * lib/unicase/empty-suffix-context.c: New file.
45007         * modules/unicase/empty-suffix-context: New file.
45008
45009         New module 'unicase/u32-prefix-context'.
45010         * lib/unicase/u32-prefix-context.c: New file.
45011         * modules/unicase/u32-prefix-context: New file.
45012
45013         New module 'unicase/u16-prefix-context'.
45014         * lib/unicase/u16-prefix-context.c: New file.
45015         * modules/unicase/u16-prefix-context: New file.
45016
45017         New module 'unicase/u8-prefix-context'.
45018         * lib/unicase/u8-prefix-context.c: New file.
45019         * lib/unicase/u-prefix-context.h: New file.
45020         * lib/unicase/context.h: New file.
45021         * modules/unicase/u8-prefix-context: New file.
45022
45023         New module 'unicase/empty-prefix-context'.
45024         * lib/unicase/empty-prefix-context.c: New file.
45025         * modules/unicase/empty-prefix-context: New file.
45026
45027         New module 'unicase/ignorable'.
45028         * lib/unicase/ignorable.c: New file.
45029         * modules/unicase/ignorable: New file.
45030
45031         New module 'unicase/cased'.
45032         * lib/unicase/caseprop.h: New file.
45033         * lib/unicase/cased.c: New file.
45034         * modules/unicase/cased: New file.
45035
45036         New functions for case mapping of substrings.
45037         * lib/unicase.h (casing_prefix_context_t): New type.
45038         (unicase_empty_prefix_context): New variable.
45039         (u8_casing_prefix_context, u16_casing_prefix_context,
45040         u32_casing_prefix_context, u8_casing_prefixes_context,
45041         u16_casing_prefixes_context, u32_casing_prefixes_context): New
45042         declarations.
45043         (casing_suffix_context_t): New type.
45044         (unicase_empty_suffix_context): New variable.
45045         (u8_casing_suffix_context, u16_casing_suffix_context,
45046         u32_casing_suffix_context, u8_casing_suffixes_context,
45047         u16_casing_suffixes_context, u32_casing_suffixes_context,
45048         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
45049         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
45050         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
45051         declarations.
45052
45053 2009-06-28  Jim Meyering  <meyering@redhat.com>
45054
45055         boostrap: indent only with spaces
45056         * build-aux/bootstrap: Indent only with spaces, never TABs.
45057
45058         bootstrap: split long lines
45059         * build-aux/bootstrap: Keep line length < 80.
45060
45061         bootstrap: sync from coreutils
45062         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
45063         just as autoreconf does.  Verify a list of prerequisite
45064         package-name,version-number pairs if defined in bootstrap.conf.
45065         Refer to README-prereq, if prerequisites are not satisfied.
45066
45067 2009-06-27  Eric Blake  <ebb9@byu.net>
45068
45069         tests: add test for bogus NULL definition
45070         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
45071         * tests/test-stdlib.c: Likewise.
45072         * tests/test-string.c: Likewise.
45073         * tests/test-locale.c: Likewise.
45074         * tests/test-unistd.c: Likewise.
45075         * modules/stdio-tests (Depends-on): Add verify.
45076         * modules/stdlib-tests (Depends-on): Likewise.
45077         * modules/string-tests (Depends-on): Likewise.
45078         * modules/locale-tests (Depends-on): Likewise.
45079         * modules/unistd-tests (Depends-on): Likewise.
45080
45081 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
45082
45083         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
45084         self-explaining comment.
45085         * m4/selinux-selinux-h: Update serial.
45086         (gl_LIBSELINUX): New macro, adding a warning for missing development
45087         packages to code extracted from...
45088         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
45089         Add warning for missing development packages here, too.
45090
45091 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
45092
45093         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
45094
45095 2009-06-25  Eric Blake  <ebb9@byu.net>
45096
45097         version-etc: fix regression
45098         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
45099         gcc.
45100         (version_etc): Use it, to catch bugs with trailing NULL.
45101         * lib/version-etc.c (version_etc_arn): Delete unused argument.
45102         (version_etc_va): Fix logic bug.
45103         * modules/version-etc-tests: Add test.
45104         * tests/test-version-etc.c: New file.
45105         * tests/test-version-etc.sh: Likewise.
45106
45107 2009-06-25  Sam Steingold  <sds@gnu.org>
45108
45109         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
45110         mbtowc declaration.
45111
45112 2009-06-25  Eric Blake  <ebb9@byu.net>
45113
45114         fpurge: migrate into <stdio.h>
45115         * lib/fpurge.h: Delete...
45116         * lib/stdio.in.h (fpurge): ...and declare here, instead.
45117         * lib/fpurge.c (fpurge): Change declaring header.
45118         * modules/fpurge (Files): Drop deleted file.
45119         (Depends-on): Add stdio.
45120         (configure.ac): Set witness.
45121         * modules/stdio (Makefile.am): Support fpurge macros.
45122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45123         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
45124         * lib/fflush.c: Update client.
45125         * tests/test-fpurge.c: Likewise.
45126         * NEWS: Mention the change.
45127
45128 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45129
45130         * lib/argp-version-etc.c (program_authors): Add const
45131         qualifier.
45132         * lib/version-etc.c: Fix typos in the comments.
45133         * modules/argp-version-etc: Depends on version-etc.
45134
45135 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45136
45137         argp-version-etc: new module.
45138
45139         * lib/argp-version-etc.c: New file.
45140         * lib/argp-version-etc.h: New file.
45141         * modules/argp-version-etc: New file.
45142         * modules/argp-version-etc-tests: New file.
45143         * tests/test-argp-version-etc.c: New test.
45144         * tests/test-argp-version-etc-1.sh: New test.
45145
45146 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45147
45148         Provide additional interfaces and documentation for version-etc
45149         module.
45150
45151         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45152         interfaces.
45153         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45154         prototypes.
45155
45156 2009-06-24  Bruno Haible  <bruno@clisp.org>
45157
45158         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45159         HAVE_LIB${NAME} macro.
45160         Reported by Sam Steingold <sds@gnu.org>.
45161
45162 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45163
45164         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45165         needed.
45166
45167 2009-06-21  Bruno Haible  <bruno@clisp.org>
45168
45169         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45170         work.
45171         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45172         together with LIB${NAME}, LTLIB${NAME}.
45173         Reported by Sam Steingold <sds@gnu.org>.
45174
45175 2009-06-20  Jim Meyering  <meyering@redhat.com>
45176
45177         tests: make sc_require_test_exit_idiom more generic
45178         * top/maint.mk (Exit_witness_file): New overridable variable.
45179         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45180         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45181
45182 2009-06-19  Jim Meyering  <meyering@redhat.com>
45183
45184         hash: reverse order of src/dst parameters in an internal interface
45185         * lib/hash.c (transfer_entries): Reverse order of parameters to
45186         put DST before SRC.  Adjust callers.
45187
45188         tests: test-hash: avoid wholesale duplication
45189         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45190         Instead, use a loop and add a single conditional.
45191
45192         tests: test-hash: allow seed selection via a command line argument
45193         * tests/test-hash.c (get_seed): New function.
45194         (main): Use it.
45195
45196 2009-06-19  Eric Blake  <ebb9@byu.net>
45197
45198         hash: avoid memory leak on allocation failure
45199         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45200         failure.  Factor repeated algorithm...
45201         (transfer_entries): ...into new helper routine.
45202         (hash_delete): React to hash_rehash return value.
45203
45204         hash: reduce memory pressure in hash_rehash no-op case
45205         * lib/hash.c (next_prime): Avoid overflow.
45206         (hash_initialize): Factor bucket size computation...
45207         (compute_bucket_size): ...into new helper function.
45208         (hash_rehash): Use new function and open coding to reduce memory
45209         pressure, and avoid a memory leak in USE_OBSTACK code.
45210         Reported by Jim Meyering.
45211
45212 2009-06-18  Eric Blake  <ebb9@byu.net>
45213
45214         hash: make rotation more obvious
45215         * modules/hash (Depends-on): Add bitrotate and stdint.
45216         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45217         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45218         (SIZE_MAX): Rely on headers for definition.
45219         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45220         (raw_hasher): Use rotr_sz.
45221         Suggested by Jim Meyering.
45222
45223         hash: fix memory leak in last patch
45224         * lib/hash.c (hash_rehash): Avoid memory leak.
45225
45226         hash: avoid no-op rehashing
45227         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45228
45229         hash: provide default callback functions
45230         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45231         (hash_initialize): Use them as defaults.
45232         * tests/test-hash.c (main): Test this.
45233
45234         hash: minor optimization
45235         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45236         when possible.
45237         (hash_initialize): Document this promise.
45238         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45239         * tests/test-hash.c (hash_compare_strings): Test this.
45240
45241 2009-06-18  Bruno Haible  <bruno@clisp.org>
45242
45243         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45244         going to be replaced anyway.
45245
45246 2009-06-18  Bruno Haible  <bruno@clisp.org>
45247
45248         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45249         in one place.
45250         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45251         be replaced anyway.
45252
45253 2009-06-18  Eric Blake  <ebb9@byu.net>
45254
45255         hash: check for resize before insertion
45256         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45257         threshold before insertion, so that a pathological hash_rehash
45258         that fills every bucket can still trigger another rehash.
45259
45260 2009-06-18  Jim Meyering  <meyering@redhat.com>
45261
45262         hash-tests: add a loop around the small tests
45263         * tests/test-hash.c (main): Repeat small tests with selected
45264         small initial table sizes.
45265
45266 2009-06-17  Eric Blake  <ebb9@byu.net>
45267
45268         hash: minor cleanups
45269         * lib/hash.h (hash_entry): Make opaque, by moving...
45270         * lib/hash.c (hash_entry): ...here.
45271         (hash_insert): Clarify restrictions on what can be inserted.
45272         (hash_get_next): Clarify when it is safe to remove an element
45273         during traversal.
45274         (check_tuning): Skip verification when tuning is known safe.
45275         (hash_initialize): Clarify restrictions on tuning.
45276
45277 2009-06-17  Jim Meyering  <jim@meyering.net>
45278         and Eric Blake  <ebb9@byu.net>
45279
45280         hash-tests: new module
45281         * modules/hash-tests: New file.
45282         * tests/test-hash.c: New file.
45283
45284 2009-06-17  Eric Blake  <ebb9@byu.net>
45285
45286         strstr-simple: document new module
45287         * MODULES.html.sh: Document new module.
45288
45289         strstr, strcasestr: replace on platforms with broken memchr
45290         * modules/strstr: Split into...
45291         * modules/strstr-simple: ...new module that does not care about
45292         performance, but does care about glibc bug.
45293         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45294         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45295         if platform memchr is broken, per Debian bug 521737.
45296         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45297         memchr.
45298         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45299         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45300         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45301         * modules/mountlist (Depends-on): Add strstr-simple.
45302         * modules/gen-uni-tables (Depends-on): Likewise.
45303         * modules/argz (Depends-on): Add strstr.
45304
45305 2009-06-17  Bruno Haible  <bruno@clisp.org>
45306
45307         * modules/posix_spawn-internal (Depends-on): Add errno.
45308
45309 2009-06-17  Bruno Haible  <bruno@clisp.org>
45310
45311         Define missing ESTALE on Interix 3.5.
45312         * lib/errno.in.h (ESTALE): Assign a value if missing.
45313         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45314         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45315         missing.
45316         * doc/posix-headers/errno.texi: Mention the Interix bug.
45317         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45318
45319 2009-06-15  Eric Blake  <ebb9@byu.net>
45320
45321         memchr, memchr2: add valgrind exception
45322         * lib/memchr.valgrind: New file.
45323         * lib/memchr2.valgrind: New file.
45324         * modules/memchr (Files): Distribute valgrind file.
45325         * modules/memchr2 (Files): Likewise.
45326
45327         docs: memchr is no longer obsolete
45328         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45329         * lib/string.in.h (memchr): Simplify logic.
45330
45331 2009-06-14  Jim Meyering  <meyering@redhat.com>
45332
45333         link-follow: fix the "checking..." message to not mention trailing slash
45334         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45335         never considered trailing slashes.
45336
45337 2009-06-14  Bruno Haible  <bruno@clisp.org>
45338
45339         * m4/memchr.m4: Mention also the bug on IA-64.
45340         * doc/posix-functions/memchr.texi: Likewise.
45341
45342 2009-06-12  Eric Blake  <ebb9@byu.net>
45343
45344         memchr: detect broken x86_64 and alpha implementations
45345         * modules/memchr-tests (Depends-on): Move mmap detection...
45346         * modules/memchr (Depends-on): ...here.
45347         (configure.ac): Set indicator.
45348         * lib/string.in.h (memchr): Declare replacement.
45349         * modules/string (Makefile.am): Trigger replacement.
45350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45351         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45352         bugs.
45353         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45354         * modules/getpagesize (License): Relax license.
45355
45356 2009-06-11  Bruno Haible  <bruno@clisp.org>
45357
45358         * lib/idpriv.h: Add more references.
45359
45360 2009-06-08  Bruno Haible  <bruno@clisp.org>
45361
45362         Tests for module 'idpriv-droptemp'.
45363         * modules/idpriv-droptemp-tests: New file.
45364         * tests/test-idpriv-droptemp.sh: New file.
45365         * tests/test-idpriv-droptemp.su.sh: New file.
45366         * tests/test-idpriv-droptemp.c: New file.
45367
45368         New module 'idpriv-droptemp'.
45369         * lib/idpriv-droptemp.c: New file.
45370         * modules/idpriv-droptemp: New file.
45371
45372 2009-06-08  Bruno Haible  <bruno@clisp.org>
45373
45374         Tests for module 'idpriv-drop'.
45375         * modules/idpriv-drop-tests: New file.
45376         * tests/test-idpriv-drop.sh: New file.
45377         * tests/test-idpriv-drop.su.sh: New file.
45378         * tests/test-idpriv-drop.c: New file.
45379
45380         New module 'idpriv-drop'.
45381         * lib/idpriv.h: New file.
45382         * lib-idpriv-drop.c: New file.
45383         * m4/idpriv.m4: New file.
45384         * modules/idpriv-drop: New file.
45385
45386 2009-06-08  Bruno Haible  <bruno@clisp.org>
45387
45388         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45389         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45390         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45391         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45392         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45393         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45394         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45395
45396 2009-06-08  Eric Blake  <ebb9@byu.net>
45397
45398         test-strstr: use memory fence, when possible
45399         * tests/test-strstr.c (main): Use memory fence, in order to be
45400         more likely to trigger Debian bug 521737.
45401         * modules/strstr-tests (Files): Pull in additional files.
45402
45403         memchr: no longer obsolete, for wider field testing
45404         * modules/memchr (Status, Notice): Delete, this module is no
45405         longer obsolete.
45406         * modules/vasnprintf (Depends-on): Add memchr.
45407
45408 2009-06-07  Jim Meyering  <meyering@redhat.com>
45409
45410         hash: declare some functions with the warn_unused_result attribute
45411         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45412
45413 2009-06-07  Bruno Haible  <bruno@clisp.org>
45414
45415         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45416         Reported by Eric Blake.
45417
45418 2009-06-06  Eric Blake  <ebb9@byu.net>
45419
45420         test-alignof: fix typo with long double
45421         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45422         compiler error.
45423
45424 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45425
45426         Escape non-texinfo { and }s.
45427         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45428         markup error.
45429
45430 2009-06-04  Jim Meyering  <meyering@redhat.com>
45431
45432         gitlog-to-changelog: don't infloop on an empty commit log
45433         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45434         Reported by Boris Petersen <transacid@centerim.org>.
45435
45436 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45437
45438         version-etc: extend for packagers
45439         Add three new configure options, intended for packagers:
45440           --with-packager="packager name"
45441           --with-packager-version="packager-specific version"
45442           --with-packager-bug-reports="packager bug reporting"
45443         An example with coreutils:
45444           $ ./configure \
45445             --with-packager=Gentoo \
45446             --with-packager-bug-report=http://bugs.gentoo.org/ \
45447             --with-packager-version="patchset 1.6"
45448           $ ./src/ls --version | head -n2
45449           ls (GNU coreutils) 7.1-dirty
45450           Packaged by Gentoo (patchset 1.6)
45451         Note that the bug reporting info via --help doesn't show up because
45452         coreutils uses its own custom emit_bug_reporting_address() implementation
45453         in src/system.h.  If it didn't, it'd look like:
45454           $ ./src/ls --help | tail -n4
45455           Report bugs to <bug-coreutils@gnu.org>.
45456           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45457           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45458           General help using GNU software: <http://www.gnu.org/gethelp/>.
45459         * lib/version-etc.c: Print new information, if provided.
45460         * m4/version-etc.m4: New file.
45461         * modules/version-etc (Files): Add m4/version-etc.m4.
45462         (configure.ac): Add gl_VERSION_ETC.
45463
45464 2009-05-31  Bruno Haible  <bruno@clisp.org>
45465
45466         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45467         and 'int64_t'.
45468         * modules/alignof-tests (Dependencies): Add stdint.
45469         Reported by Eric Blake.
45470
45471 2009-05-31  Bruno Haible  <bruno@clisp.org>
45472
45473         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45474         restriction due to compiler bugs.
45475         Reported by Eric Blake.
45476
45477 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45478             Bruno Haible  <bruno@clisp.org>
45479
45480         Fix test-alignof failure.
45481         * lib/alignof.h (alignof_slot): New macro.
45482         (alignof_type): New macro, with the same semantics as the previous
45483         'alignof'.
45484         (alignof): Alias to alignof_slot.
45485         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45486         check that the results are usable as constant expressions.
45487
45488 2009-05-31  Bruno Haible  <bruno@clisp.org>
45489
45490         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45491         * tests/test-memchr.c (main): Check that memchr does not read past the
45492         first occurrence of the byte.
45493         * tests/test-strstr.c (main): Update comment.
45494         Suggested by Eric Blake.
45495
45496 2009-05-30  Bruno Haible  <bruno@clisp.org>
45497
45498         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45499         detail how to use dumpbin.
45500         Reported by David Byron <dbyron@dbyron.com>.
45501
45502 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45503
45504         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45505
45506 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45507
45508         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45509
45510 2009-05-28  Bruno Haible  <bruno@clisp.org>
45511
45512         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45513         build-aux/ files.
45514
45515 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45516
45517         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45518
45519 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45520
45521         * gnulib-tool (sed_transform_main_lib_file)
45522         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45523         regexps.
45524
45525 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45526
45527         * tests/test-strstr.c: Add another self-test.
45528         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45529         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45530
45531 2009-05-23  Bruno Haible  <bruno@clisp.org>
45532
45533         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45534         change.
45535
45536 2009-05-21  Bruno Haible  <bruno@clisp.org>
45537
45538         Simplify use of mode_t varargs.
45539         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45540         uses 'mode_t' or 'int'.
45541         * lib/openat.c (openat): Likewise.
45542         * lib/open-safer.c (open_safer): Likewise.
45543         * m4/mode_t.m4: New file.
45544         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45545         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45546         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45547         * modules/open (Files): Add m4/mode_t.m4.
45548         * modules/openat (Files): Likewise.
45549         * modules/fcntl-safer (Files): Likewise.
45550         Suggested by Eric Blake.
45551
45552 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45553
45554         * doc/glibc-functions/fallocate.texi: New file.
45555         * doc/gnulib.texi: Include it.
45556
45557 2009-05-21  Eric Blake  <ebb9@byu.net>
45558             Bruno Haible  <bruno@clisp.org>
45559
45560         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45561         invocations.
45562         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45563
45564 2009-05-21  Eric Blake  <ebb9@byu.net>
45565             Bruno Haible  <bruno@clisp.org>
45566
45567         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45568         include_next. Fix of 2008-11-20 commit.
45569         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45570         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45571         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45572         NEXT_MATH_H.
45573         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45574         instead of NEXT_MATH_H.
45575
45576 2009-05-21  Bruno Haible  <bruno@clisp.org>
45577
45578         Avoid redefinition warnings for SIZE_MAX.
45579         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45580         Reported by Simon Josefsson.
45581
45582 2009-05-21  Bruno Haible  <bruno@clisp.org>
45583
45584         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45585         AC_CACHE_VAL.
45586
45587 2009-05-20  Bruno Haible  <bruno@clisp.org>
45588
45589         Make zeroptr.h work on mingw.
45590         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45591         mprotect.
45592         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45593         * modules/memchr2-tests (configure.ac): Likewise.
45594         * modules/memcmp-tests (configure.ac): Likewise.
45595         * modules/memmem-tests (configure.ac): Likewise.
45596         * modules/memrchr-tests (configure.ac): Likewise.
45597         Reported by Simon Josefsson.
45598
45599 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45600
45601         * tests/test-glob.c: Include string.h for strcmp prototype.
45602
45603 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45604
45605         * modules/getdelim (Depends-on): Add explicit stdint, although it
45606         was implicitly already pulled in via realloc-posix.
45607         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45608
45609 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45610
45611         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45612         G. Christensen" <tgc@jupiterrise.com>.
45613         * m4/sys_socket_h.m4: Check for sa_family_t.
45614         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45615         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45616         * tests/test-sys_socket.c: Check that sa_family_t works.
45617
45618 2009-05-18  Eric Blake  <ebb9@byu.net>
45619
45620         maint.mk: allow gnulib_dir in VPATH build
45621         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45622
45623 2009-05-15  Jim Meyering  <meyering@redhat.com>
45624
45625         maint.mk: Give gnulib_dir a default definition.
45626         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45627         Thus, most packages no longer need to specify this variable in cfg.mk
45628
45629 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45630
45631         rename.m4: fix typos that would make non-mingw cross-configure fail
45632         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45633
45634 2009-05-13  Eric Blake  <ebb9@byu.net>
45635
45636         mmap-anon: avoid out-of-order autoconf expansion
45637         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45638         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45639         * modules/memchr-tests (Depends-on): Add extensions.
45640         * modules/memchr2-tests (Depends-on): Add extensions.
45641         * modules/memcmp-tests (Depends-on): Add extensions.
45642         * modules/memmem-tests (Depends-on): Add extensions.
45643         * modules/memrchr-tests (Depends-on): Add extensions.
45644
45645 2009-05-13  Bruno Haible  <bruno@clisp.org>
45646
45647         Make some tests ISO C 99 compliant.
45648         * tests/zerosize-ptr.h: New file.
45649         * tests/test-memchr.c: Include zerosize-ptr.h.
45650         (main): Use a zero-size object pointer instead of NULL.
45651         * tests/test-memchr2.c: Include zerosize-ptr.h.
45652         (main): Use a zero-size object pointer instead of NULL.
45653         * tests/test-memcmp.c: Include zerosize-ptr.h.
45654         (main): Use a zero-size object pointer instead of NULL.
45655         * tests/test-memmem.c: Include zerosize-ptr.h.
45656         (main): Use a zero-size object pointer instead of NULL.
45657         * tests/test-memrchr.c: Include zerosize-ptr.h.
45658         (main): Use a zero-size object pointer instead of NULL.
45659         * modules/memchr-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         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45664         m4/mmap-anon.m4.
45665         (Depends-on): Add getpagesize.
45666         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45667         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45668         m4/mmap-anon.m4.
45669         (Depends-on): Add getpagesize.
45670         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45671         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45672         m4/mmap-anon.m4.
45673         (Depends-on): Add getpagesize.
45674         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45675         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45676         m4/mmap-anon.m4.
45677         (Depends-on): Add getpagesize.
45678         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45679
45680 2009-05-12  Bruno Haible  <bruno@clisp.org>
45681
45682         Tests for module 'alignof'.
45683         * modules/alignof-tests: New file.
45684         * tests/test-alignof.c: New file.
45685
45686 2009-05-12  Bruno Haible  <bruno@clisp.org>
45687
45688         Fix alignof macro.
45689         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45690         vendor compilers that are always correct.
45691
45692 2009-05-12  Bruno Haible  <bruno@clisp.org>
45693
45694         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45695         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45696         not whether its fully works.
45697
45698 2009-05-12  Bruno Haible  <bruno@clisp.org>
45699
45700         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45701
45702 2009-05-12  Jim Meyering  <meyering@redhat.com>
45703
45704         * top/maint.mk: Adjust backslash alignment.
45705
45706 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45707
45708         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45709
45710 2009-05-11  Eric Blake  <ebb9@byu.net>
45711
45712         argp: avoid undefined behavior
45713         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45714         macros.
45715
45716 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45717
45718         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45719         user.name to prevent git commit from complaining.
45720
45721 2009-05-10  Bruno Haible  <bruno@clisp.org>
45722
45723         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45724         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45725         it rewrites every file name only once.
45726         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45727
45728 2009-05-08  Bruno Haible  <bruno@clisp.org>
45729
45730         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45731         instead of 'max'.
45732
45733 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45734
45735         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45736         sockaddr_storage test.
45737
45738 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45739
45740         * modules/sys_socket (Makefile.am): Substitute
45741         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45742         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45743         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45744         * tests/test-sys_socket.c: Check sockaddr_storage.
45745
45746 2009-05-08  Bruno Haible  <bruno@clisp.org>
45747
45748         New module 'alignof'.
45749         * lib/alignof.h: New file.
45750         * modules/alignof: New file.
45751
45752 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45753             Bruno Haible  <bruno@clisp.org>
45754
45755         Fix test-file-has-acl on FreeBSD.
45756         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45757         mask is implicitly added.
45758         * tests/test-file-has-acl.c: Include <signal.h>.
45759         (main): Terminate the test after 5 seconds.
45760         * modules/acl-tests (configure.ac): Check for alarm function.
45761
45762 2009-05-04  Bruno Haible  <bruno@clisp.org>
45763
45764         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45765         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45766         * modules/errno (configure.ac): Drop AC_REQUIRE.
45767         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45768         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45769
45770 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45771
45772         * modules/glob-tests: New module.
45773         * tests/test-glob.c: Add.
45774
45775 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45776
45777         * modules/fnmatch-tests: New module.
45778         * tests/test-fnmatch.c: Add.
45779
45780 2009-05-04  Eric Blake  <ebb9@byu.net>
45781
45782         maint: make the new no-submodule-changes rule VPATH-safe
45783         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45784
45785 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45786             Bruno Haible  <bruno@clisp.org>
45787
45788         acl: Fix infinite loop on FreeBSD.
45789         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45790         of return value from acl_get_entry.
45791         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45792         Likewise.
45793
45794 2009-05-03  Bruno Haible  <bruno@clisp.org>
45795
45796         * lib/acl-internal.h (acl_entries): Clarify return value.
45797         * lib/acl_entries.c (acl_entries): Likewise.
45798
45799 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45800
45801         Bug fix in acl module.
45802         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45803
45804 2009-05-03  Bruno Haible  <bruno@clisp.org>
45805
45806         Create gperf-generated file in the source dir, not in the build dir.
45807         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45808         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45809         * modules/unicase/locale-language (unicase/locale-languages.h):
45810         Likewise.
45811         * modules/unicase/special-casing (unicase/special-casing-table.h):
45812         Likewise.
45813         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45814         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45815         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45816         Reported by Ralf Wildenhues.
45817
45818 2009-05-03  Bruno Haible  <bruno@clisp.org>
45819
45820         * modules/fnmatch (Description, configure.ac): Taken from
45821         fnmatch-posix.
45822         * modules/fnmatch-posix: Turn into a symbolic reference to the
45823         'fnmatch' module, and deprecate.
45824         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45825
45826 2009-05-03  Bruno Haible  <bruno@clisp.org>
45827
45828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45829         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45830         Reported by Ralf Wildenhues.
45831
45832 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45833
45834         * m4/fnmatch.m4: Fix fnmatch re-define.
45835
45836 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45837
45838         priv-set: new module and tests; adapt write-any-file
45839         * lib/priv-set.c: New file.
45840         * lib/priv-set.h: New file.
45841         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45842         * lib/write-any-file.c: Simplify by using priv-set module.
45843         * m4/priv-set.m4: New file.
45844         * modules/priv-set: New file.
45845         * modules/unlinkdir: Add dependency on priv-set module.
45846         * modules/write-any-file: Likewise.
45847
45848         Tests for module 'priv-set'.
45849         * modules/priv-set-tests: New file.
45850         * tests/test-priv-set.c: New file.
45851
45852 2009-05-03  Jim Meyering  <meyering@redhat.com>
45853             Bruno Haible  <bruno@clisp.org>
45854
45855         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45856         use the converted UTF-8 variant of the name instead.
45857
45858 2009-05-03  Jim Meyering  <meyering@redhat.com>
45859
45860         tests: tighten some getdate tests
45861         * tests/test-getdate.c (main): Tighten tests: require equality,
45862         not just greater than.  Set TZ envvar to UTC0.
45863
45864 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45865
45866         getdate: correctly interpret "next monday" when run on a Monday
45867         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45868         that e.g., "next tues" (when run on a tuesday) results in a date
45869         that is one week in the future, and not today's date.
45870         I.e., add a week when the wday is the same as the current one.
45871         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45872         and earlier by Martin Bernreuther and Jan Minář.
45873         * tests/test-getdate.c (main): Check that "next DAY" is always in
45874         the future and that "last DAY" is always in the past.
45875
45876 2009-05-02  Jim Meyering  <meyering@redhat.com>
45877
45878         build: ensure that a release build fails when a submodule is unclean
45879         * top/maint.mk (no-submodule-changes): New rule.
45880         (alpha beta major): Depend on it.
45881
45882 2009-05-02  Bruno Haible  <bruno@clisp.org>
45883
45884         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45885         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45886         shell variable gl_fnmatch_required to detect which variant is
45887         requested.
45888         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45889         gl_FUNC_FNMATCH_POSIX.
45890         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45891         exclude fnmatch-posix.
45892
45893 2009-05-02  Bruno Haible  <bruno@clisp.org>
45894
45895         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45896         * modules/mbsrtowcs (License): Change to LGPLv2+.
45897         * modules/strnlen1 (License): Likewise.
45898         Reported by Simon Josefsson.
45899
45900 2009-05-02  Bruno Haible  <bruno@clisp.org>
45901
45902         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45903         "cross".
45904         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45905         gnulib-tool was called with option --source-base=lib.
45906
45907 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45908
45909         Use automake *-local hooks without commands, for extensibility.
45910         * modules/localcharset (Makefile.am): Rename install-exec-local
45911         rule to install-exec-localcharset, and make it a prerequisite of
45912         install-exec-local.  Likewise, rename the uninstall-local rule to
45913         uninstall-localcharset, and make it a prerequisite of the former.
45914
45915 2009-05-01  Bruno Haible  <bruno@clisp.org>
45916
45917         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45918         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45919         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45921         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45922         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45923         m4/locale-zh.m4, m4/codeset.m4.
45924
45925         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45926         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45927         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45928         m4/locale-zh.m4.
45929
45930         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45931         REPLACE_WCRTOMB if mbstate_t must be replaced.
45932         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45933         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45934
45935 2009-05-01  Bruno Haible  <bruno@clisp.org>
45936
45937         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45938         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45939         dngettext, dcngettext, textdomain, bindtextdomain,
45940         bind_textdomain_codeset): Undefine before redefining.
45941
45942 2009-04-30  Bruno Haible  <bruno@clisp.org>
45943
45944         Fix bug introduced on 2009-04-25.
45945         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45946         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45947         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45948         is defined.
45949         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45950         is defined.
45951         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45952         is defined.
45953         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45954
45955 2009-04-28  Bruno Haible  <bruno@clisp.org>
45956
45957         Comment tweaks.
45958         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45959         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45960         * lib/unicase.h (u*_casexfrm): Likewise.
45961         Reported by Paolo Bonzini.
45962
45963 2009-04-28  Bruno Haible  <bruno@clisp.org>
45964
45965         Fix a compilation error.
45966         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45967         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45968         Reported by Jim Meyering.
45969
45970 2009-04-27  Bruno Haible  <bruno@clisp.org>
45971
45972         New module 'libunistring'.
45973         * modules/libunistring: New file.
45974         * m4/libunistring.m4: New file.
45975         * MODULES.html.sh (Unicode string functions): Add it.
45976
45977 2009-04-27  Eric Blake  <ebb9@byu.net>
45978
45979         maint.mk: allow package-specific header to provide <config.h>
45980         * top/maint.mk (sc_require_config_h): New variable.
45981         (sc_require_config_h, sc_require_config_h_first): Use it.
45982
45983 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45984
45985         * top/maint.mk (sc_avoid_if_before_free): Except
45986         useless-if-before-free script.
45987
45988 2009-04-27  Eric Blake  <ebb9@byu.net>
45989
45990         maintainer-makefile: depend on all required helper scripts
45991         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45992         useless-if-before-free.
45993         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45994         version, rather than assuming gnulib checkout is available.
45995         Reported by Simen Josefsson.
45996
45997 2009-04-26  Bruno Haible  <bruno@clisp.org>
45998
45999         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
46000         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
46001         "../" or "..".
46002
46003 2009-04-26  Bruno Haible  <bruno@clisp.org>
46004
46005         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
46006         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
46007         AC_LIB_HAVE_LINKFLAGS.
46008
46009 2009-04-26  Bruno Haible  <bruno@clisp.org>
46010
46011         Simplify calling convention of u*_conv_from_encoding.
46012         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
46013         u32_conv_from_encoding): Expect a resultbuf argument and return the
46014         result directly as a pointer.
46015         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
46016         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
46017         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
46018         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
46019         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
46020         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46021         Update.
46022         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
46023         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
46024         * lib/vasnprintf.c (VASNPRINTF): Update.
46025         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
46026         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
46027         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
46028         * NEWS: Mention the change.
46029
46030 2009-04-26  Bruno Haible  <bruno@clisp.org>
46031
46032         Simplify calling convention of u*_conv_to_encoding.
46033         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46034         u32_conv_to_encoding): Expect a resultbuf argument and return the
46035         result directly as a pointer.
46036         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46037         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
46038         freeing scaled_offsets if mem_iconveha failed.
46039         * lib/unicase/u-casexfrm.h (FUNC): Update.
46040         * lib/uninorm/u-normxfrm.h (FUNC): Update.
46041         * lib/vasnprintf.c (VASNPRINTF): Update.
46042         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
46043         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
46044         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
46045         * NEWS: Mention the change.
46046
46047 2009-04-26  Bruno Haible  <bruno@clisp.org>
46048
46049         Avoid test failures on AIX and OSF/1.
46050         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
46051         malloc(0).
46052         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46053         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46054         Likewise.
46055         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
46056         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
46057         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
46058         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
46059         * doc/posix-functions/malloc.texi: Document the portability problem
46060         related to malloc(0).
46061
46062 2009-04-26  Bruno Haible  <bruno@clisp.org>
46063
46064         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
46065         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
46066         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
46067
46068 2009-04-25  Bruno Haible  <bruno@clisp.org>
46069
46070         Avoid link error when creating a namespace clean library.
46071         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
46072         as macro with arguments if already defined as an alias.
46073         * lib/signbitf.c (gl_signbitf): Don't undefine.
46074         * lib/signbitd.c (gl_signbitd): Don't undefine.
46075         * lib/signbitl.c (gl_signbitl): Don't undefine.
46076
46077 2009-04-25  Jim Meyering  <meyering@redhat.com>
46078
46079         vc-list-files: fix another quoting bug
46080         * build-aux/vc-list-files: Avoid sed backslash expansion
46081         of pathological directory names.
46082
46083 2009-04-25  Eric Blake  <ebb9@byu.net>
46084
46085         vc-list-files: fix shell quoting error
46086         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
46087         timestamp.
46088
46089 2009-04-25  Jim Meyering  <meyering@redhat.com>
46090
46091         vc-list-files: restore lost functionality with subdir argument
46092         * build-aux/vc-list-files: When given a non-"." sub-directory
46093         argument, substitute the $dir/ prefix back onto each resulting name.
46094         Otherwise, coreutils' root_tests check would fail.
46095
46096 2009-04-24  Eric Blake  <ebb9@byu.net>
46097
46098         vc-list-files: ignore git symlinks
46099         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
46100         than ls-files, to ignore git symlinks.
46101
46102         maint.mk: import improvements from m4
46103         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
46104         (move_if_change): Delete unused macro.
46105         (news-date-check, vc-diff-check): Support VPATH builds.
46106         (announcement): Likewise.  Split --bootstrap-tools list...
46107         (boostrap-tools): ...into separate list, which can be overridden
46108         in cfg.mk.
46109         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
46110         requiring dependency on useless-if-before-free module.
46111         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
46112         Support VPATH builds.
46113
46114 2009-04-24  Jim Meyering  <meyering@redhat.com>
46115
46116         maint.mk: remove coreutils-specific rules and variables
46117         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
46118         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
46119         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
46120
46121         maint.mk: remove obsolete rule
46122         * top/maint.mk (rel-check): Remove rule.
46123         (WGET, WGETFLAGS): Remove now-unused variables.
46124
46125 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46126
46127         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
46128         consistency.
46129
46130         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
46131         '$(PATH_SEPARATOR)' instead of ':'.
46132
46133 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46134
46135         * lib/getopt1.c (main): Use 'const' for static array.
46136
46137 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46138
46139         * top/maint.mk: Sync with coreutils.
46140         * NEWS: Explain incompatibilities.
46141
46142 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46143             Bruno Haible  <bruno@clisp.org>
46144
46145         Fix cross-compilation results.
46146         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46147         statement, as third argument of AC_TRY_RUN.
46148         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46149         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46150         Likewise.
46151         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46152         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46153         Likewise.
46154         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46155         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46156         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46157
46158 2009-04-20  Bruno Haible  <bruno@clisp.org>
46159
46160         Avoid test failure on mingw.
46161         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46162
46163 2009-04-20  Bruno Haible  <bruno@clisp.org>
46164
46165         Avoid compilation error on mingw.
46166         * modules/localename-tests (Depends-on): Add locale.
46167
46168 2009-04-19  Bruno Haible  <bruno@clisp.org>
46169
46170         Support for building a shared library on Windows platforms.
46171         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46172         (main): Test the presence of UNINORM_NFC here.
46173         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46174         (main): Test the presence of UNINORM_NFD here.
46175         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46176         (main): Test the presence of UNINORM_NFKC here.
46177         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46178         (main): Test the presence of UNINORM_NFKD here.
46179
46180 2009-04-19  Bruno Haible  <bruno@clisp.org>
46181
46182         Avoid a compiler warning.
46183         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46184         Change type of variable 'sequence'.
46185
46186 2009-04-19  Bruno Haible  <bruno@clisp.org>
46187
46188         * modules/configmake (Makefile.am): When the contents of configmake.h
46189         does not change, arrange to preserve its modification time.
46190
46191 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46192
46193         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46194         gettext domain.
46195
46196 2009-04-16  Jim Meyering  <meyering@redhat.com>
46197
46198         useless-if-before-free: improve conversion code
46199         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46200         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46201
46202 2009-04-14  Bruno Haible  <bruno@clisp.org>
46203
46204         * modules/fcntl (Depends-on): Add extensions.
46205         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46206
46207 2009-04-12  Ben Pfaff  <blp@gnu.org>
46208
46209         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46210         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46211
46212 2009-03-20  Ben Pfaff  <blp@gnu.org>
46213
46214         Make rename replace existing destinations on Windows.
46215         * m4/rename.m4: Add test for Mingw.
46216         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46217         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46218         * doc/posix-functions/rename.texi: Document.
46219
46220 2009-04-10  Bruno Haible  <bruno@clisp.org>
46221
46222         New include file "iconveh.h".
46223         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46224         * lib/striconveh.h: Include it.
46225         (enum iconv_ilseq_handler): Remove definition.
46226         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46227         striconveh.h.
46228         * lib/striconveha.c: Include striconveh.h.
46229         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46230         * modules/striconveh (Files): Add lib/iconveh.h.
46231         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46232         lib/striconveh.h.
46233
46234 2009-04-10  Bruno Haible  <bruno@clisp.org>
46235
46236         * lib/uniconv.h: Update comment.
46237
46238 2009-04-10  Bruno Haible  <bruno@clisp.org>
46239
46240         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46241         always.
46242         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46243         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46244         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46245         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46246         "unistring-notinline.h", so that the function gets defined always.
46247         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46248         * lib/unistr/u8-uctomb.c: Likewise.
46249         * lib/unistr/u16-mbtouc.c: Likewise.
46250         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46251         * lib/unistr/u16-uctomb.c: Likewise.
46252         * lib/unistr/u32-mbtouc.c: Likewise.
46253         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46254         * lib/unistr/u32-uctomb.c: Likewise.
46255
46256 2009-04-10  Bruno Haible  <bruno@clisp.org>
46257
46258         Mark 'utime' obsolete.
46259         * modules/utime (Status, Notice): New sections.
46260         Suggested by Jim Meyering.
46261
46262         Fix cross-compile guess for utime test.
46263         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46264         autoconf.
46265         * doc/posix-functions/utime.texi: Give more precisions.
46266         Reported by Jan <ipif@ymail.com>.
46267
46268 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46269
46270         filevercmp: correct today's change
46271         * lib/filevercmp.c: Also handle coreutils' test inputs.
46272         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46273
46274         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46275         for reporting it.
46276         * lib/filevercmp.c: Special handle for "", "." and "..".
46277         * tests/test-filevercmp.c: Enlarge the set suite.
46278
46279 2009-04-07  Jim Meyering  <meyering@redhat.com>
46280
46281         useless-if-before-free: show how to remove braced useless free, too
46282         * build-aux/useless-if-before-free: still only in a comment, though.
46283
46284 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46285
46286         maint.mk: import changes to syntax-check macros from coreutils
46287         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46288         Use them in the relevant macros.
46289
46290 2009-04-06  Bruno Haible  <bruno@clisp.org>
46291
46292         Fix unportable use of bit-fields.
46293         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46294         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46295         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46296
46297 2009-04-06  Bruno Haible  <bruno@clisp.org>
46298
46299         Avoid test failures on AIX and OSF/1.
46300         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46301         that malloc(0) = NULL.
46302         * tests/unicase/test-u8-tolower.c (check): Likewise.
46303         * tests/unicase/test-u8-totitle.c (check): Likewise.
46304         * tests/unicase/test-u8-toupper.c (check): Likewise.
46305         * tests/unicase/test-u16-casefold.c (check): Likewise.
46306         * tests/unicase/test-u16-tolower.c (check): Likewise.
46307         * tests/unicase/test-u16-totitle.c (check): Likewise.
46308         * tests/unicase/test-u16-toupper.c (check): Likewise.
46309         * tests/unicase/test-u32-casefold.c (check): Likewise.
46310         * tests/unicase/test-u32-tolower.c (check): Likewise.
46311         * tests/unicase/test-u32-totitle.c (check): Likewise.
46312         * tests/unicase/test-u32-toupper.c (check): Likewise.
46313         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46314         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46315         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46316         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46317         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46318         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46319         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46320         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46321         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46322         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46323         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46324         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46325
46326 2009-04-05  Bruno Haible  <bruno@clisp.org>
46327
46328         Work around an autoconf limitation.
46329         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46330         comment line if it would be longer than 3 KB.
46331
46332 2009-04-05  Bruno Haible  <bruno@clisp.org>
46333
46334         Avoid test failure with libiconv-1.13.
46335         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46336         of the expected test results.
46337
46338 2009-04-05  Bruno Haible  <bruno@clisp.org>
46339
46340         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46341         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46342         that it should be installed.
46343
46344 2009-04-05  Bruno Haible  <bruno@clisp.org>
46345
46346         * gnulib-tool: New option --copy-file.
46347         (func_usage): Document it.
46348         (func_dest_tmpfilename): Moved out of func_import.
46349         (func_add_file, func_update_file): New functions, extracted from
46350         func_import.
46351         (func_import): Update.
46352
46353 2009-04-05  Karl Berry  <karl@gnu.org>
46354
46355         * README: prominently mention gnulib-tool.
46356         Rearrange sections so getting the code is near the top.
46357
46358 2009-04-05  Bruno Haible  <bruno@clisp.org>
46359
46360         * lib/unicase.h: Mention u*_cmp2.
46361         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46362         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46363         * lib/unicase/ulc-casecmp.c: Likewise.
46364         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46365         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46366         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46367         unistr/u8-cmp.
46368         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46369         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46370         unistr/u16-cmp.
46371         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46372         unistr/u32-cmp.
46373
46374         * lib/uninorm.h: Mention u*_cmp2.
46375         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46376         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46377         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46378         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46379         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46380         unistr/u8-cmp.
46381         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46382         unistr/u16-cmp.
46383         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46384         unistr/u32-cmp.
46385
46386         New module 'unistr/u32-cmp2'.
46387         * lib/unistr/u32-cmp2.c: New file.
46388         * modules/unistr/u32-cmp2: New file.
46389
46390         New module 'unistr/u16-cmp2'.
46391         * lib/unistr/u16-cmp2.c: New file.
46392         * modules/unistr/u16-cmp2: New file.
46393
46394         New module 'unistr/u8-cmp2'.
46395         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46396         * lib/unistr/u8-cmp2.c: New file.
46397         * lib/unistr/u-cmp2.h: New file.
46398         * modules/unistr/u8-cmp2: New file.
46399
46400 2009-04-05  Bruno Haible  <bruno@clisp.org>
46401
46402         * lib/unictype.h (uc_property_is_valid): New macro.
46403         * tests/unictype/test-pr_byname.c (main): Use it.
46404
46405         * lib/unistr.h: Doc fixes.
46406         * lib/uniconv.h: Doc fixes.
46407         * lib/unictype.h: Doc fixes.
46408
46409 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46410
46411         Port coreutils 7.2 to Solaris 8.
46412
46413         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46414         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46415         for Solaris 8.  This is a bit of a hack, as it means it's the
46416         caller's responsibility to add -lnsl if needed, but most likely it
46417         won't be needed since only getaddrinfo uses this and getaddrinfo
46418         isn't needed on Solaris 8.
46419
46420         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46421         problem to Solaris 8 encountered with coreutils 7.2, which
46422         resulted in a message "fnmatch.c:292: warning: passing argument 4
46423         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46424         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46425
46426 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46427
46428         * m4/ld-version-script.m4: Add FIXME comment.
46429
46430 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46431
46432         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46433         SOVERSION variable.
46434
46435 2009-04-02  Bruno Haible  <bruno@clisp.org>
46436
46437         * Makefile (info, html, dvi, pdf): Combine the rules.
46438         Suggested by Jim Meyering.
46439
46440 2009-04-01  Bruno Haible  <bruno@clisp.org>
46441
46442         * Makefile (info, html, dvi, pdf): New targets.
46443         Reported by Reuben Thomas <rrt@sc3d.org>.
46444
46445 2009-04-01  Bruno Haible  <bruno@clisp.org>
46446
46447         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46448         can be put into PATH.
46449         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46450
46451 2009-04-01  Bruno Haible  <bruno@clisp.org>
46452
46453         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46454
46455 2009-04-01  Bruno Haible  <bruno@clisp.org>
46456
46457         Rename module 'visibility'.
46458         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46459         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46460         * doc/gnulib.texi: Update.
46461         * MODULES.html.sh (Misc): Update.
46462         * NEWS: Mention the change.
46463
46464 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46465
46466         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46467         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46468         Eric Blake <ebb9@byu.net> for review.
46469         * MODULES.html.sh: Add lib-msvc-compat.
46470         * doc/gnulib.texi: Link to new section.
46471         * m4/ld-output-def.m4: New file.
46472         * doc/ld-output-def.texi: New file.
46473
46474 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46475
46476         Rename ld-version-script to lib-symbol-versions.  Suggested by
46477         Bruno Haible <bruno@clisp.org>.
46478         * modules/ld-version-script: Renamed to lib-symbol-versions.
46479         * doc/ld-version-script.texi: Fix module name.
46480         * MODULES.html.sh: Add lib-symbol-versions.
46481
46482 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46483
46484         * modules/u64-tests: New file.
46485         * tests/test-u64.c: New file.
46486
46487 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46488
46489         * MODULES.html.sh: Mention u64.
46490         * modules/u64: New module.
46491         * modules/crypto/sha512: Depend on u64 module instead of providing
46492         u64.h.
46493
46494 2009-03-27  Eric Blake  <ebb9@byu.net>
46495
46496         test-strerror: make debugging EAI_SYSTEM easier
46497         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46498         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46499         failure was EAI_SYSTEM.
46500
46501 2009-03-25  Bruno Haible  <bruno@clisp.org>
46502
46503         Fix a problem with --enable-relocatable on Solaris 7.
46504         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46505         since 2008-02-24.
46506
46507 2009-03-25  Eric Blake  <ebb9@byu.net>
46508
46509         test-sockets: avoid gcc warning
46510         * tests/test-sockets.c (main): Silence compiler warning.
46511
46512 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46513
46514         New modules nproc, pthread, contributed by Glen Lenker.
46515
46516         * MODULES.html.sh: Add pthread, nproc.
46517         * lib/nproc.c: New file.
46518         * lib/nproc.h: New file.
46519         * lib/pthread.in.h: New file.
46520         * m4/pthread.m4: New file.
46521         * modules/nproc: New file.
46522         * modules/pthread: New file.
46523
46524 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46525
46526         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46527         New variable.
46528
46529 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46530
46531         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46532         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46533         * tests/test-filevercmp.c: Add tests for backup suffixes.
46534
46535 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46536
46537         * modules/stdlib (Depends-on): Add stdint, needed when defining
46538         struct random_data on, for example, HP-UX 10.20.  Reported by
46539         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46540
46541 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46542
46543         * lib/readline.c (readline): Call fflush on stdout after printing
46544         prompt.
46545
46546 2009-03-20  Bruno Haible  <bruno@clisp.org>
46547
46548         Remove dependency from 'close' module to -lws2_32 on native Windows.
46549         * lib/close-hook.h: New file.
46550         * lib/close-hook.c: New file.
46551         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46552         w32sock.h.
46553         (_gl_close_fd_maybe_socket): Remove function.
46554         (rpl_close): Invoke execute_all_close_hooks instead of
46555         _gl_close_fd_maybe_socket.
46556         * lib/sockets.c: Include close-hook.h, w32sock.h.
46557         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46558         (close_sockets_hook): New variable.
46559         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46560         (gl_sockets_cleanup): Unregister it.
46561         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46562         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46563         * modules/close-hook: New file.
46564         * modules/close (Files): Remove lib/w32sock.h.
46565         (Depends-on): Add close-hook.
46566         (Link): Remove section.
46567         * modules/sockets (Files): Add lib/w32sock.h.
46568         (Depends-on): Add close-hook.
46569         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46570         invocation.
46571         * NEWS: Mention that LIB_CLOSE is gone.
46572
46573 2009-03-23  Eric Blake  <ebb9@byu.net>
46574
46575         signal-tests: test previous patch
46576         * tests/test-signal.c: New file.
46577         * modules/signal-tests: Likewise.
46578
46579         signal.h: always support 'volatile sig_atomic_t'
46580         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46581         (gl_SIGNAL_H_DEFAULTS): Add a default.
46582         * modules/signal (Makefile.am): Substitute if needed.
46583         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46584         users can blindly add volatile.
46585         * doc/posix-headers/signal.texi (signal.h): Document it.
46586         Reported by Matthew Woehlke.
46587
46588 2009-03-23  Jim Meyering  <meyering@redhat.com>
46589
46590         pathmax: PATH_MAX: use pathconf only when available
46591         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46592         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46593         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46594         This avoids a link failure in a PSP cross-compilation environment
46595         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46596
46597         * lib/vasnprintf.c (divide): Fix typo in comment.
46598
46599 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46600
46601         * gnulib-tool (func_filter_filelist): Fix comment.
46602
46603 2009-03-20  Bruno Haible  <bruno@clisp.org>
46604
46605         Make sockets.h self-contained.
46606         * lib/sockets.c: Include sockets.h first.
46607         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46608
46609 2009-03-19  Eric Blake  <ebb9@byu.net>
46610
46611         doc: mention more functions added in cygwin 1.7.0
46612         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46613         addition.
46614         * doc/posix-functions/log2f.texi: Likewise.
46615
46616 2009-03-19  Jim Meyering  <meyering@redhat.com>
46617
46618         fsusage: avoid syntax error due to statement-before-declaration
46619         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46620         after all declarations.  Reported by Matthew Woehlke in
46621         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46622
46623 2009-03-18  Eric Blake  <ebb9@byu.net>
46624
46625         build-aux/compile: sync from automake
46626         * build-aux/compile: New file, from automake.
46627         * config/srclist.txt: Mention build-aux/compile.
46628
46629 2009-03-17  Bruno Haible  <bruno@clisp.org>
46630
46631         * lib/git-merge-changelog.c: Fix typo in comment.
46632         Reported by Reuben Thomas <rrt@sc3d.org>.
46633
46634 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46635
46636         * m4/regex.m4: update and improve help for
46637         --without-included-regex.
46638
46639 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46640
46641         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46642         failure on missing include files.
46643
46644 2009-03-17  Eric Blake  <ebb9@byu.net>
46645
46646         doc: mention more functions added in cygwin 1.7.0
46647         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46648         addition.
46649         * doc/posix-functions/fwscanf.texi: Likewise.
46650         * doc/posix-functions/swprintf.texi: Likewise.
46651         * doc/posix-functions/swscanf.texi: Likewise.
46652         * doc/posix-functions/vfwprintf.texi: Likewise.
46653         * doc/posix-functions/vfwscanf.texi: Likewise.
46654         * doc/posix-functions/vswprintf.texi: Likewise.
46655         * doc/posix-functions/vswscanf.texi: Likewise.
46656         * doc/posix-functions/vwprintf.texi: Likewise.
46657         * doc/posix-functions/vwscanf.texi: Likewise.
46658         * doc/posix-functions/wcscasecmp.texi: Likewise.
46659         * doc/posix-functions/wcsdup.texi: Likewise.
46660         * doc/posix-functions/wcsftime.texi: Likewise.
46661         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46662         * doc/posix-functions/wprintf.texi: Likewise.
46663         * doc/posix-functions/wscanf.texi: Likewise.
46664         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46665
46666 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46667
46668         maint.mk: really add $(AM_MAKEFLAGS)
46669         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46670         was inadvertently omitted in the last commit.
46671         Spotted by Bruno Haible.
46672
46673         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46674         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46675         $(AM_MAKEFLAGS)' rather than plain `make'.
46676
46677         gnulib-tool: execute $MAKE not make
46678         * gnulib-tool: Default $MAKE to 'make'.
46679         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46680         than make.  Initialize $MAKE in the do-autobuild script.
46681
46682         gnulib-tool: use $MAKE not make in generated files
46683         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46684         make, in generated files.  Initialize $MAKE in the do-autobuild
46685         script.
46686
46687         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46688
46689         GNUmakefile: disable parallelism only for multiple, recursive targets
46690         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46691         additions in the Makefile.
46692         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46693         by Automake.
46694         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46695         are listed on the command line and at least one of them is
46696         listed in $(ALL_RECURSIVE_TARGETS).
46697
46698 2009-03-14  Bruno Haible  <bruno@clisp.org>
46699
46700         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46701         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46702         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46703         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46704         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46705         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46706         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46707         unistr/u8-uctomb.
46708         * modules/unistr/u8-strchr (Depends-on): Likewise.
46709         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46710         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46711         unistr/u16-uctomb.
46712         * modules/unistr/u16-strchr (Depends-on): Likewise.
46713         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46714
46715 2009-03-12  Bruno Haible  <bruno@clisp.org>
46716
46717         Work around select() bug on Interix 3.5.
46718         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46719         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46720         * m4/select.m4: New file.
46721         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46722         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46723         * modules/select (Files): Add m4/select.m4.
46724         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46725         * modules/nanosleep (Depends-on): Add select.
46726         * modules/poll (Depends-on): Likewise.
46727         * doc/posix-functions/select.texi: Mention the Interix bug.
46728         Reported by Markus Duft <mduft@gentoo.org>.
46729
46730         * lib/select.c: Renamed from lib/winsock-select.c.
46731         * modules/select (Files): Add lib/select.c, remove
46732         lib/winsock-select.c.
46733         (configure.ac): Update.
46734
46735 2009-03-12  Jim Meyering  <meyering@redhat.com>
46736
46737         avoid gcc warnings about unused macro definitions
46738         * lib/readtokens.c (STREQ): Remove unused definition.
46739         * lib/xmalloc.c (SIZE_MAX): Likewise.
46740         * lib/openat-die.c (N_): Likewise.
46741         * lib/mountlist.c (SIZE_MAX): Remove definition.
46742         Instead, include <stdint.h>.
46743         * lib/readutmp.c: Likewise.
46744         * modules/readutmp (Depends-on): Add stdint.
46745         * modules/mountlist (Depends-on): Add stdint.
46746         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46747
46748 2009-03-10  Bruno Haible  <bruno@clisp.org>
46749
46750         Tests for module 'mbmemcasecoll'.
46751         * modules/mbmemcasecoll-tests: New file.
46752         * tests/test-mbmemcasecoll1.sh: New file.
46753         * tests/test-mbmemcasecoll2.sh: New file.
46754         * tests/test-mbmemcasecoll3.sh: New file.
46755         * tests/test-mbmemcasecoll.c: New file.
46756
46757         New module 'mbmemcasecoll'.
46758         * lib/mbmemcasecoll.h: New file.
46759         * lib/mbmemcasecoll.c: New file.
46760         * modules/mbmemcasecoll: New file.
46761
46762         * tests/test-mbmemcasecmp.h: New file, extracted from
46763         tests/test-mbmemcasecmp.c.
46764         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46765         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46766         (main): Update.
46767         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46768
46769 2009-03-09  Bruno Haible  <bruno@clisp.org>
46770
46771         Tests for module 'mbmemcasecmp'.
46772         * modules/mbmemcasecmp-tests: New file.
46773         * tests/test-mbmemcasecmp1.sh: New file.
46774         * tests/test-mbmemcasecmp2.sh: New file.
46775         * tests/test-mbmemcasecmp3.sh: New file.
46776         * tests/test-mbmemcasecmp.c: New file.
46777
46778         New module 'mbmemcasecmp'.
46779         * lib/mbmemcasecmp.h: New file.
46780         * lib/mbmemcasecmp.c: New file.
46781         * modules/mbmemcasecmp: New file.
46782
46783 2009-03-09  Bruno Haible  <bruno@clisp.org>
46784
46785         Tests for module 'unicase/ulc-casecoll'.
46786         * modules/unicase/ulc-casecoll-tests: New file.
46787         * tests/unicase/test-ulc-casecoll1.sh: New file.
46788         * tests/unicase/test-ulc-casecoll2.sh: New file.
46789         * tests/unicase/test-ulc-casecoll.c: New file.
46790
46791         New module 'unicase/ulc-casecoll'.
46792         * lib/unicase.h (ulc_casecoll): New declaration.
46793         * lib/unicase/ulc-casecoll.c: New file.
46794         * modules/unicase/ulc-casecoll: New file.
46795
46796         New module 'unicase/ulc-casexfrm'.
46797         * lib/unicase.h (ulc_casexfrm): New declaration.
46798         * lib/unicase/ulc-casexfrm.c: New file.
46799         * modules/unicase/ulc-casexfrm: New file.
46800
46801 2009-03-09  Bruno Haible  <bruno@clisp.org>
46802
46803         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46804         invocations.
46805
46806         * m4/mbscasecmp.m4: Remove file.
46807         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46808         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46809
46810         * m4/mbscasestr.m4: Remove file.
46811         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46812         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46813
46814         * m4/mbschr.m4: Remove file.
46815         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46816         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46817
46818         * m4/mbscspn.m4: Remove file.
46819         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46820         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46821
46822         * m4/mbslen.m4: Remove file.
46823         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46824         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46825
46826         * m4/mbsncasecmp.m4: Remove file.
46827         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46828         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46829
46830         * m4/mbsnlen.m4: Remove file.
46831         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46832         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46833
46834         * m4/mbspbrk.m4: Remove file.
46835         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46836         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46837
46838         * m4/mbspcasecmp.m4: Remove file.
46839         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46840         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46841
46842         * m4/mbsrchr.m4: Remove file.
46843         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46844         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46845
46846         * m4/mbssep.m4: Remove file.
46847         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46848         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46849
46850         * m4/mbsspn.m4: Remove file.
46851         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46852         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46853
46854         * m4/mbsstr.m4: Remove file.
46855         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46856         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46857
46858         * m4/mbstok_r.m4: Remove file.
46859         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46860         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46861
46862         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46863
46864         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46865         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46866
46867         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46868
46869 2009-03-08  Bruno Haible  <bruno@clisp.org>
46870
46871         Tests for module 'unicase/ulc-casecmp'.
46872         * modules/unicase/ulc-casecmp-tests: New file.
46873         * tests/unicase/test-ulc-casecmp1.sh: New file.
46874         * tests/unicase/test-ulc-casecmp2.sh: New file.
46875         * tests/unicase/test-ulc-casecmp.c: New file.
46876
46877         New module 'unicase/ulc-casecmp'.
46878         * lib/unicase.h (ulc_casecmp): New declaration.
46879         * lib/unicase/ulc-casecmp.c: New file.
46880         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46881         'const SRC_UNIT *'.
46882         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46883         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46884         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46885         * modules/unicase/ulc-casecmp: New file.
46886
46887         Tests for module 'unicase/u32-is-cased'.
46888         * modules/unicase/u32-is-cased-tests: New file.
46889         * tests/unicase/test-u32-is-cased.c: New file.
46890
46891         Tests for module 'unicase/u16-is-cased'.
46892         * modules/unicase/u16-is-cased-tests: New file.
46893         * tests/unicase/test-u16-is-cased.c: New file.
46894
46895         Tests for module 'unicase/u8-is-cased'.
46896         * modules/unicase/u8-is-cased-tests: New file.
46897         * tests/unicase/test-u8-is-cased.c: New file.
46898         * tests/unicase/test-is-cased.h: New file.
46899
46900         New module 'unicase/u32-is-cased'.
46901         * lib/unicase/u32-is-cased.c: New file.
46902         * modules/unicase/u32-is-cased: New file.
46903
46904         New module 'unicase/u16-is-cased'.
46905         * lib/unicase/u16-is-cased.c: New file.
46906         * modules/unicase/u16-is-cased: New file.
46907
46908         New module 'unicase/u8-is-cased'.
46909         * lib/unicase/u8-is-cased.c: New file.
46910         * lib/unicase/u-is-cased.h: New file.
46911         * modules/unicase/u8-is-cased: New file.
46912
46913         Tests for module 'unicase/u32-is-casefolded'.
46914         * modules/unicase/u32-is-casefolded-tests: New file.
46915         * tests/unicase/test-u32-is-casefolded.c: New file.
46916
46917         Tests for module 'unicase/u16-is-casefolded'.
46918         * modules/unicase/u16-is-casefolded-tests: New file.
46919         * tests/unicase/test-u16-is-casefolded.c: New file.
46920
46921         Tests for module 'unicase/u8-is-casefolded'.
46922         * modules/unicase/u8-is-casefolded-tests: New file.
46923         * tests/unicase/test-u8-is-casefolded.c: New file.
46924         * tests/unicase/test-is-casefolded.h: New file.
46925
46926         New module 'unicase/u32-is-casefolded'.
46927         * lib/unicase/u32-is-casefolded.c: New file.
46928         * modules/unicase/u32-is-casefolded: New file.
46929
46930         New module 'unicase/u16-is-casefolded'.
46931         * lib/unicase/u16-is-casefolded.c: New file.
46932         * modules/unicase/u16-is-casefolded: New file.
46933
46934         New module 'unicase/u8-is-casefolded'.
46935         * lib/unicase/u8-is-casefolded.c: New file.
46936         * modules/unicase/u8-is-casefolded: New file.
46937
46938         Tests for module 'unicase/u32-is-titlecase'.
46939         * modules/unicase/u32-is-titlecase-tests: New file.
46940         * tests/unicase/test-u32-is-titlecase.c: New file.
46941
46942         Tests for module 'unicase/u16-is-titlecase'.
46943         * modules/unicase/u16-is-titlecase-tests: New file.
46944         * tests/unicase/test-u16-is-titlecase.c: New file.
46945
46946         Tests for module 'unicase/u8-is-titlecase'.
46947         * modules/unicase/u8-is-titlecase-tests: New file.
46948         * tests/unicase/test-u8-is-titlecase.c: New file.
46949         * tests/unicase/test-is-titlecase.h: New file.
46950
46951         New module 'unicase/u32-is-titlecase'.
46952         * lib/unicase/u32-is-titlecase.c: New file.
46953         * modules/unicase/u32-is-titlecase: New file.
46954
46955         New module 'unicase/u16-is-titlecase'.
46956         * lib/unicase/u16-is-titlecase.c: New file.
46957         * modules/unicase/u16-is-titlecase: New file.
46958
46959         New module 'unicase/u8-is-titlecase'.
46960         * lib/unicase/u8-is-titlecase.c: New file.
46961         * modules/unicase/u8-is-titlecase: New file.
46962
46963         Tests for module 'unicase/u32-is-lowercase'.
46964         * modules/unicase/u32-is-lowercase-tests: New file.
46965         * tests/unicase/test-u32-is-lowercase.c: New file.
46966
46967         Tests for module 'unicase/u16-is-lowercase'.
46968         * modules/unicase/u16-is-lowercase-tests: New file.
46969         * tests/unicase/test-u16-is-lowercase.c: New file.
46970
46971         Tests for module 'unicase/u8-is-lowercase'.
46972         * modules/unicase/u8-is-lowercase-tests: New file.
46973         * tests/unicase/test-u8-is-lowercase.c: New file.
46974         * tests/unicase/test-is-lowercase.h: New file.
46975
46976         New module 'unicase/u32-is-lowercase'.
46977         * lib/unicase/u32-is-lowercase.c: New file.
46978         * modules/unicase/u32-is-lowercase: New file.
46979
46980         New module 'unicase/u16-is-lowercase'.
46981         * lib/unicase/u16-is-lowercase.c: New file.
46982         * modules/unicase/u16-is-lowercase: New file.
46983
46984         New module 'unicase/u8-is-lowercase'.
46985         * lib/unicase/u8-is-lowercase.c: New file.
46986         * modules/unicase/u8-is-lowercase: New file.
46987
46988         Tests for module 'unicase/u32-is-uppercase'.
46989         * modules/unicase/u32-is-uppercase-tests: New file.
46990         * tests/unicase/test-u32-is-uppercase.c: New file.
46991
46992         Tests for module 'unicase/u16-is-uppercase'.
46993         * modules/unicase/u16-is-uppercase-tests: New file.
46994         * tests/unicase/test-u16-is-uppercase.c: New file.
46995
46996         Tests for module 'unicase/u8-is-uppercase'.
46997         * modules/unicase/u8-is-uppercase-tests: New file.
46998         * tests/unicase/test-u8-is-uppercase.c: New file.
46999         * tests/unicase/test-is-uppercase.h: New file.
47000
47001         New module 'unicase/u32-is-uppercase'.
47002         * lib/unicase/u32-is-uppercase.c: New file.
47003         * modules/unicase/u32-is-uppercase: New file.
47004
47005         New module 'unicase/u16-is-uppercase'.
47006         * lib/unicase/u16-is-uppercase.c: New file.
47007         * modules/unicase/u16-is-uppercase: New file.
47008
47009         New module 'unicase/u8-is-uppercase'.
47010         * lib/unicase/u8-is-uppercase.c: New file.
47011         * modules/unicase/u8-is-uppercase: New file.
47012
47013         New module 'unicase/u32-is-invariant'.
47014         * lib/unicase/u32-is-invariant.c: New file.
47015         * modules/unicase/u32-is-invariant: New file.
47016
47017         New module 'unicase/u16-is-invariant'.
47018         * lib/unicase/u16-is-invariant.c: New file.
47019         * modules/unicase/u16-is-invariant: New file.
47020
47021         New module 'unicase/u8-is-invariant'.
47022         * lib/unicase/u8-is-invariant.c: New file.
47023         * lib/unicase/invariant.h: New file.
47024         * lib/unicase/u-is-invariant.h: New file.
47025         * modules/unicase/u8-is-invariant: New file.
47026
47027         Tests for module 'unicase/u32-casecoll'.
47028         * modules/unicase/u32-casecoll-tests: New file.
47029         * tests/unicase/test-u32-casecoll.c: New file.
47030
47031         Tests for module 'unicase/u16-casecoll'.
47032         * modules/unicase/u16-casecoll-tests: New file.
47033         * tests/unicase/test-u16-casecoll.c: New file.
47034
47035         Tests for module 'unicase/u8-casecoll'.
47036         * modules/unicase/u8-casecoll-tests: New file.
47037         * tests/unicase/test-u8-casecoll.c: New file.
47038
47039         New module 'unicase/u32-casecoll'.
47040         * lib/unicase/u32-casecoll.c: New file.
47041         * modules/unicase/u32-casecoll: New file.
47042
47043         New module 'unicase/u16-casecoll'.
47044         * lib/unicase/u16-casecoll.c: New file.
47045         * modules/unicase/u16-casecoll: New file.
47046
47047         New module 'unicase/u8-casecoll'.
47048         * lib/unicase/u8-casecoll.c: New file.
47049         * lib/unicase/u-casecoll.h: New file.
47050         * modules/unicase/u8-casecoll: New file.
47051
47052         New module 'unicase/u32-casexfrm'.
47053         * lib/unicase/u32-casexfrm.c: New file.
47054         * modules/unicase/u32-casexfrm: New file.
47055
47056         New module 'unicase/u16-casexfrm'.
47057         * lib/unicase/u16-casexfrm.c: New file.
47058         * modules/unicase/u16-casexfrm: New file.
47059
47060         New module 'unicase/u8-casexfrm'.
47061         * lib/unicase/u8-casexfrm.c: New file.
47062         * lib/unicase/u-casexfrm.h: New file.
47063         * modules/unicase/u8-casexfrm: New file.
47064
47065         Tests for module 'unicase/u32-casecmp'.
47066         * modules/unicase/u32-casecmp-tests: New file.
47067         * tests/unicase/test-u32-casecmp.c: New file.
47068
47069         Tests for module 'unicase/u16-casecmp'.
47070         * modules/unicase/u16-casecmp-tests: New file.
47071         * tests/unicase/test-u16-casecmp.c: New file.
47072
47073         Tests for module 'unicase/u8-casecmp'.
47074         * modules/unicase/u8-casecmp-tests: New file.
47075         * tests/unicase/test-u8-casecmp.c: New file.
47076         * tests/unicase/test-casecmp.h: New file.
47077
47078         New module 'unicase/u32-casecmp'.
47079         * lib/unicase/u32-casecmp.c: New file.
47080         * modules/unicase/u32-casecmp: New file.
47081
47082         New module 'unicase/u16-casecmp'.
47083         * lib/unicase/u16-casecmp.c: New file.
47084         * modules/unicase/u16-casecmp: New file.
47085
47086         New module 'unicase/u8-casecmp'.
47087         * lib/unicase/u8-casecmp.c: New file.
47088         * lib/unicase/u-casecmp.h: New file.
47089         * modules/unicase/u8-casecmp: New file.
47090
47091         Tests for module 'unicase/u32-casefold'.
47092         * modules/unicase/u32-casefold-tests: New file.
47093         * tests/unicase/test-u32-casefold.c: New file.
47094
47095         Tests for module 'unicase/u16-casefold'.
47096         * modules/unicase/u16-casefold-tests: New file.
47097         * tests/unicase/test-u16-casefold.c: New file.
47098
47099         Tests for module 'unicase/u8-casefold'.
47100         * modules/unicase/u8-casefold-tests: New file.
47101         * tests/unicase/test-u8-casefold.c: New file.
47102
47103         New module 'unicase/u32-casefold'.
47104         * lib/unicase/u32-casefold.c: New file.
47105         * modules/unicase/u32-casefold: New file.
47106
47107         New module 'unicase/u16-casefold'.
47108         * lib/unicase/u16-casefold.c: New file.
47109         * modules/unicase/u16-casefold: New file.
47110
47111         New module 'unicase/u8-casefold'.
47112         * lib/unicase/u8-casefold.c: New file.
47113         * lib/unicase/u-casefold.h: New file.
47114         * modules/unicase/u8-casefold: New file.
47115
47116         New module 'unicase/tocasefold'.
47117         * lib/unicase/casefold.h: New file.
47118         * lib/unicase/tocasefold.c: New file.
47119         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
47120         * modules/unicase/tocasefold: New file.
47121
47122         Tests for module 'unicase/u32-totitle'.
47123         * modules/unicase/u32-totitle-tests: New file.
47124         * tests/unicase/test-u32-totitle.c: New file.
47125
47126         Tests for module 'unicase/u16-totitle'.
47127         * modules/unicase/u16-totitle-tests: New file.
47128         * tests/unicase/test-u16-totitle.c: New file.
47129
47130         Tests for module 'unicase/u8-totitle'.
47131         * modules/unicase/u8-totitle-tests: New file.
47132         * tests/unicase/test-u8-totitle.c: New file.
47133
47134         New module 'unicase/u32-totitle'.
47135         * lib/unicase/u32-totitle.c: New file.
47136         * modules/unicase/u32-totitle: New file.
47137
47138         New module 'unicase/u16-totitle'.
47139         * lib/unicase/u16-totitle.c: New file.
47140         * modules/unicase/u16-totitle: New file.
47141
47142         New module 'unicase/u8-totitle'.
47143         * lib/unicase/u8-totitle.c: New file.
47144         * lib/unicase/u-totitle.h: New file.
47145         * modules/unicase/u8-totitle: New file.
47146
47147         Tests for module 'unicase/u32-tolower'.
47148         * modules/unicase/u32-tolower-tests: New file.
47149         * tests/unicase/test-u32-tolower.c: New file.
47150
47151         Tests for module 'unicase/u16-tolower'.
47152         * modules/unicase/u16-tolower-tests: New file.
47153         * tests/unicase/test-u16-tolower.c: New file.
47154
47155         Tests for module 'unicase/u8-tolower'.
47156         * modules/unicase/u8-tolower-tests: New file.
47157         * tests/unicase/test-u8-tolower.c: New file.
47158
47159         New module 'unicase/u32-tolower'.
47160         * lib/unicase/u32-tolower.c: New file.
47161         * modules/unicase/u32-tolower: New file.
47162
47163         New module 'unicase/u16-tolower'.
47164         * lib/unicase/u16-tolower.c: New file.
47165         * modules/unicase/u16-tolower: New file.
47166
47167         New module 'unicase/u8-tolower'.
47168         * lib/unicase/u8-tolower.c: New file.
47169         * modules/unicase/u8-tolower: New file.
47170
47171         Tests for module 'unicase/u32-toupper'.
47172         * modules/unicase/u32-toupper-tests: New file.
47173         * tests/unicase/test-u32-toupper.c: New file.
47174
47175         Tests for module 'unicase/u16-toupper'.
47176         * modules/unicase/u16-toupper-tests: New file.
47177         * tests/unicase/test-u16-toupper.c: New file.
47178
47179         Tests for module 'unicase/u8-toupper'.
47180         * modules/unicase/u8-toupper-tests: New file.
47181         * tests/unicase/test-u8-toupper.c: New file.
47182
47183         New module 'unicase/u32-toupper'.
47184         * lib/unicase/u32-toupper.c: New file.
47185         * modules/unicase/u32-toupper: New file.
47186
47187         New module 'unicase/u16-toupper'.
47188         * lib/unicase/u16-toupper.c: New file.
47189         * modules/unicase/u16-toupper: New file.
47190
47191         New module 'unicase/u8-toupper'.
47192         * lib/unicase/u8-toupper.c: New file.
47193         * modules/unicase/u8-toupper: New file.
47194
47195         New module 'unicase/u32-casemap'.
47196         * lib/unicase/u32-casemap.c: New file.
47197         * modules/unicase/u32-casemap: New file.
47198
47199         New module 'unicase/u16-casemap'.
47200         * lib/unicase/u16-casemap.c: New file.
47201         * modules/unicase/u16-casemap: New file.
47202
47203         New module 'unicase/u8-casemap'.
47204         * lib/unicase/unicasemap.h: New file.
47205         * lib/unicase/u8-casemap.c: New file.
47206         * lib/unicase/u-casemap.h: New file.
47207         * modules/unicase/u8-casemap: New file.
47208
47209         New module 'unicase/special-casing'.
47210         * lib/unicase/special-casing.h: New file.
47211         * lib/unicase/special-casing.c: New file.
47212         * lib/unicase/special-casing-table.gperf: New file, generated by
47213         gen-uni-tables.c.
47214         * modules/unicase/special-casing: New file.
47215
47216         Tests for module 'unicase/locale-language'.
47217         * modules/unicase/locale-language-tests: New file.
47218         * tests/unicase/test-locale-language.sh: New file.
47219         * tests/unicase/test-locale-language.c: New file.
47220
47221         New module 'unicase/locale-language'.
47222         * lib/unicase/locale-language.c: New file.
47223         * lib/unicase/locale-languages.gperf: New file.
47224         * modules/unicase/locale-language: New file.
47225
47226         Generate more tables for case conversion and case folding.
47227         * lib/gen-uni-tables.c (SCC_*): New enum items.
47228         (struct special_casing_rule): New type.
47229         (casing_rules, num_casing_rules, allocated_casing_rules): New
47230         variables.
47231         (add_casing_rule, fill_casing_rules): New functions.
47232         (struct casefold_rule): New type.
47233         (casefolding_rules, num_casefolding_rules,
47234         allocated_casefolding_rules): New variables.
47235         (fill_casefolding_rules): New function.
47236         (unicode_casefold): New variable.
47237         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47238         sort_casing_rules, output_casing_rules): New functions.
47239         (main): Accept to more arguments: SpecialCasing.txt and
47240         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47241         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47242         Output mapping for casefolding.
47243
47244         * lib/unicase.h: Include stdbool.h, uninorm.h.
47245         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47246         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47247         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47248         arguments.
47249         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47250         resultp arguments.
47251         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47252         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47253         resultp arguments.
47254         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47255         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47256         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47257         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47258         declarations.
47259         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47260
47261 2009-03-08  Bruno Haible  <bruno@clisp.org>
47262
47263         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47264         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47265         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47266         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47267
47268 2009-03-07  Bruno Haible  <bruno@clisp.org>
47269
47270         Adjust u*_normcmp, u*_normcoll API.
47271         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47272         u16_normcoll, u32_normcoll): Change failure conventions.
47273         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47274         errno and return -1.
47275         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47276
47277 2009-03-07  Bruno Haible  <bruno@clisp.org>
47278
47279         Tests for module 'uninorm/u32-normcoll'.
47280         * modules/uninorm/u32-normcoll-tests: New file.
47281         * tests/uninorm/test-u32-normcoll.c: New file.
47282
47283         Tests for module 'uninorm/u16-normcoll'.
47284         * modules/uninorm/u16-normcoll-tests: New file.
47285         * tests/uninorm/test-u16-normcoll.c: New file.
47286
47287         Tests for module 'uninorm/u8-normcoll'.
47288         * modules/uninorm/u8-normcoll-tests: New file.
47289         * tests/uninorm/test-u8-normcoll.c: New file.
47290
47291 2009-03-07  Bruno Haible  <bruno@clisp.org>
47292
47293         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47294         tests/uninorm/test-u32-normcmp.c.
47295         * tests/uninorm/test-u32-normcmp.c: Include it.
47296         (test_nonascii): New function, extracted from main. Add some more
47297         tests.
47298         (main): Invoke test_ascii and test_nonascii.
47299         * modules/uninorm/u32-normcmp-tests (Files): Add
47300         tests/uninorm/test-u32-normcmp.h.
47301         (Depends-on): Remove uninorm/u32-normcmp.
47302
47303         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47304         tests/uninorm/test-u16-normcmp.c.
47305         * tests/uninorm/test-u16-normcmp.c: Include it.
47306         (test_nonascii): New function, extracted from main. Add some more
47307         tests.
47308         (main): Invoke test_ascii and test_nonascii.
47309         * modules/uninorm/u16-normcmp-tests (Files): Add
47310         tests/uninorm/test-u16-normcmp.h.
47311         (Depends-on): Remove uninorm/u16-normcmp.
47312
47313         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47314         tests/uninorm/test-u8-normcmp.c.
47315         * tests/uninorm/test-u8-normcmp.c: Include it.
47316         (test_nonascii): New function, extracted from main. Add some more
47317         tests.
47318         (main): Invoke test_ascii and test_nonascii.
47319         * modules/uninorm/u8-normcmp-tests (Files): Add
47320         tests/uninorm/test-u8-normcmp.h.
47321         (Depends-on): Remove uninorm/u8-normcmp.
47322
47323 2009-03-07  Bruno Haible  <bruno@clisp.org>
47324
47325         New module 'uninorm/u32-normcoll'.
47326         * lib/uninorm/u32-normcoll.c: New file.
47327         * modules/uninorm/u32-normcoll: New file.
47328
47329         New module 'uninorm/u16-normcoll'.
47330         * lib/uninorm/u16-normcoll.c: New file.
47331         * modules/uninorm/u16-normcoll: New file.
47332
47333         New module 'uninorm/u8-normcoll'.
47334         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47335         declarations.
47336         * lib/uninorm/u8-normcoll.c: New file.
47337         * lib/uninorm/u-normcoll.h: New file.
47338         * modules/uninorm/u8-normcoll: New file.
47339
47340         New module 'uninorm/u32-normxfrm'.
47341         * lib/uninorm/u32-normxfrm.c: New file.
47342         * modules/uninorm/u32-normxfrm: New file.
47343
47344         New module 'uninorm/u16-normxfrm'.
47345         * lib/uninorm/u16-normxfrm.c: New file.
47346         * modules/uninorm/u16-normxfrm: New file.
47347
47348         New module 'uninorm/u8-normxfrm'.
47349         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47350         declarations.
47351         * lib/uninorm/u8-normxfrm.c: New file.
47352         * lib/uninorm/u-normxfrm.h: New file.
47353         * modules/uninorm/u8-normxfrm: New file.
47354
47355 2009-03-07  Bruno Haible  <bruno@clisp.org>
47356
47357         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47358         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47359         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47360
47361 2009-03-07  Bruno Haible  <bruno@clisp.org>
47362
47363         New module 'memxfrm'.
47364         * lib/memxfrm.h: New file.
47365         * lib/memxfrm.c: New file.
47366         * modules/memxfrm: New file.
47367
47368 2009-03-07  Bruno Haible  <bruno@clisp.org>
47369
47370         New module 'memcmp2'.
47371         * lib/memcmp2.h: New file.
47372         * lib/memcmp2.c: New file.
47373         * modules/memcmp2: New file.
47374
47375 2009-03-07  Bruno Haible  <bruno@clisp.org>
47376
47377         Tests for module 'uninorm/decomposing-form'.
47378         * modules/uninorm/decomposing-form-tests: New file.
47379         * tests/uninorm/test-decomposing-form.c: New file.
47380
47381         New module 'uninorm/decomposing-form'.
47382         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47383         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47384         Add 'decomposing_variant' field.
47385         * lib/uninorm/decomposing-form.c: New file.
47386         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47387         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47388         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47389         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47390         * modules/uninorm/decomposing-form: New file.
47391         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47392         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47393
47394 2009-03-07  Bruno Haible  <bruno@clisp.org>
47395
47396         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47397         strings.
47398
47399 2009-03-06  Bruno Haible  <bruno@clisp.org>
47400
47401         Tests for module 'uninorm/u32-normcmp'.
47402         * tests/uninorm/test-u32-normcmp.c: New file.
47403         * modules/uninorm/u32-normcmp-tests: New file.
47404
47405         Tests for module 'uninorm/u16-normcmp'.
47406         * tests/uninorm/test-u16-normcmp.c: New file.
47407         * modules/uninorm/u16-normcmp-tests: New file.
47408
47409         Tests for module 'uninorm/u8-normcmp'.
47410         * tests/uninorm/test-u8-normcmp.c: New file.
47411         * modules/uninorm/u8-normcmp-tests: New file.
47412
47413         New module 'uninorm/u32-normcmp'.
47414         * lib/uninorm/u32-normcmp.c: New file.
47415         * modules/uninorm/u32-normcmp: New file.
47416
47417         New module 'uninorm/u16-normcmp'.
47418         * lib/uninorm/u16-normcmp.c: New file.
47419         * modules/uninorm/u16-normcmp: New file.
47420
47421         New module 'uninorm/u8-normcmp'.
47422         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47423         declarations.
47424         * lib/uninorm/u8-normcmp.c: New file.
47425         * lib/uninorm/u-normcmp.h: New file.
47426         * modules/uninorm/u8-normcmp: New file.
47427
47428 2009-03-06  Bruno Haible  <bruno@clisp.org>
47429
47430         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47431         Reported by Eric Blake.
47432
47433 2009-03-06  Eric Blake  <ebb9@byu.net>
47434             Bruno Haible  <bruno@clisp.org>
47435
47436         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47437         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47438         condition.
47439         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47440         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47441         condition.
47442         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47443
47444 2009-03-06  Eric Blake  <ebb9@byu.net>
47445
47446         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47447         to avoid compiler warnings.
47448         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47449
47450 2009-03-05  Bruno Haible  <bruno@clisp.org>
47451
47452         * tests/test-ftell.c (main): Disable test beyond end of file on
47453         FreeMiNT.
47454         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47455
47456 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47457
47458         * lib/filevercmp.c: Move hidden files up in ordering.
47459         * tests/test-filevercmp.c: Add tests for hidden files.
47460
47461 2009-03-04  Bruno Haible  <bruno@clisp.org>
47462
47463         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47464         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47465         AM_CFLAGS.
47466         Reported by Simon Josefsson.
47467
47468 2009-03-03  Bruno Haible  <bruno@clisp.org>
47469
47470         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47471         Reported by Simon Josefsson.
47472
47473         * doc/ld-version-script.texi: Update node reference.
47474
47475 2009-03-03  Bruno Haible  <bruno@clisp.org>
47476
47477         * modules/visibility (License): Change to 'unlimited'.
47478         Suggested by Simon Josefsson.
47479
47480 2009-03-03  Jim Meyering  <meyering@redhat.com>
47481
47482         unlinkdir: cannot_unlink_dir may modify process state
47483         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47484         it's neither thread-safe nor appropriate for use in a library.
47485
47486 2009-03-03  Eric Blake  <ebb9@byu.net>
47487
47488         test-closein: silence test under Darwin
47489         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47490         care if it dies from EPIPE or EBADF.
47491
47492 2009-03-03  Bruno Haible  <bruno@clisp.org>
47493
47494         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47495         earlier.
47496         * doc/visibility.texi: Fix @node and @section.
47497
47498 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47499
47500         * doc/gnulib.texi: Link to sections for ld version script and
47501         visibility.
47502         * doc/visibility.texi: Add @node and @section.
47503         * modules/ld-version-script: New module.
47504         * m4/ld-version-script.m4: New file.
47505         * doc/ld-version-script.texi: New file.
47506
47507 2009-03-02  David Lutterkort  <lutter@redhat.com>
47508
47509         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47510         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47511
47512 2009-03-02  Bruno Haible  <bruno@clisp.org>
47513
47514         * doc/visibility.texi: Mention libtool's -export-symbols option.
47515
47516 2009-03-02  Jim Meyering  <meyering@redhat.com>
47517
47518         announce-gen: new option: --no-print-checksums
47519         * build-aux/announce-gen (usage): Describe it.
47520         (print_checksums): Print a newline here, not in the [*] footnote.
47521         (main): Honor it.
47522
47523 2009-03-01  Bruno Haible  <bruno@clisp.org>
47524
47525         Use socklen_t in the native Windows replacements prototypes.
47526         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47527         instead of 'int'.
47528         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47529         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47530         * modules/getsockopt (Depends-on): Add socklen.
47531         * modules/setsockopt (Depends-on): Add socklen.
47532
47533 2009-03-01  Bruno Haible  <bruno@clisp.org>
47534
47535         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47536         least 4.2.
47537
47538 2009-03-01  Eric Blake  <ebb9@byu.net>
47539             Bruno Haible  <bruno@clisp.org>
47540
47541         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47542         error messages.
47543         * lib/wait-process.c (wait_subprocess): Omit error message about
47544         deadly signal sent to the child of termsigp != NULL.
47545
47546 2009-03-01  Eric Blake  <ebb9@byu.net>
47547
47548         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47549
47550 2009-03-01  Bruno Haible  <bruno@clisp.org>
47551
47552         Avoid a gcc warning.
47553         * tests/test-sched.c (b): Make global.
47554         Reported by Eric Blake.
47555
47556 2009-01-19  Martin Lambers  <marlam@marlam.de>
47557
47558         Provide POSIX semantics for socket timeout options on W32.
47559         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47560         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47561         * modules/setsockopt: Depend on sys_time module for struct timeval.
47562         * modules/getsockopt: Depend on sys_time module for struct timeval.
47563
47564 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47565
47566         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47567         __USE_GNU, for consistency with netdb.in.h.
47568         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47569
47570 2009-03-01  Bruno Haible  <bruno@clisp.org>
47571
47572         More support for FreeMiNT.
47573         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47574         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47575
47576 2009-03-01  Bruno Haible  <bruno@clisp.org>
47577
47578         More support for FreeMiNT.
47579         * lib/fpurge.c (fpurge): Correct last commit.
47580         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47581
47582 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47583
47584         Fix unportable awk script in vc-list-files.
47585         * build-aux/vc-list-files: In the replacement awk script, use
47586         substr with a second argument of 1, not zero.
47587         Report by Simon Josefsson.
47588
47589 2009-02-28  Bruno Haible  <bruno@clisp.org>
47590
47591         More support for FreeMiNT.
47592         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47593         to FreeMiNT today.
47594         * lib/fwriting.c (fwriting): Likewise.
47595         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47596
47597 2009-02-28  Bruno Haible  <bruno@clisp.org>
47598
47599         * tests/test-freadseek.c (main): Disable test beyond end of file on
47600         FreeMiNT.
47601         * tests/test-ftello.c (main): Likewise.
47602         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47603
47604 2009-02-28  Bruno Haible  <bruno@clisp.org>
47605
47606         Add tentative support for FreeMiNT.
47607         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47608         * lib/fpurge.c (fpurge): Likewise.
47609         * lib/freadable.c (freadable): Likewise.
47610         * lib/freading.c (freading): Likewise.
47611         * lib/freadptr.c (freadptr): Likewise.
47612         * lib/freadseek.c (freadptrinc): Likewise.
47613         * lib/fseeko.c (rpl_fseeko): Likewise.
47614         * lib/fseterr.c (fseterr): Likewise.
47615         * lib/fwritable.c (fwritable): Likewise.
47616         * lib/fwriting.c (fwriting): Likewise.
47617         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47618         Hourihane.
47619         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47620
47621 2009-02-28  Bruno Haible  <bruno@clisp.org>
47622
47623         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47624         SIGCHLD.
47625         Reported by Jim Meyering.
47626
47627 2009-02-28  Bruno Haible  <bruno@clisp.org>
47628
47629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47630         Mention the results of these tests on various platforms.
47631         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47632         order.
47633         * doc/posix-functions/printf.texi: Likewise.
47634         * doc/posix-functions/snprintf.texi: Likewise.
47635         * doc/posix-functions/sprintf.texi: Likewise.
47636         * doc/posix-functions/vfprintf.texi: Likewise.
47637         * doc/posix-functions/vprintf.texi: Likewise.
47638         * doc/posix-functions/vsnprintf.texi: Likewise.
47639         * doc/posix-functions/vsprintf.texi: Likewise.
47640         * doc/glibc-functions/obstack_printf.texi: Likewise.
47641         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47642
47643 2009-02-28  Bruno Haible  <bruno@clisp.org>
47644
47645         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47646         Reported by Loïc Minier <lool@dooz.org>.
47647
47648 2009-02-27  Bruno Haible  <bruno@clisp.org>
47649
47650         * gnulib-tool (func_import): Make the sed expression used to create the
47651         sed script for updating the .gitignore file POSIX compliant.
47652         Reported by Eric Blake.
47653
47654 2009-02-27  Bruno Haible  <bruno@clisp.org>
47655
47656         * gnulib-tool (sed): Don't alias as "sed --posix".
47657         Reported by Eric Blake.
47658
47659 2009-02-27  Bruno Haible  <bruno@clisp.org>
47660
47661         Avoid test link errors.
47662         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47663         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47664         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47665         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47666         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47667
47668 2009-02-27  Bruno Haible  <bruno@clisp.org>
47669
47670         Avoid spurious "(cached)" in configure output.
47671         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47672         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47673         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47674         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47675         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47676         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47677         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47678         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47679         Reported by Eric Blake.
47680
47681 2009-02-27  Eric Blake  <ebb9@byu.net>
47682
47683         printf: fix regression in previous patch
47684         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47685
47686 2009-02-27  Bruno Haible  <bruno@clisp.org>
47687
47688         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47689         value.
47690         * lib/stdint.in.h: Likewise.
47691         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47692
47693 2009-02-27  Eric Blake  <ebb9@byu.net>
47694
47695         doc: mention more functions added in cygwin 1.7.0
47696         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47697         addition.
47698         * doc/posix-functions/open_wmemstream.texi: Likewise.
47699         * doc/posix-functions/wcsnlen.texi: Likewise.
47700         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47701         * doc/posix-functions/wcstod.texi: Likewise.
47702         * doc/posix-functions/wcstof.texi: Likewise.
47703         * doc/posix-functions/wcstoimax.texi: Likewise.
47704         * doc/posix-functions/wcstok.texi: Likewise.
47705         * doc/posix-functions/wcstoumax.texi: Likewise.
47706
47707         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47708         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47709         * doc/posix-functions/fprintf.texi: Update.
47710         * doc/posix-functions/printf.texi: Update.
47711         * doc/posix-functions/snprintf.texi: Update.
47712         * doc/posix-functions/sprintf.texi: Update.
47713         * doc/posix-functions/vfprintf.texi: Update.
47714         * doc/posix-functions/vprintf.texi: Update.
47715         * doc/posix-functions/vsnprintf.texi: Update.
47716         * doc/posix-functions/vsprintf.texi: Update.
47717         * doc/glibc-functions/obstack_printf.texi: Update.
47718         * doc/glibc-functions/obstack_vprintf.texi: Update.
47719
47720 2009-02-26  Eric Blake  <ebb9@byu.net>
47721
47722         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47723         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47724         compilation bug by using runtime conversion.
47725         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47726         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47727         * modules/ceill-tests (Files): Use nan.h.
47728         * modules/floorl-tests (Files): Likewise.
47729         * modules/frexpl-tests (Files): Likewise.
47730         * modules/isnanl-tests (Files): Likewise.
47731         * modules/ldexpl-tests (Files): Likewise.
47732         * modules/roundl-tests (Files): Likewise.
47733         * modules/truncl-tests (Files): Likewise.
47734         * tests/test-ceill.c (main): Use a working NaN.
47735         * tests/test-floorl.c (main): Likewise.
47736         * tests/test-frexpl.c (main): Likewise.
47737         * tests/test-isnan.c (test_long_double): Likewise.
47738         * tests/test-isnanl.h (main): Likewise.
47739         * tests/test-ldexpl.h (main): Likewise.
47740         * tests/test-roundl.h (main): Likewise.
47741         * tests/test-truncl.h (main): Likewise.
47742         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47743
47744 2009-02-26  Eric Blake  <ebb9@byu.net>
47745             Bruno Haible  <bruno@clisp.org>
47746
47747         Work around a *printf bug with %ls on Solaris.
47748         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47749         precision is specified, sprintf stops converting the wide string
47750         argument when the number of bytes that have been produced by this
47751         conversion equals or exceeds the precision.
47752         * doc/posix-functions/fprintf.texi: Update.
47753         * doc/posix-functions/printf.texi: Update.
47754         * doc/posix-functions/snprintf.texi: Update.
47755         * doc/posix-functions/sprintf.texi: Update.
47756         * doc/posix-functions/vfprintf.texi: Update.
47757         * doc/posix-functions/vprintf.texi: Update.
47758         * doc/posix-functions/vsnprintf.texi: Update.
47759         * doc/posix-functions/vsprintf.texi: Update.
47760         * doc/glibc-functions/obstack_printf.texi: Update.
47761         * doc/glibc-functions/obstack_vprintf.texi: Update.
47762
47763 2009-02-26  Eric Blake  <ebb9@byu.net>
47764
47765         stdlib: favor compiler check of random.h
47766         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47767         to avoid an ObjC random.h installed by Swarm.
47768
47769 2009-02-26  Bruno Haible  <bruno@clisp.org>
47770
47771         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47772         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47773         Reported by Gary V. Vaughan <gary@gnu.org>.
47774
47775 2009-02-26  Bruno Haible  <bruno@clisp.org>
47776
47777         Fix *printf behaviour regarding the %ls directive.
47778         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47779         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47780         NEED_PRINTF_DIRECTIVE_LS.
47781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47782         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47783         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47784         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47785         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47786         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47787         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47788         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47789         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47790         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47791         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47792         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47793         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47794         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47795         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47796         * doc/posix-functions/fprintf.texi: Update.
47797         * doc/posix-functions/printf.texi: Update.
47798         * doc/posix-functions/snprintf.texi: Update.
47799         * doc/posix-functions/sprintf.texi: Update.
47800         * doc/posix-functions/vfprintf.texi: Update.
47801         * doc/posix-functions/vprintf.texi: Update.
47802         * doc/posix-functions/vsnprintf.texi: Update.
47803         * doc/posix-functions/vsprintf.texi: Update.
47804         * doc/glibc-functions/obstack_printf.texi: Update.
47805         * doc/glibc-functions/obstack_vprintf.texi: Update.
47806         Reported by Eric Blake.
47807
47808 2009-02-25  Bruno Haible  <bruno@clisp.org>
47809
47810         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47811         with known value.
47812         Reported by Gary V. Vaughan <gary@gnu.org>.
47813
47814 2009-02-25  Bruno Haible  <bruno@clisp.org>
47815
47816         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47817         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47818         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47819         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47820         Reported by Gary V. Vaughan <gary@gnu.org>.
47821
47822 2009-02-25  Bruno Haible  <bruno@clisp.org>
47823
47824         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47825         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47826         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47827         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47828         Reported by Gary V. Vaughan <gary@gnu.org>.
47829
47830 2009-02-25  Eric Blake  <ebb9@byu.net>
47831
47832         tests: skip fseek/ftell tests if ungetc is broken
47833         * m4/ungetc.m4: New file.
47834         * modules/fseek-tests: Split test, so ungetc dependency is
47835         separate from rest of test.
47836         * modules/fseeko-tests: Likewise.
47837         * modules/ftell-tests: Likewise.
47838         * modules/ftello-tests: Likewise.
47839         * tests/test-fseek.c (main): Isolate ungetc dependency.
47840         * tests/test-fseeko.c (main): Likewise.
47841         * tests/test-ftell.c (main): Likewise.
47842         * tests/test-ftello.c (main): Likewise.
47843         * tests/test-fseek2.sh: New file.
47844         * tests/test-fseeko2.sh: Likewise.
47845         * tests/test-ftell2.sh: Likewise.
47846         * tests/test-ftello2.sh: Likewise.
47847
47848 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
47849
47850         test-getaddrinfo: fix usage of skip return code 77
47851         * tests/test-gettaddrinfo.c: Return skip code 77 only
47852         for first occurrence of skip (4x77 is not 77)
47853
47854 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47855
47856         strtod: avoid C99 decl-after-statement
47857         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47858
47859 2009-02-24  Eric Blake  <ebb9@byu.net>
47860
47861         strtod: detect HP-UX 11.31 bug
47862         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47863         Reported by Gary V. Vaughan.
47864
47865 2009-02-23  Bruno Haible  <bruno@clisp.org>
47866
47867         Fix invalid read past end of memory block.
47868         * lib/vasnprintf.c (DCHAR_SET): Define.
47869         (local_wcslen): Define only when needed.
47870         (local_strnlen, local_wcsnlen): New functions.
47871         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47872         directives that involve a conversion ourselves.
47873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47874         wcsnlen, mbrtowc, wcrtomb.
47875         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47876         * tests/test-vasprintf-posix.c (test_function): Likewise.
47877         * tests/test-snprintf-posix.h (test_function): Likewise.
47878         * tests/test-sprintf-posix.h (test_function): Likewise.
47879         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47880
47881 2009-02-22  Bruno Haible  <bruno@clisp.org>
47882
47883         Implement new clarified decomposition of Hangul syllables.
47884         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47885         of type LTV, return only a pairwise decomposition.
47886         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47887         Likewise.
47888         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47889         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47890         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47891
47892 2009-02-22  Bruno Haible  <bruno@clisp.org>
47893
47894         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47895         zero-length results and shrink excess allocated memory.
47896         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47897         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47898         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47899         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47900         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47901         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47902         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47903         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47904         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47905         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47906         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47907         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47908
47909 2009-02-21  Bruno Haible  <bruno@clisp.org>
47910
47911         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47912         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47913         spaces after a period. Put a space between a macro name and its
47914         argument list. Trivial rewordings.
47915         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47916         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47917         (main): Return 0 explicitly.
47918
47919 2009-02-21  Bruno Haible  <bruno@clisp.org>
47920
47921         Tests for module 'uninorm/filter'.
47922         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47923         * modules/uninorm/filter-tests: New file.
47924
47925         New module 'uninorm/filter'.
47926         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47927         uninorm_filter_flush, uninorm_filter_free): New declarations.
47928         * lib/uninorm/uninorm-filter.c: New file.
47929         * modules/uninorm/filter: New file.
47930
47931 2009-02-21  Bruno Haible  <bruno@clisp.org>
47932
47933         Tests for module 'uninorm/nfkc'.
47934         * tests/uninorm/test-nfkc.c: New file.
47935         * tests/uninorm/test-u8-nfkc.c: New file.
47936         * tests/uninorm/test-u16-nfkc.c: New file.
47937         * tests/uninorm/test-u32-nfkc.c: New file.
47938         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47939         * tests/uninorm/test-u32-nfkc-big.c: New file.
47940         * modules/uninorm/nfkc-tests: New file.
47941
47942         New module 'uninorm/nfkc'.
47943         * lib/uninorm/nfkc.c: New file.
47944         * modules/uninorm/nfkc: New file.
47945
47946         Tests for module 'uninorm/nfkd'.
47947         * tests/uninorm/test-nfkd.c: New file.
47948         * tests/uninorm/test-u8-nfkd.c: New file.
47949         * tests/uninorm/test-u16-nfkd.c: New file.
47950         * tests/uninorm/test-u32-nfkd.c: New file.
47951         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47952         * tests/uninorm/test-u32-nfkd-big.c: New file.
47953         * modules/uninorm/nfkd-tests: New file.
47954
47955         New module 'uninorm/nfkd'.
47956         * lib/uninorm/nfkd.c: New file.
47957         * modules/uninorm/nfkd: New file.
47958
47959         Tests for module 'uninorm/nfc'.
47960         * tests/uninorm/test-nfc.c: New file.
47961         * tests/uninorm/test-u8-nfc.c: New file.
47962         * tests/uninorm/test-u16-nfc.c: New file.
47963         * tests/uninorm/test-u32-nfc.c: New file.
47964         * tests/uninorm/test-u32-nfc-big.sh: New file.
47965         * tests/uninorm/test-u32-nfc-big.c: New file.
47966         * modules/uninorm/nfc-tests: New file.
47967
47968         New module 'uninorm/nfc'.
47969         * lib/uninorm/nfc.c: New file.
47970         * modules/uninorm/nfc: New file.
47971
47972         Tests for module 'uninorm/nfd'.
47973         * tests/uninorm/test-nfd.c: New file.
47974         * tests/uninorm/test-u8-nfd.c: New file.
47975         * tests/uninorm/test-u16-nfd.c: New file.
47976         * tests/uninorm/test-u32-nfd.c: New file.
47977         * tests/uninorm/test-u32-nfd-big.sh: New file.
47978         * tests/uninorm/test-u32-nfd-big.c: New file.
47979         * tests/uninorm/test-u32-normalize-big.h: New file.
47980         * tests/uninorm/test-u32-normalize-big.c: New file.
47981         * tests/uninorm/NormalizationTest.txt: New file, created from
47982         Unicode 5.1.0 NormalizationTest.txt.
47983         * modules/uninorm/nfd-tests: New file.
47984
47985         New module 'uninorm/nfd'.
47986         * lib/uninorm/nfd.c: New file.
47987         * modules/uninorm/nfd: New file.
47988
47989         New module 'uninorm/u32-normalize'.
47990         * lib/uninorm/u32-normalize.c: New file.
47991         * modules/uninorm/u32-normalize: New file.
47992
47993         New module 'uninorm/u16-normalize'.
47994         * lib/uninorm/u16-normalize.c: New file.
47995         * modules/uninorm/u16-normalize: New file.
47996
47997         New module 'uninorm/u8-normalize'.
47998         * lib/uninorm/u8-normalize.c: New file.
47999         * lib/uninorm/normalize-internal.h: New file.
48000         * lib/uninorm/u-normalize-internal.h: New file.
48001         * modules/uninorm/u8-normalize: New file.
48002
48003         New module 'uninorm/decompose-internal'.
48004         * lib/uninorm/decompose-internal.c: New file.
48005         * modules/uninorm/decompose-internal: New file.
48006
48007         Tests for module 'uninorm/composition'.
48008         * tests/uninorm/test-composition.c: New file.
48009         * modules/uninorm/composition-tests: New file.
48010
48011         New module 'uninorm/composition'.
48012         * lib/uninorm/composition.c: New file.
48013         * lib/uninorm/composition-table.gperf: New file, generated by
48014         gen-uni-tables.
48015         * modules/uninorm/composition: New file.
48016
48017         Tests for module 'uninorm/compat-decomposition'.
48018         * tests/uninorm/test-compat-decomposition.c: New file.
48019         * modules/uninorm/compat-decomposition-tests: New file.
48020
48021         New module 'uninorm/compat-decomposition'.
48022         * lib/uninorm/decompose-internal.h: New file.
48023         * lib/uninorm/compat-decomposition.c: New file.
48024         * modules/uninorm/compat-decomposition: New file.
48025
48026         Tests for module 'uninorm/canonical-decomposition'.
48027         * tests/uninorm/test-canonical-decomposition.c: New file.
48028         * modules/uninorm/canonical-decomposition-tests: New file.
48029
48030         New module 'uninorm/canonical-decomposition'.
48031         * lib/uninorm/canonical-decomposition.c: New file.
48032         * modules/uninorm/canonical-decomposition: New file.
48033
48034         Tests for module 'uninorm/decomposition'.
48035         * tests/uninorm/test-decomposition.c: New file.
48036         * modules/uninorm/decomposition-tests: New file.
48037
48038         New module 'uninorm/decomposition'.
48039         * lib/uninorm/decomposition.c: New file.
48040         * modules/uninorm/decomposition: New file.
48041
48042         New module 'uninorm/decomposition-table'.
48043         * lib/uninorm/decomposition-table.h: New file.
48044         * lib/uninorm/decomposition-table.c: New file.
48045         * lib/uninorm/decomposition-table1.h: New file, generated by
48046         gen-uni-tables.
48047         * lib/uninorm/decomposition-table2.h: New file, generated by
48048         gen-uni-tables.
48049         * modules/uninorm/decomposition-table: New file.
48050
48051         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
48052         (UC_DECOMP_*): New enumeration items.
48053         (get_decomposition): New function.
48054         (struct decomp_table): New type.
48055         (output_decomposition, output_decomposition_tables): New functions.
48056         (unicode_composition_exclusions): New variable.
48057         (fill_composition_exclusions, debug_output_composition_tables): New
48058         functions.
48059         (main): Accept one more argument. Invoke fill_composition_exclusions.
48060         Output decomposition and composition tables.
48061
48062         New module 'uninorm/base'.
48063         * lib/uninorm.h: New file.
48064         * lib/unictype.h: Update comment.
48065         * modules/uninorm/base: New file.
48066
48067 2009-02-21  David Lutterkort  <lutter@redhat.com>
48068
48069         Tests for module 'safe-alloc'.
48070         * tests/test-safe-alloc.c: New file.
48071         * modules/safe-alloc-tests: New file.
48072
48073         New module 'safe-alloc'.
48074         * lib/safe-alloc.h: New file.
48075         * lib/safe-alloc.c: New file.
48076         * m4/safe-alloc.m4: New file.
48077         * modules/safe-alloc: New file.
48078         * doc/safe-alloc.texi: New file.
48079         * doc/gnulib.texi: Include it.
48080         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48081         safe-alloc.
48082
48083 2009-02-18  Bruno Haible  <bruno@clisp.org>
48084
48085         Fix link error on non-glibc systems.
48086         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
48087         variable.
48088         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48089
48090 2009-02-18  Jim Meyering  <meyering@redhat.com>
48091
48092         fts: avoid used-uninitialized error due to recent change
48093         * lib/fts.c (fts_read): Guard uses of the new member,
48094         parent->fts_n_dirs_remaining, since it's not relevant for
48095         the parent of a directory specified on the command-line.
48096
48097 2009-02-17  James Youngman  <jay@gnu.org>
48098             Bruno Haible  <bruno@clisp.org>
48099
48100         * m4/include_next.m4: Reformulate comment.
48101
48102 2009-02-16  Jim Meyering  <meyering@redhat.com>
48103
48104         fts: add #if guards so that the fts_lgpl module still builds
48105         * lib/fts.c: Guard just-added hash-table-using parts with
48106         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
48107         Reported by Simon Josefsson.
48108
48109 2009-02-15  Bruno Haible  <bruno@clisp.org>
48110
48111         * modules/array-mergesort-tests: New file.
48112         * tests/test-array-mergesort.c: New file.
48113
48114         New module 'array-mergesort'.
48115         * modules/array-mergesort: New file.
48116         * lib/array-mergesort.h: New file.
48117
48118 2009-02-15  Bruno Haible  <bruno@clisp.org>
48119
48120         Fix 2009-02-07 commit.
48121         * lib/gen-uni-tables.c (output_predicate, output_category,
48122         output_combclass, output_bidi_category, output_decimal_digit,
48123         output_digit, output_numeric, output_mirror, output_scripts,
48124         output_ident_category, output_simple_mapping): Fix format directives.
48125         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
48126
48127 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
48128
48129         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
48130         fixes are available from IBM.
48131
48132 2009-02-13  Jim Meyering  <meyering@redhat.com>
48133
48134         fts: arrange not to stat non-directories in more cases
48135         This makes GNU find (when it doesn't need to stat each file)
48136         *much* more efficient at traversing reiserfs file systems.
48137         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48138         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48139         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48140         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48141         (leaf_optimization_applies): New function.
48142         (LCO_hash, LCO_compare): New helper functions.
48143         (link_count_optimize_ok): New function.
48144         (fts_stat): Initialize new member (if dir).
48145         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48146         we've just stat'ed a directory.  Skip the stat call when possible.
48147         ---
48148         Note this AFS-related exchange:
48149         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48150         and note find's pioctl call in find/fstype.c.
48151         But that is necessary only if you want to enable the
48152         optimization for AFS, and for now, I don't.
48153
48154         fts: move a function definition "up" (no semantic change)
48155         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48156         "up" to precede upcoming use of a related function.
48157
48158 2009-02-11  Jim Meyering  <meyering@redhat.com>
48159
48160         fts: correct internal computation of nlinks (optimization-related)
48161         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48162         whether the current entry is a directory, so don't test it.
48163
48164 2009-02-10  Bruno Haible  <bruno@clisp.org>
48165
48166         Tests for module 'uniwbrk/ulc-wordbreaks'.
48167         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48168         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48169         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48170
48171         Tests for module 'uniwbrk/u32-wordbreaks'.
48172         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48173         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48174
48175         Tests for module 'uniwbrk/u16-wordbreaks'.
48176         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48177         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48178
48179         Tests for module 'uniwbrk/u8-wordbreaks'.
48180         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48181         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48182
48183 2009-02-10  Bruno Haible  <bruno@clisp.org>
48184
48185         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48186         property.
48187         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48188         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48189         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48190
48191 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48192
48193         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48194         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48195
48196 2009-02-10  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48199         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48200         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48201         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48202         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48203         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48204
48205 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48206
48207         * lib/sockets.h (gl_fd_to_handle): New function.
48208
48209         * tests/test-sockets.c: Call gl_fd_to_handle.
48210
48211 2009-02-09  Bruno Haible  <bruno@clisp.org>
48212
48213         * doc/havelib.texi: Document the conventions on bi-arch systems.
48214
48215 2009-02-08  Bruno Haible  <bruno@clisp.org>
48216
48217         Document the AC_LIB_LINKFLAGS macro.
48218         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48219         * doc/gnulib.texi: Include it.
48220
48221 2009-02-08  Bruno Haible  <bruno@clisp.org>
48222
48223         Fix wrong order of sections, compared to TOC.
48224         * doc/gnulib.texi: Include relocatable-maint.texi after the
48225         "Regular expressions" node, not before.
48226
48227 2009-02-08  Bruno Haible  <bruno@clisp.org>
48228
48229         Tests for module 'unicase/totitle'.
48230         * modules/unicase/totitle-tests: New file.
48231
48232         Tests for module 'unicase/tolower'.
48233         * modules/unicase/tolower-tests: New file.
48234
48235         Tests for module 'unicase/toupper'.
48236         * modules/unicase/toupper-tests: New file.
48237         * tests/unicase/test-mapping-part1.h: New file.
48238         * tests/unicase/test-mapping-part2.h: New file.
48239
48240         New module 'unicase/totitle'.
48241         * modules/unicase/totitle: New file.
48242         * lib/unicase/totitle.c: New file.
48243
48244         New module 'unicase/tolower'.
48245         * modules/unicase/tolower: New file.
48246         * lib/unicase/tolower.c: New file.
48247
48248         New module 'unicase/toupper'.
48249         * modules/unicase/toupper: New file.
48250         * lib/unicase/toupper.c: New file.
48251         * lib/unicase/simple-mapping.h: New file.
48252
48253         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48254         (mapping_table): New structure.
48255         (output_simple_mapping): New function.
48256         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48257         * modules/gen-uni-tables (Description): Update.
48258         * lib/unicase/toupper.h: New file, automatically generated by
48259         gen-uni-tables.
48260         * lib/unicase/tolower.h: New file, automatically generated by
48261         gen-uni-tables.
48262         * lib/unicase/totitle.h: New file, automatically generated by
48263         gen-uni-tables.
48264         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48265         gen-uni-tables.
48266         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48267         gen-uni-tables.
48268         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48269         gen-uni-tables.
48270
48271         New module 'unicase/base'.
48272         * modules/unicase/base: New file.
48273         * lib/unicase.h: New file.
48274
48275 2009-02-08  Bruno Haible  <bruno@clisp.org>
48276
48277         New module 'uniwbrk/ulc-wordbreaks'.
48278         * modules/uniwbrk/ulc-wordbreaks: New file.
48279         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48280
48281         New module 'uniwbrk/u32-wordbreaks'.
48282         * modules/uniwbrk/u32-wordbreaks: New file.
48283         * lib/uniwbrk/u32-wordbreaks.c: New file.
48284
48285         New module 'uniwbrk/u16-wordbreaks'.
48286         * modules/uniwbrk/u16-wordbreaks: New file.
48287         * lib/uniwbrk/u16-wordbreaks.c: New file.
48288
48289         New module 'uniwbrk/u8-wordbreaks'.
48290         * modules/uniwbrk/u8-wordbreaks: New file.
48291         * lib/uniwbrk/u8-wordbreaks.c: New file.
48292         * lib/uniwbrk/u-wordbreaks.h: New file.
48293
48294         New module 'uniwbrk/table'.
48295         * modules/uniwbrk/table: New file.
48296         * lib/uniwbrk/wbrktable.h: New file.
48297         * lib/uniwbrk/wbrktable.c: New file.
48298
48299         New module 'uniwbrk/wordbreak-property'.
48300         * modules/uniwbrk/wordbreak-property: New file.
48301         * lib/uniwbrk/wordbreak-property.c: New file.
48302
48303         * lib/gen-uni-tables.c (WBP_*): New enum items.
48304         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48305         (unicode_org_wbp): New variable.
48306         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48307         New functions.
48308         (wbp_table): New structure.
48309         (output_wbp, output_wbrk_tables): New functions.
48310         (main): Accept additional argument. Invoke fill_org_wbp,
48311         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48312         output_wbrk_tables.
48313         * modules/gen-uni-tables (Description): Update.
48314         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48315         gen-uni-tables.
48316
48317         New module 'uniwbrk/base'.
48318         * modules/uniwbrk/base: New file.
48319         * lib/uniwbrk.h: New file.
48320
48321 2009-02-08  Bruno Haible  <bruno@clisp.org>
48322
48323         Update to Unicode 5.1.0.
48324         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48325         U+2185..U+2188.
48326         (is_property_default_ignorable_code_point): Don't include characters
48327         of category Cc or Cs and not-a-characters.
48328         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48329         U+0D79, U+109E, U+109F, U+A60C.
48330         * lib/unictype/bidi_of.h: Regenerated.
48331         * lib/unictype/blocks.h: Regenerated.
48332         * lib/unictype/categ_C.h: Regenerated.
48333         * lib/unictype/categ_Cf.h: Regenerated.
48334         * lib/unictype/categ_Cn.h: Regenerated.
48335         * lib/unictype/categ_L.h: Regenerated.
48336         * lib/unictype/categ_Ll.h: Regenerated.
48337         * lib/unictype/categ_Lm.h: Regenerated.
48338         * lib/unictype/categ_Lo.h: Regenerated.
48339         * lib/unictype/categ_Lu.h: Regenerated.
48340         * lib/unictype/categ_M.h: Regenerated.
48341         * lib/unictype/categ_Mc.h: Regenerated.
48342         * lib/unictype/categ_Me.h: Regenerated.
48343         * lib/unictype/categ_Mn.h: Regenerated.
48344         * lib/unictype/categ_N.h: Regenerated.
48345         * lib/unictype/categ_Nd.h: Regenerated.
48346         * lib/unictype/categ_Nl.h: Regenerated.
48347         * lib/unictype/categ_No.h: Regenerated.
48348         * lib/unictype/categ_P.h: Regenerated.
48349         * lib/unictype/categ_Pd.h: Regenerated.
48350         * lib/unictype/categ_Pe.h: Regenerated.
48351         * lib/unictype/categ_Pf.h: Regenerated.
48352         * lib/unictype/categ_Pi.h: Regenerated.
48353         * lib/unictype/categ_Po.h: Regenerated.
48354         * lib/unictype/categ_Ps.h: Regenerated.
48355         * lib/unictype/categ_S.h: Regenerated.
48356         * lib/unictype/categ_Sk.h: Regenerated.
48357         * lib/unictype/categ_Sm.h: Regenerated.
48358         * lib/unictype/categ_So.h: Regenerated.
48359         * lib/unictype/categ_of.h: Regenerated.
48360         * lib/unictype/combining.h: Regenerated.
48361         * lib/unictype/ctype_alnum.h: Regenerated.
48362         * lib/unictype/ctype_alpha.h: Regenerated.
48363         * lib/unictype/ctype_graph.h: Regenerated.
48364         * lib/unictype/ctype_lower.h: Regenerated.
48365         * lib/unictype/ctype_print.h: Regenerated.
48366         * lib/unictype/ctype_punct.h: Regenerated.
48367         * lib/unictype/ctype_upper.h: Regenerated.
48368         * lib/unictype/decdigit.h: Regenerated.
48369         * lib/unictype/digit.h: Regenerated.
48370         * lib/unictype/mirror.h: Regenerated.
48371         * lib/unictype/numeric.h: Regenerated.
48372         * lib/unictype/pr_alphabetic.h: Regenerated.
48373         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48374         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48375         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48376         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48377         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48378         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48379         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48380         * lib/unictype/pr_combining.h: Regenerated.
48381         * lib/unictype/pr_dash.h: Regenerated.
48382         * lib/unictype/pr_decimal_digit.h: Regenerated.
48383         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48384         * lib/unictype/pr_deprecated.h: Regenerated.
48385         * lib/unictype/pr_diacritic.h: Regenerated.
48386         * lib/unictype/pr_extender.h: Regenerated.
48387         * lib/unictype/pr_format_control.h: Regenerated.
48388         * lib/unictype/pr_grapheme_base.h: Regenerated.
48389         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48390         * lib/unictype/pr_grapheme_link.h: Regenerated.
48391         * lib/unictype/pr_id_continue.h: Regenerated.
48392         * lib/unictype/pr_id_start.h: Regenerated.
48393         * lib/unictype/pr_ideographic.h: Regenerated.
48394         * lib/unictype/pr_ignorable_control.h: Regenerated.
48395         * lib/unictype/pr_lowercase.h: Regenerated.
48396         * lib/unictype/pr_math.h: Regenerated.
48397         * lib/unictype/pr_numeric.h: Regenerated.
48398         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48399         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48400         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48401         * lib/unictype/pr_other_id_continue.h: Regenerated.
48402         * lib/unictype/pr_other_lowercase.h: Regenerated.
48403         * lib/unictype/pr_other_math.h: Regenerated.
48404         * lib/unictype/pr_punctuation.h: Regenerated.
48405         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48406         * lib/unictype/pr_soft_dotted.h: Regenerated.
48407         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48408         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48409         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48410         * lib/unictype/pr_uppercase.h: Regenerated.
48411         * lib/unictype/pr_xid_continue.h: Regenerated.
48412         * lib/unictype/pr_xid_start.h: Regenerated.
48413         * lib/unictype/pr_zero_width.h: Regenerated.
48414         * lib/unictype/scripts.h: Regenerated.
48415         * lib/unictype/scripts_byname.gperf: Regenerated.
48416         * lib/unictype/sy_java_ident.h: Regenerated.
48417         * lib/unilbrk/lbrkprop1.h: Regenerated.
48418         * lib/unilbrk/lbrkprop2.h: Regenerated.
48419         * tests/unictype/test-categ_C.c: Regenerated.
48420         * tests/unictype/test-categ_Cf.c: Regenerated.
48421         * tests/unictype/test-categ_Cn.c: Regenerated.
48422         * tests/unictype/test-categ_L.c: Regenerated.
48423         * tests/unictype/test-categ_Ll.c: Regenerated.
48424         * tests/unictype/test-categ_Lm.c: Regenerated.
48425         * tests/unictype/test-categ_Lo.c: Regenerated.
48426         * tests/unictype/test-categ_Lu.c: Regenerated.
48427         * tests/unictype/test-categ_M.c: Regenerated.
48428         * tests/unictype/test-categ_Mc.c: Regenerated.
48429         * tests/unictype/test-categ_Me.c: Regenerated.
48430         * tests/unictype/test-categ_Mn.c: Regenerated.
48431         * tests/unictype/test-categ_N.c: Regenerated.
48432         * tests/unictype/test-categ_Nd.c: Regenerated.
48433         * tests/unictype/test-categ_Nl.c: Regenerated.
48434         * tests/unictype/test-categ_No.c: Regenerated.
48435         * tests/unictype/test-categ_P.c: Regenerated.
48436         * tests/unictype/test-categ_Pd.c: Regenerated.
48437         * tests/unictype/test-categ_Pe.c: Regenerated.
48438         * tests/unictype/test-categ_Pf.c: Regenerated.
48439         * tests/unictype/test-categ_Pi.c: Regenerated.
48440         * tests/unictype/test-categ_Po.c: Regenerated.
48441         * tests/unictype/test-categ_Ps.c: Regenerated.
48442         * tests/unictype/test-categ_S.c: Regenerated.
48443         * tests/unictype/test-categ_Sk.c: Regenerated.
48444         * tests/unictype/test-categ_Sm.c: Regenerated.
48445         * tests/unictype/test-categ_So.c: Regenerated.
48446         * tests/unictype/test-ctype_alnum.c: Regenerated.
48447         * tests/unictype/test-ctype_alpha.c: Regenerated.
48448         * tests/unictype/test-ctype_graph.c: Regenerated.
48449         * tests/unictype/test-ctype_lower.c: Regenerated.
48450         * tests/unictype/test-ctype_print.c: Regenerated.
48451         * tests/unictype/test-ctype_punct.c: Regenerated.
48452         * tests/unictype/test-ctype_upper.c: Regenerated.
48453         * tests/unictype/test-decdigit.h: Regenerated.
48454         * tests/unictype/test-digit.h: Regenerated.
48455         * tests/unictype/test-numeric.h: Regenerated.
48456         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48457         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48458         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48459         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48460         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48461         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48462         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48463         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48464         * tests/unictype/test-pr_combining.c: Regenerated.
48465         * tests/unictype/test-pr_dash.c: Regenerated.
48466         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48467         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48468         * tests/unictype/test-pr_deprecated.c: Regenerated.
48469         * tests/unictype/test-pr_diacritic.c: Regenerated.
48470         * tests/unictype/test-pr_extender.c: Regenerated.
48471         * tests/unictype/test-pr_format_control.c: Regenerated.
48472         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48473         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48474         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48475         * tests/unictype/test-pr_id_continue.c: Regenerated.
48476         * tests/unictype/test-pr_id_start.c: Regenerated.
48477         * tests/unictype/test-pr_ideographic.c: Regenerated.
48478         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48479         * tests/unictype/test-pr_lowercase.c: Regenerated.
48480         * tests/unictype/test-pr_math.c: Regenerated.
48481         * tests/unictype/test-pr_numeric.c: Regenerated.
48482         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48483         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48484         Regenerated.
48485         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48486         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48487         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48488         * tests/unictype/test-pr_other_math.c: Regenerated.
48489         * tests/unictype/test-pr_punctuation.c: Regenerated.
48490         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48491         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48492         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48493         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48494         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48495         * tests/unictype/test-pr_uppercase.c: Regenerated.
48496         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48497         * tests/unictype/test-pr_xid_start.c: Regenerated.
48498         * tests/unictype/test-pr_zero_width.c: Regenerated.
48499
48500         Update to Unicode 5.1.0.
48501         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48502         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48503         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48504         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48505         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48506         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48507         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48508         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48509         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48510         (nonspacing_table_ind): Update.
48511         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48512
48513         Update to Unicode 5.1.0.
48514         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48515         code transform.
48516         * lib/uniname/uniname.c (unicode_character_name,
48517         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48518         * lib/uniname/uninames.h: Regenerated.
48519         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48520
48521 2009-02-07  Bruno Haible  <bruno@clisp.org>
48522
48523         Merge gen-ctype and gen-lbrk into a single program.
48524         * lib/gen-uni-tables.c: New file, incorporating
48525         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48526         Add directory prefixes to the names of the generated files.
48527         * lib/unictype/gen-ctype.c: Remove file.
48528         * lib/unilbrk/gen-lbrk.c: Remove file.
48529         * modules/gen-uni-tables: New file.
48530         * modules/unictype/gen-ctype: Remove file.
48531         * modules/unilbrk/gen-lbrk: Remove file.
48532
48533 2009-02-07  Bruno Haible  <bruno@clisp.org>
48534
48535         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48536
48537         New module 'unistr/u32-strcoll'.
48538         * modules/unistr/u32-strcoll: New file.
48539         * lib/unistr/u32-strcoll.c: New file.
48540
48541         New module 'unistr/u16-strcoll'.
48542         * modules/unistr/u16-strcoll: New file.
48543         * lib/unistr/u16-strcoll.c: New file.
48544
48545         New module 'unistr/u8-strcoll'.
48546         * modules/unistr/u8-strcoll: New file.
48547         * lib/unistr/u8-strcoll.c: New file.
48548         * lib/unistr/u-strcoll.h: New file.
48549
48550 2009-02-07  Bruno Haible  <bruno@clisp.org>
48551
48552         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48553         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48554         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48555         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48556         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48557         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48558
48559 2009-02-07  Bruno Haible  <bruno@clisp.org>
48560
48561         Make 64-bit clean.
48562         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48563         output_combclass, output_bidi_category, output_decimal_digit,
48564         output_digit, output_numeric, output_mirror, output_scripts,
48565         output_ident_category): Use proper width specifier in format strings.
48566
48567 2009-02-07  Bruno Haible  <bruno@clisp.org>
48568
48569         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48570         failure behaviour.
48571
48572 2009-02-07  Jim Meyering  <meyering@redhat.com>
48573
48574         regex: avoid compilation failure with upcoming gcc-4.4
48575         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48576         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48577         "... error: integer overflow in preprocessor expression".
48578
48579 2009-02-05  Ben Pfaff  <blp@gnu.org>
48580
48581         Fix link errors on Windows when close module is used.
48582         * modules/close: Add $(LIB_CLOSE) to Link section.
48583         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48584         $(LIB_CLOSE) on Windows.
48585
48586 2009-02-05  Jim Meyering  <meyering@redhat.com>
48587
48588         still avoid unused-parameter warnings, but do it cleanly
48589         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48590         (get_fs_usage): Cast to void instead.
48591         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48592         (dev_from_mount_options, read_file_system_list): Cast to void.
48593         Prompted by Bruno Haible.
48594
48595 2009-02-04  Jim Meyering  <meyering@redhat.com>
48596
48597         fsusage.c: correct copyright year
48598         * lib/fsusage.c: Reflect year in which the change is pushed into
48599
48600         avoid misc. warnings
48601         * lib/fsusage.c (UNUSED_PARAM): Define.
48602         (get_fs_usage): Mark parameter "disk" as unused.
48603         * lib/getugroups.c (getgrent): Use "void" in prototype.
48604         * lib/mountlist.c: Mark unused parameters.
48605         (read_file_system_list): Declare a local with "const".
48606         * lib/nanosleep.c (getnow): Declare static.
48607         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48608
48609         dirfd: set errno upon failure
48610         * lib/dirfd.c: Include <errno.h>.
48611         Set errno to ENOTSUP when returning -1.
48612         * modules/dirfd (Depends-on): Add errno.
48613         Suggested by John Kodis <kodis@comcast.net>.
48614
48615 2009-02-01  Bruno Haible  <bruno@clisp.org>
48616
48617         Don't assume sizeof (long) >= sizeof (void *).
48618         * lib/memcmp.c: Include stdint.h.
48619         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48620         srcp2 to 'const byte *'.
48621         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48622         types to uintptr_t.
48623         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48624         * modules/memcmp (Depends-on): Add stdint.
48625         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48626
48627 2009-01-30  Eric Blake  <ebb9@byu.net>
48628
48629         fix more require-before-expand issues
48630         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48631         expand, AC_PROG_AWK.
48632         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48633
48634 2009-01-28  Eric Blake  <ebb9@byu.net>
48635
48636         version-etc: use consistent URL formatting
48637         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48638         Improve formatting.  Use fputs for string without %.
48639
48640 2009-01-28  Jim Meyering  <meyering@redhat.com>
48641
48642         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48643         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48644         "underquoted definition of NAME" from autoconf-2.59.
48645
48646 2009-01-28  Bruno Haible  <bruno@clisp.org>
48647
48648         * doc/gnulib.texi: Add "Obsolete modules" to index.
48649
48650 2009-01-28  Jim Meyering  <meyering@redhat.com>
48651
48652         useless-if-before-free: recognize more variants
48653         * build-aux/useless-if-before-free: Also recognize e.g.,
48654         if (NULL != p) free (p);
48655
48656 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48657
48658         test-getaddrinfo: skip (don't fail) this test when there's no network
48659         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48660         on the presumption that it means you lack network access.
48661
48662 2009-01-26  Jim Meyering  <meyering@redhat.com>
48663
48664         fflush: avoid warnings on modern systems
48665         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48666         pos and result, into scopes where they're used.
48667
48668 2009-01-26  Eric Blake  <ebb9@byu.net>
48669
48670         Silence warning reintroduced by recent extensions patch.
48671         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48672         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48673         autoconf.
48674
48675         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48676         * m4/00gnulib.m4: New file.
48677         * gnulib-tool (func_get_filelist): Always use it.
48678         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48679         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48680
48681 2009-01-25  Bruno Haible  <bruno@clisp.org>
48682
48683         Make test-quotearg work on MacOS X and AIX.
48684         * tests/test-quotearg.sh: New file.
48685         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48686         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48687         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48688         include <libintl.h>.
48689         (fake_locale): Remove variable.
48690         (gettext, dgettext, dcgettext): Remove functions.
48691         (main): Instead of setting a fake locale, set a real locale. Call
48692         textdomain and bindtextdomain.
48693         * modules/quotearg-tests (Files): Add the new files.
48694         (Depends-on): Add gettext, setenv, unsetenv.
48695         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48696         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48697         Augment TESTS_ENVIRONMENT.
48698
48699 2009-01-25  Bruno Haible  <bruno@clisp.org>
48700
48701         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48702         fr_FR.ISO8859-1 locale on MacOS X.
48703         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48704         ja_JP.eucJP locale on MacOS X.
48705         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48706         zh_CN.GB18030 locale on MacOS X.
48707
48708 2009-01-25  Bruno Haible  <bruno@clisp.org>
48709
48710         Avoid link errors on MacOS X 10.3.
48711         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48712         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48713
48714 2009-01-25  Bruno Haible  <bruno@clisp.org>
48715
48716         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48717         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48718         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48719         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48720         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48721         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48722         posix_spawnattr_init, posix_spawnattr_setsigmask,
48723         posix_spawnattr_setflags, posix_spawnattr_destroy.
48724
48725         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48726         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48727         * modules/execute (Files): Remove m4/posix_spawn.m4.
48728         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48729         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48730         posix_spawnattr_init, posix_spawnattr_setsigmask,
48731         posix_spawnattr_setflags, posix_spawnattr_destroy.
48732
48733 2009-01-25  Bruno Haible  <bruno@clisp.org>
48734
48735         * lib/glthread/threadlib.c: Include <stdlib.h>.
48736
48737 2009-01-25  Bruno Haible  <bruno@clisp.org>
48738
48739         * lib/glthread/threadlib.c (dummy): New declaration.
48740
48741 2009-01-25  Bruno Haible  <bruno@clisp.org>
48742
48743         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48744         multibyte characters also for the GB18030 encoding. Don't crash when
48745         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48746
48747 2009-01-25  Bruno Haible  <bruno@clisp.org>
48748
48749         Avoid redefining 'struct random_data' on OSF/1 5.1.
48750         * lib/stdlib.in.h: Include <random.h> if it exists.
48751         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48752         HAVE_RANDOM_H. Include <random.h> when testing whether
48753         'struct random_data' exists.
48754         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48755
48756 2009-01-25  Bruno Haible  <bruno@clisp.org>
48757
48758         Don't install charset.alias on MacOS X >= 10.3.
48759         * lib/localcharset.c (DARWIN7): New macro.
48760         (get_charset_aliases): Hardcode the result for Darwin7.
48761         * modules/localcharset (install-exec-local): Don't install
48762         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48763
48764 2009-01-25  Bruno Haible  <bruno@clisp.org>
48765
48766         Don't install charset.alias on mingw and Cygwin.
48767         * modules/localcharset (install-exec-local): Don't install
48768         charset.alias on mingw and Cygwin, if the file does not yet exist.
48769         The result for these platforms is hardcoded in localcharset.c.
48770
48771 2009-01-25  Bruno Haible  <bruno@clisp.org>
48772
48773         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48774         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48775         before requiring AC_USE_SYSTEM_EXTENSIONS.
48776
48777 2009-01-25  Jim Meyering  <meyering@redhat.com>
48778
48779         c-strtod: avoid warnings
48780         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48781         "assignment discards qualifiers from pointer target type" warnings.
48782
48783 2009-01-24  Bruno Haible  <bruno@clisp.org>
48784
48785         Add support for non-UTF-8 locales on MacOS X.
48786         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48787         canonical encodings. For Darwin 7 and newer, don't map traditional
48788         encodings to UTF-8.
48789         Reported by Vincent Lefevre <vincent@vinc17.org>
48790         at <http://savannah.gnu.org/bugs/?25235>.
48791
48792 2009-01-24  Bruno Haible  <bruno@clisp.org>
48793
48794         * doc/gnulib.texi (Obsolete modules): New section.
48795         Reported by Mike Frysinger <vapier@gentoo.org>.
48796
48797 2009-01-24  Bruno Haible  <bruno@clisp.org>
48798
48799         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48800         (%.dvi): New rule.
48801
48802 2009-01-24  Bruno Haible  <bruno@clisp.org>
48803
48804         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48805         Reported by Eric Blake.
48806
48807 2009-01-24  Bruno Haible  <bruno@clisp.org>
48808
48809         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48810         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48811         Reported by Gary V. Vaughan <gary@gnu.org>.
48812
48813 2009-01-24  Bruno Haible  <bruno@clisp.org>
48814
48815         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48816
48817 2009-01-23  Bruno Haible  <bruno@clisp.org>
48818
48819         Make c-strtod, c-strtold usable in libraries.
48820         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48821         (C_STRTOD): Call strdup instead of xstrdup.
48822         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48823         * modules/c-strtold (Depends-on): Likewise.
48824         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48825         * NEWS: Mention the change.
48826         Reported by Michael Gold <mgold@ncf.ca>.
48827
48828 2009-01-23  Jim Meyering  <meyering@redhat.com>
48829
48830         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48831         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48832         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48833
48834 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48835
48836         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48837         GNU CoreUtils.
48838         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48839         * modules/version-etc (Description): Update.
48840
48841 2009-01-22  Bruno Haible  <bruno@clisp.org>
48842
48843         Cache the C locale object.
48844         * lib/c-strtod.c (c_locale_cache): New variable.
48845         (c_locale): New function.
48846         (C_STRTOD): Use it, and don't call freelocale.
48847         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48848         Suggested by Paolo Bonzini.
48849
48850 2009-01-21  Bruno Haible  <bruno@clisp.org>
48851
48852         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48853         conditions other than overflow.
48854
48855 2009-01-21  Bruno Haible  <bruno@clisp.org>
48856
48857         * lib/c-strtod.c: Include errno.h.
48858         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48859         value from STRTOD_L and STRTOD.
48860
48861 2009-01-21  Bruno Haible  <bruno@clisp.org>
48862         and Jim Meyering  <meyering@redhat.com>
48863
48864         nanosleep: skip configure test (fail it) for apple universal builds
48865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48866         universal builds, assume that nanosleep does not work.
48867         * modules/nanosleep (Depends-on): Add multiarch.
48868
48869         mktime: skip configure test (fail it) for apple universal builds
48870         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48871         universal builds, assume that mktime does not work.
48872         * modules/mktime (Depends-on): Add multiarch.
48873
48874 2009-01-21  Eric Blake  <ebb9@byu.net>
48875
48876         multiarch: avoid expand-before-require warning
48877         * modules/multiarch (configure.ac): Require, rather than expand,
48878         gl_MULTIARCH.
48879         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48880         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48881         enforce that all clients require it.  Partial reversion of
48882         2008-12-29 patch.
48883
48884         error: avoid expand-before-require warning
48885         * modules/errno (configure.ac): Require, rather than expand,
48886         gl_HEADER_ERRNO_H.
48887         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48888         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48889         enforce that all clients require it.
48890
48891         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48892         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48893         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48894         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48895
48896 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48897
48898         Revert:
48899         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48900
48901         regex: do not depend on obsolete modules.
48902         * modules/regex: Remove memcmp and memmove.
48903
48904 2009-01-20  Bruno Haible  <bruno@clisp.org>
48905
48906         Make the 'link' module link on Windows NT 4.
48907         * lib/link.c (_WIN32_WINNT): Don't define.
48908         (CreateHardLinkFuncType): New type.
48909         (CreateHardLinkFunc, initialized): New variables.
48910         (initialize): New function.
48911         (link): Invoke CreateHardLink indirectly through the function pointer.
48912
48913 2009-01-20  Bruno Haible  <bruno@clisp.org>
48914
48915         Fix compilation failure on mingw.
48916         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48917
48918 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48919
48920         * doc/c-strtod.texi: Mention a couple of restrictions.
48921
48922 2009-01-20  Jim Meyering  <meyering@redhat.com>
48923
48924         gettimeofday: move more declarations out of functions
48925         * lib/gettimeofday.c: Move extern declarations of tzset and
48926         gmtime out of containing functions.  Prompted by Bruno Haible.
48927
48928 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48929
48930         regex: do not depend on obsolete modules.
48931         * modules/regex: Remove memcmp and memmove.
48932
48933 2009-01-19  Bruno Haible  <bruno@clisp.org>
48934
48935         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48936         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48937         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48938         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48939         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48940
48941 2009-01-19  Bruno Haible  <bruno@clisp.org>
48942
48943         * tests/test-link.c: Include <errno.h>.
48944         (main): Exit with code 77 when a hard link cannot be created due to
48945         the file system.
48946         * tests/test-link.sh: Skip test when a hard link cannot be created due
48947         to the file system.
48948         Suggested by Eric Blake.
48949
48950 2009-01-19  Martin Lambers  <marlam@marlam.de>
48951
48952         * modules/link-tests: New file.
48953         * tests/test-link.sh: New file.
48954         * tests/test-link.c: New file.
48955
48956 2009-01-19  Eric Blake  <ebb9@byu.net>
48957
48958         doc: mention another function added in cygwin 1.7.0
48959         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48960         Another new function in cygwin 1.7.
48961
48962 2009-01-19  Bruno Haible  <bruno@clisp.org>
48963
48964         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48965         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48966         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48967         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48968         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48969         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48970         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48971         * m4/md4.m4 (gl_MD4): Likewise.
48972         * m4/md5.m4 (gl_MD5): Likewise.
48973         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48974         * m4/sha1.m4 (gl_SHA1): Likewise.
48975         * m4/sha256.m4 (gl_SHA256): Likewise.
48976         * m4/sha512.m4 (gl_SHA512): Likewise.
48977
48978 2009-01-19  Bruno Haible  <bruno@clisp.org>
48979
48980         * modules/uniname/uniname-tests (Depends-on): Add progname.
48981         * tests/uniname/test-uninames.c: Include progname.h.
48982         (main): Call set_program_name.
48983
48984         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48985         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48986         (main): Call set_program_name.
48987
48988         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48989         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48990         (main): Call set_program_name.
48991
48992         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48993         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48994         (main): Call set_program_name.
48995
48996         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48997         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48998         (main): Call set_program_name.
48999
49000         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
49001         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
49002         (main): Call set_program_name.
49003
49004         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
49005         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
49006         (main): Call set_program_name.
49007
49008         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
49009         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
49010         (main): Call set_program_name.
49011
49012         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
49013         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
49014         (main): Call set_program_name.
49015
49016 2009-01-19  Eric Blake  <ebb9@byu.net>
49017
49018         test-unistd: test previous patch
49019         * tests/test-unistd.c: Test *_FILENO macros.
49020
49021         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
49022         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49023         Guarantee a definition.
49024         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
49025         * modules/unistd-safer (Depends-on): Add dependency on unistd.
49026         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
49027         * lib/dup-safer.c (STDERR_FILENO): Likewise.
49028         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49029         Likewise.
49030         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
49031         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
49032         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49033         Likewise.
49034         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
49035         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
49036         (STDERR_FILENO): Likewise.
49037         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
49038         (STDERR_FILENO): Likewise.
49039         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
49040         (STDERR_FILENO): Likewise.
49041         Reported by Elbert Pol.
49042
49043 2009-01-19  Eric Blake  <ebb9@byu.net>
49044
49045         doc: mention more functions added in cygwin 1.7.0
49046         * doc/posix-functions/abort.texi (abort): Update wording related
49047         to cygwin.
49048         * doc/posix-functions/daylight.texi (daylight): Likewise.
49049         * doc/posix-functions/optarg.texi (optarg): Likewise.
49050         * doc/posix-functions/optarg.texi (opterr): Likewise.
49051         * doc/posix-functions/optarg.texi (optind): Likewise.
49052         * doc/posix-functions/optarg.texi (optopt): Likewise.
49053         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
49054         worked in 1.5.x, and was withdrawn in 1.7.
49055         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
49056         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
49057         cygwin versions.
49058         * doc/posix-functions/perror.texi (perror): Likewise.
49059         * doc/posix-functions/printf.texi (printf): Likewise.
49060         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
49061         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
49062         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49063         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49064         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49065         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
49066         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49067         Likewise.
49068         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49069         Likewise.
49070         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
49071         this function.
49072         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
49073         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
49074         Likewise.
49075         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
49076         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
49077         * doc/posix-functions/confstr.texi (confstr): Likewise.
49078         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
49079         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
49080         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
49081         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
49082         * doc/posix-functions/fputws.texi (fputws): Likewise.
49083         * doc/posix-functions/fwide.texi (fwide): Likewise.
49084         * doc/posix-functions/getwc.texi (getwc): Likewise.
49085         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
49086         * doc/posix-functions/putwc.texi (putwc): Likewise.
49087         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
49088         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
49089         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
49090         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
49091         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
49092         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
49093         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
49094         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
49095         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
49096         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
49097         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
49098
49099 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49100
49101         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
49102         * lib/ioctl.c: Include <sys/ioctl.h>.
49103
49104 2009-01-19  Simon Josefsson  <simon@josefsson.org>
49105
49106         * modules/getdate-tests (Depends-on): Add progname.
49107         * tests/test-getdate.c: Use progname module, to avoid link errors
49108         on non-glibc systems.
49109
49110 2009-01-18  Simon Josefsson  <simon@josefsson.org>
49111
49112         * modules/filenamecat-tests (Depends-on): Add progname.
49113         * modules/fstrcmp-tests (Depends-on): Likewise.
49114
49115         * tests/test-filenamecat.c: Use progname module, to avoid link
49116         errors on non-glibc systems.
49117         * tests/test-fstrcmp.c: Likewise.
49118
49119 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49120
49121         gettimeofday: avoid warning: nested extern declaration of 'localtime'
49122         * lib/gettimeofday.c: Move extern declaration out of function.
49123
49124 2009-01-18  Bruno Haible  <bruno@clisp.org>
49125
49126         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
49127         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
49128         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
49129
49130 2009-01-18  Bruno Haible  <bruno@clisp.org>
49131
49132         * lib/strftime.c (MEMPCPY): Remove unused macro.
49133         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49134
49135 2009-01-18  Martin Lambers  <marlam@marlam.de>
49136
49137         New module 'link'.
49138         * lib/unistd.in.h (link): New declaration.
49139         * lib/link.c: New file.
49140         * m4/link.m4: New file.
49141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49142         HAVE_LINK.
49143         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49144         * modules/link: New file.
49145         * doc/posix-functions/link.texi: Mention the new module.
49146
49147 2009-01-18  Bruno Haible  <bruno@clisp.org>
49148
49149         * tests/test-avltree_list.c (main): Call set_program_name.
49150         * tests/test-avltree_oset.c (main): Likewise.
49151         * tests/test-obstack-printf.c: Include progname.h.
49152         (main): Call set_program_name.
49153         * tests/test-quotearg.c: Include progname.h.
49154         (main): Call set_program_name.
49155         * tests/test-xmemdup0.c: Include progname.h.
49156         (main): Call set_program_name.
49157
49158 2009-01-18  Bruno Haible  <bruno@clisp.org>
49159
49160         New module 'alphasort'.
49161         * lib/dirent.in.h (alphasort): New declaration.
49162         * lib/alphasort.c: New file, from glibc with modifications.
49163         * m4/alphasort.m4: New file.
49164         * modules/alphasort: New file.
49165         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49166         HAVE_ALPHASORT.
49167         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49168         HAVE_ALPHASORT.
49169         * doc/posix-functions/alphasort.texi: Mention the new module and the
49170         portability problems.
49171
49172 2009-01-18  Bruno Haible  <bruno@clisp.org>
49173
49174         New module 'scandir'.
49175         * lib/dirent.in.h (scandir): New declaration.
49176         * lib/scandir.c: New file, from glibc with modifications.
49177         * m4/scandir.m4: New file.
49178         * modules/scandir: New file.
49179         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49180         HAVE_SCANDIR.
49181         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49182         HAVE_SCANDIR.
49183         * doc/posix-functions/scandir.texi: Mention the new module and the
49184         portability problems.
49185
49186 2009-01-17  Bruno Haible  <bruno@clisp.org>
49187
49188         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49189         Update documentation.
49190         (func_remove_suffix): Escape all dots in the suffix. Update
49191         documentation.
49192         (func_filter_filelist): Update documentation.
49193         Reported by Ralf Wildenhues.
49194
49195 2009-01-17  Bruno Haible  <bruno@clisp.org>
49196
49197         * modules/dprintf-posix-tests: New file.
49198         * tests/test-dprintf-posix.sh: New file.
49199         * tests/test-dprintf-posix.c: New file.
49200
49201         New modules 'dprintf', 'dprintf-posix'.
49202         * lib/stdio.in.h (dprintf): New declaration.
49203         * lib/dprintf.c: New file.
49204         * m4/dprintf.m4: New file.
49205         * m4/dprintf-posix.m4: New file.
49206         * modules/dprintf: New file.
49207         * modules/dprintf-posix: New file.
49208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49209         HAVE_DPRINTF, REPLACE_DPRINTF.
49210         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49211         HAVE_DPRINTF, REPLACE_DPRINTF.
49212         * doc/posix-functions/dprintf.texi: Mention the new modules.
49213
49214 2009-01-17  Bruno Haible  <bruno@clisp.org>
49215
49216         * modules/vdprintf-posix-tests: New file.
49217         * tests/test-vdprintf-posix.sh: New file.
49218         * tests/test-vdprintf-posix.c: New file.
49219
49220         New modules 'vdprintf', 'vdprintf-posix'.
49221         * lib/stdio.in.h (vdprintf): New declaration.
49222         * lib/vdprintf.c: New file.
49223         * m4/vdprintf.m4: New file.
49224         * m4/vdprintf-posix.m4: New file.
49225         * modules/vdprintf: New file.
49226         * modules/vdprintf-posix: New file.
49227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49228         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49229         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49230         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49231         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49232
49233 2009-01-17  Bruno Haible  <bruno@clisp.org>
49234
49235         Fix replacement of fopen on mingw.
49236         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49237         mingw.
49238
49239 2009-01-17  Bruno Haible  <bruno@clisp.org>
49240
49241         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49242         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49243
49244 2009-01-17  Bruno Haible  <bruno@clisp.org>
49245
49246         Avoid test-fflush2.sh failure on mingw.
49247         * tests/test-fflush2.c: Include binary-io.h.
49248         (main): Put standard input into binary mode.
49249         * modules/fflush-tests (Depends-on): Add binary-io.
49250
49251 2009-01-17  Bruno Haible  <bruno@clisp.org>
49252
49253         * lib/wchar.in.h: In another particular situation, include only the
49254         system's <wchar.h> file.
49255         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49256         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49257         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49258
49259 2009-01-17  Bruno Haible  <bruno@clisp.org>
49260
49261         Support for stripping executables in --enable-relocatable.
49262         * build-aux/install-reloc: Expect one more argument, or an environment
49263         variable RELOC_STRIP_PROG. If set, strip the destination program and
49264         its wrapper.
49265         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49266         RELOC_STRIP_PROG.
49267         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49268         to set RELOCATABLE_STRIP.
49269         * NEWS: Mention the new Makefile requirement.
49270
49271 2009-01-17  Bruno Haible  <bruno@clisp.org>
49272
49273         * build-aux/install-reloc: Remove debugging information left over by
49274         C compiler on MacOS X.
49275
49276 2009-01-17  Bruno Haible  <bruno@clisp.org>
49277
49278         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49279         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49280         _NSGetExecutablePath.
49281
49282 2009-01-16  Jim Meyering  <meyering@redhat.com>
49283
49284         strerror: avoid warnings about discarding "const"
49285         * lib/strerror.c (rpl_strerror): Instead of returning a const
49286         string from each and every "case", use a variable, and add a single
49287         cast after the switch.
49288
49289 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49290
49291         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49292
49293 2009-01-16  Bruno Haible  <bruno@clisp.org>
49294
49295         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49296         array initializer syntax that also works in C++ mode.
49297         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49298
49299 2009-01-16  Jim Meyering  <meyering@redhat.com>
49300
49301         poll: suppress a warning
49302         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49303         to ignore "...unsigned expression < 0 is always false" warnings.
49304
49305 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49306
49307         poll: remove declarations of unused variables
49308         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49309         sockbuf and optlen.
49310
49311 2009-01-15  Bruno Haible  <bruno@clisp.org>
49312
49313         Make fflush-after-ungetc POSIX compliant on BSD systems.
49314         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49315         (clear_ungetc_buffer): Implement also for other systems.
49316         (rpl_fflush): On glibc systems, invoke
49317         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49318         clear_ungetc_buffer after fetching the stream's position, not before.
49319
49320 2009-01-15  Bruno Haible  <bruno@clisp.org>
49321
49322         Make fflush-after-ungetc POSIX compliant on glibc systems.
49323         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49324         after ungetc.
49325         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49326         (rpl_fflush): On glibc systems, simply call the system's fflush
49327         function after clearing the ungetc buffer.
49328         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49329         Instead, lseek only to the end of file, then use the system's fseeko
49330         for the rest. On glibc systems, reset the EOF indicator bit.
49331
49332 2009-01-15  Jim Meyering  <meyering@redhat.com>
49333
49334         openmp.m4: revert quote-adding change, for portability to older autoconf
49335         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49336         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49337         Simon Josefsson noticed the problem when using autoconf-2.61.
49338
49339 2009-01-15  Bruno Haible  <bruno@clisp.org>
49340
49341         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49342         * tests/test-fflush2.c (ASSERT): Always fail.
49343         (main): Add two tests for fflush() after ungetc(), taking into account
49344         the Austin Group's clarification.
49345         Suggested by Eric Blake.
49346
49347 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49348
49349         mktime.m4: remove K&R-style function prototypes
49350         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49351         for the Sun C++ compiler.
49352
49353 2009-01-14  Bruno Haible  <bruno@clisp.org>
49354
49355         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49356         while including <wchar.h>.
49357         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49358         the system's <wchar.h> file.
49359         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49360
49361 2009-01-14  Bruno Haible  <bruno@clisp.org>
49362
49363         * m4/csharp.m4: Don't mention gettext on the serial number line.
49364         * m4/csharpexec.m4: Likewise.
49365         * m4/eaccess.m4: Likewise.
49366         * m4/javaexec.m4: Likewise.
49367         * m4/sig_atomic_t.m4: Likewise.
49368         * m4/tmpdir.m4: Likewise.
49369         * m4/intldir.m4: Bump gettext version.
49370         * m4/lib-ld.m4: Likewise.
49371
49372 2009-01-14  Bruno Haible  <bruno@clisp.org>
49373
49374         * lib/progname.c (set_program_name): Add more comments.
49375         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49376
49377 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49378
49379         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49380         were sys/stat.h does not define it.
49381
49382 2009-01-14  Jim Meyering  <meyering@redhat.com>
49383
49384         many *.m4 files: improve m4 quoting
49385         99% of this change was performed by running the following commands:
49386         git ls-files | grep '\.m4$' | xargs perl -pi \
49387           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49388           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49389           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49390           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49391         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49392         The remainder were to add Copyright dates, increment serial numbers,
49393         undo some changes in comments, exclude m4/intl.m4, and add quotes
49394         around the "1" in ",1" where the unusual spacing prohibited the
49395         above regexps from doing the job.  For more details, see
49396         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49397         * m4/acl.m4: Modified.
49398         * m4/afs.m4: Likewise.
49399         * m4/alloca.m4: Likewise.
49400         * m4/argp.m4: Likewise.
49401         * m4/argz.m4: Likewise.
49402         * m4/atexit.m4: Likewise.
49403         * m4/bison-i18n.m4: Likewise.
49404         * m4/bison.m4: Likewise.
49405         * m4/byteswap.m4: Likewise.
49406         * m4/c-stack.m4: Likewise.
49407         * m4/c-strtod.m4: Likewise.
49408         * m4/calloc.m4: Likewise.
49409         * m4/canonicalize-lgpl.m4: Likewise.
49410         * m4/chown.m4: Likewise.
49411         * m4/clock_time.m4: Likewise.
49412         * m4/codeset.m4: Likewise.
49413         * m4/copy-file.m4: Likewise.
49414         * m4/csharp.m4: Likewise.
49415         * m4/csharpcomp.m4: Likewise.
49416         * m4/csharpexec.m4: Likewise.
49417         * m4/d-ino.m4: Likewise.
49418         * m4/d-type.m4: Likewise.
49419         * m4/dirfd.m4: Likewise.
49420         * m4/double-slash-root.m4: Likewise.
49421         * m4/eaccess.m4: Likewise.
49422         * m4/eealloc.m4: Likewise.
49423         * m4/environ.m4: Likewise.
49424         * m4/errno_h.m4: Likewise.
49425         * m4/euidaccess.m4: Likewise.
49426         * m4/execute.m4: Likewise.
49427         * m4/fatal-signal.m4: Likewise.
49428         * m4/fchdir.m4: Likewise.
49429         * m4/fcntl_h.m4: Likewise.
49430         * m4/fileblocks.m4: Likewise.
49431         * m4/filenamecat.m4: Likewise.
49432         * m4/findprog.m4: Likewise.
49433         * m4/flexmember.m4: Likewise.
49434         * m4/fnmatch.m4: Likewise.
49435         * m4/fopen.m4: Likewise.
49436         * m4/fpending.m4: Likewise.
49437         * m4/fprintf-posix.m4: Likewise.
49438         * m4/free.m4: Likewise.
49439         * m4/frexp.m4: Likewise.
49440         * m4/frexpl.m4: Likewise.
49441         * m4/fsusage.m4: Likewise.
49442         * m4/ftruncate.m4: Likewise.
49443         * m4/gc-camellia.m4: Likewise.
49444         * m4/gc-random.m4: Likewise.
49445         * m4/gc.m4: Likewise.
49446         * m4/getaddrinfo.m4: Likewise.
49447         * m4/getcwd-abort-bug.m4: Likewise.
49448         * m4/getcwd-path-max.m4: Likewise.
49449         * m4/getdate.m4: Likewise.
49450         * m4/getdomainname.m4: Likewise.
49451         * m4/getgroups.m4: Likewise.
49452         * m4/gethostname.m4: Likewise.
49453         * m4/gethrxtime.m4: Likewise.
49454         * m4/getline.m4: Likewise.
49455         * m4/getloadavg.m4: Likewise.
49456         * m4/getndelim2.m4: Likewise.
49457         * m4/getpass.m4: Likewise.
49458         * m4/gettext.m4: Likewise.
49459         * m4/gettime.m4: Likewise.
49460         * m4/gettimeofday.m4: Likewise.
49461         * m4/gnulib-common.m4: Likewise.
49462         * m4/group-member.m4: Likewise.
49463         * m4/host-os.m4: Likewise.
49464         * m4/iconv.m4: Likewise.
49465         * m4/iconv_open.m4: Likewise.
49466         * m4/inet_ntop.m4: Likewise.
49467         * m4/inet_pton.m4: Likewise.
49468         * m4/inline.m4: Likewise.
49469         * m4/intldir.m4: Likewise.
49470         * m4/intlmacosx.m4: Likewise.
49471         * m4/intmax.m4: Likewise.
49472         * m4/intmax_t.m4: Likewise.
49473         * m4/inttypes.m4: Likewise.
49474         * m4/inttypes_h.m4: Likewise.
49475         * m4/inttypes-pri.m4: Likewise.
49476         * m4/isapipe.m4: Likewise.
49477         * m4/isnand.m4: Likewise.
49478         * m4/isnanf.m4: Likewise.
49479         * m4/isnanl.m4: Likewise.
49480         * m4/javacomp.m4: Likewise.
49481         * m4/javaexec.m4: Likewise.
49482         * m4/jm-winsz1.m4: Likewise.
49483         * m4/jm-winsz2.m4: Likewise.
49484         * m4/lchown.m4: Likewise.
49485         * m4/lcmessage.m4: Likewise.
49486         * m4/ldexpl.m4: Likewise.
49487         * m4/lib-ld.m4: Likewise.
49488         * m4/lib-link.m4: Likewise.
49489         * m4/libsigsegv.m4: Likewise.
49490         * m4/link-follow.m4: Likewise.
49491         * m4/localcharset.m4: Likewise.
49492         * m4/locale-fr.m4: Likewise.
49493         * m4/locale-ja.m4: Likewise.
49494         * m4/locale-tr.m4: Likewise.
49495         * m4/locale-zh.m4: Likewise.
49496         * m4/lock.m4: Likewise.
49497         * m4/longlong.m4: Likewise.
49498         * m4/ls-mntd-fs.m4: Likewise.
49499         * m4/lstat.m4: Likewise.
49500         * m4/malloc.m4: Likewise.
49501         * m4/mathl.m4: Likewise.
49502         * m4/mbrtowc.m4: Likewise.
49503         * m4/mbstate_t.m4: Likewise.
49504         * m4/mbswidth.m4: Likewise.
49505         * m4/memchr.m4: Likewise.
49506         * m4/memcmp.m4: Likewise.
49507         * m4/memcpy.m4: Likewise.
49508         * m4/memmem.m4: Likewise.
49509         * m4/memmove.m4: Likewise.
49510         * m4/mempcpy.m4: Likewise.
49511         * m4/memrchr.m4: Likewise.
49512         * m4/memset.m4: Likewise.
49513         * m4/minmax.m4: Likewise.
49514         * m4/mkdir-slash.m4: Likewise.
49515         * m4/mkdtemp.m4: Likewise.
49516         * m4/mktime.m4: Likewise.
49517         * m4/mmap-anon.m4: Likewise.
49518         * m4/mountlist.m4: Likewise.
49519         * m4/nanosleep.m4: Likewise.
49520         * m4/nls.m4: Likewise.
49521         * m4/nocrash.m4: Likewise.
49522         * m4/open.m4: Likewise.
49523         * m4/openat.m4: Likewise.
49524         * m4/openmp.m4: Likewise.
49525         * m4/pathmax.m4: Likewise.
49526         * m4/perl.m4: Likewise.
49527         * m4/physmem.m4: Likewise.
49528         * m4/pipe.m4: Likewise.
49529         * m4/po.m4: Likewise.
49530         * m4/poll.m4: Likewise.
49531         * m4/posixtm.m4: Likewise.
49532         * m4/posixver.m4: Likewise.
49533         * m4/printf-frexp.m4: Likewise.
49534         * m4/printf-frexpl.m4: Likewise.
49535         * m4/printf-posix.m4: Likewise.
49536         * m4/printf-posix-rpl.m4: Likewise.
49537         * m4/printf.m4: Likewise.
49538         * m4/progtest.m4: Likewise.
49539         * m4/putenv.m4: Likewise.
49540         * m4/readline.m4: Likewise.
49541         * m4/readlink.m4: Likewise.
49542         * m4/readutmp.m4: Likewise.
49543         * m4/realloc.m4: Likewise.
49544         * m4/regex.m4: Likewise.
49545         * m4/relocatable.m4: Likewise.
49546         * m4/relocatable-lib.m4: Likewise.
49547         * m4/rename-dest-slash.m4: Likewise.
49548         * m4/rename.m4: Likewise.
49549         * m4/rmdir-errno.m4: Likewise.
49550         * m4/rmdir.m4: Likewise.
49551         * m4/roundf.m4: Likewise.
49552         * m4/roundl.m4: Likewise.
49553         * m4/rpmatch.m4: Likewise.
49554         * m4/save-cwd.m4: Likewise.
49555         * m4/selinux-selinux-h.m4: Likewise.
49556         * m4/setenv.m4: Likewise.
49557         * m4/settime.m4: Likewise.
49558         * m4/sig2str.m4: Likewise.
49559         * m4/sig_atomic_t.m4: Likewise.
49560         * m4/signalblocking.m4: Likewise.
49561         * m4/signbit.m4: Likewise.
49562         * m4/sigpipe.m4: Likewise.
49563         * m4/sockets.m4: Likewise.
49564         * m4/sockpfaf.m4: Likewise.
49565         * m4/st_dm_mode.m4: Likewise.
49566         * m4/stat-time.m4: Likewise.
49567         * m4/stdbool.m4: Likewise.
49568         * m4/stdint.m4: Likewise.
49569         * m4/stdint_h.m4: Likewise.
49570         * m4/stpcpy.m4: Likewise.
49571         * m4/stpncpy.m4: Likewise.
49572         * m4/strcase.m4: Likewise.
49573         * m4/strchrnul.m4: Likewise.
49574         * m4/strcspn.m4: Likewise.
49575         * m4/strdup.m4: Likewise.
49576         * m4/strftime.m4: Likewise.
49577         * m4/strndup.m4: Likewise.
49578         * m4/strnlen.m4: Likewise.
49579         * m4/strpbrk.m4: Likewise.
49580         * m4/strptime.m4: Likewise.
49581         * m4/strsep.m4: Likewise.
49582         * m4/strtod.m4: Likewise.
49583         * m4/strtoimax.m4: Likewise.
49584         * m4/strtok_r.m4: Likewise.
49585         * m4/strtol.m4: Likewise.
49586         * m4/strtoll.m4: Likewise.
49587         * m4/strtoul.m4: Likewise.
49588         * m4/strtoull.m4: Likewise.
49589         * m4/strtoumax.m4: Likewise.
49590         * m4/strverscmp.m4: Likewise.
49591         * m4/threadlib.m4: Likewise.
49592         * m4/timegm.m4: Likewise.
49593         * m4/tm_gmtoff.m4: Likewise.
49594         * m4/tmpdir.m4: Likewise.
49595         * m4/tmpfile.m4: Likewise.
49596         * m4/tzset.m4: Likewise.
49597         * m4/uintmax_t.m4: Likewise.
49598         * m4/unlinkdir.m4: Likewise.
49599         * m4/unlocked-io.m4: Likewise.
49600         * m4/uptime.m4: Likewise.
49601         * m4/userspec.m4: Likewise.
49602         * m4/utimbuf.m4: Likewise.
49603         * m4/utime.m4: Likewise.
49604         * m4/utimes-null.m4: Likewise.
49605         * m4/utimes.m4: Likewise.
49606         * m4/vararrays.m4: Likewise.
49607         * m4/vasnprintf.m4: Likewise.
49608         * m4/vfprintf-posix.m4: Likewise.
49609         * m4/vprintf-posix.m4: Likewise.
49610         * m4/wait-process.m4: Likewise.
49611         * m4/wchar_t.m4: Likewise.
49612         * m4/wint_t.m4: Likewise.
49613         * m4/write-any-file.m4: Likewise.
49614         * m4/yield.m4: Likewise.
49615
49616 2009-01-13  Bruno Haible  <bruno@clisp.org>
49617
49618         Avoid test-copy-file.sh failures when ACL support insufficient.
49619         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49620         TESTS_ENVIRONMENT.
49621         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49622         Reported by Jim Meyering.
49623
49624 2009-01-13  Bruno Haible  <bruno@clisp.org>
49625
49626         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49627         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49628         * modules/unistdio/u8-printf-parse (Files): Likewise.
49629         * modules/unistdio/u32-printf-parse (Files): Likewise.
49630         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49631
49632 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49633
49634         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49635         and m4/inttypes_h.m4 too.
49636
49637 2009-01-12  Eric Blake  <ebb9@byu.net>
49638
49639         tests: IRIX 6.2 cc can't compile -0.0 into .data
49640         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49641         rather than at compile-time.
49642         * tests/test-floorl.c (minus_zero): Likewise.
49643         * tests/test-frexpl.c (minus_zero): Likewise.
49644         * tests/test-isnan.c (minus_zerol): Likewise.
49645         * tests/test-isnanl.h (minus_zero): Likewise.
49646         * tests/test-ldexpl.c (minus_zero): Likewise.
49647         * tests/test-roundl.c (minus_zero): Likewise.
49648         * tests/test-signbit.c (minus_zerol): Likewise.
49649         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49650         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49651         * tests/test-truncl.c (minus_zero): Likewise.
49652         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49653         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49654         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49655
49656 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49657
49658         regex: fix glibc bug 9697
49659         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49660         handling.
49661
49662 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49663
49664         regex: fix glibc bug 697
49665         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49666         being NULL also if there are no backreferences.
49667
49668 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49669
49670         regex: merge glibc changes
49671         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49672         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49673         re_string_skip_chars, re_string_reconstruct): Likewise.
49674         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49675
49676 2009-01-07  Jim Meyering  <meyering@redhat.com>
49677
49678         poll: filter through cppi
49679         * lib/poll.c: Indent cpp directives to reflect nesting.
49680
49681 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49682
49683         poll: don't return uninitialized
49684         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49685
49686 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49687
49688         avoid compile failure on AIX 6.1
49689         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49690         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49691
49692 2009-01-04  Jim Meyering  <meyering@redhat.com>
49693
49694         remove duplicate inclusion of <stdio.h>
49695         * tests/test-fprintf-posix.c: Likewise.
49696         * tests/test-printf-posix.c: Likewise.
49697         * tests/test-snprintf-posix.c: Likewise.
49698         * tests/test-sprintf-posix.c: Likewise.
49699         * tests/test-vasprintf-posix.c: Likewise.
49700         * tests/test-vfprintf-posix.c: Likewise.
49701         * tests/test-vprintf-posix.c: Likewise.
49702         * tests/test-vsnprintf-posix.c: Likewise.
49703         * tests/test-vsprintf-posix.c: Likewise.
49704
49705 2009-01-03  Jim Meyering  <meyering@redhat.com>
49706
49707         gnulib-tool: fix sed-based filtering
49708         * gnulib-tool (func_filter_filelist): Remove extra backslash
49709         in sed_fff_filter definition.
49710
49711 2009-01-02  Jim Meyering  <meyering@redhat.com>
49712
49713         strftime: avoid compilation failure on Solaris 2.6
49714         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49715         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49716         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49717         be available.  Reported by Tom G. Christensen.  Details in
49718         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49719
49720 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49721             Bruno Haible  <bruno@clisp.org>
49722
49723         Speed up gnulib-tool by doing more string processing through shell
49724         built-ins.
49725         * gnulib-tool (fast_func_append): New variable.
49726         (func_remove_prefix, func_remove_suffix): New functions.
49727         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49728         (func_filter_filelist): New function.
49729         (func_get_dependencies): Use func_remove_suffix instead of sed.
49730         (func_get_automake_snippet): Use func_filter_filelist instead of a
49731         subshell and sed invocation.
49732
49733 2009-01-01  Bruno Haible  <bruno@clisp.org>
49734
49735         Fix a security bug.
49736         * gnulib-tool (func_import, import, update): Don't allow the characters
49737         '"', '$', '`', '\' in macro arguments that become part of commands that
49738         are evaluated.
49739
49740 2009-01-01  Bruno Haible  <bruno@clisp.org>
49741
49742         * gnulib-tool (func_reset_sigpipe): Add more comments.
49743
49744 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49745
49746         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49747         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49748         already know the answer.
49749
49750 2009-01-01  Jim Meyering  <meyering@redhat.com>
49751
49752         * lib/version-etc.c (version_etc_va): Update copyright year.
49753
49754 2008-12-30  Bruno Haible  <bruno@clisp.org>
49755
49756         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49757         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49758         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49759
49760 2008-12-29  Eric Blake  <ebb9@byu.net>
49761
49762         multiarch: avoid autoconf AC_REQUIRE bug
49763         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49764         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49765         2.63 and older.
49766         Reported by Bruno Haible, and analyzed in
49767         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49768
49769 2008-12-29  Bruno Haible  <bruno@clisp.org>
49770
49771         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49772         files in subdirectories correctly.
49773         Reported by Ralf Wildenhues.
49774
49775 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49776
49777         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49778         rather than 'join FILE -', for Solaris join.
49779
49780 2008-12-29  Bruno Haible  <bruno@clisp.org>
49781
49782         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49783         quoting.
49784         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49785         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49786         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49787         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49788         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49789         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49790         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49791         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49792         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49793         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49794         * m4/nls.m4 (AM_NLS): Likewise.
49795         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49796         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49797         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49798         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49799         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49800         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49801         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49802         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49803         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49804         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49805         * m4/xsize.m4 (gl_XSIZE): Likewise.
49806         Suggested by Jim Meyering.
49807
49808 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49809
49810         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49811         * lib/parse-duration.c: use a switch instead of cascading if's.
49812
49813 2008-12-29  Eric Blake  <ebb9@byu.net>
49814
49815         wchar.h: supply WEOF on Irix 5.3
49816         * lib/wchar.in.h (wint_t): Also supply WEOF.
49817         * lib/wctype.in.h (wint_t): Likewise.
49818         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49819         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49820         Reported by Tom G. Christensen.
49821
49822 2008-12-26  Bruno Haible  <bruno@clisp.org>
49823
49824         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49825         i486, i586, i686.
49826
49827 2008-12-26  Bruno Haible  <bruno@clisp.org>
49828
49829         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49830
49831 2008-12-26  Bruno Haible  <bruno@clisp.org>
49832
49833         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49834         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49835         not __STDC_CONSTANT_MACROS.
49836         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49837
49838 2008-12-25  Bruno Haible  <bruno@clisp.org>
49839
49840         Add support for universal builds to vasnprintf.
49841         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49842         universal builds, guess no.
49843         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49844         * modules/vasprintf-posix (Depends-on): Likewise.
49845         * modules/fprintf-posix (Depends-on): Likewise.
49846         * modules/vfprintf-posix (Depends-on): Likewise.
49847         * modules/snprintf-posix (Depends-on): Likewise.
49848         * modules/vsnprintf-posix (Depends-on): Likewise.
49849         * modules/sprintf-posix (Depends-on): Likewise.
49850         * modules/vsprintf-posix (Depends-on): Likewise.
49851         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49852         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49853         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49854         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49855         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49856         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49857         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49858
49859         Add support for universal builds to <inttypes.h>.
49860         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49861         _SCNu64_PREFIX): In Apple
49862         universal builds, define directly, using _LP64.
49863         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49864         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49865         * modules/inttypes (Depends-on): Add multiarch.
49866         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49867
49868         Add support for universal builds to <stdint.h>.
49869         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49870         universal builds, define directly, using _LP64.
49871         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49872         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49873         and size_t.
49874         * modules/stdint (Depends-on): Add multiarch.
49875         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49876
49877         New module 'multiarch'.
49878         * modules/multiarch: New file.
49879         * m4/multiarch.m4: New file.
49880
49881 2008-12-25  Bruno Haible  <bruno@clisp.org>
49882
49883         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49884
49885 2008-12-25  Bruno Haible  <bruno@clisp.org>
49886
49887         * modules/btowc (License): Relicense under LGPLv2+.
49888         * modules/mbsinit (License): Likewise.
49889         * modules/mbrtowc (License): Likewise.
49890         * modules/wcrtomb (License): Likewise.
49891         * modules/streq (License): Likewise.
49892         Reported by David Lutterkort <lutter@redhat.com>.
49893
49894 2008-12-23  Bruno Haible  <bruno@clisp.org>
49895
49896         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49897
49898 2008-12-23  Bruno Haible  <bruno@clisp.org>
49899
49900         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49901         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49902         GETADDRINFO_LIB, not in LIBS.
49903         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49904         * modules/canon-host (Link): Likewise.
49905         * NEWS: Mention the change.
49906         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49907         GETADDRINFO_LIB.
49908
49909 2008-12-22  Bruno Haible  <bruno@clisp.org>
49910
49911         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49912         * doc/posix-functions/iswalpha_l.texi: Likewise.
49913         * doc/posix-functions/iswblank_l.texi: Likewise.
49914         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49915         * doc/posix-functions/iswctype_l.texi: Likewise.
49916         * doc/posix-functions/iswdigit_l.texi: Likewise.
49917         * doc/posix-functions/iswgraph_l.texi: Likewise.
49918         * doc/posix-functions/iswlower_l.texi: Likewise.
49919         * doc/posix-functions/iswprint_l.texi: Likewise.
49920         * doc/posix-functions/iswpunct_l.texi: Likewise.
49921         * doc/posix-functions/iswspace_l.texi: Likewise.
49922         * doc/posix-functions/iswupper_l.texi: Likewise.
49923         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49924         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49925         * doc/posix-functions/open_wmemstream.texi: Likewise.
49926         * doc/posix-functions/swscanf.texi: Likewise.
49927         * doc/posix-functions/towctrans_l.texi: Likewise.
49928         * doc/posix-functions/towlower.texi: Likewise.
49929         * doc/posix-functions/towlower_l.texi: Likewise.
49930         * doc/posix-functions/towupper.texi: Likewise.
49931         * doc/posix-functions/towupper_l.texi: Likewise.
49932         * doc/posix-functions/vfwprintf.texi: Likewise.
49933         * doc/posix-functions/vfwscanf.texi: Likewise.
49934         * doc/posix-functions/vswscanf.texi: Likewise.
49935         * doc/posix-functions/vwprintf.texi: Likewise.
49936         * doc/posix-functions/vwscanf.texi: Likewise.
49937         * doc/posix-functions/wcpcpy.texi: Likewise.
49938         * doc/posix-functions/wcpncpy.texi: Likewise.
49939         * doc/posix-functions/wcscasecmp.texi: Likewise.
49940         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49941         * doc/posix-functions/wcscoll_l.texi: Likewise.
49942         * doc/posix-functions/wcsdup.texi: Likewise.
49943         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49944         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49945         * doc/posix-functions/wcsnlen.texi: Likewise.
49946         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49947         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49948         * doc/posix-functions/wctrans_l.texi: Likewise.
49949         * doc/posix-functions/wctype_l.texi: Likewise.
49950         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49951         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49952         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49953         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49954         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49955         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49956         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49957         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49958         * doc/glibc-functions/wcschrnul.texi: Likewise.
49959         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49960         * doc/glibc-functions/wcstod_l.texi: Likewise.
49961         * doc/glibc-functions/wcstof_l.texi: Likewise.
49962         * doc/glibc-functions/wcstol_l.texi: Likewise.
49963         * doc/glibc-functions/wcstold_l.texi: Likewise.
49964         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49965         * doc/glibc-functions/wcstoq.texi: Likewise.
49966         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49967         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49968         * doc/glibc-functions/wcstouq.texi: Likewise.
49969         * doc/glibc-functions/wmempcpy.texi: Likewise.
49970
49971 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49972             Eric Blake  <ebb9@byu.net>
49973             Paolo Bonzini  <bonzini@gnu.org>
49974             Bruno Haible  <bruno@clisp.org>
49975
49976         Make c-stack work on Haiku.
49977         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49978         (c_stack_action): Use SA_ONSTACK flag.
49979
49980 2008-12-22  Bruno Haible  <bruno@clisp.org>
49981
49982         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49983
49984 2008-12-22  Bruno Haible  <bruno@clisp.org>
49985
49986         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49987         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49988         being overridden.
49989         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49990         New macros.
49991         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49992         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49993         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49994         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49995
49996 2008-12-22  Bruno Haible  <bruno@clisp.org>
49997
49998         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49999         from test code.
50000
50001 2008-12-22  Eric Blake  <ebb9@byu.net>
50002
50003         Avoid gcc warnings on cygwin.
50004         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
50005         Avoid unused variable.
50006         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
50007         Likewise.
50008
50009 2008-12-22  Bruno Haible  <bruno@clisp.org>
50010
50011         Remove HAVE_MBRTOWC conditionals.
50012         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
50013         (mbscasecmp): Assume mbrtowc function.
50014         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
50015         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
50016         * lib/mbschr.c: Include mbuiter.h unconditionally.
50017         (mbschr): Assume mbrtowc function.
50018         * lib/mbscspn.c: Include mbuiter.h unconditionally.
50019         (mbscspn): Assume mbrtowc function.
50020         * lib/mbslen.c: Include mbuiter.h unconditionally.
50021         (mbslen): Assume mbrtowc function.
50022         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
50023         (mbsncasecmp): Assume mbrtowc function.
50024         * lib/mbsnlen.c: Include mbiter.h unconditionally.
50025         (mbsnlen): Assume mbrtowc function.
50026         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
50027         (mbspbrk): Assume mbrtowc function.
50028         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
50029         (mbspcasecmp): Assume mbrtowc function.
50030         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
50031         (mbsrchr): Assume mbrtowc function.
50032         * lib/mbssep.c: Include mbuiter.h unconditionally.
50033         (mbssep): Assume mbrtowc function.
50034         * lib/mbsspn.c: Include mbuiter.h unconditionally.
50035         (mbsspn): Assume mbrtowc function.
50036         * lib/mbsstr.c: Include mbuiter.h unconditionally.
50037         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
50038         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
50039         (mbstok_r): Assume mbrtowc function.
50040         * lib/propername.c: Include mbuiter.h unconditionally.
50041         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
50042         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
50043         (trim2): Assume mbrtowc function.
50044         * lib/mbswidth.c (mbsinit): Remove fallback definition.
50045         (mbsnwidth): Assume mbrtowc function.
50046         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
50047         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
50048         fallback definitions.
50049         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
50050
50051 2008-12-22  Bruno Haible  <bruno@clisp.org>
50052
50053         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
50054
50055 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
50056
50057         * modules/regex: Request emulations for the mb*/wc* functions we need.
50058         * m4/regex.m4: Don't look for those functions here.
50059         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
50060
50061 2008-12-22  Bruno Haible  <bruno@clisp.org>
50062
50063         * modules/fnmatch (Depends-on): Remove duplicated dependency.
50064
50065 2008-12-21  Bruno Haible  <bruno@clisp.org>
50066
50067         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
50068         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
50069         (Include): Remove conditionalization.
50070         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
50071         (Include): Remove conditionalization.
50072         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
50073         (Include): Remove conditionalization.
50074         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
50075         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50076         * NEWS: Mention the change.
50077         Reported by Alan Hourihane <alanh@fairlite.co.uk>
50078         via Sergey Poznyakoff <gray@gnu.org.ua>.
50079
50080 2008-12-21  Bruno Haible  <bruno@clisp.org>
50081
50082         * MODULES.html.sh (Extended multibyte and wide character utilities
50083         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
50084         wcrtomb, wcsrtombs.
50085         (Support for systems lacking POSIX:2008): Add accept, bind, close,
50086         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
50087         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
50088         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
50089
50090 2008-12-21  Bruno Haible  <bruno@clisp.org>
50091
50092         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
50093
50094 2008-12-21  Bruno Haible  <bruno@clisp.org>
50095
50096         * modules/wcsnrtombs-tests: New file.
50097         * tests/test-wcsnrtombs1.sh: New file.
50098         * tests/test-wcsnrtombs2.sh: New file.
50099         * tests/test-wcsnrtombs3.sh: New file.
50100         * tests/test-wcsnrtombs4.sh: New file.
50101         * tests/test-wcsnrtombs.c: New file.
50102
50103         New module 'wcsnrtombs'.
50104         * lib/wchar.in.h (wcsnrtombs): New declaration.
50105         * lib/wcsnrtombs.c: New file.
50106         * lib/wcsrtombs-state.c: New file.
50107         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
50108         (internal_state): Remove variable.
50109         * m4/wcsnrtombs.m4: New file.
50110         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
50111         compilation units.
50112         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
50113         HAVE_WCSNRTOMBS.
50114         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
50115         HAVE_WCSNRTOMBS.
50116         * modules/wcsnrtombs: New file.
50117         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
50118         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
50119
50120 2008-12-21  Bruno Haible  <bruno@clisp.org>
50121
50122         * modules/wcsrtombs-tests: New file.
50123         * tests/test-wcsrtombs1.sh: New file.
50124         * tests/test-wcsrtombs2.sh: New file.
50125         * tests/test-wcsrtombs3.sh: New file.
50126         * tests/test-wcsrtombs4.sh: New file.
50127         * tests/test-wcsrtombs.c: New file.
50128
50129         New module 'wcsrtombs'.
50130         * lib/wchar.in.h (wcsrtombs): New declaration.
50131         * lib/wcsrtombs.c: New file.
50132         * m4/wcsrtombs.m4: New file.
50133         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50134         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50135         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50136         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50137         * modules/wcsrtombs: New file.
50138         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50139         bugs.
50140
50141 2008-12-21  Bruno Haible  <bruno@clisp.org>
50142
50143         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50144         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50145         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50146         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50147         if not correct.
50148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50149         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50150         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50151         m4/locale-zh.m4, m4/codeset.m4.
50152         * doc/posix-functions/wcrtomb.texi: Document the bug.
50153
50154 2008-12-21  Bruno Haible  <bruno@clisp.org>
50155
50156         Work around a btowc() bug on IRIX 6.5.
50157         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50158         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50159         REPLACE_WTOBC if not.
50160         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50161         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50162         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50163
50164 2008-12-21  Bruno Haible  <bruno@clisp.org>
50165
50166         * modules/wcrtomb-tests: New file.
50167         * tests/test-wcrtomb.sh: New file.
50168         * tests/test-wcrtomb.c: New file.
50169
50170         New module 'wcrtomb'.
50171         * lib/wchar.in.h (wcrtomb): New declaration.
50172         * lib/wcrtomb.c: New file.
50173         * m4/wcrtomb.m4: New file.
50174         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50175         HAVE_WCRTOMB.
50176         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50177         HAVE_WCRTOMB.
50178         * modules/wcrtomb: New file.
50179         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50180
50181 2008-12-21  Bruno Haible  <bruno@clisp.org>
50182
50183         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50184         * modules/mbsrtowcs (Files): Likewise.
50185         * modules/wctob (Files): Likewise.
50186         * modules/c-strcase-tests (Files): Likewise.
50187         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50188         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50189         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50190         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50191         * modules/vasnprintf-posix-tests (Files): Likewise.
50192
50193 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50194
50195         gitlog-to-changelog: pass all command-line arguments to git-log
50196         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50197         it is sometimes convenient to filter the commits in various ways.
50198         gitlog-to-changelog only allows --since to specify a start date,
50199         but git-log itself supports many other filtering mechanisms.
50200         At the moment, I want to filter by branch name.  Rather than
50201         adding a --branch option to gitlog-to-changelog, it seems more
50202         flexible to simply pass all options directly to git-log and let
50203         git do the work.  Notice that this effectively makes --since a
50204         redundant option for gitlog-to-changelog, but removing it would
50205         require current usage to change since calls would then require
50206         an additional '--'.
50207
50208 2008-12-21  Bruno Haible  <bruno@clisp.org>
50209
50210         * modules/mbsnrtowcs-tests: New file.
50211         * tests/test-mbsnrtowcs1.sh: New file.
50212         * tests/test-mbsnrtowcs2.sh: New file.
50213         * tests/test-mbsnrtowcs3.sh: New file.
50214         * tests/test-mbsnrtowcs4.sh: New file.
50215         * tests/test-mbsnrtowcs.c: New file.
50216
50217         New module 'mbsnrtowcs'.
50218         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50219         * lib/mbsnrtowcs.c: New file.
50220         * lib/mbsrtowcs-state.c: New file.
50221         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50222         (internal_state): Remove variable.
50223         * m4/mbsnrtowcs.m4: New file.
50224         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50225         compilation units.
50226         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50227         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50228         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50229         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50230         * modules/mbsnrtowcs: New file.
50231         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50232         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50233         portability problem.
50234
50235 2008-12-21  Bruno Haible  <bruno@clisp.org>
50236
50237         Work around mbsrtowcs bug.
50238         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50239         (gl_FUNC_MBSRTOWCS): Invoke it.
50240         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50241         m4/locale-zh.m4.
50242         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50243
50244 2008-12-21  Bruno Haible  <bruno@clisp.org>
50245
50246         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50247
50248 2008-12-21  Bruno Haible  <bruno@clisp.org>
50249
50250         Update doc for AIX.
50251         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50252         16-bit wchar_t type.
50253         * doc/posix-functions/btowc.texi: Likewise.
50254         * doc/posix-functions/fgetwc.texi: Likewise.
50255         * doc/posix-functions/fgetws.texi: Likewise.
50256         * doc/posix-functions/fputwc.texi: Likewise.
50257         * doc/posix-functions/fputws.texi: Likewise.
50258         * doc/posix-functions/fwide.texi: Likewise.
50259         * doc/posix-functions/fwprintf.texi: Likewise.
50260         * doc/posix-functions/fwscanf.texi: Likewise.
50261         * doc/posix-functions/getwchar.texi: Likewise.
50262         * doc/posix-functions/getwc.texi: Likewise.
50263         * doc/posix-functions/iswalnum.texi: Likewise.
50264         * doc/posix-functions/iswalpha.texi: Likewise.
50265         * doc/posix-functions/iswblank.texi: Likewise.
50266         * doc/posix-functions/iswcntrl.texi: Likewise.
50267         * doc/posix-functions/iswctype.texi: Likewise.
50268         * doc/posix-functions/iswdigit.texi: Likewise.
50269         * doc/posix-functions/iswgraph.texi: Likewise.
50270         * doc/posix-functions/iswlower.texi: Likewise.
50271         * doc/posix-functions/iswprint.texi: Likewise.
50272         * doc/posix-functions/iswpunct.texi: Likewise.
50273         * doc/posix-functions/iswspace.texi: Likewise.
50274         * doc/posix-functions/iswupper.texi: Likewise.
50275         * doc/posix-functions/iswxdigit.texi: Likewise.
50276         * doc/posix-functions/mbrtowc.texi: Likewise.
50277         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50278         * doc/posix-functions/mbstowcs.texi: Likewise.
50279         * doc/posix-functions/mbtowc.texi: Likewise.
50280         * doc/posix-functions/putwchar.texi: Likewise.
50281         * doc/posix-functions/putwc.texi: Likewise.
50282         * doc/posix-functions/swprintf.texi: Likewise.
50283         * doc/posix-functions/tolower.texi: Likewise.
50284         * doc/posix-functions/toupper.texi: Likewise.
50285         * doc/posix-functions/towctrans.texi: Likewise.
50286         * doc/posix-functions/ungetwc.texi: Likewise.
50287         * doc/posix-functions/vswprintf.texi: Likewise.
50288         * doc/posix-functions/wcrtomb.texi: Likewise.
50289         * doc/posix-functions/wcscat.texi: Likewise.
50290         * doc/posix-functions/wcschr.texi: Likewise.
50291         * doc/posix-functions/wcscmp.texi: Likewise.
50292         * doc/posix-functions/wcscoll.texi: Likewise.
50293         * doc/posix-functions/wcscpy.texi: Likewise.
50294         * doc/posix-functions/wcscspn.texi: Likewise.
50295         * doc/posix-functions/wcsftime.texi: Likewise.
50296         * doc/posix-functions/wcslen.texi: Likewise.
50297         * doc/posix-functions/wcsncat.texi: Likewise.
50298         * doc/posix-functions/wcsncmp.texi: Likewise.
50299         * doc/posix-functions/wcsncpy.texi: Likewise.
50300         * doc/posix-functions/wcspbrk.texi: Likewise.
50301         * doc/posix-functions/wcsrchr.texi: Likewise.
50302         * doc/posix-functions/wcsrtombs.texi: Likewise.
50303         * doc/posix-functions/wcsspn.texi: Likewise.
50304         * doc/posix-functions/wcsstr.texi: Likewise.
50305         * doc/posix-functions/wcstod.texi: Likewise.
50306         * doc/posix-functions/wcstof.texi: Likewise.
50307         * doc/posix-functions/wcstoimax.texi: Likewise.
50308         * doc/posix-functions/wcstok.texi: Likewise.
50309         * doc/posix-functions/wcstold.texi: Likewise.
50310         * doc/posix-functions/wcstoll.texi: Likewise.
50311         * doc/posix-functions/wcstol.texi: Likewise.
50312         * doc/posix-functions/wcstombs.texi: Likewise.
50313         * doc/posix-functions/wcstoull.texi: Likewise.
50314         * doc/posix-functions/wcstoul.texi: Likewise.
50315         * doc/posix-functions/wcstoumax.texi: Likewise.
50316         * doc/posix-functions/wcswidth.texi: Likewise.
50317         * doc/posix-functions/wcsxfrm.texi: Likewise.
50318         * doc/posix-functions/wctob.texi: Likewise.
50319         * doc/posix-functions/wctomb.texi: Likewise.
50320         * doc/posix-functions/wctrans.texi: Likewise.
50321         * doc/posix-functions/wctype.texi: Likewise.
50322         * doc/posix-functions/wcwidth.texi: Likewise.
50323         * doc/posix-functions/wmemchr.texi: Likewise.
50324         * doc/posix-functions/wmemcmp.texi: Likewise.
50325         * doc/posix-functions/wmemcpy.texi: Likewise.
50326         * doc/posix-functions/wmemmove.texi: Likewise.
50327         * doc/posix-functions/wmemset.texi: Likewise.
50328         * doc/posix-functions/wprintf.texi: Likewise.
50329         * doc/posix-functions/wscanf.texi: Likewise.
50330
50331 2008-12-21  Bruno Haible  <bruno@clisp.org>
50332
50333         Update doc for HP-UX 11.11.
50334         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50335         in HP-UX version 11.00, not in all versions of HP-UX 11.
50336         * doc/posix-functions/fwide.texi: Likewise.
50337         * doc/posix-functions/fwprintf.texi: Likewise.
50338         * doc/posix-functions/fwscanf.texi: Likewise.
50339         * doc/posix-functions/inet_ntop.texi: Likewise.
50340         * doc/posix-functions/inet_pton.texi: Likewise.
50341         * doc/posix-functions/mbrlen.texi: Likewise.
50342         * doc/posix-functions/mbrtowc.texi: Likewise.
50343         * doc/posix-functions/mbsinit.texi: Likewise.
50344         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50345         * doc/posix-functions/swprintf.texi: Likewise.
50346         * doc/posix-functions/swscanf.texi: Likewise.
50347         * doc/posix-functions/towctrans.texi: Likewise.
50348         * doc/posix-functions/vfwprintf.texi: Likewise.
50349         * doc/posix-functions/vswprintf.texi: Likewise.
50350         * doc/posix-functions/vwprintf.texi: Likewise.
50351         * doc/posix-functions/wcrtomb.texi: Likewise.
50352         * doc/posix-functions/wcsrtombs.texi: Likewise.
50353         * doc/posix-functions/wcsstr.texi: Likewise.
50354         * doc/posix-functions/wctob.texi: Likewise.
50355         * doc/posix-functions/wctrans.texi: Likewise.
50356         * doc/posix-functions/wmemchr.texi: Likewise.
50357         * doc/posix-functions/wmemcmp.texi: Likewise.
50358         * doc/posix-functions/wmemcpy.texi: Likewise.
50359         * doc/posix-functions/wmemmove.texi: Likewise.
50360         * doc/posix-functions/wmemset.texi: Likewise.
50361         * doc/posix-functions/wprintf.texi: Likewise.
50362         * doc/posix-functions/wscanf.texi: Likewise.
50363
50364 2008-12-21  Bruno Haible  <bruno@clisp.org>
50365
50366         Work around a portability problem.
50367         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50368         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50369
50370 2008-12-20  Bruno Haible  <bruno@clisp.org>
50371
50372         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50373         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50374         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50375         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50376         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50377
50378         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50379         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50380         set.
50381         (GNULIB_defined_mbstate_t): New macro.
50382         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50383         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50384         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50385         reuses the system's mbrtowc function but works around the bugs.
50386         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50387         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50388         macros.
50389         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50390         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50391         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50392         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50393         REPLACE_MBSINIT if mbsinit needs to be overridden.
50394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50395         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50396         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50397         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50398         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50399         m4/locale-zh.m4.
50400         (Depends): Add mbsinit.
50401         * modules/mbsinit (Depends): Add mbrtowc.
50402         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50403
50404 2008-12-20  Bruno Haible  <bruno@clisp.org>
50405
50406         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50407         so that there are no conversion errors on AIX.
50408         * tests/test-mbsrtowcs.c (main): LIkewise.
50409
50410 2008-12-20  Bruno Haible  <bruno@clisp.org>
50411
50412         Work around wctob bug on Solaris <= 9.
50413         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50414         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50415         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50416         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50417         * modules/wctob (Files): Add m4/locale-fr.m4.
50418         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50419
50420 2008-12-20  Bruno Haible  <bruno@clisp.org>
50421
50422         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50423         /dev/null.
50424         * tests/test-select-in.sh: Likewise.
50425         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50426
50427 2008-12-20  Bruno Haible  <bruno@clisp.org>
50428
50429         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50430         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50431         Cygwin 1.5.x.
50432
50433 2008-12-20  Bruno Haible  <bruno@clisp.org>
50434
50435         Ensure mbstate_t is defined on HP-UX 11.11.
50436         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50437         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50438         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50439         AC_USE_SYSTEM_EXTENSIONS.
50440         * modules/fnmatch (Depends-on): Add extensions.
50441         * modules/mbrlen (Depends-on): Likewise.
50442         * modules/mbrtowc (Depends-on): Likewise.
50443         * modules/mbsinit (Depends-on): Likewise.
50444         * modules/mbsrtowcs (Depends-on): Likewise.
50445         * modules/mbswidth (Depends-on): Likewise.
50446         * modules/quotearg (Depends-on): Likewise.
50447         * modules/strftime (Depends-on): Likewise.
50448
50449 2008-12-20  Bruno Haible  <bruno@clisp.org>
50450
50451         Ensure wctob is declared on IRIX 6.5.
50452         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50453         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50454         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50455         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50456         of HAVE_WCTOB.
50457         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50458         HAVE_WCTOB.
50459         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50460
50461 2008-12-19  Bruno Haible  <bruno@clisp.org>
50462
50463         * modules/mbsrtowcs-tests: New file.
50464         * tests/test-mbsrtowcs1.sh: New file.
50465         * tests/test-mbsrtowcs2.sh: New file.
50466         * tests/test-mbsrtowcs3.sh: New file.
50467         * tests/test-mbsrtowcs4.sh: New file.
50468         * tests/test-mbsrtowcs.c: New file.
50469
50470         New module 'mbsrtowcs'.
50471         * lib/wchar.in.h (mbsrtowcs): New declaration.
50472         * lib/mbsrtowcs.c: New file.
50473         * m4/mbsrtowcs.m4: New file.
50474         * modules/mbsrtowcs: New file.
50475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50476         HAVE_MBSRTOWCS.
50477         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50478         HAVE_MBSRTOWCS.
50479         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50480
50481 2008-12-19  Bruno Haible  <bruno@clisp.org>
50482
50483         New module 'mbrlen'.
50484         * lib/wchar.in.h (mbrlen): New declaration.
50485         * lib/mbrlen.c: New file.
50486         * m4/mbrlen.m4: New file.
50487         * modules/mbrlen: New file.
50488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50489         HAVE_MBRLEN.
50490         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50491         HAVE_MBRLEN.
50492         * doc/posix-functions/mbrlen.texi: Document the new module.
50493
50494 2008-12-19  Bruno Haible  <bruno@clisp.org>
50495
50496         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50497         * modules/mbrtowc (Depends-on): Add verify.
50498         Suggested by Paul Eggert.
50499
50500 2008-12-18  Bruno Haible  <bruno@clisp.org>
50501
50502         * modules/mbsinit-tests: New file.
50503         * tests/test-mbsinit.sh: New file.
50504         * tests/test-mbsinit.c: New file.
50505
50506 2008-12-18  Bruno Haible  <bruno@clisp.org>
50507
50508         * modules/mbrtowc-tests: New file.
50509         * tests/test-mbrtowc1.sh: New file.
50510         * tests/test-mbrtowc2.sh: New file.
50511         * tests/test-mbrtowc3.sh: New file.
50512         * tests/test-mbrtowc4.sh: New file.
50513         * tests/test-mbrtowc.c: New file.
50514
50515         New module 'mbrtowc'.
50516         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50517         mbsinit and mbrtowc.
50518         (mbrtowc): New declaration.
50519         * lib/mbrtowc.c: New file.
50520         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50521         * modules/mbrtowc: New file.
50522         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50523         HAVE_MBRTOWC.
50524         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50525         HAVE_MBRTOWC.
50526         * doc/posix-functions/mbrtowc.texi: Document the new module.
50527
50528 2008-12-18  Bruno Haible  <bruno@clisp.org>
50529
50530         New module 'wctob'.
50531         * lib/wchar.in.h (wctob): New declaration.
50532         * lib/wctob.c: New file.
50533         * m4/wctob.m4: New file.
50534         * modules/wctob: New file.
50535         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50536         HAVE_WCTOB.
50537         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50538         * doc/posix-functions/wctob.texi: Document the new module.
50539
50540 2008-12-18  Bruno Haible  <bruno@clisp.org>
50541
50542         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50543         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50544
50545 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50546
50547         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50548         G. Christensen" <tgc@jupiterrise.com>.
50549
50550         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50551         G. Christensen" <tgc@jupiterrise.com>.
50552
50553         * lib/flock.c: Need to include string.h.  Reported by "Tom
50554         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50555         <ebb9@byu.net>.
50556
50557 2008-12-18  Bruno Haible  <bruno@clisp.org>
50558
50559         * m4/locale-ja.m4: New file, from GNU gettext.
50560
50561 2008-12-17  Bruno Haible  <bruno@clisp.org>
50562
50563         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50564         Suggested by Eric Blake.
50565
50566 2008-12-17  Bruno Haible  <bruno@clisp.org>
50567
50568         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50569
50570 2008-12-17  Bruno Haible  <bruno@clisp.org>
50571
50572         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50573         * modules/mbsinit (Depends-on): Add verify.
50574         Suggested by Paul Eggert.
50575
50576 2008-12-17  Bruno Haible  <bruno@clisp.org>
50577
50578         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50579         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50580         gl_FUNC_MBRTOWC.
50581         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50582         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50583         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50584         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50585         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50586         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50587         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50588         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50589         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50590         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50591         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50592         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50593         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50594         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50595         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50596         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50597         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50598         * modules/trim (configure.ac): Likewise.
50599
50600 2008-12-17  Bruno Haible  <bruno@clisp.org>
50601
50602         * modules/btowc-tests: New file.
50603         * tests/test-btowc1.sh: New file.
50604         * tests/test-btowc2.sh: New file.
50605         * tests/test-btowc.c: New file.
50606
50607         New module 'btowc'.
50608         * lib/wchar.in.h (btowc): New declaration.
50609         * lib/btowc.c: New file.
50610         * m4/btowc.m4: New file.
50611         * modules/btowc: New file.
50612         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50613         HAVE_BTOWC.
50614         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50615         * doc/posix-functions/btowc.texi: Document the new module.
50616
50617 2008-12-17  Bruno Haible  <bruno@clisp.org>
50618
50619         New module 'mbsinit'.
50620         * lib/wchar.in.h (mbsinit): New declaration.
50621         * lib/mbsinit.c: New file.
50622         * m4/mbsinit.m4: New file.
50623         * modules/mbsinit: New file.
50624         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50625         HAVE_MBSINIT.
50626         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50627         HAVE_MBSINIT.
50628         * doc/posix-functions/mbsinit.texi: Document the new module.
50629
50630 2008-12-16  Bruno Haible  <bruno@clisp.org>
50631
50632         * lib/unistd.in.h: Add comment.
50633         * tests/test-environ.c: Don't include <stdlib.h>.
50634
50635 2008-12-16  Bruno Haible  <bruno@clisp.org>
50636
50637         * lib/parse-duration.h (parse_duration): Document return value
50638         convention.
50639         * lib/parse-duration.c: Include specification header first. Add
50640         comments.
50641         (_): Remove macro.
50642         (parse_year_month_day, parse_hour_minute_second): Move side effects
50643         outside of strchr call.
50644         (parse_non_iso8601): Move side effects outside of isspace call.
50645         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50646         call.
50647
50648 2008-12-16  Bruno Haible  <bruno@clisp.org>
50649
50650         * tests/test-parse-duration.sh: Produce no output when the test
50651         succeeds.
50652
50653 2008-12-16  Bruno Haible  <bruno@clisp.org>
50654
50655         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50656         expressions.
50657
50658 2008-12-15  Bruno Haible  <bruno@clisp.org>
50659
50660         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50661         * doc/glibc-functions/flistxattr.texi: Likewise.
50662         * doc/glibc-functions/fopencookie.texi: Likewise.
50663         * doc/glibc-functions/fremovexattr.texi: Likewise.
50664         * doc/glibc-functions/fsetxattr.texi: Likewise.
50665         * doc/glibc-functions/getxattr.texi: Likewise.
50666         * doc/glibc-functions/lgetxattr.texi: Likewise.
50667         * doc/glibc-functions/listxattr.texi: Likewise.
50668         * doc/glibc-functions/llistxattr.texi: Likewise.
50669         * doc/glibc-functions/lremovexattr.texi: Likewise.
50670         * doc/glibc-functions/lsetxattr.texi: Likewise.
50671         * doc/glibc-functions/removexattr.texi: Likewise.
50672         * doc/glibc-functions/setxattr.texi: Likewise.
50673         * doc/posix-functions/open_memstream.texi: Likewise.
50674
50675 2008-12-15  Eric Blake  <ebb9@byu.net>
50676
50677         Update doc for cygwin 1.7.
50678         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50679         functions.
50680         * doc/posix-functions/fchmodat.texi: Likewise.
50681         * doc/posix-functions/fchownat.texi: Likewise.
50682         * doc/posix-functions/fdopendir.texi: Likewise.
50683         * doc/posix-functions/fmemopen.texi: Likewise.
50684         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50685         * doc/posix-functions/fstatat.texi: Likewise.
50686         * doc/posix-functions/futimens.texi: Likewise.
50687         * doc/posix-functions/gai_strerror.texi: Likewise.
50688         * doc/posix-functions/getaddrinfo.texi: Likewise.
50689         * doc/posix-functions/getnameinfo.texi: Likewise.
50690         * doc/posix-functions/if_freenameindex.texi: Likewise.
50691         * doc/posix-functions/if_indextoname.texi: Likewise.
50692         * doc/posix-functions/if_nameindex.texi: Likewise.
50693         * doc/posix-functions/if_nametoindex.texi: Likewise.
50694         * doc/posix-functions/insque.texi: Likewise.
50695         * doc/posix-functions/linkat.texi: Likewise.
50696         * doc/posix-functions/llrint.texi: Likewise.
50697         * doc/posix-functions/llrintf.texi: Likewise.
50698         * doc/posix-functions/llrintl.texi: Likewise.
50699         * doc/posix-functions/lockf.texi: Likewise.
50700         * doc/posix-functions/lrintl.texi: Likewise.
50701         * doc/posix-functions/mkdirat.texi: Likewise.
50702         * doc/posix-functions/mkfifoat.texi: Likewise.
50703         * doc/posix-functions/mknodat.texi: Likewise.
50704         * doc/posix-functions/mq_close.texi: Likewise.
50705         * doc/posix-functions/mq_getattr.texi: Likewise.
50706         * doc/posix-functions/mq_notify.texi: Likewise.
50707         * doc/posix-functions/mq_open.texi: Likewise.
50708         * doc/posix-functions/mq_receive.texi: Likewise.
50709         * doc/posix-functions/mq_send.texi: Likewise.
50710         * doc/posix-functions/mq_setattr.texi: Likewise.
50711         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50712         * doc/posix-functions/mq_timedsend.texi: Likewise.
50713         * doc/posix-functions/mq_unlink.texi: Likewise.
50714         * doc/posix-functions/open_memstream.texi: Likewise.
50715         * doc/posix-functions/openat.texi: Likewise.
50716         * doc/posix-functions/posix_fadvise.texi: Likewise.
50717         * doc/posix-functions/posix_fallocate.texi: Likewise.
50718         * doc/posix-functions/posix_madvise.texi: Likewise.
50719         * doc/posix-functions/posix_memalign.texi: Likewise.
50720         * doc/posix-functions/posix_openpt.texi: Likewise.
50721         * doc/posix-functions/readlinkat.texi: Likewise.
50722         * doc/posix-functions/remque.texi: Likewise.
50723         * doc/posix-functions/renameat.texi: Likewise.
50724         * doc/posix-functions/rintl.texi: Likewise.
50725         * doc/posix-functions/sem_unlink.texi: Likewise.
50726         * doc/posix-functions/shm_open.texi: Likewise.
50727         * doc/posix-functions/shm_unlink.texi: Likewise.
50728         * doc/posix-functions/signgam.texi: Likewise.
50729         * doc/posix-functions/sigset.texi: Likewise.
50730         * doc/posix-functions/stpcpy.texi: Likewise.
50731         * doc/posix-functions/stpncpy.texi: Likewise.
50732         * doc/posix-functions/strerror.texi: Likewise.
50733         * doc/posix-functions/strtod.texi: Likewise.
50734         * doc/posix-functions/symlinkat.texi: Likewise.
50735         * doc/posix-functions/unlinkat.texi: Likewise.
50736         * doc/posix-functions/utimensat.texi: Likewise.
50737         * doc/glibc-functions/bindresvport.texi: Likewise.
50738         * doc/glibc-functions/dn_expand.texi: Likewise.
50739         * doc/glibc-functions/exp10.texi: Likewise.
50740         * doc/glibc-functions/exp10f.texi: Likewise.
50741         * doc/glibc-functions/fgetxattr.texi: Likewise.
50742         * doc/glibc-functions/flistxattr.texi: Likewise.
50743         * doc/glibc-functions/fopencookie.texi: Likewise.
50744         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50745         * doc/glibc-functions/fremovexattr.texi: Likewise.
50746         * doc/glibc-functions/fsetxattr.texi: Likewise.
50747         * doc/glibc-functions/getifaddrs.texi: Likewise.
50748         * doc/glibc-functions/getxattr.texi: Likewise.
50749         * doc/glibc-functions/lgetxattr.texi: Likewise.
50750         * doc/glibc-functions/listxattr.texi: Likewise.
50751         * doc/glibc-functions/llistxattr.texi: Likewise.
50752         * doc/glibc-functions/lremovexattr.texi: Likewise.
50753         * doc/glibc-functions/lsetxattr.texi: Likewise.
50754         * doc/glibc-functions/pow10.texi: Likewise.
50755         * doc/glibc-functions/pow10f.texi: Likewise.
50756         * doc/glibc-functions/rcmd_af.texi: Likewise.
50757         * doc/glibc-functions/removexattr.texi: Likewise.
50758         * doc/glibc-functions/res_init.texi: Likewise.
50759         * doc/glibc-functions/res_mkquery.texi: Likewise.
50760         * doc/glibc-functions/res_query.texi: Likewise.
50761         * doc/glibc-functions/res_querydomain.texi: Likewise.
50762         * doc/glibc-functions/res_send.texi: Likewise.
50763         * doc/glibc-functions/rresvport_af.texi: Likewise.
50764         * doc/glibc-functions/setxattr.texi: Likewise.
50765         * doc/glibc-functions/strcasestr.texi: Likewise.
50766
50767 2008-12-15  Bruno Haible  <bruno@clisp.org>
50768
50769         Fix compilation error on OSF/1 4.0.
50770         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50771         <sys/time.h>, simply delegate to the system header.
50772         Reported by Daniel Richard G. <oss@teragram.com>.
50773
50774 2008-12-15  Bruno Haible  <bruno@clisp.org>
50775
50776         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50777         * doc/posix-functions/fchmodat.texi: Likewise.
50778         * doc/posix-functions/fchownat.texi: Likewise.
50779         * doc/posix-functions/fdopendir.texi: Likewise.
50780         * doc/posix-functions/fstatat.texi: Likewise.
50781         * doc/posix-functions/mkdirat.texi: Likewise.
50782         * doc/posix-functions/unlinkat.texi: Likewise.
50783
50784 2008-12-14  Bruno Haible  <bruno@clisp.org>
50785
50786         Update doc for POSIX:2008.
50787         * doc/posix-functions/faccessat.texi: New file.
50788         * doc/posix-functions/fchmodat.texi: New file.
50789         * doc/posix-functions/fchownat.texi: New file.
50790         * doc/posix-functions/fdopendir.texi: New file.
50791         * doc/posix-functions/fstatat.texi: New file.
50792         * doc/posix-functions/futimens.texi: New file.
50793         * doc/posix-functions/linkat.texi: New file.
50794         * doc/posix-functions/mkdirat.texi: New file.
50795         * doc/posix-functions/mkfifoat.texi: New file.
50796         * doc/posix-functions/mknodat.texi: New file.
50797         * doc/posix-functions/open_wmemstream.texi: New file.
50798         * doc/posix-functions/openat.texi: New file.
50799         * doc/posix-functions/psiginfo.texi: New file.
50800         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50801         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50802         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50803         * doc/posix-functions/readlinkat.texi: New file.
50804         * doc/posix-functions/renameat.texi: New file.
50805         * doc/posix-functions/strerror_l.texi: New file.
50806         * doc/posix-functions/symlinkat.texi: New file.
50807         * doc/posix-functions/unlinkat.texi: New file.
50808         * doc/posix-functions/utimensat.texi: New file.
50809         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50810
50811 2008-12-14  Bruno Haible  <bruno@clisp.org>
50812
50813         Update doc for POSIX:2008.
50814         * doc/posix-functions/alphasort.texi: Renamed from
50815         doc/glibc-functions/alphasort.texi.
50816         * doc/posix-functions/dirfd.texi: Renamed from
50817         doc/glibc-functions/dirfd.texi.
50818         * doc/posix-functions/dprintf.texi: Renamed from
50819         doc/glibc-functions/dprintf.texi.
50820         * doc/posix-functions/duplocale.texi: Renamed from
50821         doc/glibc-functions/duplocale.texi.
50822         * doc/posix-functions/fexecve.texi: Renamed from
50823         doc/glibc-functions/fexecve.texi.
50824         * doc/posix-functions/fmemopen.texi: Renamed from
50825         doc/glibc-functions/fmemopen.texi.
50826         * doc/posix-functions/freelocale.texi: Renamed from
50827         doc/glibc-functions/freelocale.texi.
50828         * doc/posix-functions/getdate_err.texi: Renamed from
50829         doc/glibc-functions/getdate_err.texi.
50830         * doc/posix-functions/isalnum_l.texi: Renamed from
50831         doc/glibc-functions/isalnum_l.texi.
50832         * doc/posix-functions/isalpha_l.texi: Renamed from
50833         doc/glibc-functions/isalpha_l.texi.
50834         * doc/posix-functions/isblank_l.texi: Renamed from
50835         doc/glibc-functions/isblank_l.texi.
50836         * doc/posix-functions/iscntrl_l.texi: Renamed from
50837         doc/glibc-functions/iscntrl_l.texi.
50838         * doc/posix-functions/isdigit_l.texi: Renamed from
50839         doc/glibc-functions/isdigit_l.texi.
50840         * doc/posix-functions/isgraph_l.texi: Renamed from
50841         doc/glibc-functions/isgraph_l.texi.
50842         * doc/posix-functions/islower_l.texi: Renamed from
50843         doc/glibc-functions/islower_l.texi.
50844         * doc/posix-functions/isprint_l.texi: Renamed from
50845         doc/glibc-functions/isprint_l.texi.
50846         * doc/posix-functions/ispunct_l.texi: Renamed from
50847         doc/glibc-functions/ispunct_l.texi.
50848         * doc/posix-functions/isspace_l.texi: Renamed from
50849         doc/glibc-functions/isspace_l.texi.
50850         * doc/posix-functions/isupper_l.texi: Renamed from
50851         doc/glibc-functions/isupper_l.texi.
50852         * doc/posix-functions/iswalnum_l.texi: Renamed from
50853         doc/glibc-functions/iswalnum_l.texi.
50854         * doc/posix-functions/iswalpha_l.texi: Renamed from
50855         doc/glibc-functions/iswalpha_l.texi.
50856         * doc/posix-functions/iswblank_l.texi: Renamed from
50857         doc/glibc-functions/iswblank_l.texi.
50858         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50859         doc/glibc-functions/iswcntrl_l.texi.
50860         * doc/posix-functions/iswctype_l.texi: Renamed from
50861         doc/glibc-functions/iswctype_l.texi.
50862         * doc/posix-functions/iswdigit_l.texi: Renamed from
50863         doc/glibc-functions/iswdigit_l.texi.
50864         * doc/posix-functions/iswgraph_l.texi: Renamed from
50865         doc/glibc-functions/iswgraph_l.texi.
50866         * doc/posix-functions/iswlower_l.texi: Renamed from
50867         doc/glibc-functions/iswlower_l.texi.
50868         * doc/posix-functions/iswprint_l.texi: Renamed from
50869         doc/glibc-functions/iswprint_l.texi.
50870         * doc/posix-functions/iswpunct_l.texi: Renamed from
50871         doc/glibc-functions/iswpunct_l.texi.
50872         * doc/posix-functions/iswspace_l.texi: Renamed from
50873         doc/glibc-functions/iswspace_l.texi.
50874         * doc/posix-functions/iswupper_l.texi: Renamed from
50875         doc/glibc-functions/iswupper_l.texi.
50876         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50877         doc/glibc-functions/iswxdigit_l.texi.
50878         * doc/posix-functions/isxdigit_l.texi: Renamed from
50879         doc/glibc-functions/isxdigit_l.texi.
50880         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50881         doc/glibc-functions/mbsnrtowcs.texi.
50882         * doc/posix-functions/mkdtemp.texi: Renamed from
50883         doc/glibc-functions/mkdtemp.texi.
50884         * doc/posix-functions/newlocale.texi: Renamed from
50885         doc/glibc-functions/newlocale.texi.
50886         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50887         doc/glibc-functions/nl_langinfo_l.texi.
50888         * doc/posix-functions/open_memstream.texi: Renamed from
50889         doc/glibc-functions/open_memstream.texi.
50890         * doc/posix-functions/opterr.texi: Renamed from
50891         doc/glibc-functions/opterr.texi.
50892         * doc/posix-functions/optind.texi: Renamed from
50893         doc/glibc-functions/optind.texi.
50894         * doc/posix-functions/optopt.texi: Renamed from
50895         doc/glibc-functions/optopt.texi.
50896         * doc/posix-functions/psignal.texi: Renamed from
50897         doc/glibc-functions/psignal.texi.
50898         * doc/posix-functions/scandir.texi: Renamed from
50899         doc/glibc-functions/scandir.texi.
50900         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50901         doc/glibc-functions/sched_get_priority_min.texi.
50902         * doc/posix-functions/signgam.texi: Renamed from
50903         doc/glibc-functions/signgam.texi.
50904         * doc/posix-functions/stpcpy.texi: Renamed from
50905         doc/glibc-functions/stpcpy.texi.
50906         * doc/posix-functions/stpncpy.texi: Renamed from
50907         doc/glibc-functions/stpncpy.texi.
50908         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50909         doc/glibc-functions/strcasecmp_l.texi.
50910         * doc/posix-functions/strcoll_l.texi: Renamed from
50911         doc/glibc-functions/strcoll_l.texi.
50912         * doc/posix-functions/strfmon_l.texi: Renamed from
50913         doc/glibc-functions/strfmon_l.texi.
50914         * doc/posix-functions/strftime_l.texi: Renamed from
50915         doc/glibc-functions/strftime_l.texi.
50916         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50917         doc/glibc-functions/strncasecmp_l.texi.
50918         * doc/posix-functions/strndup.texi: Renamed from
50919         doc/glibc-functions/strndup.texi.
50920         * doc/posix-functions/strnlen.texi: Renamed from
50921         doc/glibc-functions/strnlen.texi.
50922         * doc/posix-functions/strsignal.texi: Renamed from
50923         doc/glibc-functions/strsignal.texi.
50924         * doc/posix-functions/strxfrm_l.texi: Renamed from
50925         doc/glibc-functions/strxfrm_l.texi.
50926         * doc/posix-functions/timer_gettime.texi: Renamed from
50927         doc/glibc-functions/timer_gettime.texi.
50928         * doc/posix-functions/tolower_l.texi: Renamed from
50929         doc/glibc-functions/tolower_l.texi.
50930         * doc/posix-functions/toupper_l.texi: Renamed from
50931         doc/glibc-functions/toupper_l.texi.
50932         * doc/posix-functions/towctrans_l.texi: Renamed from
50933         doc/glibc-functions/towctrans_l.texi.
50934         * doc/posix-functions/towlower_l.texi: Renamed from
50935         doc/glibc-functions/towlower_l.texi.
50936         * doc/posix-functions/towupper_l.texi: Renamed from
50937         doc/glibc-functions/towupper_l.texi.
50938         * doc/posix-functions/uselocale.texi: Renamed from
50939         doc/glibc-functions/uselocale.texi.
50940         * doc/posix-functions/vdprintf.texi: Renamed from
50941         doc/glibc-functions/vdprintf.texi.
50942         * doc/posix-functions/wcpcpy.texi:
50943         Renamed from doc/glibc-functions/wcpcpy.texi.
50944         * doc/posix-functions/wcpncpy.texi: Renamed from
50945         doc/glibc-functions/wcpncpy.texi.
50946         * doc/posix-functions/wcscasecmp.texi: Renamed from
50947         doc/glibc-functions/wcscasecmp.texi.
50948         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50949         doc/glibc-functions/wcscasecmp_l.texi.
50950         * doc/posix-functions/wcscoll_l.texi: Renamed from
50951         doc/glibc-functions/wcscoll_l.texi.
50952         * doc/posix-functions/wcsdup.texi: Renamed from
50953         doc/glibc-functions/wcsdup.texi.
50954         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50955         doc/glibc-functions/wcsncasecmp.texi.
50956         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50957         doc/glibc-functions/wcsncasecmp_l.texi.
50958         * doc/posix-functions/wcsnlen.texi: Renamed from
50959         doc/glibc-functions/wcsnlen.texi.
50960         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50961         doc/glibc-functions/wcsnrtombs.texi.
50962         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50963         doc/glibc-functions/wcsxfrm_l.texi.
50964         * doc/posix-functions/wctrans_l.texi: Renamed from
50965         doc/glibc-functions/wctrans_l.texi.
50966         * doc/posix-functions/wctype_l.texi: Renamed from
50967         doc/glibc-functions/wctype_l.texi.
50968         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50969         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50970         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50971         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50972         these subsections.
50973         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50974         Remove sections.
50975
50976 2008-12-14  Bruno Haible  <bruno@clisp.org>
50977
50978         Update doc for POSIX:2008.
50979         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50980
50981 2008-12-14  Bruno Haible  <bruno@clisp.org>
50982
50983         Update doc for POSIX:2008.
50984         * doc/pastposix-functions/bcmp.texi: Renamed from
50985         doc/posix-functions/bcmp.texi.
50986         * doc/pastposix-functions/bcopy.texi: Renamed from
50987         doc/posix-functions/bcopy.texi.
50988         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50989         doc/posix-functions/bsd_signal.texi.
50990         * doc/pastposix-functions/bzero.texi: Renamed from
50991         doc/posix-functions/bzero.texi.
50992         * doc/pastposix-functions/ecvt.texi: Renamed from
50993         doc/posix-functions/ecvt.texi.
50994         * doc/pastposix-functions/fcvt.texi: Renamed from
50995         doc/posix-functions/fcvt.texi.
50996         * doc/pastposix-functions/ftime.texi: Renamed from
50997         doc/posix-functions/ftime.texi.
50998         * doc/pastposix-functions/gcvt.texi: Renamed from
50999         doc/posix-functions/gcvt.texi.
51000         * doc/pastposix-functions/getcontext.texi: Renamed from
51001         doc/posix-functions/getcontext.texi.
51002         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
51003         doc/posix-functions/gethostbyaddr.texi.
51004         * doc/pastposix-functions/gethostbyname.texi: Renamed from
51005         doc/posix-functions/gethostbyname.texi.
51006         * doc/pastposix-functions/getwd.texi: Renamed from
51007         doc/posix-functions/getwd.texi.
51008         * doc/pastposix-functions/h_errno.texi: Renamed from
51009         doc/posix-functions/h_errno.texi.
51010         * doc/pastposix-functions/index.texi: Renamed from
51011         doc/posix-functions/index.texi.
51012         * doc/pastposix-functions/makecontext.texi: Renamed from
51013         doc/posix-functions/makecontext.texi.
51014         * doc/pastposix-functions/mktemp.texi: Renamed from
51015         doc/posix-functions/mktemp.texi.
51016         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
51017         doc/posix-functions/pthread_attr_getstackaddr.texi.
51018         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
51019         doc/posix-functions/pthread_attr_setstackaddr.texi.
51020         * doc/pastposix-functions/rindex.texi: Renamed from
51021         doc/posix-functions/rindex.texi.
51022         * doc/pastposix-functions/scalb.texi: Renamed from
51023         doc/posix-functions/scalb.texi.
51024         * doc/pastposix-functions/setcontext.texi: Renamed from
51025         doc/posix-functions/setcontext.texi.
51026         * doc/pastposix-functions/swapcontext.texi: Renamed from
51027         doc/posix-functions/swapcontext.texi.
51028         * doc/pastposix-functions/ualarm.texi: Renamed from
51029         doc/posix-functions/ualarm.texi.
51030         * doc/pastposix-functions/usleep.texi: Renamed from
51031         doc/posix-functions/usleep.texi.
51032         * doc/pastposix-functions/vfork.texi: Renamed from
51033         doc/posix-functions/vfork.texi.
51034         * doc/pastposix-functions/wcswcs.texi: Renamed from
51035         doc/posix-functions/wcswcs.texi.
51036         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
51037         (Function Substitutes): Update.
51038
51039 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51040
51041         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
51042         m4/strerror.m4.
51043
51044 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51045             Bruno Haible  <bruno@clisp.org>
51046
51047         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
51048
51049 2008-12-13  Bruno Haible  <bruno@clisp.org>
51050
51051         * modules/strtoull (Depends-on): Remove unistd.
51052
51053 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51054
51055         * modules/strtoull (Depends-on): Add stdlib.
51056
51057 2008-12-11  Simon Josefsson  <simon@josefsson.org>
51058
51059         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
51060
51061 2008-12-10  Jim Meyering  <meyering@redhat.com>
51062
51063         gl_ASSERT: don't say assertions are disabled when they're not
51064         * m4/assert.m4 (gl_ASSERT): Do not make configure report
51065         "checking whether to enable assertions... no", when they are in
51066         fact enabled.  This is solely a bug in the output of configure.
51067         In spite of saying "no", NDEBUG was not defined in that case.
51068         Also, as noted by Eric Blake, leave assertions enabled upon
51069         --enable-assert=INVALID.
51070
51071 2008-12-10  Bruno Haible  <bruno@clisp.org>
51072
51073         Change MODULES.html to refer to POSIX:2008 where possible.
51074         * MODULES.html.sh (POSIX2008_URL): New variable.
51075         (posix_headers): Remove sys/timeb, ucontext.
51076         (posix2001_headers): New variable.
51077         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
51078         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
51079         index, makecontext, mktemp, pthread_attr_getstackaddr,
51080         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
51081         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
51082         (posix2001_functions): New variable.
51083         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
51084         otherwise.
51085
51086 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51087
51088         add missing include to parse-duration.c
51089         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
51090         * modules/parse-duration (Depends-on): Add xalloc.
51091
51092         fix sed script reading maint.mk
51093         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
51094         (syntax-check-rules): Use it.
51095
51096 2008-12-09  Bruno Haible  <bruno@clisp.org>
51097
51098         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
51099         MacOS X 10.4/PowerPC.
51100         Reported by Simon Josefsson.
51101
51102 2008-12-08  Jim Meyering  <meyering@redhat.com>
51103
51104         work around mingw's lack of some S_IF definitions
51105         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
51106         Reported by Simon Josefsson.
51107
51108 2008-12-08  Bruno Haible  <bruno@clisp.org>
51109
51110         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
51111         applied to variables. Needed on MacOS X 10.4/PowerPC.
51112         Reported by Simon Josefsson.
51113
51114 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
51115         and Eric Blake  <ebb9@byu.net>
51116
51117         assert: honor --enable-assert
51118         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
51119         order to honor --enable-assert, rather than treating it as a
51120         synonym for --disable-assert.
51121
51122 2008-12-08  Jim Meyering  <meyering@redhat.com>
51123
51124         * lib/posixtm.c: Remove now-useless declaration of mktime.
51125
51126         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
51127
51128 2008-12-07  Bruno Haible  <bruno@clisp.org>
51129
51130         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
51131         test_once): Mark functions as static.
51132         * tests/test-tls.c (test_tls): Likewise.
51133
51134 2008-12-07  Bruno Haible  <bruno@clisp.org>
51135
51136         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51137         iconv_register_autodetect.
51138
51139 2008-12-07  Jim Meyering  <meyering@redhat.com>
51140
51141         posixtm.c: avoid a warning
51142         * lib/posixtm.c (posixtime): Don't initialize tm0.
51143         It's no longer needed to placate gcc4's -Wuninitialized,
51144         and the attempt to placate would elicit a new warning.
51145
51146         unicodeio.c: mark unused parameters
51147         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51148         (fallback_failure_callback): Likewise.
51149
51150 2008-12-07  Bruno Haible  <bruno@clisp.org>
51151
51152         * gnulib-tool (func_create_testdir): When building the tests
51153         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51154         Reported by Simon Josefsson.
51155
51156 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51157
51158         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51159
51160 2008-12-06  Bruno Haible  <bruno@clisp.org>
51161
51162         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51163         Suggested by Eric Blake.
51164
51165 2008-12-06  Bruno Haible  <bruno@clisp.org>
51166
51167         Fix a c-stack test failure on MacOS X.
51168         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51169         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51170         handler for SIGBUS as well.
51171         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51172         install a signal handler for SIGBUS as well.
51173         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51174
51175 2008-12-06  Bruno Haible  <bruno@clisp.org>
51176
51177         Advocacy documentation.
51178         * doc/gnulib-intro.texi (Benefits): New section.
51179         * doc/gnulib.texi: Update.
51180
51181 2008-12-06  Bruno Haible  <bruno@clisp.org>
51182
51183         Document the 'manywarnings' module.
51184         * doc/manywarnings.texi: New file.
51185         * doc/gnulib.texi: Include it.
51186
51187 2008-12-05  Eric Blake  <ebb9@byu.net>
51188
51189         tests: silence some gcc warnings
51190         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51191         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51192         type mismatches.
51193
51194 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51195             Bruno Haible  <bruno@clisp.org>
51196
51197         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51198
51199 2008-11-29  Jim Meyering  <meyering@redhat.com>
51200
51201         unicodeio.c: mark unused parameters
51202         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51203         (fallback_failure_callback): Likewise.
51204
51205         fts: fix a thinko
51206         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51207         (set_stat_type): Return S_IF*-valued "type" directly.
51208         Prompted by James Youngman's spotting a related bug.
51209         Confirmed by further testing through find.
51210
51211         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51212         * lib/fts.c (D_TYPE): Define.
51213         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51214         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51215         (s_ifmt_shift_bits): New function.
51216         (set_stat_type): New function.
51217         (fts_build): When not calling fts_stat, call set_stat_type
51218         to propagate dirent.d_type info to fts_read caller.
51219         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51220         fts_statp->st_mode type information may be valid.
51221
51222 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51223
51224         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51225         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51226         <sds@gnu.org>.
51227
51228 2008-11-20  Bruno Haible  <bruno@clisp.org>
51229
51230         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51231         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51232         INCLUDE_NEXT.
51233         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51234         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51235         * modules/math (Makefile.am): Substitute
51236         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51237         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51238
51239 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51240             Bruno Haible  <bruno@clisp.org>
51241
51242         * lib/stdint.in.h: Define all type macros so that their expansion is
51243         a single typedef'ed token. Fixes a compilation failure in Boost which
51244         does "using ::int8_t;".
51245
51246 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51247
51248         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51249         gl_MANYWARN_ALL_GCC.
51250         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51251         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51252         * modules/manywarnings: New file.
51253         * MODULES.html.sh: Mention manywarnings module.
51254
51255 2008-11-18  Bruno Haible  <bruno@clisp.org>
51256
51257         * doc/gnulib-tool.texi (Unit tests): New section.
51258
51259 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51260
51261         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51262         paths like 'lib/po/foo.po'.
51263
51264 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51265
51266         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51267         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51268
51269 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51270
51271         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51272         parameter works.
51273
51274 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51275
51276         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51277
51278 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51279
51280         * modules/parse-duration-tests: New file.
51281         * tests/test-parse-duration.sh: New file.
51282         * tests/test-parse-duration.c: New file.
51283
51284         New module 'parse-duration'.
51285         * lib/parse-duration.h: New file.
51286         * lib/parse-duration.c: New file.
51287         * modules/parse-duration: New file.
51288
51289 2008-11-17  Bruno Haible  <bruno@clisp.org>
51290
51291         * tests/test-select-out.sh: Comment out the first pipe test.
51292         Reported by Simon Josefsson.
51293
51294 2008-11-17  Bruno Haible  <bruno@clisp.org>
51295
51296         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51297         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51298         gl_HOSTENT.
51299
51300 2008-11-17  Bruno Haible  <bruno@clisp.org>
51301
51302         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51303         -lnetwork and -lnet. Needed for Haiku and BeOS.
51304
51305 2008-11-16  Bruno Haible  <bruno@clisp.org>
51306
51307         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51308
51309 2008-11-16  Bruno Haible  <bruno@clisp.org>
51310
51311         Avoid test failure on Haiku.
51312         * tests/test-fsync.c: Include <errno.h>.
51313         (main): Don't require that fsync (0) fails.
51314
51315 2008-11-15  Bruno Haible  <bruno@clisp.org>
51316
51317         New module 'hostent'.
51318         * modules/hostent: New file.
51319         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51320
51321 2008-11-15  Bruno Haible  <bruno@clisp.org>
51322
51323         New module 'servent'.
51324         * modules/servent: New file.
51325         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51326
51327 2008-11-15  Bruno Haible  <bruno@clisp.org>
51328
51329         Avoid generating same test program with two different rules.
51330         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51331         test-frexp to test-frexp-nolibm.
51332         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51333         test-frexpl to test-frexpl-nolibm.
51334
51335 2008-11-15  Bruno Haible  <bruno@clisp.org>
51336
51337         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51338         $(FREXPL_LIBM).
51339
51340 2008-11-15  Bruno Haible  <bruno@clisp.org>
51341
51342         * lib/netdb.in.h: Activate the definitions also when the system's
51343         <netdb.h> has 'struct addrinfo'.
51344         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51345         EAI_OVERFLOW or AI_NUMERICSERV.
51346         * doc/posix-headers/netdb.texi: Document the problem.
51347
51348 2008-11-15  Bruno Haible  <bruno@clisp.org>
51349
51350         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51351
51352         Make the 'sched' module work on platforms where <sched.h> exists but
51353         is incomplete (such as Haiku).
51354         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51355         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51356         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51357         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51358         HAVE_STRUCT_SCHED_PARAM.
51359         * modules/sched (Depends-on): Add include_next.
51360         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51361         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51362         * doc/posix-headers/sched.texi: Document the issue.
51363
51364 2008-11-13  Jim Meyering  <meyering@redhat.com>
51365
51366         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51367         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51368         test would fail due to the difference in the Report bugs to ...
51369         line.  The expected address is empty, "<>", while the actual
51370         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51371
51372 2008-11-12  Bruno Haible  <bruno@clisp.org>
51373
51374         lstat: don't compile lstat.c on systems lacking lstat
51375         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51376         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51377         Reported by Daniel P. Berrange via Jim Meyering.
51378
51379 2008-11-12  Jim Meyering  <meyering@redhat.com>
51380
51381         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51382
51383 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51384
51385         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51386         instead.
51387
51388 2008-11-12  Bruno Haible  <bruno@clisp.org>
51389
51390         * lib/unicodeio.c: Include unistr.h.
51391         (utf8_wctomb): Remove function.
51392         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51393
51394 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51395
51396         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51397         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51398         <bruno@clisp.org>.
51399         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51400
51401 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51402
51403         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51404         * doc/gnulib.texi: Add section for warnings.
51405
51406 2008-11-11  Bruno Haible  <bruno@clisp.org>
51407
51408         * lib/sockets.h: Add a comment.
51409
51410 2008-11-11  Karl Berry  <karl@gnu.org>
51411
51412         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51413
51414 2008-11-11  Eric Blake  <ebb9@byu.net>
51415
51416         fdl.texi: avoid git symlinks
51417         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51418
51419 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51420
51421         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51422
51423 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51424
51425         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51426         (gl_WARN_ADD): Substitute $2 if literal.
51427
51428 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51429
51430         * m4/warning.m4: Remove.
51431
51432 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51433
51434         * m4/warnings.m4: Almost complete rewrite. :-)
51435
51436 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51437
51438         * modules/warnings: New module.
51439         * m4/warnings.m4: New file.
51440         * MODULES.html.sh: Mention warnings module.
51441         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51442         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51443
51444 2008-11-10  Eric Blake  <ebb9@byu.net>
51445
51446         fdl.texi: make a symlink to the latest version
51447         * doc/standards.texi: Revert today's earlier change.
51448         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51449         * doc/fdl.texi: ...and replace this with a symlink to the newer
51450         fdl-1.3.texi.
51451
51452 2008-11-10  Bruno Haible  <bruno@clisp.org>
51453
51454         * tests/test-select-fd.c (main): Accept the result file name as fourth
51455         argument.
51456         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51457         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51458
51459 2008-11-10  Bruno Haible  <bruno@clisp.org>
51460
51461         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51462         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51463         as autoconf-substituted macros.
51464         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51465         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51466         gl_NETDB_H_DEFAULTS. Set these variables.
51467         * modules/netdb (Makefile.am): Substitute these variables.
51468
51469 2008-11-10  Eric Blake  <ebb9@byu.net>
51470
51471         standards.texi: include correct file for FDL 1.3
51472         * doc/standards.texi (GNU Free Documentation License): Change
51473         include file to pull in FDL 1.3, not 1.2.
51474
51475         fdl.texi: revert accidental change to license
51476         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51477
51478 2008-11-10  Bruno Haible  <bruno@clisp.org>
51479
51480         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51481         cross-compiling guesses also when the native compile gives no result.
51482
51483 2008-11-10  Bruno Haible  <bruno@clisp.org>
51484
51485         * lib/spawni.c (__spawni): Force variable into the stack.
51486
51487 2008-11-10  Bruno Haible  <bruno@clisp.org>
51488
51489         Add support for Haiku.
51490         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51491         glibc and BeOS, but also on Haiku.
51492         * lib/fpurge.c (fpurge): Likewise.
51493         * lib/freadable.c (freadable): Likewise.
51494         * lib/freadahead.c (freadahead): Likewise.
51495         * lib/freading.c (freading): Likewise.
51496         * lib/freadptr.c (freadptr): Likewise.
51497         * lib/freadseek.c (freadptrinc): Likewise.
51498         * lib/fseeko.c (rpl_fseeko): Likewise.
51499         * lib/fseterr.c (fseterr): Likewise.
51500         * lib/fwritable.c (fwritable): Likewise.
51501         * lib/fwriting.c (fwriting): Likewise.
51502         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51503
51504 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51505
51506         * lib/config.charset: Treat Haiku like BeOS.
51507
51508 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51509
51510         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51511         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51512
51513 2008-11-08  Bruno Haible  <bruno@clisp.org>
51514
51515         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51516         AC_CACHE_CHECK.
51517
51518 2008-11-08  Bruno Haible  <bruno@clisp.org>
51519
51520         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51521
51522 2008-11-08  Bruno Haible  <bruno@clisp.org>
51523
51524         * tests/test-select-fd.c: New file.
51525         * tests/test-select-in.sh: New file.
51526         * tests/test-select-out.sh: New file.
51527         * tests/test-select-stdin.c: New file.
51528         * modules/select-tests (Files): Add the new files.
51529         (Depends-on): Add gettimeofday.
51530         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51531         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51532         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51533
51534 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51535             Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51538
51539 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51540
51541         * build-aux/pmccabe2html: Added support for C++ source files.
51542
51543 2008-11-05  Ben Pfaff  <blp@gnu.org>
51544
51545         Fix lib/close.c build on Windows.
51546         * modules/close (Files): Add lib/w32sock.h.
51547
51548 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51549
51550         Accept Bison's NEWS format.
51551         * build-aux/announce-gen (print_news_deltas): Tweak
51552         $re_prefix.
51553
51554 2008-11-04  Bruno Haible  <bruno@clisp.org>
51555
51556         * modules/random_r (Maintainer): Add glibc.
51557
51558 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51559
51560         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51561         by karl@freefriends.org (Karl Berry).
51562         * doc/alloca.texi: Likewise.
51563         * doc/c-ctype.texi: Likewise.
51564         * doc/c-strcase.texi: Likewise.
51565         * doc/c-strcaseeq.texi: Likewise.
51566         * doc/c-strcasestr.texi: Likewise.
51567         * doc/c-strstr.texi: Likewise.
51568         * doc/c-strtod.texi: Likewise.
51569         * doc/c-strtold.texi: Likewise.
51570         * doc/ctime.texi: Likewise.
51571         * doc/error.texi: Likewise.
51572         * doc/fdl.texi: Likewise.
51573         * doc/gcd.texi: Likewise.
51574         * doc/getdate.texi: Likewise.
51575         * doc/gnulib-intro.texi: Likewise.
51576         * doc/gnulib-tool.texi: Likewise.
51577         * doc/gnulib.texi: Likewise.
51578         * doc/inet_ntoa.texi: Likewise.
51579         * doc/maintain.texi: Likewise.
51580         * doc/make-stds.texi: Likewise.
51581         * doc/quote.texi: Likewise.
51582         * doc/regexprops-generic.texi: Likewise.
51583         * doc/standards.texi: Likewise.
51584         * doc/verify.texi: Likewise.
51585         * doc/visibility.texi: Likewise.
51586         * doc/gnulib.texi (GNU Free Documentation License): Include
51587         fdl-1.3.texi instead of fdl.texi.
51588
51589 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51590
51591         * doc/fdl-1.3.texi: New file, from
51592         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51593         * modules/fdl-1.3: Add.
51594         * MODULES.html.sh: Add fdl-1.3.
51595
51596 2008-11-03  Bruno Haible  <bruno@clisp.org>
51597
51598         Make determination of absolute name of header file work with AIX xlc.
51599         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51600         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51601         preprocessing.
51602         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51603         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51604
51605 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51606
51607         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51608         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51609         <ludo@gnu.org>.
51610
51611 2008-11-02  Bruno Haible  <bruno@clisp.org>
51612
51613         Mark 'strpbrk' obsolete.
51614         * modules/strpbrk (Status, Notice): New sections.
51615         * modules/strtok_r (Depends-on): Add strpbrk.
51616
51617 2008-11-02  Bruno Haible  <bruno@clisp.org>
51618
51619         Mark 'strdup' obsolete.
51620         * modules/strdup (Status, Notice): New sections.
51621         * modules/findprog (Depends-on): Add strdup.
51622         * modules/getaddrinfo (Depends-on): Likewise.
51623         * modules/localename (Depends-on): Likewise.
51624         * modules/relocatable-lib (Depends-on): Likewise.
51625         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51626         * modules/relocatable-prog (Depends-on): Likewise.
51627         * modules/trim (Depends-on): Likewise.
51628         * modules/unictype/gen-ctype (Depends-on): Likewise.
51629         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51630
51631 2008-11-02  Bruno Haible  <bruno@clisp.org>
51632
51633         Mark 'strcspn' obsolete.
51634         * modules/strcspn (Status, Notice): New sections.
51635
51636 2008-11-02  Bruno Haible  <bruno@clisp.org>
51637
51638         Mark 'rmdir' obsolete.
51639         * modules/rmdir (Status, Notice): New sections.
51640         * modules/clean-temp (Depends-on): Add rmdir.
51641         * modules/openat (Depends-on): Likewise.
51642
51643 2008-11-02  Bruno Haible  <bruno@clisp.org>
51644
51645         Mark 'raise' obsolete.
51646         * modules/raise (Status, Notice): New sections.
51647         (Include): Specify <signal.h>.
51648         * modules/stdio (Depends-on): Add raise.
51649         * modules/write (Depends-on): Likewise.
51650
51651 2008-11-02  Bruno Haible  <bruno@clisp.org>
51652
51653         Mark 'memset' obsolete.
51654         * modules/memset (Status, Notice): New sections.
51655
51656 2008-11-02  Bruno Haible  <bruno@clisp.org>
51657
51658         Mark 'memmove' obsolete.
51659         * modules/memmove (Status, Notice): New sections.
51660         * modules/argp (Depends-on): Add memmove.
51661         * modules/argz (Depends-on): Likewise.
51662         * modules/canonicalize (Depends-on): Likewise.
51663         * modules/canonicalize-lgpl (Depends-on): Likewise.
51664         * modules/fts (Depends-on): Likewise.
51665         * modules/getcwd (Depends-on): Likewise.
51666         * modules/human (Depends-on): Likewise.
51667         * modules/regex (Depends-on): Likewise.
51668         * modules/striconveh (Depends-on): Likewise.
51669         * modules/trim (Depends-on): Likewise.
51670         * modules/unistr/u8-move (Depends-on): Likewise.
51671         * modules/unistr/u16-move (Depends-on): Likewise.
51672         * modules/unistr/u32-move (Depends-on): Likewise.
51673
51674 2008-11-02  Bruno Haible  <bruno@clisp.org>
51675
51676         Mark 'memcpy' obsolete.
51677         * modules/memcpy (Status, Notice): New sections.
51678
51679 2008-11-02  Bruno Haible  <bruno@clisp.org>
51680
51681         Mark 'memcmp' obsolete.
51682         * modules/memcmp (Status, Notice): New sections.
51683         * modules/argmatch (Depends-on): Add memchr.
51684         * modules/backupfile (Depends-on): Likewise.
51685         * modules/c-strcasestr (Depends-on): Likewise.
51686         * modules/crypto/des (Depends-on): Likewise.
51687         * modules/csharpcomp (Depends-on): Likewise.
51688         * modules/fnmatch (Depends-on): Likewise.
51689         * modules/git-merge-changelog (Depends-on): Likewise.
51690         * modules/isnand (Depends-on): Likewise.
51691         * modules/isnand-nolibm (Depends-on): Likewise.
51692         * modules/isnanf (Depends-on): Likewise.
51693         * modules/isnanf-nolibm (Depends-on): Likewise.
51694         * modules/isnanl (Depends-on): Likewise.
51695         * modules/isnanl-nolibm (Depends-on): Likewise.
51696         * modules/mbchar (Depends-on): Likewise.
51697         * modules/memcoll (Depends-on): Likewise.
51698         * modules/quotearg (Depends-on): Likewise.
51699         * modules/regex (Depends-on): Likewise.
51700         * modules/relocatable-prog (Depends-on): Likewise.
51701         * modules/same (Depends-on): Likewise.
51702         * modules/signbit (Depends-on): Likewise.
51703         * modules/strcasestr-simple (Depends-on): Likewise.
51704         * modules/unictype/gen-ctype (Depends-on): Likewise.
51705         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51706         * modules/uniname/uniname (Depends-on): Likewise.
51707         * modules/unistr/u8-cmp (Depends-on): Likewise.
51708
51709 2008-11-02  Bruno Haible  <bruno@clisp.org>
51710
51711         Mark 'memchr' obsolete.
51712         * modules/memchr (Status, Notice): New sections.
51713         * modules/argp (Depends-on): Add memchr.
51714         * modules/base64 (Depends-on): Likewise.
51715         * modules/c-strcasestr (Depends-on): Likewise.
51716         * modules/chdir-long (Depends-on): Likewise.
51717         * modules/fnmatch (Depends-on): Likewise.
51718         * modules/getsubopt (Depends-on): Likewise.
51719         * modules/git-merge-changelog (Depends-on): Likewise.
51720         * modules/glob (Depends-on): Likewise.
51721         * modules/strcasestr-simple (Depends-on): Likewise.
51722         * modules/strnlen (Depends-on): Likewise.
51723
51724 2008-11-02  Bruno Haible  <bruno@clisp.org>
51725
51726         Mark 'atexit' obsolete.
51727         * modules/atexit (Status, Notice): New sections.
51728         * modules/chdir-long (Depends-on): Add atexit.
51729         * modules/wait-process (Depends-on): Likewise.
51730
51731 2008-11-02  Bruno Haible  <bruno@clisp.org>
51732
51733         * gnulib-tool: New option --with-obsolete.
51734         (func_usage): Document it.
51735         (func_modules_transitive_closure): Drop obsolete dependencies if
51736         incobsolete is not true.
51737         (func_import): Read and save the incobsolete variable to the cache.
51738
51739 2008-11-02  Bruno Haible  <bruno@clisp.org>
51740
51741         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51742         * gnulib-tool: New option --extract-status.
51743         (func_usage): Document it.
51744         (sed_extract_prog): Recognize it.
51745         (func_get_status): New function.
51746
51747 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51748
51749         * modules/sockets (License): Change from LGPL to LGPLv2+.
51750
51751 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51752
51753         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51754
51755 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51756
51757         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51758         Mention times and sys_times.
51759         * modules/sys_times, modules/sys_times-tests: New modules.
51760         * modules/times, modules/times-tests: Likewise
51761         * m4/sys_times_h.m4: New file.
51762         * lib/sys_times.in.h: Likewise
51763         * lib/times.c: Likewise.
51764         * tests/test-sys_times.c: Likewise.
51765         * tests/test-times.c: Likewise.
51766         * doc/posix-headers/sys_times.texi: Update.
51767         * doc/posix-functions/times.texi: Update.
51768
51769 2008-10-28  Jim Meyering  <meyering@redhat.com>
51770
51771         * modules/tempname (Depends-on): Add lstat.
51772
51773         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51774
51775 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51776
51777         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51778         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51779         using idiom used elsewhere in gnulib.
51780
51781 2008-10-27  Jim Meyering  <meyering@redhat.com>
51782
51783         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51784
51785 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51786
51787         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51788         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51789         programs.
51790         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51791
51792 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51793
51794         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51795
51796 2008-10-27  Bruno Haible  <bruno@clisp.org>
51797
51798         * tests/test-lstat.c: Include <stdio.h>.
51799
51800 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51801
51802         * modules/lstat-tests: New module.
51803         * tests/test-lstat.c: New file.
51804
51805 2008-10-26  Jim Meyering  <meyering@redhat.com>
51806
51807         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51808
51809 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51810             Bruno Haible  <bruno@clisp.org>
51811
51812         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51813         * modules/configmake (Include): Add a note that the include must come
51814         after all system headers.
51815         * lib/javaversion.c: Include configmake.h after all other includes.
51816
51817 2008-10-26  Bruno Haible  <bruno@clisp.org>
51818
51819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51820         HAVE_STRUCT_RANDOM_DATA to 1.
51821         (gl_STDLIB_H): Simplify.
51822
51823 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51824
51825         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51826         substitute HAVE_STRUCT_RANDOM_DATA.
51827         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51828         random_data.
51829         * modules/stdlib (Makefile.am): Substitute
51830         HAVE_STRUCT_RANDOM_DATA.
51831
51832 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51833
51834         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51835         * doc/gnulib-intro.texi (Copyright): Likewise.
51836
51837 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51838
51839         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51840         findings.
51841
51842 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51843             Bruno Haible  <bruno@clisp.org>
51844
51845         * lib/unistd.in.h: Include <winsock2.h>.
51846         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51847         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51848         Provide dummy declarations.
51849         (gethostname): Override.
51850         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51851         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51852         gl_PREREQ_SYS_H_WINSOCK2.
51853         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51854         * doc/posix-functions/gethostname.texi: More details.
51855
51856 2008-10-25  Bruno Haible  <bruno@clisp.org>
51857
51858         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51859         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51860         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51861
51862         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51863         here ...
51864         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51865         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51866         gl_UNISTD_H_DEFAULTS.
51867
51868 2008-10-25  Eric Blake  <ebb9@byu.net>
51869
51870         signbit: avoid spurious compiler failure
51871         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51872         declarations inside function.
51873
51874 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51875             Bruno Haible  <bruno@clisp.org>
51876
51877         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51878         * modules/random_r (Depends-on): Add stdint.
51879
51880 2008-10-24  Bruno Haible  <bruno@clisp.org>
51881
51882         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51883         Eggert.
51884         * modules/strerror (License): Likewise.
51885
51886 2008-10-24  Jim Meyering  <meyering@redhat.com>
51887
51888         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51889         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51890
51891 2008-10-24  Eric Blake  <ebb9@byu.net>
51892
51893         getgroups: fix compilation when getgroups is available
51894         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51895         but with <config.h> override of getgroups disabled.
51896
51897 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51898
51899         * doc/gnulib.texi (Header files): Add note about C++ problems.
51900         Explained by Bruno Haible <bruno@clisp.org>.
51901
51902 2008-10-23  Bruno Haible  <bruno@clisp.org>
51903
51904         Define a dummy SA_NODEFER macro on Interix.
51905         * lib/signal.in.h (SA_NODEFER): Define fallback.
51906         Reported by Aleksey Cheusov <cheusov@tut.by> via
51907         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51908
51909 2008-10-23  Bruno Haible  <bruno@clisp.org>
51910
51911         * modules/freadahead (License): Change to LGPLv2+.
51912         Suggested by Simon Josefsson.
51913
51914 2008-10-23  Jim Meyering  <meyering@redhat.com>
51915
51916         random_r: new module
51917         * modules/random_r: New file.
51918         * m4/random_r.m4: New file.
51919         * lib/random_r.c: New file, from glibc.
51920         * modules/random_r-tests: New file.
51921         * tests/test-random_r.c: New file.
51922         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51923          Declare.
51924         (RAND_MAX): Define.
51925         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51926         * modules/stdlib: Substitute them, too.
51927         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51928         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51929         * doc/glibc-functions/random_r.texi: Likewise.
51930         * doc/glibc-functions/setstate_r.texi: Likewise.
51931         * doc/glibc-functions/srandom_r.texi: Likewise.
51932         * config/srclist.txt: Mention it.
51933
51934 2008-10-23  David Lutterkort  <lutter@redhat.com>
51935
51936         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51937         link requirement
51938
51939 2008-10-23  Jim Meyering  <meyering@redhat.com>
51940
51941         selinux-h: mark parameters of stub functions as intentionally unused
51942         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51943         * lib/se-context.in.h: Likewise.
51944
51945 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51946
51947         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51948
51949 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51950
51951         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51952
51953 2008-10-22  Eric Blake  <ebb9@byu.net>
51954
51955         glthread/thread: avoid compiler warning
51956         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51957         Add unreachable abort to silence compiler.
51958
51959 2008-10-22  Eric Blake  <ebb9@byu.net>
51960
51961         netdb: also supply struct addrinfo for cygwin 1.5.x
51962         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51963         older cygwin.
51964         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51965         cygwin.
51966         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51967
51968 2008-10-22  Bruno Haible  <bruno@clisp.org>
51969
51970         * users.txt: Update entry about pspp.
51971
51972 2008-10-21  Bruno Haible  <bruno@clisp.org>
51973
51974         Simplification.
51975         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51976         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51977
51978         Simplification.
51979         * lib/ioctl.c (ioctl): Don't undefine.
51980         * lib/socket.c (socket): Don't undefine.
51981
51982         Remove unused module indicator macros.
51983         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51984         GNULIB_$1 as a C macro.
51985
51986         * doc/posix-functions/close.texi: Undo last change.
51987         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51988         Windows platforms.
51989
51990 2008-10-21  Bruno Haible  <bruno@clisp.org>
51991
51992         Add gethostname() declaration to <unistd.h>.
51993         * lib/unistd.in.h (gethostname): New declaration.
51994         * lib/gethostname.c: Include <unistd.h>.
51995         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51996         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51998         and HAVE_GETHOSTNAME.
51999         * modules/gethostname (Depends-on): Add unistd.
52000         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52001         (Include): Specify <unistd.h>.
52002         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
52003         HAVE_GETHOSTNAME.
52004         * tests/test-gethostname.c: Include <unistd.h> first.
52005
52006 2008-10-21  Bruno Haible  <bruno@clisp.org>
52007
52008         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
52009         * modules/select-tests (Depends-on): Likewise.
52010         Reported by Simon Josefsson.
52011
52012 2008-10-21  Simon Josefsson  <simon@josefsson.org>
52013
52014         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
52015         * lib/accept.c: New file, based on winsock.c.
52016         * lib/bind.c: New file, based on winsock.c.
52017         * lib/connect.c: New file, based on winsock.c.
52018         * lib/getpeername.c: New file, based on winsock.c.
52019         * lib/getsockname.c: New file, based on winsock.c.
52020         * lib/getsockopt.c: New file, based on winsock.c.
52021         * lib/ioctl.c: New file, based on winsock.c.
52022         * lib/listen.c: New file, based on winsock.c.
52023         * lib/recv.c: New file, based on winsock.c.
52024         * lib/recvfrom.c: New file, based on winsock.c.
52025         * lib/send.c: New file, based on winsock.c.
52026         * lib/sendto.c: New file, based on winsock.c.
52027         * lib/setsockopt.c: New file, based on winsock.c.
52028         * lib/shutdown.c: New file, based on winsock.c.
52029         * lib/socket.c: New file, based on winsock.c.
52030         * lib/w32sock.h: New file, based on winsock.c.
52031         * lib/winsock.c: Remove file.
52032         * modules/accept: Likewise.
52033         * modules/bind: Likewise.
52034         * modules/connect: Likewise.
52035         * modules/getpeername: Likewise.
52036         * modules/getsockname: Likewise.
52037         * modules/getsockopt: Likewise.
52038         * modules/ioctl: Likewise.
52039         * modules/listen: Likewise.
52040         * modules/recv: Likewise.
52041         * modules/recvfrom: Likewise.
52042         * modules/send: Likewise.
52043         * modules/sendto: Likewise.
52044         * modules/setsockopt: Likewise.
52045         * modules/shutdown: Likewise.
52046         * modules/socket: Use socket.c instead of winsock.c.
52047         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
52048         * doc/posix-functions/accept.texi: Doc fix.
52049         * doc/posix-functions/bind.texi: Doc fix.
52050         * doc/posix-functions/close.texi: Doc fix.
52051         * doc/posix-functions/connect.texi: Doc fix.
52052         * doc/posix-functions/getpeername.texi: Doc fix.
52053         * doc/posix-functions/getsockname.texi: Doc fix.
52054         * doc/posix-functions/getsockopt.texi: Doc fix.
52055         * doc/posix-functions/ioctl.texi: Doc fix.
52056         * doc/posix-functions/listen.texi: Doc fix.
52057         * doc/posix-functions/recv.texi: Doc fix.
52058         * doc/posix-functions/recvfrom.texi: Doc fix.
52059         * doc/posix-functions/send.texi: Doc fix.
52060         * doc/posix-functions/sendto.texi: Doc fix.
52061         * doc/posix-functions/setsockopt.texi: Doc fix.
52062         * doc/posix-functions/shutdown.texi: Doc fix.
52063         * doc/posix-functions/socket.texi: Doc fix.
52064
52065 2008-10-20  Bruno Haible  <bruno@clisp.org>
52066
52067         Take into account the role of SIGABRT_COMPAT on Windows 2008.
52068         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
52069         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
52070         as an alias for SIGABRT.
52071         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
52072         (sigaction): Map it to SIGABRT.
52073         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
52074
52075 2008-10-20  Bruno Haible  <bruno@clisp.org>
52076
52077         * lib/fts.c: Don't include lstat.h.
52078         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
52079
52080         Move the lstat() declaration to <sys/stat.h>.
52081         * lib/lstat.h: Remove file.
52082         * lib/sys_stat.in.h: Add special invocation convention.
52083         (lstat): New declaration.
52084         * lib/lstat.c (orig_lstat): New function.
52085         (rpl_lstat): Use orig_lstat instead of lstat.
52086         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
52087         AC_C_INLINE. Set REPLACE_LSTAT.
52088         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
52089         and REPLACE_LSTAT.
52090         * modules/lstat (Files): Remove lib/lstat.h.
52091         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52092         (Include): Specify <sys/stat.h> instead of lstat.h.
52093         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
52094         REPLACE_LSTAT.
52095         * NEWS: Mention the change.
52096
52097 2008-10-20  Bruno Haible  <bruno@clisp.org>
52098
52099         * modules/posix_spawn-tests: New file.
52100         * tests/test-posix_spawn3.c: New file.
52101
52102 2008-10-20  Bruno Haible  <bruno@clisp.org>
52103
52104         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
52105         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52106         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
52107         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52108         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
52109
52110 2008-10-20  Bruno Haible  <bruno@clisp.org>
52111
52112         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
52113         of posix_spawn on AIX 5.3.
52114
52115 2008-10-20  Bruno Haible  <bruno@clisp.org>
52116
52117         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
52118
52119 2008-10-20  Bruno Haible  <bruno@clisp.org>
52120
52121         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
52122         of AC_LANG_PROGRAM.
52123
52124 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52125
52126         * lib/netdb.in.h: Don't define GNU specific constants until they
52127         are supported or needed.  Reported by Bruno Haible
52128         <bruno@clisp.org>.
52129
52130 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52131
52132         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52133
52134 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52135
52136         * lib/getaddrinfo.h: Remove file.
52137         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52138         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52139         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52140         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52141         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52142         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52143         * tests/test-getaddrinfo.c: Likewise.
52144         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52145         * NEWS: Mention change.
52146
52147 2008-10-19  Bruno Haible  <bruno@clisp.org>
52148
52149         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52150
52151 2008-10-19  Bruno Haible  <bruno@clisp.org>
52152
52153         * lib/wait-process.c: Include simply <sys/wait.h>.
52154         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52155         WIFSTOPPED): Remove fallback definitions.
52156         * modules/wait-process (Depends-on): Add sys_wait.
52157
52158         New module 'sys_wait'.
52159         * modules/sys_wait: New file.
52160         * lib/sys_wait.in.h: New file, partially copied from
52161         lib/wait-process.c.
52162         * m4/sys_wait_h.m4: New file.
52163         * doc/posix-headers/sys_wait.texi: Mention the new module.
52164
52165 2008-10-19  Bruno Haible  <bruno@clisp.org>
52166
52167         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52168
52169 2008-10-19  Bruno Haible  <bruno@clisp.org>
52170
52171         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52172         * lib/wait-process.c (WAIT_T): Remove type.
52173         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52174         (wait_subprocess): Update.
52175
52176 2008-10-19  Bruno Haible  <bruno@clisp.org>
52177
52178         New module 'atoll'.
52179         * modules/atoll: New file.
52180         * lib/stdlib.in.h (atoll): New declaration.
52181         * lib/atoll.c: New file, from glibc with modifications.
52182         * m4/atoll.m4: New file.
52183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52184         HAVE_ATOLL.
52185         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52186         * doc/posix-functions/atoll.texi: Mention the new module.
52187
52188 2008-10-19  Bruno Haible  <bruno@clisp.org>
52189
52190         Add strtoull() declaration to <stdlib.h>.
52191         * lib/stdlib.in.h (strtoull): New declaration.
52192         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52193         Set HAVE_STRTOULL.
52194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52195         HAVE_STRTOULL.
52196         * modules/strtoull (Depends-on): Add stdlib.
52197         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52198         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52199         HAVE_STRTOULL.
52200
52201 2008-10-19  Bruno Haible  <bruno@clisp.org>
52202
52203         Add strtoll() declaration to <stdlib.h>.
52204         * lib/stdlib.in.h (strtoll): New declaration.
52205         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52206         Set HAVE_STRTOLL.
52207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52208         HAVE_STRTOLL.
52209         * modules/strtoll (Depends-on): Add stdlib.
52210         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52211         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52212
52213 2008-10-19  Bruno Haible  <bruno@clisp.org>
52214
52215         * modules/bcopy (Depends-on): Add strings.
52216         (Include): Specify <strings.h>.
52217
52218 2008-10-19  Bruno Haible  <bruno@clisp.org>
52219
52220         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52221
52222 2008-10-19  Bruno Haible  <bruno@clisp.org>
52223
52224         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52225         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52226         mingw.
52227
52228 2008-10-19  Bruno Haible  <bruno@clisp.org>
52229
52230         * lib/atanl.c: Don't include isnanl.h.
52231         * lib/cosl.c: Likewise.
52232         * lib/ldexpl.c: Likewise.
52233         * lib/logl.c: Likewise.
52234         * lib/sinl.c: Likewise.
52235         * lib/sqrtl.c: Likewise.
52236         * lib/tanl.c: Likewise.
52237
52238         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52239         * lib/isnanf.h: Remove file.
52240         * lib/isnand.h: Remove file.
52241         * lib/isnanl.h: Remove file.
52242         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52243         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52244         macros.
52245         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52246         HAVE_ISNANF, don't define it as a C macro.
52247         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52248         HAVE_ISNAND, don't define it as a C macro.
52249         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52250         HAVE_ISNANL, don't define it as a C macro.
52251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52252         HAVE_ISNAN[FDL].
52253         * modules/isnanf (Files): Remove lib/isnanf.h.
52254         (Depends-on): Add math.
52255         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52256         (Include): Specify <math.h> instead of isnanf.h.
52257         * modules/isnand (Files): Remove lib/isnand.h.
52258         (Depends-on): Add math.
52259         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52260         (Include): Specify <math.h> instead of isnand.h.
52261         * modules/isnanl (Files): Remove lib/isnanl.h.
52262         (Depends-on): Add math.
52263         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52264         (Include): Specify <math.h> instead of isnanl.h.
52265         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52266         HAVE_ISNAN[FDL].
52267         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52268         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52269         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52270         * NEWS: Mention the change.
52271
52272 2008-10-18  Bruno Haible  <bruno@clisp.org>
52273
52274         Add getusershell(), setusershell(), endusershell() declarations to
52275         <unistd.h>.
52276         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52277         declarations.
52278         * lib/getusershell.c: Include unistd.h.
52279         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52280         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52281         HAVE_GETUSERSHELL.
52282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52283         and HAVE_GETUSERSHELL.
52284         * modules/getusershell (Depends-on): Add unistd, extensions.
52285         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52286         (Include): Specify <unistd.h>.
52287         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52288         HAVE_GETUSERSHELL.
52289
52290 2008-10-18  Bruno Haible  <bruno@clisp.org>
52291
52292         Add a getloadavg() declaration to <stdlib.h>.
52293         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52294         getloadavg declaration.
52295         (getloadavg): New declaration.
52296         * lib/getloadavg.c: Include <stdlib.h> first.
52297         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52298         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52299         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52301         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52302         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52303         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52304         (Include): Specify <stdlib.h>.
52305         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52306         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52307
52308 2008-10-18  Bruno Haible  <bruno@clisp.org>
52309
52310         * lib/dirchownmod.c: Don't include lchmod.h.
52311
52312         Move the lchmod() declaration to <sys/stat.h>.
52313         * lib/lchmod.h: Remove file.
52314         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52315         (lchmod): New declaration, moved here from lib/lchown.h.
52316         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52317         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52318         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52319         and HAVE_LCHMOD.
52320         * modules/lchmod (Files): Remove lib/lchmod.h.
52321         (Depends-on): Add sys_stat, extensions.
52322         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52323         (Include): Specify <sys/stat.h> instead of lchmod.h.
52324         * modules/sys_stat (Depends-on): Add link-warning.
52325         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52326         definition of GL_LINK_WARNING.
52327         * NEWS: Mention the change.
52328
52329 2008-10-18  Bruno Haible  <bruno@clisp.org>
52330
52331         * lib/fchdir.c: Don't include dirfd.h.
52332         * lib/fts.c: Likewise.
52333         * lib/getcwd.c: Likewise.
52334         * lib/glob.c: Likewise.
52335
52336         Move the dirfd() declaration to <dirent.h>.
52337         * lib/dirfd.h: Remove file.
52338         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52339         (dirfd): New declaration.
52340         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52341         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52342         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52343         HAVE_DECL_DIRFD.
52344         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52345         HAVE_DECL_DIRFD.
52346         * modules/dirfd (Files): Remove lib/dirfd.h.
52347         (Depends-on): Add dirent, extensions.
52348         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52349         (Include): Specify <dirent.h> instead of dirfd.h.
52350         * modules/dirent (Depends-on): Add link-warning.
52351         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52352         definition of GL_LINK_WARNING.
52353         * NEWS: Mention the change.
52354
52355 2008-10-18  Bruno Haible  <bruno@clisp.org>
52356
52357         Move the euidaccess() declaration to <unistd.h>.
52358         * lib/euidaccess.h: Remove file.
52359         * lib/unistd.in.h (euidaccess): New declaration.
52360         * lib/euidaccess.c: Don't include euidaccess.h.
52361         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52362         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52364         and HAVE_EUIDACCESS.
52365         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52366         (Depends-on): Add unistd.
52367         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52368         (Include): Specify <unistd.h> instead of euidaccess.h.
52369         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52370         HAVE_EUIDACCESS.
52371         * NEWS: Mention the change.
52372
52373 2008-10-18  Bruno Haible  <bruno@clisp.org>
52374
52375         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52376
52377         Move the getdomainname() declaration to <unistd.h>.
52378         * lib/getdomainname.h: Remove file.
52379         * lib/unistd.in.h (getdomainname): New declaration.
52380         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52381         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52382         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52383         HAVE_GETDOMAINNAME.
52384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52385         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52386         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52387         (Depends-on): Add unistd, extensions.
52388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52389         (Includes): Specify <unistd.h> instead of getdomainname.h.
52390         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52391         HAVE_GETDOMAINNAME.
52392         * NEWS: Mention the change.
52393
52394 2008-10-18  Bruno Haible  <bruno@clisp.org>
52395
52396         * modules/dirent: New file.
52397         * m4/dirent_h.m4: New file.
52398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52399         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52400         * modules/fchdir (Files): Remove lib/dirent.in.h.
52401         (Depends-on): Add dirent.
52402         (Makefile.am): Move rules to modules/dirent.
52403         * doc/posix-headers/dirent.texi: Mention the new module.
52404
52405 2008-10-18  Bruno Haible  <bruno@clisp.org>
52406
52407         Avoid -Wunused-parameter warnings in public gnulib header files.
52408         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52409         macro.
52410         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52411
52412 2008-10-18  Bruno Haible  <bruno@clisp.org>
52413
52414         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52415         * doc/glibc-functions/error.texi: Mention the module 'error'.
52416         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52417         * doc/glibc-functions/getdomainname.texi: Mention the module
52418         'getdomainname'.
52419         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52420         * doc/glibc-functions/getpagesize.texi: Mention the module
52421         'getpagesize'.
52422         * doc/glibc-functions/getusershell.texi: Mention the module
52423         'getusershell'.
52424         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52425         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52426         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52427         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52428         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52429         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52430         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52431         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52432         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52433         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52434         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52435         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52436         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52437         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52438
52439 2008-10-17  Bruno Haible  <bruno@clisp.org>
52440
52441         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52442         HP-UX and IRIX, use -0.0L.
52443         * tests/test-ceill.c (minus_zero): Likewise.
52444         * tests/test-floorl.c (minus_zero): Likewise.
52445         * tests/test-frexpl.c (minus_zero): Likewise.
52446         * tests/test-isnan.c (minus_zerol): Likewise.
52447         * tests/test-isnanl.h (minus_zero): Likewise.
52448         * tests/test-ldexpl.c (minus_zero): Likewise.
52449         * tests/test-roundl.c (minus_zero): Likewise.
52450         * tests/test-signbit.c (minus_zerol): Likewise.
52451         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52452         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52453         * tests/test-truncl.c (minus_zero): Likewise.
52454         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52455         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52456         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52457         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52458
52459 2008-10-17  Bruno Haible  <bruno@clisp.org>
52460
52461         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52462         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52463         that it gets activated only for gcc >= 3.0.
52464         * lib/dirent.in.h: Likewise.
52465         * lib/errno.in.h: Likewise.
52466         * lib/fcntl.in.h: Likewise.
52467         * lib/float.in.h: Likewise.
52468         * lib/iconv.in.h: Likewise.
52469         * lib/inttypes.in.h: Likewise.
52470         * lib/locale.in.h: Likewise.
52471         * lib/math.in.h: Likewise.
52472         * lib/netdb.in.h: Likewise.
52473         * lib/netinet_in.in.h: Likewise.
52474         * lib/search.in.h: Likewise.
52475         * lib/signal.in.h: Likewise.
52476         * lib/spawn.in.h: Likewise.
52477         * lib/stdarg.in.h: Likewise.
52478         * lib/stdint.in.h: Likewise.
52479         * lib/stdio.in.h: Likewise.
52480         * lib/stdlib.in.h: Likewise.
52481         * lib/string.in.h: Likewise.
52482         * lib/strings.in.h: Likewise.
52483         * lib/sys_file.in.h: Likewise.
52484         * lib/sys_ioctl.in.h: Likewise.
52485         * lib/sys_select.in.h: Likewise.
52486         * lib/sys_socket.in.h: Likewise.
52487         * lib/sys_stat.in.h: Likewise.
52488         * lib/sys_time.in.h: Likewise.
52489         * lib/sysexits.in.h: Likewise.
52490         * lib/time.in.h: Likewise.
52491         * lib/unistd.in.h: Likewise.
52492         * lib/wchar.in.h: Likewise.
52493         * lib/wctype.in.h: Likewise.
52494         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52495
52496 2008-10-17  Jim Meyering  <meyering@redhat.com>
52497
52498         ignore-value: don't depend on inline module
52499         * modules/ignore-value (Depends-on): Remove 'inline'.
52500         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52501         Suggestion from Bruno Haible.
52502
52503 2008-10-17  Bruno Haible  <bruno@clisp.org>
52504
52505         New implementation of condition variables for Win32.
52506         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52507         (gl_linked_waitqueue_t): New type.
52508         (gl_cond_t): Use it.
52509         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52510         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52511         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52512         (glthread_cond_init_func, glthread_cond_wait_func,
52513         glthread_cond_timedwait_func, glthread_cond_signal_func,
52514         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52515         Reimplemented on the basis of gl_linked_waitqueue_t.
52516         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52517         gl_waitqueue_t.
52518         (gl_rwlock_t): Update.
52519         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52520
52521 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52522
52523         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52524         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52525
52526 2008-10-17  Jim Meyering  <meyering@redhat.com>
52527
52528         ignore-value: new module
52529         * modules/ignore-value: New file.
52530         * lib/ignore-value.h: New file.
52531         * MODULES.html.sh (Compiler warning management): New section,
52532         just for this module.  More to come.
52533
52534 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52535
52536         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52537         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52538         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52539
52540 2008-10-16  Jim Meyering  <meyering@redhat.com>
52541
52542         openat-die.c: avoid 'no previous prototype' warning
52543         * lib/openat-die.c: Include "openat.h".
52544         Reported by Reuben Thomas <rrt@sc3d.org>.
52545
52546 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52547
52548         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52549         * lib/netdb.in.h: Fix typo.
52550         Reported by Bruno Haible  <bruno@clisp.org>
52551
52552         * lib/netdb.in.h: Include sys/socket.h for platforms without
52553         netdb.h, to get structures like hostent on MinGW.
52554         * modules/netdb (Depends-on): Add sys_socket.
52555
52556 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52557
52558         * modules/netdb, modules/netdb-tests: New file.
52559         * m4/netdb_h.m4: New file.
52560         * lib/netdb.in.h: Add, currently just an empty file pending
52561         definitions.
52562         * tests/test-netdb.c: New file.
52563         * doc/posix-headers/netdb.texi: Mention that we replace it if
52564         needed.
52565         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52566         netdb.
52567
52568 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52569
52570         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52571         with code.
52572
52573 2008-10-13  Bruno Haible  <bruno@clisp.org>
52574
52575         * lib/glthread/cond.c (glthread_cond_wait_func,
52576         glthread_cond_timedwait_func): Add a comment.
52577
52578 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52579
52580         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52581         * tests/test-select.c: Likewise,
52582
52583 2008-10-13  Bruno Haible  <bruno@clisp.org>
52584
52585         * lib/glthread/cond.c (glthread_cond_wait_func,
52586         glthread_cond_timedwait_func): Fix variable name.
52587         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52588
52589 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52590
52591         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52592         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52593         struct sockaddr.sa_len.
52594         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52595
52596 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52597
52598         * build-aux/pmccabe2html: Add css and css_url parameters.
52599
52600 2008-10-12  Bruno Haible  <bruno@clisp.org>
52601
52602         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52603         calling aclx_get.
52604         Reported by Rainer Tammer <tammer@tammer.net>.
52605
52606 2008-10-12  Bruno Haible  <bruno@clisp.org>
52607
52608         Use msvcrt aware primitives for creation/termination of Win32 threads.
52609         * lib/glthread/thread.c: Include <process.h>.
52610         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52611         (wrapper_func): Update signature.
52612         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52613
52614 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52615             Bruno Haible  <bruno@clisp.org>
52616
52617         Provide a Win32 implementation of the 'cond' module.
52618         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52619         * lib/glthread/cond.c (glthread_cond_init_func,
52620         glthread_cond_wait_func, glthread_cond_timedwait_func,
52621         glthread_cond_signal_func, glthread_cond_broadcast_func,
52622         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52623         * modules/cond (Dependencies): Add gettimeofday.
52624
52625 2008-10-11  Bruno Haible  <bruno@clisp.org>
52626
52627         Make sleep work on older versions of mingw.
52628         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52629         only whether it exists.
52630         * doc/posix-functions/sleep.texi: Mention the problem with older
52631         versions of mingw.
52632
52633 2008-10-11  Bruno Haible  <bruno@clisp.org>
52634
52635         New module 'shutdown'.
52636         * modules/shutdown: New file.
52637         * lib/sys_socket.in.h (shutdown): New declaration.
52638         * lib/winsock.c (shutdown): New function.
52639         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52640         GNULIB_SHUTDOWN.
52641         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52642         * doc/posix-functions/shutdown.texi: Document the new module.
52643
52644 2008-10-11  Jim Meyering  <meyering@redhat.com>
52645
52646         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52647
52648 2008-10-11  Bruno Haible  <bruno@clisp.org>
52649
52650         New module 'fclose'.
52651         * modules/fclose: New file.
52652         * lib/stdio.in.h (fclose): New declaration.
52653         * lib/fclose.c: New file.
52654         * m4/fclose.m4: New file.
52655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52656         REPLACE_FCLOSE.
52657         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52658         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52659         REPLACE_FCLOSE.
52660         * modules/close (Depends-on): fclose.
52661         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52662
52663 2008-10-11  Bruno Haible  <bruno@clisp.org>
52664
52665         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52666         set errno and don't call _close.
52667
52668 2008-10-10  Bruno Haible  <bruno@clisp.org>
52669
52670         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52671         ACL, not afterwards. Fixes test failure on Cygwin.
52672
52673 2008-10-09  Ben Pfaff  <blp@gnu.org>
52674
52675         * build-aux/announce-gen: Fix gnulib version related part of usage
52676         message.  Die with a useful error message if no tarballs are
52677         found.
52678
52679 2008-10-10  Jim Meyering  <meyering@redhat.com>
52680
52681         bootstrap: use git's --depth=N option only if it's supported
52682         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52683         recognize the --depth option.  Reported by Pádraig Brady.
52684
52685 2008-10-09  Bruno Haible  <bruno@clisp.org>
52686
52687         New module 'ioctl'.
52688         * modules/ioctl: New file.
52689         * lib/sys_socket.in.h (ioctl): Remove declaration.
52690         * lib/winsock.c: Include <sys/ioctl.h>.
52691         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52692         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52693         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52694         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52695         * doc/posix-functions/ioctl.texi: Mention the new module.
52696
52697 2008-10-09  Bruno Haible  <bruno@clisp.org>
52698
52699         New module 'sys_ioctl'.
52700         * lib/sys_ioctl.in.h: New file.
52701         * m4/sys_ioctl_h.m4: New file.
52702         * modules/sys_ioctl: New file.
52703         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52704
52705 2008-10-09  Bruno Haible  <bruno@clisp.org>
52706
52707         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52708         * lib/winsock.c: Include <stdarg.h>.
52709         (rpl_ioctl): Change to second argument 'int' and then varargs.
52710
52711 2008-10-09  Bruno Haible  <bruno@clisp.org>
52712
52713         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52714         when the sys_socket module is present and the system has <winsock2.h>.
52715
52716 2008-10-09  Bruno Haible  <bruno@clisp.org>
52717
52718         * doc/posix-functions/close.texi: Mention module 'close' instead of
52719         module 'sys_socket'.
52720
52721 2008-10-09  Bruno Haible  <bruno@clisp.org>
52722
52723         * doc/glibc-headers/sys_ioctl.texi: New file.
52724         * doc/gnulib.texi: Include it.
52725
52726 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52727             Bruno Haible  <bruno@clisp.org>
52728
52729         Combine the two replacements of 'close'.
52730         * lib/sys_socket.in.h (close): Define to a reminder to include
52731         <unistd.h>.
52732         (_gl_close_fd_maybe_socket): New declaration.
52733         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52734         * lib/winsock.c (close): Remove undefinition.
52735         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52736         needed for the gnulib module 'close'.
52737         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52738         define to an error symbol or to a warning, if suitable.
52739         * lib/close.c: Include <sys/socket.h>.
52740         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52741         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52742         UNISTD_H_HAVE_WINSOCK2_H.
52743         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52745         UNISTD_H_HAVE_WINSOCK2_H.
52746         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52747         (configure.ac): Set a module indicator.
52748         (Makefile.am): Substitute GNULIB_CLOSE.
52749         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52750         * modules/poll-tests (Depends-on): Add close.
52751         * modules/select-tests (Depends-on): Likewise.
52752
52753 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52754             Bruno Haible  <bruno@clisp.org>
52755
52756         New module 'close'.
52757         * modules/close: New file.
52758         * lib/unistd.in.h (close): Move declaration out of the
52759         FCHDIR_REPLACEMENT scope.
52760         (_gl_unregister_fd): New declaration.
52761         * lib/close.c: New file.
52762         * lib/fchdir.c (rpl_close): Remove function.
52763         * m4/close.m4: New file.
52764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52765         close.
52766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52767         REPLACE_CLOSE.
52768         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52769         REPLACE_CLOSE.
52770         * modules/fchdir (Depends-on): Add close.
52771
52772 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52773             Bruno Haible  <bruno@clisp.org>
52774
52775         * lib/fcntl.in.h (open): Simplify conditionals.
52776         (_gl_register_fd): New declaration.
52777         * lib/fchdir.c (rpl_open): Remove function.
52778         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52779         also.
52780         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52781         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52782         open.
52783
52784 2008-10-09  Jim Meyering  <meyering@redhat.com>
52785
52786         GNUmakefile: use the more name-space-friendly "_version"
52787         * top/GNUmakefile (_dummy): Update.
52788         (_version): Rename from "version".
52789
52790 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52791             Bruno Haible  <bruno@clisp.org>
52792
52793         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52794         rpl_close.
52795         (_gl_register_fd): New function, extracted from rpl_open.
52796         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52797         (rpl_open, rpl_opendir): Use _gl_register_fd.
52798
52799 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52800
52801         Fix organization of 'open' replacement.
52802         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52803         (gl_FUNC_OPEN): Use it.
52804         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52805
52806 2008-10-08  Bruno Haible  <bruno@clisp.org>
52807
52808         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52809
52810 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52811
52812         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52813         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52814         listen).
52815
52816 2008-10-08  Eric Blake  <ebb9@byu.net>
52817
52818         GNUmakefile: add 'make version' target
52819         * top/GNUmakefile (_curr-ver): Split version update rules...
52820         (version): ...into a target.
52821
52822 2008-10-07  Bruno Haible  <bruno@clisp.org>
52823
52824         Use a more portable replacement expression for -0.0L.
52825         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52826         instead of -0.0L. Fix m4 quotation.
52827
52828         * tests/test-signbit.c: Include <float.h>.
52829         (minus_zero): New variable.
52830         (test_signbitl): Use minus_zero instead of -zero.
52831         * modules/signbit-tests (Depends-on): Add float.
52832
52833         * tests/test-ceill.c: Include <float.h>.
52834         (zero): Remove variable.
52835         (minus_zero): New variable.
52836         (main): Use minus_zero instead of -zero.
52837         * modules/ceill-tests (Depends-on): Add float.
52838
52839         * tests/test-floorl.c: Include <float.h>.
52840         (zero): Remove variable.
52841         (minus_zero): New variable.
52842         (main): Use minus_zero instead of -zero.
52843         * modules/floorl-tests (Depends-on): Add float.
52844
52845         * tests/test-roundl.c: Include <float.h>.
52846         (zero): Remove variable.
52847         (minus_zero): New variable.
52848         (main): Use minus_zero instead of -zero.
52849         * modules/roundl-tests (Depends-on): Add float.
52850
52851         * tests/test-truncl.c: Include <float.h>.
52852         (zero): Remove variable.
52853         (minus_zero): New variable.
52854         (main): Use minus_zero instead of -zero.
52855         * modules/truncl-tests (Depends-on): Add float.
52856
52857         * tests/test-frexpl.c (zero): Remove variable.
52858         (minus_zero): New variable.
52859         (main): Use minus_zero instead of -zero.
52860         * modules/frexpl-tests (Depends-on): Add float.
52861
52862         * tests/test-isnan.c (zerol): Remove variable.
52863         (minus_zerol): New variable.
52864         (test_long_double): Use minus_zerol instead of -zerol.
52865         * modules/isnan-tests (Depends-on): Add float.
52866
52867         * tests/test-isnanl.h (zero): Remove variable.
52868         (minus_zero): New variable.
52869         (main): Use minus_zero instead of -zero.
52870         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52871         * modules/isnanl-tests (Depends-on): Add float.
52872
52873         * tests/test-ldexpl.c (zero): Remove variable.
52874         (minus_zero): New variable.
52875         (main): Use minus_zero instead of -zero.
52876         * modules/ldexpl-tests (Depends-on): Add float.
52877
52878         * tests/test-snprintf-posix.h (zerol): Remove variable.
52879         (minus_zerol): New variable.
52880         (test_function): Use minus_zerol instead of -zerol.
52881         * modules/snprintf-posix-tests (Depends-on): Add float.
52882         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52883
52884         * tests/test-sprintf-posix.h (zerol): Remove variable.
52885         (minus_zerol): New variable.
52886         (test_function): Use minus_zerol instead of -zerol.
52887         * modules/sprintf-posix-tests (Depends-on): Add float.
52888         * modules/vsprintf-posix-tests (Depends-on): Add float.
52889
52890         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52891         (minus_zerol): New variable.
52892         (test_function): Use minus_zerol instead of -zerol.
52893         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52894
52895         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52896         (minus_zerol): New variable.
52897         (test_function): Use minus_zerol instead of -zerol.
52898         * modules/vasprintf-posix-tests (Depends-on): Add float.
52899
52900 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52901
52902         * MODULES.html.sh (Support for building documentation): Mention
52903         pmccabe2html.  Sort entries.
52904
52905         Add pmccabe2html module, from gnupdf.
52906         * build-aux/pmccabe.css: New file.
52907         * build-aux/pmccabe2html: New file.
52908         * m4/pmccabe2html.m4: New file.
52909         * modules/pmccabe2html: New file.
52910
52911 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52912
52913         flock: new module
52914         * MODULES.html.sh: Add to list of modules.
52915         * lib/flock.c: flock implementation for Windows and Unix systems
52916         which have fcntl.
52917         * doc/glibc-functions/flock.texi: Update documentation.
52918         * lib/sys_file.in.h: <sys/file.h> header file.
52919         * m4/flock.m4: M4 macros.
52920         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52921         * modules/flock: flock module.
52922         * modules/flock-tests: flock tests module.
52923         * modules/sys_file: sys/file.h module.
52924         * tests/test-flock.c: test suite for flock.
52925
52926 2008-10-06  Jim Meyering  <meyering@redhat.com>
52927
52928         bootstrap: check for LT_INIT more portably still ;-)
52929         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52930         Spotted by Bruno Haible.
52931
52932 2008-10-06  Eric Blake  <ebb9@byu.net>
52933
52934         test-signbit: avoid tripping Irix cc bug on -0.0L
52935         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52936         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52937         entire testsuite consistent and avoids an Irix 6.2 bug.
52938
52939 2008-10-05  Bruno Haible  <bruno@clisp.org>
52940             Jim Meyering  <jim@meyering.net>
52941
52942         Add an option for ignoring EPIPE during close_stdout.
52943         * lib/closeout.h: Include <stdbool.h>.
52944         (close_stdout_set_ignore_EPIPE): New declaration.
52945         * lib/closeout.c: Include <stdbool.h>.
52946         (ignore_EPIPE): New variable.
52947         (close_stdout_set_ignore_EPIPE): New function.
52948         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52949         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52950         failure.
52951         * modules/closeout (Depends-on): Add stdbool.
52952
52953 2008-10-05  Bruno Haible  <bruno@clisp.org>
52954
52955         * modules/accept: New file.
52956         * modules/bind: New file.
52957         * modules/connect: New file.
52958         * modules/getpeername: New file.
52959         * modules/getsockname: New file.
52960         * modules/getsockopt: New file.
52961         * modules/listen: New file.
52962         * modules/recv: New file.
52963         * modules/recvfrom: New file.
52964         * modules/send: New file.
52965         * modules/sendto: New file.
52966         * modules/setsockopt: New file.
52967         * modules/socket: New file.
52968         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52969         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52970         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52971         the particular module is requested. Add a link warning when the
52972         particular module is not requested.
52973         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52974         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52975         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52976         the particular module is requested.
52977         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52978         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52979         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52980         * modules/sys_socket (Depends-on): Add link-warning.
52981         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52982         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52983         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52984         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52985         GL_LINK_WARNING.
52986         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52987         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52988         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52989         * doc/posix-functions/getpeername.texi: Mention the new module
52990         'getpeername'.
52991         * doc/posix-functions/getsockname.texi: Mention the new module
52992         'getsockname'.
52993         * doc/posix-functions/getsockopt.texi: Mention the new module
52994         'getsockopt'.
52995         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52996         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52997         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52998         * doc/posix-functions/send.texi: Mention the new module 'send'.
52999         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
53000         * doc/posix-functions/setsockopt.texi: Mention the new module
53001         'setsockopt'.
53002         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
53003         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
53004         listen, connect, accept.
53005         * modules/select-tests (Depends-on): Likewise.
53006
53007 2008-10-05  Bruno Haible  <bruno@clisp.org>
53008
53009         * lib/winsock.c (strerror): Remove unused #undef.
53010         (rpl_close): Remove unused local variable.
53011
53012         * modules/sys_socket (Depends-on); Add errno.
53013
53014 2008-10-05  Bruno Haible  <bruno@clisp.org>
53015
53016         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
53017         (select): Add a link warning when the 'select' module is not used.
53018         * modules/sys_select (Depends-on): Add link-warning.
53019         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
53020         Suggested by Paolo Bonzini.
53021
53022 2008-10-05  Jim Meyering  <meyering@redhat.com>
53023
53024         bootstrap: check for LT_INIT more portably
53025         * build-aux/bootstrap: Avoid using grep -E, since it's not
53026         portable enough.  Suggestion from Bruno Haible.
53027
53028 2008-10-05  Bruno Haible  <bruno@clisp.org>
53029
53030         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
53031         as being fixed by gnulib.
53032
53033 2008-10-05  Bruno Haible  <bruno@clisp.org>
53034
53035         * modules/select-tests: New file, mostly copied from
53036         modules/sys_select-tests.
53037         * tests/test-select.c: New file, mostly copied from
53038         tests/test-sys_select.c.
53039         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
53040         * modules/sys_select-tests (Depends-on): Remove all dependencies.
53041         (Makefile.am): Remove test_sys_select_LDADD.
53042
53043         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
53044         to an undefined symbol, for an error message.
53045         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
53046         (gl_SYS_SELECT_H_DEFAULTS): New macro.
53047         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
53048         winsock-select.c here.
53049         * modules/sys_select (Files): Remove lib/winsock-select.c.
53050         (Depends-on): Remove alloca.
53051         (Makefile.am): Substitute GNULIB_SELECT.
53052         * modules/select: New file.
53053         * doc/posix-functions/select.texi: Update.
53054
53055 2008-10-05  Bruno Haible  <bruno@clisp.org>
53056
53057         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
53058         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
53059         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
53060         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
53061         getdtablesize.
53062         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53063         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53064
53065 2008-10-05  Bruno Haible  <bruno@clisp.org>
53066
53067         * modules/getdtablesize-tests: New file.
53068         * tests/test-getdtablesize.c: New file.
53069
53070         New module 'getdtablesize'.
53071         * lib/unistd.in.h (getdtablesize): New declaration.
53072         * lib/getdtablesize.c: New file.
53073         * m4/getdtablesize.m4: New file.
53074         * modules/getdtablesize: New file.
53075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53076         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
53077         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
53078         HAVE_GETDTABLESIZE.
53079         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
53080
53081 2008-10-05  Bruno Haible  <bruno@clisp.org>
53082
53083         * modules/sched (Makefile.am): Fix typo.
53084         Reported by Simon Josefsson.
53085
53086 2008-10-05  Jim Meyering  <meyering@redhat.com>
53087
53088         bootstrap: check for LT_INIT, too
53089         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
53090         are deprecated.  Suggestion from Ralf Wildenhues.
53091
53092 2008-10-05  Bruno Haible  <bruno@clisp.org>
53093
53094         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
53095         overriding them by ours.
53096         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
53097
53098 2008-10-05  Jim Meyering  <meyering@redhat.com>
53099
53100         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
53101         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
53102         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
53103
53104 2008-10-04  Bruno Haible  <bruno@clisp.org>
53105
53106         * modules/dup2 (License): Change to LGPLv2+.
53107         * modules/sleep (License): Likewise.
53108         * modules/perror (License): Likewise.
53109         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
53110         Blake.
53111         * modules/signal (License): Likewise.
53112         * modules/sigprocmask (License): Likewise.
53113         * modules/raise (License): Change to LGPLv2+, with approval by Jim
53114         Meyering.
53115
53116 2008-10-04  Bruno Haible  <bruno@clisp.org>
53117
53118         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
53119         Reported by Rainer Tammer <tammer@tammer.net>.
53120
53121 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
53122             Bruno Haible  <bruno@clisp.org>
53123
53124         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
53125         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
53126         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
53127
53128 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
53129
53130         filevercmp: new module
53131         * lib/filevercmp.h: New function filevercmp comparing version strings.
53132         * lib/filevercmp.c: Implementation of filevercmp function.
53133         * modules/filevercmp: Module metadata.
53134         * tests/test-filevercmp.c: Unit test for new module.
53135         * modules/filevercmp-tests: Unit test metadata.
53136         * MODULES.html.sh: Add filevercmp module.
53137
53138 2008-10-03  Bruno Haible  <bruno@clisp.org>
53139
53140         * lib/c-ctype.h: Add comment.
53141         Reported by Jim Meyering.
53142
53143 2008-10-02  Bruno Haible  <bruno@clisp.org>
53144
53145         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53146
53147 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53148
53149         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53150         name of bootstrap.conf accordingly.
53151
53152 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53153
53154         * build-aux/bootstrap: Install git-merge-changelog configuration
53155         items into .gitconfig if needed.
53156
53157 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53158
53159         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53160         git repository, and initialize/update it accordingly.
53161
53162 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53163
53164         * modules/fsync-tests: New file.
53165         * tests/test-fsync.c: New file.
53166
53167         New module 'fsync'.
53168         * lib/fsync.c: New file.
53169         * m4/fsync.m4: New file.
53170         * modules/fsync: New file.
53171         * lib/unistd.in.h (fsync): New declaration.
53172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53173         GNULIB_FSYNC and HAVE_FSYNC.
53174         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53175         * MODULES.html.sh (posix_functions): Add fsync.
53176         * doc/posix-functions/fsync.texi: Mention the new module.
53177
53178 2008-10-02  Jim Meyering  <meyering@redhat.com>
53179
53180         fts.c: sync with similar code from coreutils' remove.c
53181         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53182         Guard also with "#if defined __linux__", since for now at least,
53183         this code is Linux-kernel-specific.
53184
53185 2008-10-02  Jim Meyering  <meyering@redhat.com>
53186
53187         fts: bug fixes
53188         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53189         Include <sys/vfs.h>, not <sys/statfs.h>.
53190
53191         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53192         Include <sys/vfs.h>, not <sys/statfs.h>.
53193
53194 2008-10-01  Bruno Haible  <bruno@clisp.org>
53195
53196         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53198         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53199         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53200         * doc/posix-functions/posix_spawnp.texi: Likewise.
53201         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53202         whether posix_spawn actually works.
53203         * m4/pipe.m4 (gl_PIPE): Likewise.
53204         * modules/execute (Files): Add m4/posix_spawn.m4.
53205         * modules/pipe (Files): Add m4/posix_spawn.m4.
53206         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53207
53208 2008-10-01  Jim Meyering  <meyering@redhat.com>
53209
53210         remove trailing spaces
53211         * NEWS: Likewise.
53212         * lib/poll.c (poll): Likewise.
53213         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53214         * lib/winsock.c (rpl_close): Likewise.
53215         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53216         * modules/yield: Likewise.
53217         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53218         * tests/test-sys_select.c (connect_to_socket): Likewise.
53219
53220         fts.c: adjust a new interface to be more generally useful
53221         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53222         (fts_build): Adjust caller.
53223
53224 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53225
53226         * modules/cond-tests: New file.
53227         * tests/test-cond.c: New file.
53228
53229 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53230             Bruno Haible  <bruno@clisp.org>
53231
53232         * modules/cond (Dependencies): Add errno, time.
53233         * lib/glthread/cond.h: Include <time.h>.
53234         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53235         across platforms.
53236
53237 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53238             Bruno Haible  <bruno@clisp.org>
53239
53240         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53241
53242 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53243             Bruno Haible  <bruno@clisp.org>
53244
53245         * modules/tls-tests (Depends-on): Add thread, yield.
53246         (configure.ac): Remove all checks.
53247         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53248         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53249         gl_thread_self): Remove definitions. Include glthread/thread.h and
53250         glthread/yield.h instead.
53251         (test_tls): Pass an additional NULL argument to gl_thread_join.
53252
53253 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53254             Bruno Haible  <bruno@clisp.org>
53255
53256         * modules/lock-tests (Depends-on): Add thread, yield.
53257         (configure.ac): Remove all checks.
53258         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53259         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53260         gl_thread_self): Remove definitions. Include glthread/thread.h and
53261         glthread/yield.h instead.
53262         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53263         additional NULL argument to gl_thread_join.
53264
53265 2008-09-30  Bruno Haible  <bruno@clisp.org>
53266
53267         Fix the Win32 implementation of the 'thread' module.
53268         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53269         pointer type.
53270         (gl_thread_self): Invoke gl_thread_self_func.
53271         (gl_thread_self_func): New declaration.
53272         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53273         (do_init_self_key, init_self_key): New functions.
53274         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53275         Remove some fields.
53276         (running_threads, running_lock): Remove variables.
53277         (get_current_thread_handle): New function.
53278         (gl_thread_self_func, wrapper_func, glthread_create_func,
53279         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53280         simplified.
53281
53282 2008-09-30  Bruno Haible  <bruno@clisp.org>
53283
53284         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53285         files.
53286
53287 2008-09-30  Jim Meyering  <meyering@redhat.com>
53288
53289         fts.m4: correct the test for statfs.f_type
53290         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53291         when checking for statfs.f_type.
53292
53293 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53294
53295         tests: avoid some compiler warnings
53296         * tests/test-memchr.c (main): Pass NULL indirectly.
53297         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53298
53299 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
53300
53301         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53302         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53303         exactly specified dayshifts.
53304         (dayshift): New rule.
53305         (rel): Add dayshift.
53306         (relative_time_table) [tomorrow, yesterday, today, now]:
53307         Use tDAY_SHIFT in place of tDAY_UNIT.
53308         * tests/test-getdate.c: Add tests for now-disallowed countable
53309         dayshifts, e.g., "4 yesterday ago".
53310
53311 2008-09-29  Bruno Haible  <bruno@clisp.org>
53312
53313         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53314         * tests/test-posix_spawn1.in.sh: Renamed from
53315         tests/test-posix_spawn.in.sh.
53316         * tests/test-posix_spawn2.c: New file.
53317         * tests/test-posix_spawn2.in.sh: New file.
53318         * modules/posix_spawnp-tests (Files): Update.
53319         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53320
53321 2008-09-29  Bruno Haible  <bruno@clisp.org>
53322
53323         Propagate effects of putenv/setenv/unsetenv to child processes.
53324         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53325         * lib/pipe.c (create_pipe): Likewise.
53326
53327 2008-09-29  Bruno Haible  <bruno@clisp.org>
53328
53329         Enable use of shell scripts as executables in mingw.
53330         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53331         run the program as a shell script.
53332         * lib/pipe.c (create_pipe): Likewise.
53333         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53334         resulting array.
53335
53336 2008-09-29  Eric Blake  <ebb9@byu.net>
53337
53338         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53339
53340 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53341
53342         * doc/posix-functions/accept.texi: Update mingw problems.
53343         * doc/posix-functions/bind.texi: Update mingw problems.
53344         * doc/posix-functions/close.texi: Update mingw problems.
53345         * doc/posix-functions/connect.texi: Update mingw problems.
53346         * doc/posix-functions/getpeername.texi: Update mingw problems.
53347         * doc/posix-functions/getsockname.texi: Update mingw problems.
53348         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53349         * doc/posix-functions/ioctl.texi: Update mingw problems.
53350         * doc/posix-functions/listen.texi: Update mingw problems.
53351         * doc/posix-functions/recv.texi: Update mingw problems.
53352         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53353         * doc/posix-functions/select.texi: Update mingw problems.
53354         * doc/posix-functions/send.texi: Update mingw problems.
53355         * doc/posix-functions/sendto.texi: Update mingw problems.
53356         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53357         * doc/posix-functions/socket.texi: Update mingw problems.
53358
53359 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53360             Bruno Haible  <bruno@clisp.org>
53361
53362         * lib/sys_select.in.h: Include sys/time.h.
53363         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53364         * modules/sys_select: Depend on sys_time.
53365         * tests/test-sys_select.c: Test that sys/select.h defines struct
53366         timeval fully.
53367
53368 2008-09-29  Bruno Haible  <bruno@clisp.org>
53369
53370         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53371         * lib/sys_select.in.h: Likewise.
53372
53373 2008-09-29  Bruno Haible  <bruno@clisp.org>
53374
53375         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53376
53377 2008-09-29  Bruno Haible  <bruno@clisp.org>
53378
53379         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53380         Set LIBSOCKET instead of augmenting LIBS.
53381         * modules/sockets (Link): New section.
53382         * modules/sockets-tests (test_sockets_LDADD): New variable.
53383         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53384         * modules/poll-tests (test_poll_LDADD): New variable.
53385         * NEWS: Document the change.
53386
53387 2008-09-29  Bruno Haible  <bruno@clisp.org>
53388
53389         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53390         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53391         ARPA_INET_H directly.
53392         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53393
53394 2008-09-28  Bruno Haible  <bruno@clisp.org>
53395
53396         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53397         from gl_HEADER_SYS_SOCKET.
53398         (gl_HEADER_SYS_SOCKET): Invoke it.
53399         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53400
53401 2008-09-28  Bruno Haible  <bruno@clisp.org>
53402
53403         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53404         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53405         Needed on OSF/1 4.0.
53406
53407 2008-09-28  Bruno Haible  <bruno@clisp.org>
53408
53409         Override open more carefully.
53410         * lib/open.c (orig_open): New function.
53411         (rpl_open): Use orig_open instead of open.
53412         * lib/fcntl.in.h: Add special invocation convention.
53413         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53414         (gl_FUNC_OPEN): Invoke it.
53415
53416         Override freopen more carefully.
53417         * lib/freopen.c (orig_freopen): New function.
53418         (rpl_freopen): Use orig_freopen instead of freopen.
53419         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53420         (gl_FUNC_FREOPEN): Invoke it.
53421
53422         Override fopen more carefully.
53423         * lib/fopen.c (orig_fopen): New function.
53424         (rpl_fopen): Use orig_fopen instead of fopen.
53425         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53426         (gl_FUNC_FOPEN): Invoke it.
53427         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53428
53429 2008-09-28  Bruno Haible  <bruno@clisp.org>
53430
53431         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53432         SIGPIPE.
53433
53434 2008-09-28  Bruno Haible  <bruno@clisp.org>
53435
53436         * tests/test-sigaction.c (handler, main): Disable the check whether
53437         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53438         glibc systems with LinuxThreads.
53439
53440 2008-09-28  Bruno Haible  <bruno@clisp.org>
53441
53442         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53443
53444         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53445         with AIX xlc.
53446         * lib/fcntl.in.h (open): Likewise.
53447         Reported by Rainer Tammer <tammer@tammer.net>.
53448
53449 2008-09-28  Bruno Haible  <bruno@clisp.org>
53450
53451         * modules/posix_spawnp-tests: New file.
53452         * tests/test-posix_spawn.c: New file.
53453         * tests/test-posix_spawn.in.sh: New file.
53454
53455         New module 'posix_spawnp'.
53456         * modules/posix_spawnp: New file.
53457         * lib/spawnp.c: New file, from GNU libc with modifications.
53458         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53459
53460         New module 'posix_spawn'.
53461         * modules/posix_spawn: New file.
53462         * lib/spawn.c: New file, from GNU libc with modifications.
53463         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53464
53465         New module 'posix_spawnattr_destroy'.
53466         * modules/posix_spawnattr_destroy: New file.
53467         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53468         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53469         module.
53470
53471         New module 'posix_spawnattr_setsigmask'.
53472         * modules/posix_spawnattr_setsigmask: New file.
53473         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53474         modifications.
53475         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53476         new module.
53477
53478         New module 'posix_spawnattr_getsigmask'.
53479         * modules/posix_spawnattr_getsigmask: New file.
53480         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53481         modifications.
53482         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53483         new module.
53484
53485         New module 'posix_spawnattr_setsigdefault'.
53486         * modules/posix_spawnattr_setsigdefault: New file.
53487         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53488         modifications.
53489         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53490         new module.
53491
53492         New module 'posix_spawnattr_getsigdefault'.
53493         * modules/posix_spawnattr_getsigdefault: New file.
53494         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53495         modifications.
53496         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53497         new module.
53498
53499         New module 'posix_spawnattr_setschedpolicy'.
53500         * modules/posix_spawnattr_setschedpolicy: New file.
53501         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53502         modifications.
53503         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53504         new module.
53505
53506         New module 'posix_spawnattr_getschedpolicy'.
53507         * modules/posix_spawnattr_getschedpolicy: New file.
53508         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53509         modifications.
53510         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53511         new module.
53512
53513         New module 'posix_spawnattr_setschedparam'.
53514         * modules/posix_spawnattr_setschedparam: New file.
53515         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53516         modifications.
53517         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53518         new module.
53519
53520         New module 'posix_spawnattr_getschedparam'.
53521         * modules/posix_spawnattr_getschedparam: New file.
53522         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53523         modifications.
53524         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53525         new module.
53526
53527         New module 'posix_spawnattr_setpgroup'.
53528         * modules/posix_spawnattr_setpgroup: New file.
53529         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53530         modifications.
53531         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53532         module.
53533
53534         New module 'posix_spawnattr_getpgroup'.
53535         * modules/posix_spawnattr_getpgroup: New file.
53536         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53537         modifications.
53538         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53539         module.
53540
53541         New module 'posix_spawnattr_setflags'.
53542         * modules/posix_spawnattr_setflags: New file.
53543         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53544         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53545         module.
53546
53547         New module 'posix_spawnattr_getflags'.
53548         * modules/posix_spawnattr_getflags: New file.
53549         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53550         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53551         module.
53552
53553         New module 'posix_spawnattr_init'.
53554         * modules/posix_spawnattr_init: New file.
53555         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53556         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53557         module.
53558
53559         New module 'posix_spawn_file_actions_destroy'.
53560         * modules/posix_spawn_file_actions_destroy: New file.
53561         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53562         modifications.
53563         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53564         the new module.
53565
53566         New module 'posix_spawn_file_actions_addopen'.
53567         * modules/posix_spawn_file_actions_addopen: New file.
53568         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53569         modifications.
53570         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53571         the new module.
53572
53573         New module 'posix_spawn_file_actions_adddup2'.
53574         * modules/posix_spawn_file_actions_adddup2: New file.
53575         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53576         modifications.
53577         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53578         the new module.
53579
53580         New module 'posix_spawn_file_actions_addclose'.
53581         * modules/posix_spawn_file_actions_addclose: New file.
53582         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53583         modifications.
53584         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53585         the new module.
53586
53587         New module 'posix_spawn_file_actions_init'.
53588         * modules/posix_spawn_file_actions_init: New file.
53589         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53590         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53591         new module.
53592
53593         New module 'posix_spawn-internal'.
53594         * modules/posix_spawn-internal: New file.
53595         * lib/spawn_int.h: New file, from GNU libc with modifications.
53596         * lib/spawni.c: New file, from GNU libc with modifications.
53597         * m4/posix_spawn.m4: New file.
53598
53599         New module 'spawn'.
53600         * modules/spawn: New file.
53601         * lib/spawn.in.h: New file, from GNU libc with modifications.
53602         * m4/spawn_h.m4: New file.
53603         * doc/posix-headers/spawn.texi: Mention the new module.
53604
53605 2008-09-28  Bruno Haible  <bruno@clisp.org>
53606
53607         * modules/sched-tests: New file.
53608         * tests/test-sched.c: New file.
53609
53610         New module 'sched'.
53611         * modules/sched: New file.
53612         * lib/sched.in.h: New file.
53613         * m4/sched_h.m4: New file.
53614         * doc/posix-headers/sched.texi: Mention the new module.
53615
53616 2008-09-27  Eric Blake  <ebb9@byu.net>
53617
53618         Fix previous patch, and tweak references to $0.
53619         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53620         (func_version, func_gnulib_dir): Don't call this program
53621         gnulib-tool.
53622         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53623         with using $0 in function.
53624         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53625         (func_fatal_error): Reuse the name the user invoked us with.
53626
53627 2008-09-27  Bruno Haible  <bruno@clisp.org>
53628
53629         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53630         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53631         (gl_ICONV_H): Not here.
53632         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53633         instead of assigning ICONV_H directly.
53634
53635         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53636         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53637         WCHAR_H directly.
53638
53639 2008-09-27  Bruno Haible  <bruno@clisp.org>
53640
53641         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53642         * modules/arpa_inet (Depends-on): Add link-warning.
53643         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53644         * modules/unistd (Makefile.am): Likewise.
53645
53646 2008-09-26  Bruno Haible  <bruno@clisp.org>
53647
53648         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53649         variables.
53650         (func_version): Essentially copied from gnulib-tool.
53651         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53652         func_readlink): Copied from gnulib-tool.
53653
53654 2008-09-26  Bruno Haible  <bruno@clisp.org>
53655
53656         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53657         invoking git-version-gen.
53658
53659 2008-09-26  Bruno Haible  <bruno@clisp.org>
53660
53661         * posix-modules: Update to directory names changed on 2008-01-19.
53662         Remove commas in output before splitting into words. No more need to
53663         avoid 'ftruncate' since 2007-02-19.
53664
53665 2008-09-26  Bruno Haible  <bruno@clisp.org>
53666
53667         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53668
53669 2008-09-26  Bruno Haible  <bruno@clisp.org>
53670
53671         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53672         * modules/fwriteerror (Depends-on): Add errno.
53673
53674 2008-09-26  Bruno Haible  <bruno@clisp.org>
53675
53676         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53677         * tests/test-vc-list-files-cvs.sh: Likewise.
53678
53679 2008-09-26  Bruno Haible  <bruno@clisp.org>
53680
53681         * doc/posix-headers/sys_resource.texi: Reorder items.
53682
53683 2008-09-26  Jim Meyering  <meyering@redhat.com>
53684
53685         fts: tweak inode comparison function
53686         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53687         inode numbers, as documented.
53688
53689         fts: sort dirent entries on inode number before traversing
53690         This avoids a quadratic, seek-related performance penalty when
53691         operating on a directory containing many entries (measurable at 10k;
53692         3.5 hours at 2 million entries with a cold cache) on certain types
53693         of file systems, including ext3 and ext4, but not tmpfs.
53694         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53695         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53696         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53697         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53698         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53699         (fts_build): Set the stat.st_ino member from D_INO.
53700         If it is likely to be useful, sort dirent entries on inode number.
53701
53702         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53703         and the struct statfs.f_type member.
53704         * modules/fts (Depends-on): Add d-ino.
53705
53706 2008-09-26  Bruno Haible  <bruno@clisp.org>
53707
53708         * modules/sigpipe-die (Depends-on): Add sigpipe.
53709
53710         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53711         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53712         and GNULIB_STDIO_H_SIGPIPE are set.
53713         * lib/stdio-write.c: New file.
53714         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53715         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53716         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53717         REPLACE_STDIO_WRITE_FUNCS.
53718         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53719         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53720         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53721         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53722         * modules/stdio (Files): Add lib/stdio-write.c.
53723         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53724         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53725         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53726         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53727         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53728         REPLACE_FPRINTF_POSIX.
53729         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53730         REPLACE_PRINTF_POSIX.
53731         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53732         REPLACE_VFPRINTF_POSIX.
53733         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53734         REPLACE_VPRINTF_POSIX.
53735         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53736         SIGPIPE issue.
53737         * doc/posix-functions/fputc.texi: Likewise.
53738         * doc/posix-functions/fputs.texi: Likewise.
53739         * doc/posix-functions/fwrite.texi: Likewise.
53740         * doc/posix-functions/printf.texi: Likewise.
53741         * doc/posix-functions/putc.texi: Likewise.
53742         * doc/posix-functions/putchar.texi: Likewise.
53743         * doc/posix-functions/puts.texi: Likewise.
53744         * doc/posix-functions/vfprintf.texi: Likewise.
53745         * doc/posix-functions/vprintf.texi: Likewise.
53746
53747         * modules/safe-write (Depends-on): Add write.
53748
53749         * modules/sigpipe-tests: New file.
53750         * tests/test-sigpipe.c: New file.
53751         * tests/test-sigpipe.sh: New file.
53752
53753         * modules/write: New file.
53754         * lib/unistd.in.h: Include <sys/types.h>.
53755         (write): New declaration.
53756         * lib/write.c: New file.
53757         * m4/write.m4: New file.
53758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53759         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53760         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53761         GNULIB_WRITE, REPLACE_WRITE.
53762         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53763         and the SIGPIPE issue.
53764
53765         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53766         (raise): New declaration.
53767         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53768         (ext_signal): New function.
53769         (rpl_raise): New function.
53770         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53771         GNULIB_SIGNAL_H_SIGPIPE.
53772         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53773         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53774
53775         * modules/sigpipe: New file.
53776         * m4/sigpipe.m4: New file.
53777
53778 2008-09-25  Derek Price  <derek@ximbiot.com>
53779             Bruno Haible  <bruno@clisp.org>
53780
53781         * gnulib-tool (func_import): Report all license incompatibilities, not
53782         just the first one.
53783
53784 2008-09-25  Bruno Haible  <bruno@clisp.org>
53785
53786         * gnulib-tool (func_import): When computing the edits, consider not
53787         only the Makefile.ams that exist but also those that will be generated.
53788
53789 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53790
53791         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53792         fixes gnulib-tool --test warning about duplicate dependency.
53793
53794 2008-09-25  Bruno Haible  <bruno@clisp.org>
53795
53796         * gnulib-tool: Don't ask the user to perform edits in the generated
53797         Makefile.ams.
53798         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53799         apply to the Makefile.am being generated.
53800         (func_emit_tests_Makefile_am): Execute edits that apply to the
53801         Makefile.am being generated.
53802         (func_import): Setup list of Makefile.am edits before emitting the
53803         Makefile.ams, not at the end.
53804         (func_create_testdir): Update.
53805         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53806
53807 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53808
53809         * gnulib-tool (func_import): Store the --tests-base option in the
53810         comment in gnulib-cache.m4.
53811
53812 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53813
53814         * NEWS: Document increased portability that sys_select now provides.
53815
53816         * lib/sys_select.in.h: Install select wrapper.
53817         * lib/sys_socket.in.h: Use more descriptive name when there is no
53818         select wrapper.
53819         * lib/winsock-select.c: New.
53820         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53821         Require gl_HEADER_SYS_SOCKET.
53822         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53823         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53824         * tests/test-sys_select.c: Add functional tests.
53825
53826 2008-09-24  Eric Blake  <ebb9@byu.net>
53827
53828         open, fopen: close fd leak in last patch
53829         * lib/open.c (rpl_open): Close fd before returning error.
53830         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53831         * doc/posix-functions/open.texi (open): Document that Irix also
53832         has the bug.
53833         * doc/posix-functions/fopen.texi (fopen): Likewise.
53834         Reported by Paolo Bonzini.
53835
53836 2008-09-24  Bruno Haible  <bruno@clisp.org>
53837
53838         Ensure that a filename ending in a slash cannot be used to access a
53839         non-directory.
53840         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53841         to check whether it's really a directory.
53842         * lib/fopen.c: Include fcntl.h, unistd.h.
53843         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53844         and fdopen().
53845         * modules/fopen (Depends-on): Add unistd.
53846         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53847         * tests/test-fopen.c (main): Likewise.
53848         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53849         * doc/posix-functions/fopen.texi: Likewise.
53850         Reported by Eric Blake.
53851
53852 2008-09-23  Eric Blake  <ebb9@byu.net>
53853
53854         c-stack: avoid compiler optimizations when provoking overflow
53855         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53856         recursion harder to optimize, to ensure a stack overflow occurs.
53857         * tests/test-c-stack.c (recurse): Likewise.
53858         Borrowed from libsigsegv.
53859
53860         c-stack: work around Irix sigaltstack bug
53861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53862         whether sigaltstack uses wrong end of stack_t (copied in part from
53863         libsigsegv).
53864         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53865         Irix bug, without requiring an over-allocation.
53866         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53867         bug.
53868
53869         fopen: document mingw bug on directories
53870         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53871         not allowing a stream visiting a directory, even though reading
53872         from such a stream is not portable.
53873
53874 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53875
53876         * lib/poll.c: Rewrite.
53877         * modules/poll: Depend on alloca.
53878
53879 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53880
53881         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53882         instead define prototypes for a full set of wrappers.  Ensure
53883         that Cygwin does not use the compatibility code, which is only
53884         for MinGW.
53885         * lib/winsock.c: New.
53886         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53887         * modules/sys_socket: Add lib/winsock.c.
53888
53889         * modules/poll-tests: Add errno and perror.
53890         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53891
53892 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53893
53894         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53895
53896 2008-09-23  Bruno Haible  <bruno@clisp.org>
53897
53898         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53899         * doc/glibc-functions/*: Likewise.
53900
53901 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53902
53903         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53904         success.
53905
53906 2008-09-22  Eric Blake  <ebb9@byu.net>
53907             Bruno Haible  <bruno@clisp.org>
53908
53909         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53910         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53911         supply %A but mishandle pseudo-NaN.
53912         Reported by Simon Josefsson.
53913
53914 2008-09-21  Bruno Haible  <bruno@clisp.org>
53915
53916         * tests/test-lock.c (main): Tweak skip message.
53917         * tests/test-tls.c (main): Likewise.
53918
53919 2008-09-21  Bruno Haible  <bruno@clisp.org>
53920
53921         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53922         whether 'struct sigaction' has sa_sigaction here...
53923         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53924         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53925
53926 2008-09-21  Bruno Haible  <bruno@clisp.org>
53927
53928         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53929         section.
53930         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53931         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53932         the new section.
53933         (Support for obsolete systems lacking POSIX:2001): New section.
53934         (String handling <string.h>): Move strdup to the new section.
53935         Suggested by Simon Josefsson and Paolo Bonzini.
53936
53937 2008-09-21  Bruno Haible  <bruno@clisp.org>
53938
53939         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53940         exponents in %e and %g results on 'long double'. Needed for mingw's
53941         improved *printf functions.
53942         * tests/test-vasprintf-posix.c (test_function): Likewise.
53943         * tests/test-snprintf-posix.h (test_function): Likewise.
53944         * tests/test-sprintf-posix.h (test_function): Likewise.
53945         Reported by Eric Blake.
53946
53947 2008-09-21  Bruno Haible  <bruno@clisp.org>
53948
53949         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53950         * tests/test-sprintf-posix.h (test_function): Likewise.
53951
53952 2008-09-21  Bruno Haible  <bruno@clisp.org>
53953
53954         * modules/getpass (Depends-on): Add strdup-posix.
53955
53956         New module 'strdup-posix'.
53957         * modules/strdup-posix: New file.
53958         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53959         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53961         REPLACE_STRDUP.
53962         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53963         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53964         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53965         strdup-posix.
53966
53967         * modules/strdup (Depends-on): Remove malloc-posix.
53968
53969 2008-09-20  Bruno Haible  <bruno@clisp.org>
53970
53971         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53972         Wildenhues.
53973
53974 2008-09-20  Bruno Haible  <bruno@clisp.org>
53975
53976         Ensure that wint_t gets defined on IRIX 5.3.
53977         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53978         * lib/wctype.in.h (wint_t): Likewise.
53979         (__wctype_wint_t): Remove type.
53980         (isw*): Use wint_t instead of __wctype_wint_t.
53981         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53982         * modules/wchar (Files): Add m4/wint_t.m4.
53983         (Makefile.am): Substitute HAVE_WINT_T.
53984         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53985         * tests/test-wctype.c: Check that wint_t is defined.
53986         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53987         * doc/posix-headers/wctype.texi: Likewise.
53988         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53989
53990 2008-09-18  Bruno Haible  <bruno@clisp.org>
53991
53992         * gnulib-tool (func_exit): Update comment.
53993
53994 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53995
53996         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53997         assumes strdup exists and does not depend on strdup to return
53998         ENOMEM on out of memory conditions.
53999
54000 2008-09-18  Bruno Haible  <bruno@clisp.org>
54001
54002         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
54003         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
54004         digits for the exponent.
54005
54006 2008-09-18  Jim Meyering  <meyering@redhat.com>
54007             Bruno Haible  <bruno@clisp.org>
54008
54009         * lib/vasnprintf.c (decimal_point_char): Define also if
54010         NEED_PRINTF_INFINITE_LONG_DOUBLE.
54011
54012 2008-09-16  Bruno Haible  <bruno@clisp.org>
54013         and Eric Blake  <ebb9@byu.net>
54014
54015         vasnprintf: support Irix 5.3
54016         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
54017         that mishandle long double infinity.
54018         Reported by Tom G. Christensen.
54019
54020 2008-09-16  Bruno Haible  <bruno@clisp.org>
54021
54022         * doc/glibc-functions/scandir.texi: Mention the function is missing on
54023         Solaris 9.
54024         * doc/glibc-functions/alphasort.texi: Likewise.
54025         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
54026
54027 2008-09-16  Jim Meyering  <meyering@redhat.com>
54028
54029         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
54030         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
54031         a umask modification leak out of a subshell.  Otherwise, the
54032         opensolaris /bin/sh would be accepted and thus cause unwarranted
54033         failures in the coreutils test suite.
54034
54035 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
54036
54037         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
54038         to succeed.
54039
54040 2008-09-16  Jim Meyering  <meyering@redhat.com>
54041
54042         avoid spurious test failure when library is built without ACL support
54043         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
54044         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
54045         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
54046         * tests/test-copy-acl.sh: Likewise.
54047
54048 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54049
54050         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
54051         based on character occurrence counts.
54052
54053 2008-09-15  Eric Blake  <ebb9@byu.net>
54054
54055         tests: avoid some compiler warnings
54056         * tests/test-memchr.c (main): Pass NULL indirectly.
54057         * tests/test-closein.c (main): Avoid unused variable.
54058
54059 2008-09-15  Bruno Haible  <bruno@clisp.org>
54060
54061         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
54062         are missing on OpenBSD 4.0 individually.
54063         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54064
54065 2008-09-15  Bruno Haible  <bruno@clisp.org>
54066
54067         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
54068         * doc/posix-functions/strerror.texi: Mention also Cygwin.
54069         * doc/posix-functions/perror.texi: Likewise.
54070         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
54071         is missing.
54072         Reported by Eric Blake.
54073
54074         * lib/errno.in.h: Use replacement values >= 2000.
54075         Reported by Eric Blake.
54076
54077 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54078
54079         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
54080         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
54081         limit.
54082         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
54083         compareseq was aborted.
54084
54085 2008-09-14  Bruno Haible  <bruno@clisp.org>
54086
54087         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
54088         yvec_edit_count.
54089         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
54090         (fstrcmp_bounded): Simplify result computation accordingly.
54091
54092 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54093
54094         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
54095         (fstrcmp): Define in terms of fstrcmp_bounded.
54096         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
54097         lower_bound argument.
54098         Return quickly if the result is certainly < lower_bound.
54099         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
54100
54101 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54102
54103         * lib/diffseq.h (EARLY_ABORT): New macro.
54104         (compareseq): Change return type to bool. Return true when EARLY_ABORT
54105         evaluates to true.
54106
54107 2008-09-14  Bruno Haible  <bruno@clisp.org>
54108
54109         * modules/perror-tests: New file.
54110         * tests/test-perror.sh: New file.
54111         * tests/test-perror.c: New file.
54112
54113         New module 'perror'.
54114         * lib/stdio.in.h (perror): New declaration.
54115         * lib/perror.c: New file.
54116         * m4/perror.m4: New file.
54117         * modules/perror: New file.
54118         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
54119         * doc/posix-functions/perror.texi: Mention the perror module.
54120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
54121         REPLACE_PERROR.
54122         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
54123         REPLACE_PERROR.
54124
54125 2008-09-14  Bruno Haible  <bruno@clisp.org>
54126
54127         * modules/stdio (Makefile.am): Reorder to match the order in
54128         lib/stdio.in.h.
54129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54130
54131 2008-09-13  Bruno Haible  <bruno@clisp.org>
54132
54133         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54134
54135 2008-09-13  Bruno Haible  <bruno@clisp.org>
54136
54137         Extend strerror to cover the added errno values.
54138         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54139         (rpl_strerror): Provide error messages for the added errno values and
54140         for the WSA* values.
54141         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54142         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54143         strerror.
54144         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54145         * modules/strerror (Depends-on): Add errno.
54146         * doc/posix-functions/strerror.texi: Document the change.
54147         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54148         and EOVERFLOW.
54149
54150 2008-09-13  Bruno Haible  <bruno@clisp.org>
54151
54152         * modules/EOVERFLOW: Remove file.
54153         * m4/eoverflow.m4: Remove file.
54154         * modules/EOVERFLOW-tests: Remove file.
54155         * tests/test-EOVERFLOW.c: Remove file.
54156         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54157         * modules/ftell (Depends-on): Likewise.
54158         * modules/getdelim (Depends-on): Likewise.
54159         * modules/getugroups (Depends-on): Likewise.
54160         * modules/poll (Depends-on): Likewise.
54161         * modules/snprintf (Depends-on): Likewise.
54162         * modules/sprintf-posix (Depends-on): Likewise.
54163         * modules/vasnprintf (Depends-on): Likewise.
54164         * modules/vasprintf (Depends-on): Likewise.
54165         * modules/vfprintf-posix (Depends-on): Likewise.
54166         * modules/vsnprintf (Depends-on): Likewise.
54167         * modules/vsprintf-posix (Depends-on): Likewise.
54168         * modules/xvasprintf (Depends-on): Likewise.
54169         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54170         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54171         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54172         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54173         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54174         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54175         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54176         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54177         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54178         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54179         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54180         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54181         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54182         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54183         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54184         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54185         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54186         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54187         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54188         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54189         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54190         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54191         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54192         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54193         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54194         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54195         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54196         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54197         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54198         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54199         * MODULES.html.sh: Remove EOVERFLOW.
54200         * NEWS: Mention the change.
54201
54202 2008-09-13  Bruno Haible  <bruno@clisp.org>
54203
54204         * modules/errno-tests: New file.
54205         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54206
54207         * lib/errno.in.h: New file.
54208         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54209         * modules/errno: New file.
54210         * doc/posix-headers/errno.texi: Update documentation.
54211         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54212
54213 2008-09-13  Bruno Haible  <bruno@clisp.org>
54214
54215         * tests/test-poll.c: Use #if for native Windows, rather than testing
54216         __MSVCRT__.
54217
54218 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54219             Bruno Haible  <bruno@clisp.org>
54220
54221         * lib/glob.c: Don't include <pwd.h> on native Windows.
54222         (WINDOWS32): New macro.
54223         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54224
54225 2008-09-13  Bruno Haible  <bruno@clisp.org>
54226
54227         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54228         (ETIMEDOUT): Remove macro.
54229         (glthread_cond_timedwait_multithreaded): New declaration.
54230         (glthread_cond_timedwait): Use it.
54231         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54232         (glthread_cond_timedwait_multithreaded): New function.
54233
54234 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54235
54236         * modules/poll-tests: Do not check for io.h.
54237         * tests/test-poll.c: Check for __MSVCRT__ instead.
54238
54239 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54240
54241         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54242         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54243         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54244
54245 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54246
54247         * modules/poll-tests: New.
54248         * tests/test-poll.c: New.
54249
54250 2008-09-12  Eric Blake  <ebb9@byu.net>
54251
54252         frexp: test for NetBSD failure on -0.0
54253         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54254         not all, bugs from NetBSD 3.0 have been fixed.
54255         * doc/posix-functions/frexp.texi (frexp): Document bug.
54256         Reported by Thomas Klausner.
54257
54258         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54259         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54260         literal -0.0.
54261         Reported by Jonathan C. Patschke <jp@centtech.com>.
54262
54263 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54264
54265         * lib/glthread/cond.h: Use dummy implementation also if
54266         USE_WIN32_THREADS.
54267
54268 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54269
54270         * modules/fnmatch-posix (License): Change to LGPLv2+.
54271         * modules/fnmatch-gnu (License): Likewise.
54272
54273 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54274
54275         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54276
54277 2008-09-11  Jim Meyering  <meyering@redhat.com>
54278
54279         * users.txt: Add gtk-vnc.
54280
54281 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54282
54283         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54284         rotate amounts.
54285
54286         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54287         required for 16-bit and 8-bit rotates.
54288         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54289         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54290         UINT8_MAX instead of hard-coded constants.
54291         Suggested by Paul Eggert.
54292
54293 2008-09-07  Bruno Haible  <bruno@clisp.org>
54294
54295         * tests/test-striconveh.c (main): Check behaviour when converting from
54296         UTF-7.
54297
54298         Make striconveh work better with stateful encodings.
54299         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54300         that iconv does not increment the inptr when returning -1/EINVAL.
54301
54302 2008-09-07  Bruno Haible  <bruno@clisp.org>
54303
54304         * build-aux/config.rpath: Update according to libtool-2.2.6.
54305         * build-aux/config.libpath: Likewise.
54306
54307 2008-09-06  Bruno Haible  <bruno@clisp.org>
54308
54309         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54310         * lib/freadptr.c (freadptr): Likewise.
54311         * lib/freadseek.c (freadptrinc): Likewise.
54312         Reported by Simon Josefsson.
54313
54314 2008-09-06  Bruno Haible  <bruno@clisp.org>
54315
54316         * modules/freadptr (License): Change to LGPLv2+.
54317         * modules/freadseek (License): Likewise.
54318         Suggested by Eric Blake.
54319
54320         * modules/memchr2 (License): Change to LGPLv2+.
54321         Approved by Eric Blake.
54322
54323 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54324             Bruno Haible  <bruno@clisp.org>
54325
54326         Make gnulib-tool work with native 'sed' on AIX.
54327         * gnulib-tool (sed_noop): New variable.
54328         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54329         func_add_or_update, func_create_testdir): Use it to initialize sed
54330         script variables.
54331         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54332
54333 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54334             Bruno Haible  <bruno@clisp.org>
54335
54336         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54337         also works after #include directives.
54338
54339 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
54340
54341         getdate.y: reject an out-of-range timezone value
54342         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54343         the range [-24...+24].  When specified with only one or two digits,
54344         * tests/test-getdate.c: Tests for the fix.
54345         * doc/getdate.texi: Document this change.
54346
54347 2008-09-03  Bruno Haible  <bruno@clisp.org>
54348
54349         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54350
54351 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54352
54353         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54354         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54355         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54356         Blake <ebb9@byu.net>.
54357
54358         * tests/test-bitrotate.c: Add more test vectors.
54359
54360 2008-09-02  Eric Blake  <ebb9@byu.net>
54361
54362         vasnprintf-posix: handle large precision via %.*d
54363         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54364         when handling it ourselves.
54365         * tests/test-vasnprintf-posix.c (test_function): Add test.
54366         * tests/test-snprintf-posix.h (test_function): Likewise.
54367         * tests/test-sprintf-posix.h (test_function): Likewise.
54368         * tests/test-vasprintf-posix.c (test_function): Likewise.
54369         Reported by Alain Guibert.
54370
54371 2008-09-01  Eric Blake  <ebb9@byu.net>
54372
54373         c-stack: make configure-time check more robust
54374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54375         successful sigaction call.
54376         Reported by Tom G. Christensen.
54377
54378 2008-09-01  Bruno Haible  <bruno@clisp.org>
54379
54380         New module 'findprog-lgpl'.
54381         * modules/findprog-lgpl: New file.
54382         * lib/findprog-lgpl.c: New file.
54383         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54384         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54385         to decide whether to use strdup or xstrdup, concatenated_filename or
54386         xconcatenated_filename.
54387
54388 2008-09-01  Bruno Haible  <bruno@clisp.org>
54389
54390         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54391         'xconcat-filename' (GPL).
54392         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54393         (License): Change to LGPLv2+.
54394         * modules/xconcat-filename: New file.
54395         * lib/concat-filename.h (concatenated_filename): Change specification.
54396         (xconcatenated_filename): New declaration.
54397         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54398         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54399         memory situations.
54400         * lib/xconcat-filename.c: New file.
54401         * NEWS: Mention the change.
54402         * lib/findprog.c: Include concat-filename.h, not filename.h.
54403         (find_in_path): Use xconcatenated_filename instead of
54404         concatenated_filename.
54405         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54406         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54407         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54408         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54409         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54410         instead of concatenated_filename.
54411         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54412         (execute_java_class): Use xconcatenated_filename instead of
54413         concatenated_filename.
54414         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54415         * modules/javacomp (Depends-on): Likewise.
54416         * modules/javaexec (Depends-on): Likewise.
54417
54418 2008-09-01  Bruno Haible  <bruno@clisp.org>
54419
54420         Split module 'filename' into 'filename' and 'concat-filename'.
54421         * modules/filename: Keep only lib/filename.h.
54422         (License): Change to LGPLv2+.
54423         * modules/concat-filename: New file, extracted from modules/filename.
54424         * lib/filename.h (concatenated_filename): Remove declaration.
54425         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54426         * lib/concat-filename.c: Include concat-filename.h.
54427         * NEWS: Mention the change.
54428
54429 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54430
54431         * lib/bitrotate.h (rotl8, rotr8): Add.
54432
54433         * modules/bitrotate (configure.ac): Need
54434         AC_REQUIRE([AC_C_INLINE]).
54435         (Description): Mention stdint.h.  Reported by Bruno Haible
54436         <bruno@clisp.org>.
54437
54438         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54439         Paolo Bonzini <bonzini@gnu.org>.
54440
54441 2008-08-31  Bruno Haible  <bruno@clisp.org>
54442
54443         Assume Solaris specific bi-arch conventions on Solaris systems.
54444         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54445         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54446         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54447         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54448         like acl_libdirstem.
54449         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54450         acl_libdirstem.
54451         * NEWS: Mention the change.
54452         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54453
54454 2008-08-31  Jim Meyering  <meyering@redhat.com>
54455
54456         * lib/strftime.h: Add comments describing the two added arguments.
54457
54458         remove duplicate #include directives
54459         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54460         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54461
54462 2008-08-31  Bruno Haible  <bruno@clisp.org>
54463
54464         New module 'sigpipe-die'.
54465         * modules/sigpipe-die: New file.
54466         * lib/sigpipe-die.h: New file.
54467         * lib/sigpipe-die.c: New file.
54468         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54469
54470 2008-08-31  Bruno Haible  <bruno@clisp.org>
54471
54472         Don't override previously installed signal handlers.
54473         * lib/fatal-signal.c (saved_sigactions): New variable.
54474         (uninstall_handlers): Reset the signal to the saved handler, not
54475         to SIG_DFL (except when ignored).
54476         (install_handlers): Save the previous handlers.
54477
54478 2008-08-30  Bruno Haible  <bruno@clisp.org>
54479
54480         * gnulib-tool (func_reset_sigpipe): New function.
54481         (func_get_automake_snippet, func_modules_transitive_closure,
54482         func_import): Invoke it before a join command that reads from stdin,
54483         to avoid "echo: write error: Broken pipe" error messages on stderr.
54484         Reported by Sam Steingold <sds@gnu.org>.
54485
54486 2008-08-30  Bruno Haible  <bruno@clisp.org>
54487
54488         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54489         Code copied from m4/open.m4.
54490         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54491         access and the filename ends in a slash. Code copied from lib/open.c.
54492         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54493         * tests/test-fopen.c (main): Check against bug with trailing slash.
54494
54495 2008-08-29  Bruno Haible  <bruno@clisp.org>
54496
54497         Avoid some "gcc -pedantic" warnings.
54498         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54499         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54500         * lib/dirent.in.h: Likewise.
54501         * lib/fcntl.in.h: Likewise.
54502         * lib/float.in.h: Likewise.
54503         * lib/iconv.in.h: Likewise.
54504         * lib/inttypes.in.h: Likewise.
54505         * lib/locale.in.h: Likewise.
54506         * lib/math.in.h: Likewise.
54507         * lib/netinet_in.in.h: Likewise.
54508         * lib/search.in.h: Likewise.
54509         * lib/signal.in.h: Likewise.
54510         * lib/stdarg.in.h: Likewise.
54511         * lib/stdint.in.h: Likewise.
54512         * lib/stdio.in.h: Likewise.
54513         * lib/stdlib.in.h: Likewise.
54514         * lib/string.in.h: Likewise.
54515         * lib/strings.in.h: Likewise.
54516         * lib/sys_select.in.h: Likewise.
54517         * lib/sys_socket.in.h: Likewise.
54518         * lib/sys_stat.in.h: Likewise.
54519         * lib/sys_time.in.h: Likewise.
54520         * lib/sysexits.in.h: Likewise.
54521         * lib/time.in.h: Likewise.
54522         * lib/unistd.in.h: Likewise.
54523         * lib/wchar.in.h: Likewise.
54524         * lib/wctype.in.h: Likewise.
54525         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54526         * modules/fchdir (Makefile.am): Likewise.
54527         * modules/fcntl (Makefile.am): Likewise.
54528         * modules/float (Makefile.am): Likewise.
54529         * modules/iconv_open (Makefile.am): Likewise.
54530         * modules/inttypes (Makefile.am): Likewise.
54531         * modules/locale (Makefile.am): Likewise.
54532         * modules/math (Makefile.am): Likewise.
54533         * modules/netinet_in (Makefile.am): Likewise.
54534         * modules/search (Makefile.am): Likewise.
54535         * modules/signal (Makefile.am): Likewise.
54536         * modules/stdarg (Makefile.am): Likewise.
54537         * modules/stdint (Makefile.am): Likewise.
54538         * modules/stdio (Makefile.am): Likewise.
54539         * modules/stdlib (Makefile.am): Likewise.
54540         * modules/string (Makefile.am): Likewise.
54541         * modules/strings (Makefile.am): Likewise.
54542         * modules/sys_select (Makefile.am): Likewise.
54543         * modules/sys_socket (Makefile.am): Likewise.
54544         * modules/sys_stat (Makefile.am): Likewise.
54545         * modules/sys_time (Makefile.am): Likewise.
54546         * modules/sysexits (Makefile.am): Likewise.
54547         * modules/time (Makefile.am): Likewise.
54548         * modules/unistd (Makefile.am): Likewise.
54549         * modules/wchar (Makefile.am): Likewise.
54550         * modules/wctype (Makefile.am): Likewise.
54551         Reported by Reuben Thomas <rrt@sc3d.org>.
54552
54553 2008-08-29  Bruno Haible  <bruno@clisp.org>
54554
54555         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54556         any more.
54557
54558 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54559
54560         * MODULES.html.sh (Misc): Add bitrotate.
54561
54562         * modules/bitrotate: New file.
54563
54564         * lib/bitrotate.h: New file.
54565
54566         * modules/bitrotate-tests: New file.
54567
54568         * tests/test-bitrotate.c: New file.
54569
54570         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54571         on the bitrotate module.
54572
54573         * lib/arctwo.c: Use new bitrotate module.
54574
54575 2008-08-29  Jim Meyering  <meyering@redhat.com>
54576
54577         bootstrap: merge changes from coreutils
54578         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54579         of copied files.  Remove a kludge, now that this is fixed.
54580         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54581         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54582         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54583
54584 2008-08-29  Bruno Haible  <bruno@clisp.org>
54585
54586         * MODULES.html.sh: Remove --cvs-urls option.
54587
54588 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54589
54590         maint.mk: adjust to file name change
54591         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54592
54593 2008-08-28  Jim Meyering  <meyering@redhat.com>
54594
54595         * modules/getndelim2 (License): Relicense to LGPLv2+.
54596         Approved by Richard Stallman for the version of 1995, and by
54597         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54598
54599 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54600
54601         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54602         dummy if one is not available.  Do not touch them if
54603         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54604         (getc_maybe_unlocked): New.
54605         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54606
54607 2008-08-26  Eric Blake  <ebb9@byu.net>
54608
54609         doc/INSTALL: resync from autoconf
54610         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54611         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54612         moving...
54613         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54614         * INSTALL: Regenerate.
54615         * INSTALL.ISO: New file.
54616         * INSTALL.UTF-8: Likewise.
54617
54618 2008-08-26  Jim Meyering  <meyering@redhat.com>
54619
54620         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54621         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54622         these definitions conditional, so that they may be overridden, too.
54623
54624 2008-08-26  Bruno Haible  <bruno@clisp.org>
54625
54626         Generate INSTALL file variants with prettier quotes.
54627         * doc/Makefile (INSTALL_PRELUDE): New macro.
54628         (INSTALL): Use it.
54629         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54630
54631 2008-08-26  Bruno Haible  <bruno@clisp.org>
54632
54633         Run makeinfo in an English locale.
54634         * doc/Makefile (MAKEINFO): New variable.
54635
54636 2008-08-26  Bruno Haible  <bruno@clisp.org>
54637
54638         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54639         Suggested by Eric Blake.
54640
54641 2008-08-25  Bruno Haible  <bruno@clisp.org>
54642
54643         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54644
54645 2008-08-25  Eric Blake  <ebb9@byu.net>
54646
54647         c-stack: test that stack overflow can be caught
54648         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54649         that platform allows handling stack overflow; at least OS/2 EMX
54650         has sigaltstack, but crashes before transferring control to
54651         handler on stack overflow.
54652         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54653         check for HAVE_STACK_OVERFLOW_HANDLING.
54654         Reported by Elbert Pol.
54655
54656 2008-08-25  Bruno Haible  <bruno@clisp.org>
54657
54658         * doc/posix-functions/strftime.texi: Fix description of strftime
54659         module.
54660
54661 2008-08-24  Bruno Haible  <bruno@clisp.org>
54662
54663         * tests/uniwidth/test-uc_width2.c: New file.
54664         * tests/uniwidth/test-uc_width2.sh: New file.
54665         * modules/uniwidth/width-tests (Files): Add the new files.
54666         (TESTS): Add uniwidth/test-uc_width2.sh.
54667         (TESTS_ENVIRONMENT): New variable.
54668         (check_PROGRAMS): Add test-uc_width2.
54669         (test_uc_width2_SOURCES): New variable.
54670
54671         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54672         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54673         not 0x00AB.
54674         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54675
54676 2008-08-22  Eric Blake  <ebb9@byu.net>
54677
54678         test-lock, test-tls: mention why a test is skipped
54679         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54680         skipped.
54681         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54682
54683         count-one-bits: relax license
54684         * modules/count-one-bits (License): Relicense to LGPLv2+.
54685         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54686
54687 2008-08-22  Andreas Schwab  <schwab@suse.de>
54688
54689         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54690         Remove spurious space in assignment.
54691
54692 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54693
54694         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54695         Paul Eggert <eggert@CS.UCLA.EDU>.
54696
54697 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54698
54699         * modules/gettext: Add m4/threadlib.m4.
54700
54701 2008-08-19  Eric Blake  <ebb9@byu.net>
54702
54703         test-c-stack: fix compilation failure on FreeBSD 5.0
54704         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54705         headers before <sys/resource.h>.
54706         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54707         the bug.
54708         Reported by Nelson H. F. Beebe.
54709
54710         strverscmp: migrate from "strverscmp.h" to <string.h>
54711         * modules/string (Makefile.am): Add new hooks.
54712         * modules/strverscmp (Files): Remove strverscmp.h.
54713         (Depends-on): Add string.
54714         (configure.ac): Add indicator.
54715         (Include): Mention new header.
54716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54717         defaults.
54718         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54719         results.
54720         * lib/strverscmp.h: Delete.
54721         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54722         * tests/test-strverscmp.c (includes): Adjust client.
54723         * lib/check-version.c (includes): Likewise.
54724         * NEWS: Document the change.
54725
54726         strverscmp: add unit test
54727         * modules/strverscmp-tests: New file.
54728         * tests/test-strverscmp.c: Likewise.
54729
54730 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54731
54732         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54733         regarding Windows crypto stuff, from Mono.
54734
54735 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54736
54737         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54738         if present, for intel RND.  Return error on failures.
54739
54740 2008-08-18  Ben Pfaff  <blp@gnu.org>
54741
54742         gitlog-to-changelog: give better diagnostic for failed pipe-open
54743         * build-aux/gitlog-to-changelog: Improve error message: suggest
54744         that the version of Git may be too old.
54745
54746 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54747
54748         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54749         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54750
54751 2008-08-18  Bruno Haible  <bruno@clisp.org>
54752
54753         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54754         pthread_in_use().
54755
54756 2008-08-18  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/glthread/threadlib.c: Include <pthread.h>.
54759
54760 2008-08-18  Bruno Haible  <bruno@clisp.org>
54761
54762         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54763         glthread_recursive_lock_* macros.
54764         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54765         Fix syntax error.
54766
54767 2008-08-18  Bruno Haible  <bruno@clisp.org>
54768
54769         * lib/glthread/thread.c: Avoid forcing a context switch right after
54770         thread creation.
54771
54772 2008-08-17  Bruno Haible  <bruno@clisp.org>
54773
54774         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54775         * lib/glthread/thread.h: Provide Win32 specific implementation.
54776         * modules/thread (Files): Add lib/glthread/thread.c.
54777         (Depends-on): Add lock.
54778         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54779
54780 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54781
54782         New module 'yield'.
54783         * modules/yield: New file.
54784         * lib/glthread/yield.h: New file.
54785         * m4/yield.m4: New file.
54786         * MODULES.html.sh (Multithreading): Add yield.
54787
54788 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54789
54790         New module 'thread'.
54791         * modules/thread: New file.
54792         * lib/glthread/thread.h: New file.
54793         * m4/thread.m4: New file.
54794         * MODULES.html.sh (Multithreading): Add thread.
54795
54796 2008-08-17  Bruno Haible  <bruno@clisp.org>
54797
54798         * lib/glthread/lock.h: Include <stdlib.h> always.
54799         * lib/glthread/tls.h: Likewise.
54800         * lib/glthread/cond.h: Likewise.
54801
54802 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54803
54804         New module 'cond'.
54805         * modules/cond: New file.
54806         * lib/glthread/cond.h: New file.
54807         * lib/glthread/cond.c: New file.
54808         * m4/cond.m4: New file.
54809         * MODULES.html.sh (Multithreading): Add cond.
54810
54811 2008-08-16  Eric Blake  <ebb9@byu.net>
54812
54813         c-stack: fix regression on Irix 5.3 from 2008-06-21
54814         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54815         sa_sigaction...
54816         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54817         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54818         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54819         * modules/signal (Makefile.am): Use the value.
54820         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54821         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54822         * doc/posix-headers/signal.texi (signal.h): Document this
54823         portability issue.
54824         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54825         Reported by Tom G. Christensen.
54826
54827 2008-08-17  Bruno Haible  <bruno@clisp.org>
54828
54829         New module 'threadlib'.
54830         * modules/threadlib: New file.
54831         * lib/glthread/threadlib.c: New file, extracted from
54832         lib/glthread/lock.c.
54833         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54834         functions.
54835         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54836         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54837         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54838         macros.
54839         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54840         (gl_DISABLE_THREADS): Remove macro.
54841         * modules/lock (Files): Remove build-aux/config.rpath.
54842         (Depends-on): Remove havelib. Add threadlib.
54843         (configure.ac-early): Remove section.
54844         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54845         * modules/tls (Depends-on): Remove lock. Add threadlib.
54846         (Link): New section, copied from threadlib.
54847         * MODULES.html.sh (Multithreading): Add threadlib.
54848
54849 2008-08-14  Bruno Haible  <bruno@clisp.org>
54850
54851         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54852         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54853         glthread_rwlock_unlock, glthread_rwlock_destroy,
54854         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54855         glthread_recursive_lock_destroy): Define as macros always.
54856         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54857         glthread_lock_lock.
54858         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54859         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54860         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54861         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54862         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54863         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54864         (glthread_recursive_lock_lock_func): Renamed from
54865         glthread_recursive_lock_lock.
54866         (glthread_recursive_lock_unlock_func): Renamed from
54867         glthread_recursive_lock_unlock.
54868         (glthread_recursive_lock_destroy_func): Renamed from
54869         glthread_recursive_lock_destroy.
54870
54871 2008-08-14  Bruno Haible  <bruno@clisp.org>
54872
54873         * lib/glthread/lock.h: Renamed from lib/lock.h.
54874         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54875         * lib/glthread/tls.h: Renamed from lib/tls.h.
54876         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54877         * lib/fstrcmp.c: Update includes.
54878         * lib/strsignal.c: Update includes.
54879         * modules/lock (Files, Makefile.am): Update.
54880         (Include): Change to "glthread/lock.h".
54881         * modules/tls (Files, Makefile.am): Update.
54882         (Include): Change to "glthread/tls.h".
54883         * tests/test-lock.c: Update includes.
54884         * tests/test-tls.c: Update includes.
54885         * NEWS: Mention the renamed header files.
54886
54887 2008-08-11  Jim Meyering  <meyering@redhat.com>
54888
54889         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54890
54891 2008-08-11  Eric Blake  <ebb9@byu.net>
54892
54893         test-c-stack: avoid C99-ism
54894         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54895         before statement.
54896         Reported by Alain Guibert.
54897
54898 2008-08-10  Jim Meyering  <meyering@redhat.com>
54899
54900         ensure that return value of uinttostr et al are not ignored
54901         * lib/inttostr.h (__GNUC_PREREQ): Define.
54902         (__attribute_warn_unused_result__): Define.
54903         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54904
54905 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54906
54907         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54908         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54909
54910 2008-08-07  Jim Meyering  <meyering@redhat.com>
54911
54912         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54913
54914         * modules/mkstemp (License): Relicense under LGPLv2+.
54915         * modules/tempname (License): Likewise.
54916
54917 2008-08-06  Bruno Haible  <bruno@clisp.org>
54918
54919         * lib/poll.c (poll): Further micro-optimization.
54920
54921 2008-08-06  Jim Meyering  <meyering@redhat.com>
54922
54923         inet_pton.c: use locale-independent tolower
54924         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54925         (inet_pton6): Use c_tolower rather than tolower.
54926         * modules/inet_pton (Depends-on): Add c-ctype.
54927
54928 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54929
54930         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54931         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54932
54933 2008-08-06  Jim Meyering  <meyering@redhat.com>
54934
54935         * modules/inet_pton (License): Relicense under LGPLv2+.
54936
54937 2008-08-03  Bruno Haible  <bruno@clisp.org>
54938
54939         Additional non-aborting API for lock and tls.
54940         * lib/lock.h: Include <errno.h>.
54941         (glthread_lock_init): New macro/function.
54942         (gl_lock_init): Define as wrapper around glthread_lock_init.
54943         (glthread_lock_lock): New macro/function.
54944         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54945         (glthread_lock_unlock): New macro/function.
54946         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54947         (glthread_lock_destroy): New macro/function.
54948         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54949         (glthread_rwlock_init): New macro/function.
54950         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54951         (glthread_rwlock_rdlock): New macro/function.
54952         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54953         (glthread_rwlock_wrlock): New macro/function.
54954         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54955         (glthread_rwlock_unlock): New macro/function.
54956         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54957         (glthread_rwlock_destroy): New macro/function.
54958         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54959         (glthread_recursive_lock_init): New macro/function.
54960         (gl_recursive_lock_init): Define as wrapper around
54961         glthread_recursive_lock_init.
54962         (glthread_recursive_lock_lock): New macro/function.
54963         (gl_recursive_lock_lock): Define as wrapper around
54964         glthread_recursive_lock_lock.
54965         (glthread_recursive_lock_unlock): New macro/function.
54966         (gl_recursive_lock_unlock): Define as wrapper around
54967         glthread_recursive_lock_unlock.
54968         (glthread_recursive_lock_destroy): New macro/function.
54969         (gl_recursive_lock_destroy): Define as wrapper around
54970         glthread_recursive_lock_destroy.
54971         (glthread_once): New macro/function.
54972         (gl_once): Define as wrapper around glthread_once.
54973         Update function declarations.
54974         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54975         glthread_rwlock_init. Return error code.
54976         (glthread_rwlock_rdlock_multithreaded): Renamed from
54977         glthread_rwlock_rdlock. Return error code.
54978         (glthread_rwlock_wrlock_multithreaded): Renamed from
54979         glthread_rwlock_wrlock. Return error code.
54980         (glthread_rwlock_unlock_multithreaded): Renamed from
54981         glthread_rwlock_unlock. Return error code.
54982         (glthread_rwlock_destroy_multithreaded): Renamed from
54983         glthread_rwlock_destroy. Return error code.
54984         (glthread_recursive_lock_init_multithreaded): Renamed from
54985         glthread_recursive_lock_init. Return error code.
54986         (glthread_recursive_lock_lock_multithreaded): Renamed from
54987         glthread_recursive_lock_lock. Return error code.
54988         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54989         glthread_recursive_lock_unlock. Return error code.
54990         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54991         glthread_recursive_lock_destroy. Return error code.
54992         (glthread_once_call): Make static.
54993         (glthread_once_multithreaded): Renamed from glthread_once.
54994         * lib/tls.h: Include <errno.h>.
54995         (glthread_tls_key_init): New macro/function.
54996         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54997         (glthread_tls_set): New macro/function.
54998         (gl_tls_set): Define as wrapper around glthread_tls_set.
54999         (glthread_tls_key_destroy): New macro/function.
55000         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
55001         Update function declarations.
55002         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
55003         glthread_tls_get.
55004         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55005
55006 2008-08-04  Eric Blake  <ebb9@byu.net>
55007
55008         gnumakefile: use space, not TAB, outside of targets
55009         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
55010
55011 2008-08-02  Jim Meyering  <meyering@redhat.com>
55012
55013         getdate.y: avoid locale-dependent date parsing failure
55014         In Turkish locales, getdate would fail to recognize keywords
55015         containing a lowercase "i".  The solution is not to rely on
55016         locale-sensitive case-conversion.
55017         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
55018         (lookup_word): Use c_toupper in place of toupper.
55019         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
55020         Reported by Vefa Bicakci <bicave@superonline.com> in
55021         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
55022         * modules/getdate (Depends-on): Add c-ctype.
55023
55024 2008-08-02  Bruno Haible  <bruno@clisp.org>
55025
55026         * gnulib-tool (func_import): When updating or creating a .gitignore
55027         file, prepend each added line with a slash, and ignore leading slashes
55028         from the existing lines.
55029         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55030
55031 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55032
55033         Portability fix for GNU make 3.79.1.
55034         * top/GNUmakefile: Avoid 'else COND', which older GNU make
55035         versions do not understand.
55036
55037 2008-08-01  Bruno Haible  <bruno@clisp.org>
55038
55039         Work around bug of HP-UX 10.20 cc with -0.0 literal.
55040         * tests/test-isnanf.h (zero): New variable.
55041         (main): Avoid literal -0.0f.
55042         * tests/test-isnand.h (zero): New variable.
55043         (main): Avoid literal -0.0.
55044         * tests/test-isnanl.h (zero): New variable.
55045         (main): Avoid literal -0.0L.
55046         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
55047         (test_float, test_double, test_long_double): Avoid literals -0.0f,
55048         -0.0, -0.0L.
55049         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
55050         (test_signbitd): Avoid literal -0.0.
55051         (test_signbitl): Avoid literal -0.0L.
55052         * tests/test-ceilf1.c (zero): New variable.
55053         (main): Avoid literal -0.0f.
55054         * tests/test-ceill.c (zero): New variable.
55055         (main): Avoid literal -0.0L.
55056         * tests/test-floorf1.c (zero): New variable.
55057         (main): Avoid literal -0.0f.
55058         * tests/test-floorl.c (zero): New variable.
55059         (main): Avoid literal -0.0L.
55060         * tests/test-roundf1.c (zero): New variable.
55061         (main): Avoid literal -0.0f.
55062         * tests/test-round1.c (zero): New variable.
55063         (main): Avoid literal -0.0.
55064         * tests/test-roundl.c (zero): New variable.
55065         (main): Avoid literal -0.0L.
55066         * tests/test-truncf1.c (zero): New variable.
55067         (main): Avoid literal -0.0f.
55068         * tests/test-trunc1.c (zero): New variable.
55069         (main): Avoid literal -0.0.
55070         * tests/test-truncl.c (zero): New variable.
55071         (main): Avoid literal -0.0L.
55072         * tests/test-frexp.c (zero): New variable.
55073         (main): Avoid literal -0.0.
55074         * tests/test-frexpl.c (zero): New variable.
55075         (main): Avoid literal -0.0L.
55076         * tests/test-ldexpl.c (zero): New variable.
55077         (main): Avoid literal -0.0L.
55078         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55079         (zerod, zerol): New variables.
55080         (test_function): Avoid literals -0.0, -0.0L.
55081         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55082         (zerod, zerol): New variables.
55083         (test_function): Avoid literals -0.0, -0.0L.
55084         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55085         (zerod, zerol): New variables.
55086         (test_function): Avoid literals -0.0, -0.0L.
55087         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55088         (zerod, zerol): New variables.
55089         (test_function): Avoid literals -0.0, -0.0L.
55090         * tests/test-strtod.c (zero): New variable.
55091         (main): Avoid literal -0.0.
55092         Reported by Jonathan C. Patschke <jp@centtech.com>.
55093
55094 2008-07-31  Jim Meyering  <meyering@redhat.com>
55095
55096         sha256.h: correct definition of SHA224_DIGEST_SIZE
55097         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
55098         Reported by Paulie Pena IV <paulie4@gmail.com>.
55099         Define as 224 / 8, rather than as a literal.
55100         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
55101         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
55102         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
55103
55104 2008-07-31  Bruno Haible  <bruno@clisp.org>
55105
55106         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
55107         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
55108         Reported by Jonathan Patschke <jp@centtech.com>.
55109
55110 2008-07-31  Bruno Haible  <bruno@clisp.org>
55111
55112         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
55113         Reported by Paolo Bonzini <bonzini@gnu.org>.
55114
55115 2008-07-30  Eric Blake  <ebb9@byu.net>
55116
55117         test-strtod: allow compilation without -lm
55118         * tests/test-strtod.c (main): Avoid link dependence on fabs.
55119         Reported by Dennis Clarke <blastwave@gmail.com>.
55120
55121 2008-07-28  Jim Meyering  <meyering@redhat.com>
55122
55123         bootstrap: work also when there are no .po files in po/
55124         * build-aux/bootstrap (update_po_files): Complete the change
55125         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
55126
55127 2008-07-27  Jim Meyering  <meyering@redhat.com>
55128
55129         * users.txt: Add zile.
55130
55131 2008-07-26  Ben Pfaff  <blp@gnu.org>
55132
55133         Add missing dependencies on new m4/exponent[fdl].m4 files.
55134         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55135         * modules/isnand-nolibm: Add m4/exponentd.m4.
55136         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55137         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55138         m4/isnan[fdl].m4, because the macros actually used moved.
55139         Reported by Jim Meyering.
55140
55141 2008-07-14  Ben Pfaff  <blp@gnu.org>
55142
55143         Add isinf module.
55144         * lib/isinf.c: New file.
55145         * lib/math.in.h: Define isinf macro if we have decided to replace
55146         it.
55147         * m4/isinf.m4: New file.
55148         * m4/math_h.m4: Initialize and substitute variables for isinf
55149         module.
55150         * modules/isinf: New file.
55151         * modules/isinf-tests: New file.
55152         * modules/math: Add substitutions for new module.
55153         * tests/test-isinf.c: New file.
55154         * doc/posix-functions/isinf.texi: Mention new module.
55155         * MODULES.html.sh: Mention new module.
55156
55157 2008-07-14  Ben Pfaff  <blp@gnu.org>
55158
55159         Factor out some macros for use by additional modules.
55160         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55161         exponentf.m4.
55162         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55163         exponentd.m4.
55164         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55165         file exponentl.m4.
55166         * m4/exponentf.m4: New file.
55167         * m4/exponentd.m4: New file.
55168         * m4/exponentl.m4: New file.
55169         * modules/isnanf: Use new file m4/exponentf.m4.
55170         * modules/isnand: Use new file m4/exponentd.m4.
55171         * modules/isnanl: Use new file m4/exponentl.m4.
55172
55173 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55174
55175         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55176         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55177         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55178         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55179
55180         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55181         readlink on platforms without PATH_MAX.
55182
55183 2008-07-21  Eric Blake  <ebb9@byu.net>
55184
55185         Warn, not fail, on stale version.
55186         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55187
55188         Don't allow installation with stale devel version number.
55189         * top/GNUmakefile (_is-install-target): New macro.
55190         (_curr-ver): Forbid installation with stale version number.
55191
55192 2008-07-20  Bruno Haible  <bruno@clisp.org>
55193
55194         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55195         TESTS_ENVIRONMENT.
55196         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55197
55198 2008-07-20  Bruno Haible  <bruno@clisp.org>
55199
55200         * lib/c-stack.h (c_stack_action): Add documentation.
55201         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55202
55203 2008-07-20  Bruno Haible  <bruno@clisp.org>
55204
55205         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55206         * modules/readlink (License): Likewise.
55207
55208 2008-07-17  Eric Blake  <ebb9@byu.net>
55209
55210         * modules/c-stack (Link): Fix typo.
55211
55212         Make c-stack use libsigsegv, when available.
55213         * modules/c-stack (Depends-on): Add libsigsegv.
55214         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55215         needed.
55216         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55217         (segv_handler, overflow_handler, c_stack_action)
55218         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55219         implementation when libsigsegv is available, but only when using
55220         the library is necessary.
55221         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55222         comment, explaining why XSI check fails on Linux.
55223         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55224         * tests/test-c-stack2.sh: Tweak skip message.
55225         * NEWS: Document new link-time requirements.
55226
55227 2008-07-16  Eric Blake  <ebb9@byu.net>
55228
55229         c-stack: Expose false positives when not using libsigsegv.
55230         * modules/c-stack-tests (Files): Expand test.
55231         * tests/test-c-stack.c (main): Add means to conditionally trigger
55232         non-overflow SIGSEGV.
55233         * tests/test-c-stack2.sh: New file.
55234
55235 2008-07-14  Bruno Haible  <bruno@clisp.org>
55236
55237         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55238         Reported by Eric Blake.
55239
55240 2008-07-14  Sam Steingold  <sds@gnu.org>
55241             Bruno Haible  <bruno@clisp.org>
55242
55243         New module libsigsegv.
55244         * modules/libsigsegv: New file.
55245         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55246         modifications.
55247         * MODULES.html.sh (Signal handling): New section.
55248
55249 2008-07-14  Bruno Haible  <bruno@clisp.org>
55250
55251         * modules/unictype/ctype-* (Description): Add the word "function".
55252         Improves the resulting doc in MODULES.html.
55253
55254 2008-07-12  Ben Pfaff  <blp@gnu.org>
55255
55256         Add longlong module.
55257         * modules/longlong: New file.
55258
55259 2008-07-12  Bruno Haible  <bruno@clisp.org>
55260
55261         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55262         to empty.
55263
55264 2008-07-10  Ben Pfaff  <blp@gnu.org>
55265
55266         Add isnan module.
55267         * doc/posix-functions/isnan.texi: Mention new module.
55268         * lib/math.in.h: Define isnan macro if we have decided to replace
55269         it.
55270         * m4/isnan.m4: New file.
55271         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55272         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55273         also.
55274         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55275         redundancy.
55276         * m4/math_h.m4: Initialize and substitute variables for isnan
55277         module.
55278         * modules/isnan: New file.
55279         * modules/isnan-tests: New file.
55280         * modules/math: Add substitutions for new module.
55281         * tests/test-isnan.c: New file.
55282         * MODULES.html.sh: Mention new module.
55283
55284 2008-07-10  Ben Pfaff  <blp@gnu.org>
55285
55286         Add isnanf module.
55287         * lib/isnanf.m4: New file.
55288         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55289         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55290         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55291         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55292         * modules/isnanf: New file.
55293         * modules/isnanf-tests: New file.
55294         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55295         files.
55296         * tests/test-isnanf-nolibm.c: factored most of its contents into
55297         new file tests/test-isnanf.h.
55298         * tests/test-isnanf.h: New file.
55299         * tests/test-isnanf.c: New file.
55300         * MODULES.html.sh: Mention new module.
55301         * doc/glibc-functions/isnanf.texi: Mention new module.
55302
55303 2008-07-10  Ben Pfaff  <blp@gnu.org>
55304
55305         Add isnand module.
55306         * lib/isnand.h: New file.
55307         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55308         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55309         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55310         functionality also.
55311         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55312         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55313         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55314         * modules/isnand: New file.
55315         * modules/isnand-tests: New file.
55316         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55317         files.
55318         * tests/test-isnand-nolibm.c: factored most of its contents into
55319         new file tests/test-isnand.h.
55320         * tests/test-isnand.h: New file.
55321         * tests/test-isnand.c: New file.
55322         * MODULES.html.sh: Mention new module.
55323
55324 2008-07-10  Ben Pfaff  <blp@gnu.org>
55325
55326         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55327         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55328         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55329         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55330         * modules/isnanf-nolibm: Update references to renamed files.
55331         * modules/isnand-nolibm: Likewise.
55332         * modules/isnanf-nolibm-tests: Likewise.
55333         * modules/isnand-nolibm-tests: Likewise.
55334         * lib/frexp.c: Likewise.
55335         * lib/isfinite.c: Likewise.
55336         * lib/signbitd.c: Likewise.
55337         * lib/signbitf.c: Likewise.
55338         * lib/vasnprintf.c: Likewise.
55339         * tests/test-ceilf1.c: Likewise.
55340         * tests/test-ceilf2.c: Likewise.
55341         * tests/test-floorf1.c: Likewise.
55342         * tests/test-floorf2.c: Likewise.
55343         * tests/test-frexp.c: Likewise.
55344         * tests/test-round1.c: Likewise.
55345         * tests/test-round2.c: Likewise.
55346         * tests/test-roundf1.c: Likewise.
55347         * tests/test-strtod.c: Likewise.
55348         * tests/test-trunc1.c: Likewise.
55349         * tests/test-trunc2.c: Likewise.
55350         * tests/test-truncf1.c: Likewise.
55351         * tests/test-truncf2.c: Likewise.
55352         * NEWS: Mention the renamed header files.
55353
55354 2008-07-11  Jim Meyering  <meyering@redhat.com>
55355
55356         vc-list-files: make the last-resort awk code more portable
55357         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55358         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55359         does not support it.
55360
55361 2008-07-10  Eric Blake  <ebb9@byu.net>
55362
55363         Work with tar's bootstrap.
55364         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55365         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55366         an m4 comment.
55367
55368 2008-07-09  Jim Meyering  <meyering@redhat.com>
55369
55370         posix-shell.m4: fix typo that made this test malfunction
55371         * m4/posix-shell.m4: Remove capitalization in variable name.
55372
55373 2008-07-08  Bruno Haible  <bruno@clisp.org>
55374
55375         * m4/onceonly.m4: Update comments.
55376         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55377
55378 2008-07-04  Jim Meyering  <meyering@redhat.com>
55379
55380         * users.txt: Add vc-dwim.
55381         (bison, coreutils): Use the gitweb URL.
55382
55383 2008-07-03  Jim Meyering  <meyering@redhat.com>
55384
55385         * users.txt: Add libffcall.  From Sam Steingold.
55386
55387 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
55388
55389         getdate.y: do not ignore TZ with relative day, month or year offset
55390         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55391         relative-date-handling, since otherwise, the latter would clobber the
55392         sole output (an updated Start value) of the tz-handling block.
55393         * tests/test-getdate.c: Tests for the fix
55394
55395 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55396
55397         Recognize 'foo_LIBRARIES += libgnu.a'.
55398         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55399         makefile snippet has already specified an installation location,
55400         also using '+='.
55401
55402 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
55403
55404         getdate.y: factor out common actions
55405         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55406         Use them in place of open-coded actions.
55407
55408 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55409
55410         Add self-test for getdate module.
55411         * modules/getdate-tests: New file.
55412         * tests/test-getdate.c: New file.
55413
55414 2008-06-29  Bruno Haible  <bruno@clisp.org>
55415
55416         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55417         .gitignore.
55418         Reported by Sylvain Beucler <beuc@beuc.net>.
55419
55420 2008-06-29  Bruno Haible  <bruno@clisp.org>
55421
55422         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55423         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55424
55425 2008-06-29  Bruno Haible  <bruno@clisp.org>
55426
55427         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55428         EXTRA_DIST.
55429         Reported by Sylvain Beucler <beuc@beuc.net>.
55430
55431 2008-06-26  Jim Meyering  <meyering@redhat.com>
55432
55433         make several modules depend on the "open" module
55434         This provides slightly increased consistency when opening-for-write
55435         the name of a non-directory spelled with a trailing slash.
55436         * modules/chdir-safer: Likewise.
55437         * modules/chown: Likewise.
55438         * modules/clean-temp: Likewise.
55439         * modules/copy-file: Likewise.
55440         * modules/fchdir: Likewise.
55441         * modules/fcntl-safer: Likewise.
55442         * modules/pipe: Likewise.
55443         * modules/utime: Likewise.
55444         Prompted by Eric Blake and Bruno Haible.
55445
55446 2008-06-24  Andreas Schwab  <schwab@suse.de>
55447
55448         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55449         literals can be used as initializers for global variables.
55450
55451 2008-06-23  Eric Blake  <ebb9@byu.net>
55452
55453         Make gnulib-cache.m4 easier to diff.
55454         * gnulib-tool (func_import): Allow newlines when reading cached
55455         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55456
55457 2008-06-23  Bruno Haible  <bruno@clisp.org>
55458
55459         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55460         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55461         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55462         m4/signalblocking.m4.
55463         (gl_PREREQ_SIGACTION): Don't invoke it.
55464         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55465         gl_PREREQ_SIG_HANDLER_H.
55466         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55467         Don't check for sigaction here.
55468
55469 2008-06-23  Bruno Haible  <bruno@clisp.org>
55470
55471         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55472         (install_handlers): Don't set the SA_RESETHAND flag.
55473
55474 2008-06-23  Bruno Haible  <bruno@clisp.org>
55475
55476         * m4/sigaction.m4: Comment fixes.
55477         * lib/signal.in.h: Likewise.
55478
55479 2008-06-23  Eric Blake  <ebb9@byu.net>
55480
55481         Fix typo.
55482         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55483
55484         Avoid SA_ namespace.
55485         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55486         Reported by Ralf Wildenhues.
55487
55488         Avoid test failure due to SA_RESTORER.
55489         * tests/test-sigaction.c (SA_MASK): New macro.
55490         (main): Avoid failing due to extension flags being set.
55491         Reported by Jim Meyering.
55492
55493         Revert use of sig-handler.h in sigprocmask.c.
55494         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55495         it requires the existence of struct sigaction.
55496         * lib/sigprocmask.c (handler_t): Restore typedef.
55497         (rpl_signal, old_handlers): Use local type.
55498
55499 2008-06-22  Bruno Haible  <bruno@clisp.org>
55500
55501         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55502         conditionally.
55503         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55504
55505 2008-06-22  Bruno Haible  <bruno@clisp.org>
55506
55507         * doc/posix-functions/siginterrupt.texi: Move note.
55508
55509         * lib/signal.in.h (SA_RESTART): New macro.
55510         * lib/sigaction.c: Update comment.
55511
55512         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55513
55514         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55515         (gl_PREREQ_SIGPROCMASK): Invoke it.
55516         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55517
55518         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55519
55520         * lib/sigprocmask.c: Update a comment.
55521
55522 2008-06-21  Eric Blake  <ebb9@byu.net>
55523
55524         Use sigaction module rather than signal().
55525         * modules/c-stack (Depends-on): Add sigaction.
55526         * modules/fatal-signal (Depends-on): Likewise.
55527         * modules/nanosleep (Depends-on): Likewise.
55528         * modules/sigprocmask (Files): Add sig-handler.h.
55529         * modules/sigaction (Files): Likewise.
55530         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55531         Eggert.
55532         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55533         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55534         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55535         (init_fatal_signals): Likewise.
55536         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55537         (siginterrupt): Delete fallback.
55538         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55539         instead.
55540         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55541         siginterrupt.
55542
55543         New module sigaction, for mingw.
55544         * modules/sigaction: New module...
55545         * modules/sigaction-tests: ...and its test.
55546         * m4/sigaction.m4: New file.
55547         * lib/sigaction.c: Likewise.
55548         * tests/test-sigaction.c: Likewise.
55549         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55550         * modules/signal (Makefile.am): Likewise.
55551         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55552         needed.
55553         * doc/posix-headers/signal.texi (signal.h): Mention provided
55554         types.
55555         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55556         that sigaction is preferable.
55557         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55558         module.
55559         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55560         sigaction.
55561
55562         Improve robustness of sigprocmask by overriding signal.
55563         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55564         is in use.
55565         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55566         (SIGKILL, SIGSTOP): Provide fallbacks.
55567         (rpl_signal): Implement.
55568         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55569         signal can be called inside handlers.
55570
55571         Fix nanosleep module on mingw.
55572         * modules/nanosleep (Depends-on): Add sys_select.
55573         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55574
55575         Fix licensing of sigprocmask.
55576         * modules/raise (License): Relicense as LGPL.
55577
55578 2008-06-21  Bruno Haible  <bruno@clisp.org>
55579
55580         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55581         result if it contains question marks.
55582         Reported by Michael Geng <linux@michaelgeng.de>.
55583
55584 2008-06-19  Bruno Haible  <bruno@clisp.org>
55585
55586         Fix CVS-ism.
55587         * doc/gnulib.texi: Include updated-stamp.texi.
55588         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55589         (updated-stamp.texi): New rule.
55590         (gnulib.info): Depend on it.
55591         * doc/.gitignore: Add updated-stamp.texi.
55592         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55593
55594 2008-06-19  Bruno Haible  <bruno@clisp.org>
55595
55596         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55597         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55598
55599 2008-06-19  Eric Blake  <ebb9@byu.net>
55600
55601         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55602         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55603         Reported by Stepan Kasal.
55604
55605 2008-06-18  Bruno Haible  <bruno@clisp.org>
55606
55607         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55608         Reported by Eric Blake.
55609
55610 2008-06-18  Eric Blake  <ebb9@byu.net>
55611
55612         Work around cygwin 1.5.25 strsignal bug.
55613         * tests/test-strsignal.c: Allow for const char *.
55614         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55615
55616 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55617
55618         * users.txt: Update URL to article and add author/date
55619         information.
55620
55621 2008-06-17  Bruno Haible  <bruno@clisp.org>
55622
55623         New macro gl_DISABLE_THREADS.
55624         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55625         if the user did not pass --enable-threads or --disable-threads option.
55626         (gl_DISABLE_THREADS): New macro.
55627         Reported by Eric Blake <ebb9@byu.net>.
55628
55629 2008-06-17  Bruno Haible  <bruno@clisp.org>
55630
55631         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55632         when the macro ignores it.
55633         Based on a patch by Eric Blake <ebb9@byu.net>.
55634
55635 2008-06-17  Bruno Haible  <bruno@clisp.org>
55636
55637         * modules/tls (License): Change to LGPLv2+.
55638         Reported by Eric Blake.
55639
55640 2008-06-17  Eric Blake  <ebb9@byu.net>
55641
55642         Simplify c-stack prerequisites.
55643         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55644         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55645         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55646         check.
55647         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55648         <sys/resource.h>.
55649
55650         Move c-stack test into testsuite.
55651         * modules/c-stack-tests: New file.
55652         * lib/c-stack.c [DEBUG]: Move test program...
55653         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55654         fail test if sigaltstack is lacking.
55655         * tests/test-c-stack.sh: New driver file.
55656
55657 2008-06-16  Eric Blake  <ebb9@byu.net>
55658
55659         Use raise module consistently.
55660         * modules/fatal-signal (Depends-on): Add raise.
55661         * modules/sigprocmask (Depends-on): Likewise.
55662         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55663         * lib/sigprocmask.c (sigprocmask): Likewise.
55664         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55665         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55666
55667         Fix compliance bug in sigpending.
55668         * lib/sigprocmask.c (sigpending): Return pending array via
55669         parameter, not return value.
55670
55671 2008-06-14  Eric Blake  <ebb9@byu.net>
55672
55673         Improve obstack-printf test code.
55674         * tests/test-obstack-printf.c (test_function): Fix comment, and
55675         simplify usage of obstack_* in macros.  Add a test for coverage.
55676         Reported by Bruno Haible.
55677
55678 2008-06-14  Bruno Haible  <bruno@clisp.org>
55679
55680         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55681         array size as a constant, not as a const variable.
55682         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55683         AC_USE_SYSTEM_EXTENSIONS.
55684         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55685         Test whether the obstack_printf function actually exists.
55686         * modules/obstack-printf (Depends-on): Add extensions.
55687         (Include): Remove obstack.h.
55688         * modules/obstack-printf-posix (Depends-on): Add extensions.
55689         (Include): Remove obstack.h.
55690
55691 2008-06-13  Eric Blake  <ebb9@byu.net>
55692
55693         Add obstack-printf and obstack-printf-posix modules.
55694         * modules/obstack-printf: New file.
55695         * modules/obstack-printf-posix: Likewise.
55696         * MODULES.html.sh (Misc): Mention them.
55697         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55698         Likewise.
55699         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55700         Likewise.
55701         * modules/stdio (Makefile.am): Accomodate new modules.
55702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55703         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55704         Declare.
55705         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55706         functions.
55707         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55708         (gl_REPLACE_OBSTACK_PRINTF): New macros
55709         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55710         * tests/test-obstack-printf.c: New file.
55711         * modules/obstack-printf-tests: Likewise.
55712         * modules/obstack-printf-posix-tests: Likewise.
55713
55714 2008-06-11  Bruno Haible  <bruno@clisp.org>
55715
55716         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55717         * lib/open.c: Include errno.h.
55718         (open): Fail when attempting to write to a file that has a trailing
55719         slash.
55720         * tests/test-open.c (main): Test against trailing slash bug.
55721         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55722
55723 2008-06-10  Bruno Haible  <bruno@clisp.org>
55724
55725         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55726         for $? to work inside the trap command, with various /bin/sh-s.
55727         * tests/test-vc-list-files-cvs.sh: Likewise.
55728
55729 2008-06-10  Bruno Haible  <bruno@clisp.org>
55730
55731         * lib/acl-internal.h: Don't include gettext.h here.
55732         * lib/set-mode-acl.c: Include gettext.h here.
55733         * lib/copy-acl.c: Likewise.
55734
55735 2008-06-10  Bruno Haible  <bruno@clisp.org>
55736
55737         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55738         * lib/wait-process.c (wait_subprocess): Likewise.
55739         * lib/execute.h (execute): Add termsigp argument.
55740         * lib/execute.c (execute): Likewise.
55741         * lib/csharpcomp.c (compile_csharp_using_pnet,
55742         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55743         * lib/csharpexec.c (execute_csharp_using_pnet,
55744         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55745         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55746         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55747         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55748         is_jikes_present): Update.
55749         * lib/javaexec.c (execute_java_class): Update.
55750         * lib/javaversion.c (execute_and_read_line): Update.
55751         * NEWS: Document the changes.
55752         Reported by Eric Blake.
55753
55754 2008-06-10  Eric Blake  <ebb9@byu.net>
55755
55756         Add missing include.
55757         * tests/test-strstr.c (includes): Add <signal.h>.
55758         * tests/test-strcasestr.c (includes): Likewise.
55759         * tests/test-memmem.c (includes): Likewise.
55760
55761 2008-06-10  Bruno Haible  <bruno@clisp.org>
55762
55763         * lib/wait-process.c (wait_subprocess): Add an assertion.
55764
55765 2008-06-10  Bruno Haible  <bruno@clisp.org>
55766
55767         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55768
55769 2008-06-10  Bruno Haible  <bruno@clisp.org>
55770
55771         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55772         using alarm().
55773         * tests/test-strcasestr.c (main): Likewise.
55774         * tests/test-strstr.c (main): Likewise.
55775
55776 2008-06-09  Bruno Haible  <bruno@clisp.org>
55777
55778         Work around the Solaris 10 ACE ACLs ABI change.
55779         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55780         declare if ACL_NO_TRIVIAL is present.
55781         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55782         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55783         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55784         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55785         define if ACL_NO_TRIVIAL is present.
55786         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55787         and use the current ABI.
55788         (file_has_acl): Use same #if condition as elsewhere.
55789         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55790         in use, and use the current ABI.
55791         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55792         Reported by Jim Meyering.
55793
55794 2008-06-09  Eric Blake  <ebb9@byu.net>
55795
55796         Work around environments that (stupidly) ignore SIGALRM.
55797         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55798         before using alarm().
55799         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55800         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55801         Reported by Ian Beckwith <ianb@erislabs.net>.
55802
55803         Produce autobuild blurb earlier in log.
55804         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55805
55806 2008-06-09  Jim Meyering  <meyering@redhat.com>
55807         and Ondřej Vašík  <ovasik@redhat.com>
55808
55809         utimens.c: correct kernel bug work-around
55810         Ondřej Vašík found that the invalid return value of 280 indicates
55811         failure, not success, and the kernel bug we're trying to work
55812         around affects not just the utimensat call, but also the fallback
55813         futimens call.
55814         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55815         not success.
55816         [HAVE_FUTIMENS]: Use the same work-around, here.
55817
55818 2008-06-09  Jim Meyering  <meyering@redhat.com>
55819
55820         add more guards around definition of ACE_-related code
55821         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55822         ALLOW and ACE_OWNER are also defined.
55823
55824 2008-06-08  Bruno Haible  <bruno@clisp.org>
55825
55826         * lib/acl-internal.h: Add me as co-author.
55827         * lib/file-has-acl.c: Likewise.
55828         * lib/set-mode-acl.c: Likewise.
55829         * lib/copy-acl.c: Likewise.
55830
55831 2008-06-08  Bruno Haible  <bruno@clisp.org>
55832
55833         Add support for AIX ACLs.
55834         * lib/acl-internal.h (acl_nontrivial): New declaration.
55835         * lib/file-has-acl.c (acl_nontrivial): New function.
55836         (file_has_acl): Add implementation using AIX 4 ACL API.
55837         * lib/set-mode-acl.c (qset_acl): Likewise.
55838         * lib/copy-acl.c (qcopy_acl): Likewise.
55839
55840 2008-06-08  Bruno Haible  <bruno@clisp.org>
55841
55842         Add support for HP-UX ACLs.
55843         * lib/acl-internal.h (acl_nontrivial): New declaration.
55844         * lib/file-has-acl.c (acl_nontrivial): New function.
55845         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55846         * lib/set-mode-acl.c (qset_acl): Likewise.
55847         * lib/copy-acl.c (qcopy_acl): Likewise.
55848
55849 2008-06-08  Bruno Haible  <bruno@clisp.org>
55850
55851         Add support for Cygwin ACLs.
55852         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55853         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55854         the chmod_or_fchmod call.
55855         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55856
55857 2008-06-08  Bruno Haible  <bruno@clisp.org>
55858
55859         Fix bug with setuid modes in Solaris 10+ code.
55860         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55861         succeeded, when the mode contains some special bits.
55862
55863 2008-06-08  Bruno Haible  <bruno@clisp.org>
55864
55865         Add support for Solaris 7..10 ACLs.
55866         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55867         declarations.
55868         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55869         functions.
55870         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55871         * lib/set-mode-acl.c (qset_acl): Likewise.
55872         * lib/copy-acl.c (qcopy_acl): Likewise.
55873
55874 2008-06-08  Bruno Haible  <bruno@clisp.org>
55875
55876         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55877         declaration.
55878         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55879         (acl_access_nontrivial): Remove MacOS X case.
55880         (file_has_acl): Use acl_extended_nontrivial.
55881         * lib/copy-acl.c (qcopy_acl): Likewise.
55882
55883 2008-06-08  Bruno Haible  <bruno@clisp.org>
55884
55885         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55886
55887 2008-06-08  Jim Meyering  <meyering@redhat.com>
55888
55889         * modules/acl (Maintainer): Add Bruno Haible.
55890
55891 2008-06-07  Bruno Haible  <bruno@clisp.org>
55892
55893         Improve support for Tru64 ACLs.
55894         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55895         ACL on OSF/1.
55896
55897 2008-06-07  Bruno Haible  <bruno@clisp.org>
55898
55899         Add support for MacOS X ACLs.
55900         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55901         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55902         * lib/set-mode-acl.c (qset_acl): Likewise.
55903         * lib/copy-acl.c (qcopy_acl): Likewise.
55904
55905 2008-06-07  Bruno Haible  <bruno@clisp.org>
55906
55907         Fix memory leak introduced on 2008-05-22.
55908         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55909         use.
55910
55911 2008-06-07  Bruno Haible  <bruno@clisp.org>
55912
55913         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55914         to construct an empty ACL.
55915
55916 2008-06-07  Bruno Haible  <bruno@clisp.org>
55917
55918         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55919         precisely.
55920         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55921
55922 2008-06-07  Bruno Haible  <bruno@clisp.org>
55923
55924         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55925         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55926
55927 2008-06-07  Bruno Haible  <bruno@clisp.org>
55928
55929         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55930         regardless of POSIX.
55931         * doc/posix-functions/_longjmp.texi: Likewise.
55932         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55933         SystemV platform in this case.
55934
55935 2008-06-06  Eric Blake  <ebb9@byu.net>
55936
55937         Document abort() bugs.
55938         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55939
55940         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55941         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55942         sigsetjmp.
55943         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55944         siglongjmp, but only as a macro.
55945         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55946         is obsolete.
55947         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55948
55949         Tweak documentation to cover cygwin argz bugs.
55950         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55951         argz bug fix; no code change needed since no cygwin releases
55952         occurred between the last fix and the bug being tested.
55953         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55954         module and recently fixed cygwin bugs.
55955         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55956         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55957         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55958         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55959         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55960         Likewise.
55961         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55962         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55963         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55964         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55965         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55966         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55967         Likewise.
55968
55969         Avoid gcc warning on cygwin.
55970         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55971         !ACL_NO_TRIVIAL]: Avoid unused variable.
55972
55973 2008-06-05  Eric Blake  <ebb9@byu.net>
55974
55975         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55976         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55977         git-version-gen fails to come up with a version.
55978         Reported by Simon Josefsson.
55979
55980 2008-06-05  Jim Meyering  <meyering@redhat.com>
55981             Paul Eggert  <eggert@cs.ucla.edu>
55982
55983         utimens.c: work around a probable Linux kernel bug
55984         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55985         appears to be a kernel bug that causes utimensat to return 280
55986         instead of 0, indicating success.
55987
55988 2008-06-04  Bruno Haible  <bruno@clisp.org>
55989
55990         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55991         2008-06-01 commit.
55992
55993 2008-06-04  Bruno Haible  <bruno@clisp.org>
55994
55995         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55996         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55997         (file_has_acl): Use it. Save errno afterwards.
55998         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55999
56000 2008-06-03  Bruno Haible  <bruno@clisp.org>
56001
56002         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
56003         draft code. Simplify #ifs.
56004         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
56005         Put Solaris code after POSIX-draft code. Fix comments regarding
56006         Solaris 10, HP-UX. Mention Cygwin.
56007         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
56008
56009 2008-06-03  Eric Blake  <ebb9@byu.net>
56010
56011         Provide fallback for older kernels.
56012         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
56013         Provide runtime fallback if kernel lacks support.
56014         Reported by Mike Frysinger.
56015
56016 2008-06-02  Bruno Haible  <bruno@clisp.org>
56017
56018         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
56019         it exists.
56020
56021 2008-06-02  Bruno Haible  <bruno@clisp.org>
56022
56023         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
56024         * lib/copy-acl.c (qcopy_acl): Update comment.
56025
56026 2008-06-02  Bruno Haible  <bruno@clisp.org>
56027
56028         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
56029         like ACL APIs.
56030
56031 2008-06-02  Bruno Haible  <bruno@clisp.org>
56032
56033         * tests/test-file-has-acl.sh: Use different code for Cygwin.
56034         * tests/test-set-mode-acl.sh: Likewise.
56035         * tests/test-copy-acl.sh: Likewise.
56036         * tests/test-copy-file.sh: Likewise.
56037
56038 2008-06-02  Bruno Haible  <bruno@clisp.org>
56039
56040         * tests/test-file-has-acl.sh: Remove unused code.
56041
56042 2008-06-01  Bruno Haible  <bruno@clisp.org>
56043
56044         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
56045         (copy_acl): Just a wrapper around qcopy_acl that emits the error
56046         messages.
56047         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
56048
56049 2008-06-01  Bruno Haible  <bruno@clisp.org>
56050
56051         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
56052         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
56053         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
56054         APIs.
56055         * modules/acl-tests (configure.ac): Remove tests now contained in
56056         m4/acl.m4.
56057
56058 2008-06-02  Jim Meyering  <meyering@redhat.com>
56059
56060         announce-gen: use a better key-server host name
56061         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
56062         it may be more consistently reliable.  Suggested by Werner Koch
56063         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
56064
56065 2008-06-01  Bruno Haible  <bruno@clisp.org>
56066
56067         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
56068         Reported by Voroskoi Andras <voroskoi@gmail.com>.
56069
56070 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56071
56072         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
56073
56074 2008-06-01  Bruno Haible  <bruno@clisp.org>
56075
56076         New ACL tests.
56077         * tests/test-file-has-acl.sh: New file.
56078         * tests/test-file-has-acl.c: New file.
56079         * tests/test-set-mode-acl.sh: New file.
56080         * tests/test-set-mode-acl.c: New file.
56081         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
56082         * tests/test-copy-acl.c: New file.
56083         * modules/acl-tests: New file, based on modules/copy-file-tests.
56084         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
56085         (Depends-on): Add acl-tests.
56086         (configure.ac): Remove checks.
56087         (Makefile.am): Don't create test-sameacls program here any more.
56088
56089 2008-06-01  Bruno Haible  <bruno@clisp.org>
56090
56091         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
56092         * tests/test-sameacls.c: Include progname.h.
56093         (main): Invoke set_program_name. Portability fixes for MacOS X,
56094         Solaris, HP-UX.
56095
56096 2008-06-01  Bruno Haible  <bruno@clisp.org>
56097
56098         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
56099         function.
56100         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
56101
56102 2008-06-01  Bruno Haible  <bruno@clisp.org>
56103
56104         * modules/rpmatch (Depends-on): Add strdup.
56105
56106 2008-06-01  Bruno Haible  <bruno@clisp.org>
56107
56108         * lib/pipe.c: Include unistd-safer.h.
56109         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
56110         * modules/pipe (Depends-on): Add unistd-safer.
56111
56112 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56113
56114         * modules/autobuild (configure.ac): Call AB_INIT.
56115
56116 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56117
56118         * tests/test-getaddrinfo.c: Don't print debug messages by default.
56119         Suggested by Bruno Haible <bruno@clisp.org>.
56120
56121 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56122
56123         * tests/test-base64.c: Cast size_t to unsigned long when invoking
56124         printf.  Use %lu instead of %d.  Reported by Bruno Haible
56125         <bruno@clisp.org>.
56126
56127 2008-05-29  Eric Blake  <ebb9@byu.net>
56128
56129         Prefer new POSIX 200x interfaces over futimesat.
56130         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
56131         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
56132         when available.
56133         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56134
56135 2008-05-28  Bruno Haible  <bruno@clisp.org>
56136
56137         * modules/stpcpy (License): Change to LGPLv2+.
56138         Requested by David Lutterkort <dlutter@redhat.com>.
56139
56140 2008-05-27  Bruno Haible  <bruno@clisp.org>
56141
56142         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56143         current mingw.
56144         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56145
56146 2008-05-27  Bruno Haible  <bruno@clisp.org>
56147
56148         * modules/iconv_open (Link): New section, from module 'iconv'.
56149         * modules/striconv (Link): Likewise.
56150         * modules/striconveh (Link): Likewise.
56151         * modules/xstriconv (Link): Likewise.
56152         * modules/unicodeio (Link): Likewise.
56153         * modules/propername (Link): Likewise.
56154         Reported by Jim Meyering.
56155
56156 2008-05-26  Jim Meyering  <meyering@redhat.com>
56157
56158         sha256: do not artificially restrict buffer length to be < 2^32
56159         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56160         uint32_t to size_t.
56161         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56162         to match.
56163
56164         avoid unaligned access errors, e.g., on sparc
56165         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56166         direct access through a possibly-unaligned uint64* pointer.
56167         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56168         direct access through a possibly-unaligned uint32* pointer.
56169         Prompted by this patch from Tom "spot" Callaway:
56170         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56171
56172         sha512.c: fix typo in comment
56173         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56174
56175 2008-05-25  Bruno Haible  <bruno@clisp.org>
56176
56177         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56178         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56179         (Makefile.am): Update lib_SOURCES.
56180
56181 2008-05-25  Bruno Haible  <bruno@clisp.org>
56182
56183         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56184
56185 2008-05-25  Jim Meyering  <meyering@redhat.com>
56186
56187         useless-if-before-free: freed expr may have white-space differences
56188         * build-aux/useless-if-before-free: Recognize cases in which the
56189         freed expression differs from the tested one in embedded white
56190         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56191         $1 was used, so we can't make any regexp shy.  Improved tests now
56192         detect this.
56193
56194         useless-if-before-free: accept white space in the expression.
56195         * build-aux/useless-if-before-free: For now, any white space
56196         in the expression must be identical in the free argument.
56197
56198         useless-if-before-free: efficiency tweak
56199         * build-aux/useless-if-before-free: Make the expression-matching
56200         regexp "shy".
56201         Make the *outer* regexp shy, not the expr-matching one.
56202
56203         update code-in-comment to accept cast of free arg
56204         * build-aux/useless-if-before-free: Update regexp.
56205
56206 2008-05-25  Bruno Haible  <bruno@clisp.org>
56207
56208         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56209         * modules/copy-file-tests (Files, Makefile.am): Update.
56210         * tests/test-copy-file.c (func_test_copy): Update.
56211
56212 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56213
56214         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56215
56216 2008-05-23  Bruno Haible  <bruno@clisp.org>
56217
56218         Improve support for ACLs on OSF/1.
56219         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56220         Remove fallback for unknown flavors of ACLs.
56221
56222 2008-05-22  Bruno Haible  <bruno@clisp.org>
56223
56224         Add support for ACLs on OSF/1.
56225         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56226         replacements.
56227         (acl_free_text): New macro fallback.
56228         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56229         acl_free.
56230         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56231         acl_free_text function. Require AC_C_INLINE.
56232
56233 2008-05-22  Bruno Haible  <bruno@clisp.org>
56234
56235         Make copy_acl work on MacOS X 10.5.
56236         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56237         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56238         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56239         If MODE_INSIDE_ACL, don't assume that every system has the same text
56240         representation for ACLs as FreeBSD.
56241         * lib/copy-acl.c (copy_acl): Add support for platforms with
56242         !MODE_INSIDE_ACL.
56243         * lib/file-has-acl.c (file_has_acl): Likewise.
56244         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56245         FreeBSD, MacOS X, or IRIX, respectively.
56246
56247 2008-05-22  Bruno Haible  <bruno@clisp.org>
56248
56249         * lib/acl.h: Don't include <sys/acl.h>.
56250         (GETACLCNT): Move fallback to lib/acl-internal.h.
56251         * lib/acl-internal.h: Include <sys/acl.h> here.
56252         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56253
56254 2008-05-22  Bruno Haible  <bruno@clisp.org>
56255
56256         Split off copy_acl function to separate file.
56257         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56258         * lib/acl.c (copy_acl): Moved function to separate file.
56259         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56260         * modules/acl (Files): Add lib/copy-acl.c.
56261         (Makefiles.am): Augment lib_SOURCES.
56262
56263 2008-05-22  Bruno Haible  <bruno@clisp.org>
56264
56265         * modules/copy-file-tests: New file.
56266         * tests/test-copy-file.sh: New file.
56267         * tests/test-copy-file.c: New file.
56268         * tests/test-copy-file-sameacls.c: New file.
56269
56270 2008-05-22  Eric Blake  <ebb9@byu.net>
56271
56272         Avoid gcc warning.
56273         * tests/test-memcmp.c (main): Pass NULL indirectly.
56274
56275 2008-05-21  Bruno Haible  <bruno@clisp.org>
56276
56277         Add reference doc about ACLs.
56278         * doc/acl-resources.txt: New file.
56279         * doc/acl-cygwin.txt: New file.
56280
56281 2008-05-21  Bruno Haible  <bruno@clisp.org>
56282
56283         Avoid one more warning from gcc.
56284         * lib/vasnprintf.c (IF_LINT): Update comments.
56285         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56286
56287 2008-05-21  Jim Meyering  <meyering@redhat.com>
56288
56289         avoid a warning from gcc
56290         * lib/vasnprintf.c (IF_LINT): Define.
56291         (scale10_round_decimal_long_double):
56292         Use it to avoid a "may be used uninitialized" warning.
56293         (scale10_round_decimal_double): Likewise.
56294
56295 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56296
56297         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56298         declared.
56299
56300 2008-05-20  Bruno Haible  <bruno@clisp.org>
56301
56302         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56303         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56304
56305 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56306
56307         * modules/memcmp-tests: New file.
56308         * tests/test-memcmp.c: New file.
56309
56310 2008-05-19  Bruno Haible  <bruno@clisp.org>
56311
56312         * modules/propername (Notice, configure.ac): Put quoted "..." into
56313         --keyword option.
56314         * lib/propername.h: Update comments accordingly.
56315         Reported by Eric Blake.
56316
56317 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56318
56319         * modules/getpass-gnu (Depends-on): Add fseeko.
56320
56321 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56322
56323         * modules/base64-tests: New file.
56324
56325 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56326
56327         * lib/base64.c (base64_decode_ctx): If a decode context structure
56328         was passed in use it to ignore newlines.  If a context structure
56329         was _not_ passed in, continue to treat newlines as garbage (this
56330         is the historical behavior).  Formerly base64_decode.
56331         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56332         takes a decode context structure.
56333         * lib/base64.h (base64_decode): Macro for four-argument calls.
56334         (base64_decode_alloc): Likewise.
56335         * lib/base64.c (base64_decode_ctx): If a decode context structure
56336         was passed in use it to ignore newlines.  If a context structure
56337         was _not_ passed in, continue to treat newlines as garbage (this
56338         is the historical behavior).  Formerly base64_decode.
56339         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56340         takes a decode context structure.
56341         * lib/base64.h (base64_decode): Macro for four-argument calls.
56342         (base64_decode_alloc): Likewise.
56343
56344 2008-05-19  Jim Meyering  <meyering@redhat.com>
56345
56346         avoid a warning from gcc
56347         * lib/trim.c (IF_LINT): Define.
56348         (trim2): Use it to avoid a "may be used uninitialized" warning.
56349
56350         Fix doc typo.
56351         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56352
56353 2008-05-19  Bruno Haible  <bruno@clisp.org>
56354
56355         * doc/glibc-functions/getpass.texi: Document limits of other
56356         implementations.
56357
56358 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56359             Bruno Haible <bruno@clisp.org>
56360
56361         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56362
56363 2008-05-18  Bruno Haible  <bruno@clisp.org>
56364
56365         * modules/propername: New file, from GNU gettext.
56366         * lib/propername.h: New file, from GNU gettext.
56367         * lib/propername.c: New file, from GNU gettext.
56368         * MODULES.html.sh (Internationalization functions): Add propername.
56369
56370 2008-05-16  Jim Meyering  <meyering@redhat.com>
56371             Bruno Haible  <bruno@clisp.org>
56372
56373         Avoid some warnings from "gcc -Wshadow".
56374         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56375
56376 2008-05-15  Eric Blake  <ebb9@byu.net>
56377
56378         Extend previous patch to cygwin 1.7.0.
56379         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56380         fast implementation in cygwin >= 1.7.0.
56381         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56383
56384 2008-05-15  Bruno Haible  <bruno@clisp.org>
56385
56386         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56387         implementation in glibc >= 2.9.
56388         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56389         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56390
56391 2008-05-15  Bruno Haible  <bruno@clisp.org>
56392
56393         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56394         (Unicode string functions): Add unilbrk/*.
56395         Reported by Karl Berry.
56396
56397 2008-05-15  Eric Blake  <ebb9@byu.net>
56398
56399         Fix violation of <stdbool.h> replacement in regex.
56400         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56401         * lib/regexec.c (re_search_internal): Likewise.
56402         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56403
56404 2008-05-15  Jim Meyering  <meyering@redhat.com>
56405
56406         avoid distracting test output when git or cvs is not found
56407         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56408         * tests/test-vc-list-files-git.sh: Likewise.
56409
56410 2008-05-15  Eric Blake  <ebb9@byu.net>
56411
56412         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56413         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56414         glibc version.
56415         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56416         * doc/posix-functions/strstr.texi (strstr): Likewise.
56417         * lib/str-two-way.h (MAX): Sychronize with glibc.
56418
56419 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56420
56421         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56422         opr.ctx_type.
56423         (calc_first): Initialize constraint field.
56424         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56425         Fix grammar.
56426         (duplicate_node): Merge constraint field for all node types.
56427         (calc_eclosure_iter): Look at constraint field for all node types.
56428         * lib/regex_internal.c (create_cd_newstate): Don't look at
56429         opr.ctx_type.
56430
56431 2008-05-14  Bruno Haible  <bruno@clisp.org>
56432
56433         Help GCC to do better code generation.
56434         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56435         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56436         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56437         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56438         Declare with attribute 'malloc' if supported.
56439
56440 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56441
56442         use "echo STR|wc -c" rather than unportable "expr length STR"
56443         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56444         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56445
56446 2008-05-14  Jim Meyering  <meyering@redhat.com>
56447
56448         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56449         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56450         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56451         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56452         via Collin Lasse.
56453
56454 2008-05-14  Eric Blake  <ebb9@byu.net>
56455
56456         Avoid quadratic growth in gl_LIBSOURCES.
56457         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56458         Suggested by Bruno Haible.
56459
56460         Test xmemdup0.
56461         * modules/xmemdup0-tests: New file.
56462         * tests/test-xmemdup0.c: Likewise.
56463
56464 2008-05-13  Eric Blake  <ebb9@byu.net>
56465
56466         Split xmemdup0 into its own module.
56467         * modules/xmemdup0: New file.
56468         * lib/xmemdup0.h: Likewise.
56469         * lib/xmemdup0.c: Likewise.
56470         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56471         * lib/xalloc.h (xmemdup0): Remove.
56472         * lib/xmalloc.c (xmemdup0): Likewise.
56473
56474 2008-05-13  Eric Blake  <ebb9@byu.net>
56475             Bruno Haible  <bruno@clisp.org>
56476
56477         Reduce number of forks required during autoconf.
56478         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56479         and gl_LIBSOURCES_DIR.
56480         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56481         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56482         m4_syscmd per file.
56483         <m4_foreach_w>: Move...
56484         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56485
56486 2008-05-13  Eric Blake  <ebb9@byu.net>
56487
56488         * gnulib-tool: Fix various comment typos.
56489
56490 2008-05-12  Bruno Haible  <bruno@clisp.org>
56491
56492         Tailor the linebreaking algorithm.
56493         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56494
56495 2008-05-12  Bruno Haible  <bruno@clisp.org>
56496
56497         Update to Unicode 5.0.0.
56498         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56499         LBP_JV, LBP_JT. Redistribute values.
56500         (unilbrk_table): Change size.
56501         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56502         Unicode TR#14 rev. 22.
56503         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56504         LBP_JV, LBP_JT. Redistribute values.
56505         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56506         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56507         Update.
56508         * lib/unilbrk/lbrkprop1.h: Regenerated.
56509         * lib/unilbrk/lbrkprop2.h: Regenerated.
56510         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56511         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56512         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56513         Likewise.
56514         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56515         Likewise.
56516         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56517         result.
56518         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56519         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56520         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56521         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56522         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56523         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56524
56525 2008-05-11  Bruno Haible  <bruno@clisp.org>
56526
56527         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56528
56529 2008-05-11  Bruno Haible  <bruno@clisp.org>
56530
56531         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56532         * modules/unilbrk/gen-lbrk: New file.
56533
56534 2008-05-11  Bruno Haible  <bruno@clisp.org>
56535
56536         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56537         * m4/sha512.m4 (gl_SHA512): Likewise.
56538
56539 2008-05-11  Jim Meyering  <meyering@redhat.com>
56540
56541         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56542         * modules/crypto/sha256: New file.
56543         * modules/crypto/sha512: Likewise.
56544         * lib/sha256.c: Likewise.
56545         * lib/sha256.h: Likewise.
56546         * lib/sha512.c: Likewise.
56547         * lib/sha512.h: Likewise.
56548         * lib/u64.h: Likewise.
56549         * m4/sha256.m4: Likewise.
56550         * m4/sha512.m4: Likewise.
56551         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56552
56553 2008-05-10  Bruno Haible  <bruno@clisp.org>
56554
56555         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56556         (Input/Output <stdio.h>): Add xprintf.
56557         (Signal handling <signal.h>): Add strsignal.
56558         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56559         (Core language properties): Add func.
56560         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56561         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56562         strings.
56563         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56564         (Input/output): New section.
56565         (File system functions): Add openat-die, stat-macros.
56566         (Networking functions): Add sockets.
56567         (Unicode string functions): Add unictype/*.
56568         (Support for building libraries and executables): Add gperf.
56569         (Support for building documentation): Add agpl-3.0.
56570         (Misc): Add nocrash.
56571
56572 2008-05-10  Bruno Haible  <bruno@clisp.org>
56573
56574         * modules/unictype/gen-ctype: New file.
56575
56576 2008-05-10  Jim Meyering  <meyering@redhat.com>
56577
56578         Make chdir-safer.c more efficient on a system with no symlinks.
56579         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56580         also if ELOOP is zero.  Suggested by Bruno Haible.
56581
56582         Make chdir-safer.c slightly safer.
56583         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56584         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56585
56586         Avoid compile failure on systems without ELOOP (like mingw).
56587         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56588         Reported by Bruno Haible.
56589
56590 2008-05-10  Bruno Haible  <bruno@clisp.org>
56591
56592         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56593         (is_utf8_encoding): Use a case-insensitive comparison.
56594         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56595         streq.
56596
56597 2008-05-10  Bruno Haible  <bruno@clisp.org>
56598
56599         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56600         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56601         * lib/unilbrk/ulc-common.h (iconv_string_length,
56602         iconv_string_keeping_offsets): Remove declarations.
56603         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56604         Don't include <iconv.h>, streq.h, xsize.h.
56605         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56606         conversion.
56607         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56608         <iconv.h>, streq.h, xsize.h.
56609         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56610         conversion.
56611         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56612         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56613         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56614         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56615
56616 2008-05-10  Bruno Haible  <bruno@clisp.org>
56617
56618         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56619         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56620
56621         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56622         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56623
56624         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56625         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56626
56627         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56628         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56629
56630         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56631         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56632
56633         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56634         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56635
56636         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56637         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56638
56639         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56640         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56641
56642 2008-05-10  Bruno Haible  <bruno@clisp.org>
56643
56644         Split up 'linebreak' module.
56645         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56646         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56647         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56648         modifications.
56649         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56650         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56651         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56652         lib/linebreak.c.
56653         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56654         lib/linebreak.c.
56655         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56656         lib/linebreak.c.
56657         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56658         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56659         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56660         lib/linebreak.c.
56661         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56662         lib/linebreak.c.
56663         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56664         lib/linebreak.c.
56665         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56666         lib/linebreak.c.
56667         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56668         lib/linebreak.c.
56669         * modules/unilbrk/base: New file.
56670         * modules/unilbrk/tables: New file.
56671         * modules/unilbrk/u8-possible-linebreaks: New file.
56672         * modules/unilbrk/u16-possible-linebreaks: New file.
56673         * modules/unilbrk/u32-possible-linebreaks: New file.
56674         * modules/unilbrk/ulc-common: New file.
56675         * modules/unilbrk/ulc-possible-linebreaks: New file.
56676         * modules/unilbrk/u8-width-linebreaks: New file.
56677         * modules/unilbrk/u16-width-linebreaks: New file.
56678         * modules/unilbrk/u32-width-linebreaks: New file.
56679         * modules/unilbrk/ulc-width-linebreaks: New file.
56680         * lib/linebreak.h: Remove file.
56681         * lib/linebreak.c: Remove file.
56682         * m4/linebreak.m4: Remove file.
56683         * modules/linebreak: Remove file.
56684         * NEWS: Mention the changes.
56685
56686 2008-05-09  Eric Blake  <ebb9@byu.net>
56687
56688         Add xmemdup0.
56689         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56690         implementation.
56691         * lib/xmalloc.c (xmemdup0): New C implementation.
56692
56693 2008-05-08  Bruno Haible  <bruno@clisp.org>
56694
56695         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56696
56697 2008-05-07  Eric Blake  <ebb9@byu.net>
56698
56699         Support cross-compilation of <wctype.h>.
56700         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56701         AC_CACHE_CHECK.
56702
56703 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56704
56705         * build-aux/vc-list-files: Add support for bzr.
56706
56707 2008-05-03  Jim Meyering  <meyering@redhat.com>
56708
56709         avoid failed assertion with tight malloc
56710         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56711
56712 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56713
56714         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56715         are needed from arpa/inet.h.
56716         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56717         Reported by Bruno Haible.
56718
56719 2008-05-02  Jim Meyering  <meyering@redhat.com>
56720
56721         avoid compilation error on FreeBSD 6
56722         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56723
56724 2008-05-01  Jim Meyering  <meyering@redhat.com>
56725
56726         useless-if-before-free: correct --help's exit status description
56727         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56728         for one or more matches, etc.  Reported by Bruno Haible.
56729
56730         vc-list-files: make the stand-alone gnulib test work
56731         * modules/vc-list-files-tests (configure.ac):
56732         Define and AC_SUBST abs_aux_dir.
56733         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56734         $(abs_top_srcdir) to each script and having each of them
56735         duplicate the work of setting PATH, set PATH here, using
56736         the new variable, abs_aux_dir instead.
56737         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56738         * tests/test-vc-list-files-git.sh: Likewise.
56739         Reported by Bruno Haible.
56740
56741 2008-05-01  Bruno Haible  <bruno@clisp.org>
56742
56743         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56744         reallocation. Rename 'done' to 'found_delimiter'.
56745
56746 2008-05-01  Jim Meyering  <meyering@redhat.com>
56747
56748         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56749         * build-aux/vc-list-files: Use `...`, not $(...).
56750
56751 2008-04-30  Jim Meyering  <meyering@redhat.com>
56752
56753         add tests for vc-list-files
56754         * modules/vc-list-files-tests: New module.
56755         * tests/test-vc-list-files-cvs.sh: New file.
56756         * tests/test-vc-list-files-git.sh: New file.
56757
56758         avoid a warning from gcc
56759         * lib/getndelim2.c (IF_LINT): Define.
56760         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56761
56762         vc-list-files: work properly with build-aux/cvsu, too
56763         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56764         to all cvs-based clauses.
56765
56766         vc-list-files: work properly in the CVS+awk case, too
56767         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56768
56769         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56770         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56771         take more than one file argument, so .  Add quotes, just in case $dir
56772         ever contains a shell meta-character.  Prompted by Soren Hansen in
56773         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56774
56775 2008-04-29  Eric Blake  <ebb9@byu.net>
56776
56777         Optimize getndelim2 to use block operations when possible.
56778         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56779         freadseek, and memchr2.
56780         * lib/getndelim2.c (getndelim2): Use them for block reads.
56781
56782 2008-04-29  Bruno Haible  <bruno@clisp.org>
56783
56784         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56785         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56786         * modules/inet_ntop (Depends-on): Add extensions.
56787         * modules/inet_pton (Depends-on): Likewise.
56788         Reported by Simon Josefsson.
56789
56790 2008-04-29  Jim Meyering  <meyering@redhat.com>
56791
56792         When the is more than one match in a block, match all of them.
56793         * build-aux/useless-if-before-free: Iterate through each block
56794         until there are no more matches.
56795
56796         Fix broken useless-if-before-free script.
56797         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56798         the expression to match cast of argument to free-like function.
56799
56800 2008-04-29  Eric Blake  <ebb9@byu.net>
56801
56802         Use new header.
56803         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56804
56805 2008-04-29  Jim Meyering  <meyering@redhat.com>
56806
56807         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56808         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56809         by gnulib to exist and to declare e.g., inet_ntop.
56810         Don't include "inet_ntop.h", now removed.
56811
56812         * m4/arpa_inet_h.m4: Remove trailing blanks.
56813
56814 2008-04-29  Eric Blake  <ebb9@byu.net>
56815
56816         Silence valgrind on safe reads beyond potential array bounds.
56817         * lib/rawmemchr.valgrind: New file.
56818         * lib/strchrnul.valgrind: Likewise.
56819         * modules/rawmemchr (Files): Distribute new file.
56820         * modules/strchrnul (Files): Likewise.
56821         Suggested by Bruno Haible.
56822
56823 2008-04-29  Bruno Haible  <bruno@clisp.org>
56824
56825         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56826         (inet_ntop, inet_pton): Change portability warning's wording.
56827         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56828         Invoke gl_CHECK_NEXT_HEADERS.
56829         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56830         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56831         set ARPA_INET_H.
56832         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56833         * modules/arpa_inet (Description): No longer only for systems that
56834         lack it.
56835         (Depends-on): Add include_next.
56836         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56837         HAVE_ARPA_INET_H.
56838
56839 2008-04-29  Jim Meyering  <meyering@redhat.com>
56840
56841         * modules/mkdir (License): Re-license as LGPLv2+.
56842
56843 2008-04-29  Bruno Haible  <bruno@clisp.org>
56844
56845         * modules/rawmemchr (Maintainer): Set to Eric.
56846         * modules/strchrnul (Maintainer): Likewise.
56847
56848 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56849
56850         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56851         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56852
56853         * modules/arpa_inet (arpa/inet.h): Use them.
56854
56855 2008-04-28  Eric Blake  <ebb9@byu.net>
56856
56857         Test getndelim2.
56858         * modules/getndelim2-tests: New file.
56859         * tests/test-getndelim2.c: Likewise.
56860         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56861         stream.
56862         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56863
56864         * MODULES.html.sh: Document new module.
56865
56866 2008-04-20  Bruno Haible  <bruno@clisp.org>
56867
56868         * lib/c-stack.c (die): Use raise.
56869         * modules/c-stack (Depends-on): Add raise.
56870
56871 2008-04-28  Bruno Haible  <bruno@clisp.org>
56872
56873         Expect rpmatch to be declared.
56874         * lib/yesno.c (rpmatch): Remove declaration.
56875
56876         Declare rpmatch.
56877         * lib/stdlib.in.h (rpmatch): New declaration.
56878         * lib/rpmatch.c: Include <stdlib.h> first.
56879         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56880         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56882         HAVE_RPMATCH.
56883         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56884         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56885         (Include): Set to <stdlib.h>.
56886         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56887         HAVE_RPMATCH.
56888         * NEWS: Document the change.
56889
56890 2008-04-28  Bruno Haible  <bruno@clisp.org>
56891
56892         Change rpmatch to use nl_langinfo when appropriate.
56893         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56894         (N_): New macro.
56895         (localized_pattern): New function/macro.
56896         (try): Remove match, nomatch arguments. Copy the pattern into safe
56897         memory before caching it.
56898         (rpmatch): Use localized_pattern. Add translator comments.
56899         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56900         Suggested by Eric Blake.
56901         * modules/rpmatch (Depends-on): Add stdbool.
56902
56903 2008-04-28  Eric Blake  <ebb9@byu.net>
56904
56905         Add rawmemchr module, matching glibc.
56906         * modules/string (Makefile.am): New indicator.
56907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56908         * lib/string.in.h (rawmemchr): Declare when appropriate.
56909         * modules/rawmemchr: New file.
56910         * m4/rawmemchr.m4: Likewise.
56911         * lib/rawmemchr.c: Likewise.
56912         * modules/rawmemchr-tests: Likewise.
56913         * tests/test-rawmemchr.c: Likewise.
56914         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56915         module.
56916         * modules/strchrnul (Depends-on): Add rawmemchr.
56917         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56918
56919         Whitespace cleanup.
56920         * tests/test-strchrnul.c: Reindent.
56921         * lib/strchrnul.c: Likewise.
56922
56923         Optimize and test strchrnul.
56924         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56925         * modules/strchrnul-tests: New file.
56926         * tests/test-strchrnul.c: Likewise.
56927
56928         Remove intprops dependency.
56929         * modules/memchr (Depends-on): Remove intprops.
56930         * modules/memrchr (Depends-on): Likewise.
56931         * modules/memchr2 (Depends-on): Likewise.
56932         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56933         * lib/memrchr.c (__memrchr): Likewise.
56934         * lib/memrchr2.c (memchr2): Likewise.
56935         Reported by Simon Josefsson.
56936
56937 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56938
56939         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56940         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56941
56942 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56943
56944         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56945
56946         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56947
56948         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56949
56950         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56951         declarations.
56952         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56953
56954         * m4/inet_pton.m4: Don't check for header files.
56955
56956         * m4/inet_ntop.m4: Don't check for header files.
56957
56958 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56959
56960         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56961         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56962         trigger for cygwin).
56963         Reported by Bruno Haible  <bruno@clisp.org>.
56964
56965 2008-04-28  Bruno Haible  <bruno@clisp.org>
56966
56967         * doc/posix-functions/strdup.texi: Mention mingw problem.
56968
56969 2008-04-27  Bruno Haible  <bruno@clisp.org>
56970
56971         * modules/stat-time-tests (Depends-on): Add sleep.
56972         * tests/test-stat-time.c (force_unlink): New function.
56973         (cleanup): Use it.
56974         (test_mtime): Remove the ctime related tests.
56975         (test_ctime): New function, containing the ctime related tests.
56976         (main): Call test_ctime, except on native Windows platforms.
56977
56978 2008-04-27  Bruno Haible  <bruno@clisp.org>
56979
56980         * lib/rpmatch.c (rpmatch): Add some comments.
56981         Reported by James Youngman <jay@gnu.org>.
56982
56983 2008-04-27  Bruno Haible  <bruno@clisp.org>
56984
56985         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56986         quiet NaNs.
56987
56988 2008-04-27  Bruno Haible  <bruno@clisp.org>
56989
56990         Make test-yesno.sh work on mingw.
56991         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56992         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56993         (main): Set stdin to binary mode.
56994         * modules/yesno-tests (Depends-on): Add binary-io.
56995
56996 2008-04-27  Bruno Haible  <bruno@clisp.org>
56997
56998         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56999         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
57000         argument that lie outside the IEEE 854 domain.
57001         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
57002         (gl_ISFINITE): Use it.
57003         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
57004
57005 2008-04-27  Bruno Haible  <bruno@clisp.org>
57006
57007         Allow local renaming in config.h.
57008         * lib/memrchr.c (memrchr): Don't undefine outside libc.
57009
57010 2008-04-27  Bruno Haible  <bruno@clisp.org>
57011
57012         * lib/memchr.c (__memchr): Change type of 'i'.
57013         * lib/memchr2.c (memchr2): Likewise.
57014
57015 2008-04-26  Eric Blake  <ebb9@byu.net>
57016         and Bruno Haible  <bruno@clisp.org>
57017
57018         Optimize and test memrchr.
57019         * modules/memrchr (Depends-on): Add intprops.
57020         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
57021         * modules/memrchr-tests: New file.
57022         * tests/test-memrchr.c: New file.
57023
57024 2008-04-26  Bruno Haible  <bruno@clisp.org>
57025
57026         Add tentative support for DragonFly BSD.
57027         * lib/stdio-impl.h: Add macros for DragonFly BSD.
57028         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
57029         fp.
57030         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57031         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
57032         * lib/fpurge.c (fpurge): Likewise.
57033         * lib/freadable.c (freaadable): Likewise.
57034         * lib/freadahead.c (freadahead): Likewise.
57035         * lib/freading.c (freading): Likewise.
57036         * lib/freadptr.c (freadptr): Likewise.
57037         * lib/freadseek.c (freadptrinc): Likewise.
57038         * lib/fseeko.c (fseeko): Likewise.
57039         * lib/fseterr.c (fseterr): Likewise.
57040         * lib/fwritable.c (fwritable): Likewise.
57041         * lib/fwriting.c (fwriting): Likewise.
57042
57043 2008-04-26  Bruno Haible  <bruno@clisp.org>
57044
57045         * lib/stdio-impl.h: New file.
57046         * lib/fbufmode.c: Include stdio-impl.h.
57047         (fbufmode): Use fp_, remove redundant #defines.
57048         * lib/fflush.c: Include stdio-impl.h.
57049         (clear_ungetc_buffer): Remove redundant #defines.
57050         * lib/fpurge.c: Include stdio-impl.h.
57051         (fpurge): Remove redundant #defines.
57052         * lib/freadable.c: Include stdio-impl.h.
57053         (freadable): Remove redundant #defines.
57054         * lib/freadahead.c: Include stdio-impl.h.
57055         (freadahead): Remove redundant #defines.
57056         * lib/freading.c: Include stdio-impl.h.
57057         (freading): Remove redundant #defines.
57058         * lib/freadptr.c: Include stdio-impl.h.
57059         (freadptr): Remove redundant #defines.
57060         * lib/freadseek.c: Include stdio-impl.h.
57061         (freadptrinc): Remove redundant #defines.
57062         * lib/fseeko.c: Include stdio-impl.h.
57063         (rpl_fseeko): Remove redundant #defines.
57064         * lib/fseterr.c: Include stdio-impl.h.
57065         (fseterr): Remove redundant #defines.
57066         * lib/fwritable.c: Include stdio-impl.h.
57067         (fwritable: Remove redundant #defines.
57068         * lib/fwriting.c: Include stdio-impl.h.
57069         (fwriting): Remove redundant #defines.
57070         * modules/fbufmode (Files): Add lib/stdio-impl.h.
57071         * modules/fflush (Files): Likewise.
57072         * modules/fpurge (Files): Likewise.
57073         * modules/freadable (Files): Likewise.
57074         * modules/freadahead (Files): Likewise.
57075         * modules/freading (Files): Likewise.
57076         * modules/freadptr (Files): Likewise.
57077         * modules/freadseek (Files): Likewise.
57078         * modules/fseeko (Files): Likewise.
57079         * modules/fseterr (Files): Likewise.
57080         * modules/fwritable (Files): Likewise.
57081         * modules/fwriting (Files): Likewise.
57082
57083 2008-04-26  Bruno Haible  <bruno@clisp.org>
57084
57085         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57086         restore_seek_optimization, update_fpos_cache): New functions, extracted
57087         from rpl_fflush.
57088         (rpl_fflush): Use them.
57089         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
57090         (gl_REPLACE_FFLUSH): Use it.
57091
57092 2008-04-26  Bruno Haible  <bruno@clisp.org>
57093
57094         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
57095         on Solaris.
57096         * tests/test-xstrtoimax.sh: Likewise.
57097         * tests/test-xstrtoumax.sh: Likewise.
57098         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57099
57100 2008-04-26  Bruno Haible  <bruno@clisp.org>
57101
57102         * modules/memchr-tests: New file.
57103         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
57104
57105 2008-04-26  Eric Blake  <ebb9@byu.net>
57106             Bruno Haible  <bruno@clisp.org>
57107
57108         * lib/memchr.c: Include intprops.h.
57109         (__memchr): Optimize parallel detection of matching bytes. Rename local
57110         variables. Add explanatory comments.
57111
57112 2008-04-26  Bruno Haible  <bruno@clisp.org>
57113
57114         Fix module 'memchr', broken since 2000-10-28.
57115         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
57116
57117 2008-04-26  Bruno Haible  <bruno@clisp.org>
57118
57119         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
57120         comments.
57121
57122 2008-04-25  Eric Blake  <ebb9@byu.net>
57123
57124         Use native fstatat on cygwin 1.7.0.
57125         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
57126         first.
57127
57128 2008-04-23  Eric Blake  <ebb9@byu.net>
57129
57130         Improve memchr2 performance.
57131         * lib/memchr2.c (memchr2): Further optimize parallel detection of
57132         NUL bytes.
57133         * modules/memchr2 (Depends-on): Use intprops.h.
57134
57135 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57136
57137         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57138         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57139         <blp@cs.stanford.edu>.
57140
57141 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57142
57143         * lib/arpa_inet.in.h: New file.
57144
57145         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57146         (Makefile.am): Sed in substitute header file.
57147
57148         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57149         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57150
57151         * modules/inet_ntop (configure.ac): Use
57152         gl_ARPA_INET_MODULE_INDICATOR.
57153
57154         * modules/inet_pton (configure.ac): Use
57155         gl_ARPA_INET_MODULE_INDICATOR.
57156
57157 2008-04-22  Jim Meyering  <meyering@redhat.com>
57158
57159         * modules/verify (License): Re-license as LGPLv2+.
57160
57161 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57162
57163         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57164         parameter to void* as per POSIX standard (MinGW uses char*).
57165
57166 2008-04-21  Bruno Haible  <bruno@clisp.org>
57167
57168         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57169         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57170         Define to replacements if REPLACE_ISWCNTRL is 1.
57171         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57172         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57173         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57174         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57175         what it fixes.
57176         * doc/posix-functions/iswalpha.texi: Likewise.
57177         * doc/posix-functions/iswblank.texi: Likewise.
57178         * doc/posix-functions/iswcntrl.texi: Likewise.
57179         * doc/posix-functions/iswdigit.texi: Likewise.
57180         * doc/posix-functions/iswgraph.texi: Likewise.
57181         * doc/posix-functions/iswlower.texi: Likewise.
57182         * doc/posix-functions/iswprint.texi: Likewise.
57183         * doc/posix-functions/iswpunct.texi: Likewise.
57184         * doc/posix-functions/iswspace.texi: Likewise.
57185         * doc/posix-functions/iswupper.texi: Likewise.
57186         * doc/posix-functions/iswxdigit.texi: Likewise.
57187         Reported by Alain Guibert.
57188
57189 2008-04-21  Bruno Haible  <bruno@clisp.org>
57190
57191         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57192         Patch by Alain Guibert.
57193
57194 2008-04-21  Bruno Haible  <bruno@clisp.org>
57195
57196         Fix test failures on mingw.
57197         * tests/test-xstrtol.c (print_no_progname): New function.
57198         (main): Install it in error_print_progname hook.
57199         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57200         * tests/test-xstrtoimax.sh: Likewise.
57201         * tests/test-xstrtoumax.sh: Likewise.
57202
57203 2008-04-21  Bruno Haible  <bruno@clisp.org>
57204
57205         Fix test failure on mingw.
57206         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57207
57208 2008-04-21  Bruno Haible  <bruno@clisp.org>
57209
57210         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57211         Actually assign a value.
57212
57213 2008-04-20  Bruno Haible  <bruno@clisp.org>
57214
57215         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57216         take 2.
57217         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57218         'canonicalize-lgpl' module is also used.
57219         * lib/canonicalize-lgpl.c: Undo last change.
57220         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57221
57222 2008-04-20  Bruno Haible  <bruno@clisp.org>
57223
57224         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57225         config.h. Provide _mkdir based fallback for mingw.
57226         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57227         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57228         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57229         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57230         rather than defining mkdir in config.h.
57231         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57232         (gl_SYS_STAT_H_DEFAULTS): New macro.
57233         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57234         HAVE_IO_H any more.
57235         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57236         HAVE_DECL_MKDIR and HAVE_IO_H.
57237
57238 2008-04-20  Bruno Haible  <bruno@clisp.org>
57239
57240         * lib/isapipe.c: Port to native Windows platforms.
57241
57242 2008-04-20  Bruno Haible  <bruno@clisp.org>
57243
57244         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57245
57246 2008-04-21  Eric Blake  <ebb9@byu.net>
57247
57248         Work around preprocessors that don't handle UINTMAX_MAX.
57249         * lib/memchr2.c (memchr2): Avoid embedded #if.
57250         Reported by Alain Guibert, fix suggested by Bruno Haible.
57251
57252 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57253
57254         * doc/posix-functions/strftime.texi (strftime): Explain better
57255         Windows incompatibility.  Suggested by Micah Cowan
57256         <micah@cowan.name>.
57257
57258 2008-04-20  Bruno Haible  <bruno@clisp.org>
57259
57260         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57261         unistr/u8-mblen.
57262
57263 2008-04-20  Bruno Haible  <bruno@clisp.org>
57264
57265         Fix test failure on platforms with non-GNU iconv.
57266         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57267         (U_TO_U8): Use it, rather than u16_to_u8.
57268         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57269         units at the end of the input string.
57270         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57271
57272 2008-04-20  Bruno Haible  <bruno@clisp.org>
57273
57274         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57275         when the resulting length is 0.
57276         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57277
57278 2008-04-20  Bruno Haible  <bruno@clisp.org>
57279
57280         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57281         works.
57282         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57283
57284 2008-04-20  Bruno Haible  <bruno@clisp.org>
57285
57286         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57287         * modules/tsearch-tests (configure.ac): Test for initstate function.
57288
57289 2008-04-20  Bruno Haible  <bruno@clisp.org>
57290
57291         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57292         for nlink_t if missing.
57293         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57294
57295 2008-04-19  Bruno Haible  <bruno@clisp.org>
57296
57297         Work around snprintf bug on Linux libc5.
57298         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57300         gl_SNPRINTF_SIZE1.
57301         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57302         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57303         that test failed.
57304         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57305         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57306         * modules/snprintf (Files): Add m4/printf.m4.
57307         * modules/vsnprintf (Files): Likewise.
57308         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57309         * doc/posix-functions/vsnprintf.texi: Likewise.
57310
57311 2008-04-19  Bruno Haible  <bruno@clisp.org>
57312
57313         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57314         from 0.0058 to less than 10^-7.
57315
57316 2008-04-19  Bruno Haible  <bruno@clisp.org>
57317
57318         Fix rounding when a precision is given.
57319         * lib/vasnprintf.c (is_borderline): New function.
57320         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57321         9...9x.
57322         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57323         %e, %g.
57324         * tests/test-vasprintf-posix.c (test_function): Likewise.
57325         * tests/test-snprintf-posix.h (test_function): Likewise.
57326         * tests/test-sprintf-posix.h (test_function): Likewise.
57327         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57328         * tests/test-printf-posix.h (test_function): Likewise.
57329         * tests/test-printf-posix.output: Update.
57330         Reported by John Darrington <john@darrington.wattle.id.au> via
57331         Ben Pfaff <blp@cs.stanford.edu>.
57332
57333 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57334
57335         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57336         Suggested by Bruno Haible <bruno@clisp.org>.
57337
57338 2008-04-17  Bruno Haible  <bruno@clisp.org>
57339
57340         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57341         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57342         implementation.
57343         Patch by Bruce Merry <bmerry@gmail.com>.
57344
57345 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57346
57347         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57348         doesn't work under Windows.
57349
57350 2008-04-16  Bruno Haible  <bruno@clisp.org>
57351
57352         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57353         New macros.
57354         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57355         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57356         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57357         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57358         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57359         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57360         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57361         macros.
57362         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57363         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57364         Northern Sotho, Uighur.
57365
57366 2008-04-16  Bruno Haible  <bruno@clisp.org>
57367
57368         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57369         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57370         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57371         Reported by Daniel Bergström <daniel@octocode.com>.
57372
57373 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57374             Bruno Haible  <bruno@clisp.org>
57375
57376         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57377         function.
57378         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57379         New functions, mostly extracted from gl_locale_name_default.
57380         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57381
57382 2008-04-16  Eric Blake  <ebb9@byu.net>
57383
57384         Adjust strtod detection to catch glibc 2.7 bug.
57385         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57386         Reported by John Gatewood Ham.
57387
57388 2008-04-16  Bruno Haible  <bruno@clisp.org>
57389
57390         Add tentative support for Linux libc5.
57391         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57392         * lib/fpurge.c (fpurge): Likewise.
57393         * lib/freadable.c (freadable): Likewise.
57394         * lib/freadahead.c (freadahead): Likewise.
57395         * lib/freading.c (freading): Likewise.
57396         * lib/freadptr.c (freadptr): Likewise.
57397         * lib/freadseek.c (freadptrinc): Likewise.
57398         * lib/fseeko.c (rpl_fseeko): Likewise.
57399         * lib/fseterr.c (fseterr): Likewise.
57400         * lib/fwritable.c (fwritable): Likewise.
57401         * lib/fwriting.c (fwriting): Likewise.
57402         Reported by Alain Guibert <alguibert+bts@free.fr>.
57403
57404 2008-04-15  Bruno Haible  <bruno@clisp.org>
57405
57406         * modules/mathl (configure.ac): Define module indicator.
57407
57408 2008-04-15  Bruno Haible  <bruno@clisp.org>
57409
57410         * lib/logl.c (logl): Remove unused variables.
57411
57412 2008-04-15  Bruno Haible  <bruno@clisp.org>
57413
57414         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57415         fails.
57416
57417 2008-04-15  Bruno Haible  <bruno@clisp.org>
57418
57419         * lib/trim.c (trim2): Fix argument of isspace() macro.
57420
57421 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57422
57423         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57424         to 0.
57425         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57426
57427 2008-04-14  Bruno Haible  <bruno@clisp.org>
57428
57429         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57430         AC_LANG_PROGRAM argument.
57431         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57432         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57434         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57435         * m4/math_h.m4 (gl_MATH_H): Likewise.
57436         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57437         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57438         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57439         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57440         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57441         * m4/regex.m4 (gl_REGEX): Likewise.
57442         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57443         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57444         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57445         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57446         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57447         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57448         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57449         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57450
57451 2008-04-14  Jim Meyering  <meyering@redhat.com>
57452
57453         test-strtod: fix typos: s/abs/fabs/
57454         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57455
57456 2008-04-13  Bruno Haible  <bruno@clisp.org>
57457
57458         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57459         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57460         module is also used and while not building the reloc-wrapper.
57461
57462 2008-04-13  Bruno Haible  <bruno@clisp.org>
57463
57464         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57465
57466 2008-04-13  Bruno Haible  <bruno@clisp.org>
57467
57468         Fix AIX compilation failure introduced on 2008-04-02.
57469         * tests/test-frexp.c (exp): Undefine before redefining.
57470         * tests/test-frexpl.c (exp): Likewise.
57471
57472 2008-04-13  Bruno Haible  <bruno@clisp.org>
57473
57474         Work around a HP-UX stdio bug.
57475         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57476         * tests/test-ftello.c (main): Likewise.
57477         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57478         * doc/posix-functions/ftello.texi: Likewise.
57479
57480 2008-04-13  Bruno Haible  <bruno@clisp.org>
57481
57482         Make test-signbit pass on HP-UX/hppa.
57483         * tests/test-signbit.c (minus_zerol): New variable.
57484         (test_signbitl): Use it.
57485
57486 2008-04-13  Bruno Haible  <bruno@clisp.org>
57487
57488         Make truncl work on OSF/1 4.0.
57489         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57490         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57491         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57493         HAVE_DECL_TRUNCL.
57494         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57495         HAVE_DECL_TRUNCL.
57496         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57497
57498 2008-04-13  Bruno Haible  <bruno@clisp.org>
57499
57500         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57501
57502 2008-04-13  Bruno Haible  <bruno@clisp.org>
57503
57504         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57505         expression, so as to avoid HP-UX 11 cc compiler bug.
57506
57507 2008-04-13  Bruno Haible  <bruno@clisp.org>
57508
57509         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57510
57511 2008-04-13  Bruno Haible  <bruno@clisp.org>
57512
57513         * lib/git-merge-changelog.c: Remove empty declaration outside of
57514         functions.
57515
57516 2008-04-13  Bruno Haible  <bruno@clisp.org>
57517
57518         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57519
57520 2008-04-13  Bruno Haible  <bruno@clisp.org>
57521
57522         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57523         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57524         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57525         also if it exists but lacks definitions of the SHUT_* macros.
57526         * modules/sys_socket (Description): Update.
57527         Reported by Elbert Pol <e.pol@chello.nl>.
57528
57529 2008-04-13  Bruno Haible  <bruno@clisp.org>
57530
57531         * lib/localcharset.c (OS2): Don't redefine if already defined.
57532         Reported by Elbert Pol <e.pol@chello.nl>.
57533
57534 2008-04-13  Bruno Haible  <bruno@clisp.org>
57535
57536         * lib/binary-io.h [__EMX__]: Include <io.h>.
57537         Reported by Elbert Pol <e.pol@chello.nl>.
57538
57539 2008-04-12  Bruno Haible  <bruno@clisp.org>
57540
57541         * lib/fpucw.h: Enable the definitions also for x86_64.
57542         Needed for NetBSD/x86_64.
57543         Reported by Thomas Klausner <tk@giga.or.at>.
57544
57545 2008-04-12  Bruno Haible  <bruno@clisp.org>
57546
57547         * tests/test-strtod.c: Include isnand.h.
57548         (main): Use isnand instead of isnan.
57549         Reported by Jim Meyering.
57550
57551 2008-04-12  Bruno Haible  <bruno@clisp.org>
57552
57553         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57554         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57555
57556 2008-04-12  Jim Meyering  <meyering@redhat.com>
57557
57558         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57559
57560 2008-04-12  Bruno Haible  <bruno@clisp.org>
57561
57562         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57563         Reported by Elbert Pol <e.pol@chello.nl>.
57564
57565 2008-04-12  Eric Blake  <ebb9@byu.net>
57566
57567         Work around Solaris 10 math.h bug.
57568         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57569         (gl_MATH_H_DEFAULTS): Set up default.
57570         * modules/math (Makefile.am): Replace new indicators.
57571         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57572         * tests/test-math.c (main): Test this.
57573         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57574         * doc/posix-headers/math.texi (math.h): Mention bug.
57575         Reported by Nelson H. F. Beebe and Jim Meyering.
57576
57577 2008-04-11  Bruno Haible  <bruno@clisp.org>
57578
57579         Adapt to future versions of Apple GCC.
57580         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57581         Reported by Peter O'Gorman <peter@pogma.com>.
57582
57583 2008-04-11  Bruno Haible  <bruno@clisp.org>
57584
57585         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57586
57587 2008-04-11  Bruno Haible  <bruno@clisp.org>
57588
57589         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57590
57591         * modules/getaddrinfo-tests (Makefile.am): Define
57592         test_getaddrinfo_LDADD.
57593
57594 2008-04-11  Bruno Haible  <bruno@clisp.org>
57595
57596         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57597         (init): Fix syntax error.
57598         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57599         is declared.
57600
57601 2008-04-11  Bruno Haible  <bruno@clisp.org>
57602
57603         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57604         * modules/glob (Depends-on): Add stdbool.
57605
57606 2008-04-11  Bruno Haible  <bruno@clisp.org>
57607
57608         * lib/trim.c: Include <string.h>.
57609
57610 2008-04-11  Eric Blake  <ebb9@byu.net>
57611
57612         Avoid compile failure on OS/2.
57613         * lib/regex_internal.h (internal_function): Disable optimization
57614         on OS/2 (__EMX__), where it caused compiler error.
57615         Reported by Elbert Pol.
57616
57617 2008-04-11  Bruno Haible  <bruno@clisp.org>
57618
57619         Flush the standard error stream before aborting. Needed on mingw.
57620         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57621         * tests/test-array_list.c (ASSERT): Likewise.
57622         * tests/test-array_oset.c (ASSERT): Likewise.
57623         * tests/test-avltree_list.c (ASSERT): Likewise.
57624         * tests/test-avltree_oset.c (ASSERT): Likewise.
57625         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57626         * tests/test-binary-io.c (ASSERT): Likewise.
57627         * tests/test-byteswap.c (ASSERT): Likewise.
57628         * tests/test-c-ctype.c (ASSERT): Likewise.
57629         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57630         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57631         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57632         * tests/test-c-strstr.c (ASSERT): Likewise.
57633         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57634         * tests/test-canonicalize.c (ASSERT): Likewise.
57635         * tests/test-carray_list.c (ASSERT): Likewise.
57636         * tests/test-ceilf1.c (ASSERT): Likewise.
57637         * tests/test-ceilf2.c (ASSERT): Likewise.
57638         * tests/test-ceill.c (ASSERT): Likewise.
57639         * tests/test-count-one-bits.c (ASSERT): Likewise.
57640         * tests/test-fbufmode.c (ASSERT): Likewise.
57641         * tests/test-fflush2.c (ASSERT): Likewise.
57642         * tests/test-floorf1.c (ASSERT): Likewise.
57643         * tests/test-floorf2.c (ASSERT): Likewise.
57644         * tests/test-floorl.c (ASSERT): Likewise.
57645         * tests/test-fopen.c (ASSERT): Likewise.
57646         * tests/test-fpending.c (ASSERT): Likewise.
57647         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57648         * tests/test-fpurge.c (ASSERT): Likewise.
57649         * tests/test-freadable.c (ASSERT): Likewise.
57650         * tests/test-freadahead.c (ASSERT): Likewise.
57651         * tests/test-freading.c (ASSERT): Likewise.
57652         * tests/test-freadptr.c (ASSERT): Likewise.
57653         * tests/test-freadptr2.c (ASSERT): Likewise.
57654         * tests/test-freadseek.c (ASSERT): Likewise.
57655         * tests/test-freopen.c (ASSERT): Likewise.
57656         * tests/test-frexp.c (ASSERT): Likewise.
57657         * tests/test-frexpl.c (ASSERT): Likewise.
57658         * tests/test-fseek.c (ASSERT): Likewise.
57659         * tests/test-fseeko.c (ASSERT): Likewise.
57660         * tests/test-fstrcmp.c (ASSERT): Likewise.
57661         * tests/test-ftell.c (ASSERT): Likewise.
57662         * tests/test-ftello.c (ASSERT): Likewise.
57663         * tests/test-func.c (ASSERT): Likewise.
57664         * tests/test-fwritable.c (ASSERT): Likewise.
57665         * tests/test-fwriting.c (ASSERT): Likewise.
57666         * tests/test-getdelim.c (ASSERT): Likewise.
57667         * tests/test-getline.c (ASSERT): Likewise.
57668         * tests/test-i-ring.c (ASSERT): Likewise.
57669         * tests/test-iconv-utf.c (ASSERT): Likewise.
57670         * tests/test-iconv.c (ASSERT): Likewise.
57671         * tests/test-isfinite.c (ASSERT): Likewise.
57672         * tests/test-isnand.c (ASSERT): Likewise.
57673         * tests/test-isnanf.c (ASSERT): Likewise.
57674         * tests/test-isnanl.h (ASSERT): Likewise.
57675         * tests/test-ldexpl.c (ASSERT): Likewise.
57676         * tests/test-linked_list.c (ASSERT): Likewise.
57677         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57678         * tests/test-localename.c (ASSERT): Likewise.
57679         * tests/test-lseek.c (ASSERT): Likewise.
57680         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57681         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57682         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57683         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57684         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57685         * tests/test-mbschr.c (ASSERT): Likewise.
57686         * tests/test-mbscspn.c (ASSERT): Likewise.
57687         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57688         * tests/test-mbspbrk.c (ASSERT): Likewise.
57689         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57690         * tests/test-mbsrchr.c (ASSERT): Likewise.
57691         * tests/test-mbsspn.c (ASSERT): Likewise.
57692         * tests/test-mbsstr1.c (ASSERT): Likewise.
57693         * tests/test-mbsstr2.c (ASSERT): Likewise.
57694         * tests/test-mbsstr3.c (ASSERT): Likewise.
57695         * tests/test-memchr2.c (ASSERT): Likewise.
57696         * tests/test-memmem.c (ASSERT): Likewise.
57697         * tests/test-open.c (ASSERT): Likewise.
57698         * tests/test-printf-frexp.c (ASSERT): Likewise.
57699         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57700         * tests/test-printf-posix.c (ASSERT): Likewise.
57701         * tests/test-quotearg.c (ASSERT): Likewise.
57702         * tests/test-rbtree_list.c (ASSERT): Likewise.
57703         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57704         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57705         * tests/test-round1.c (ASSERT): Likewise.
57706         * tests/test-roundf1.c (ASSERT): Likewise.
57707         * tests/test-roundl.c (ASSERT): Likewise.
57708         * tests/test-signbit.c (ASSERT): Likewise.
57709         * tests/test-sleep.c (ASSERT): Likewise.
57710         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57711         * tests/test-snprintf.c (ASSERT): Likewise.
57712         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57713         * tests/test-stat-time.c (ASSERT): Likewise.
57714         * tests/test-strcasestr.c (ASSERT): Likewise.
57715         * tests/test-strerror.c (ASSERT): Likewise.
57716         * tests/test-striconv.c (ASSERT): Likewise.
57717         * tests/test-striconveh.c (ASSERT): Likewise.
57718         * tests/test-striconveha.c (ASSERT): Likewise.
57719         * tests/test-strsignal.c (ASSERT): Likewise.
57720         * tests/test-strstr.c (ASSERT): Likewise.
57721         * tests/test-strtod.c (ASSERT): Likewise.
57722         * tests/test-trunc1.c (ASSERT): Likewise.
57723         * tests/test-trunc2.c (ASSERT): Likewise.
57724         * tests/test-truncf1.c (ASSERT): Likewise.
57725         * tests/test-truncf2.c (ASSERT): Likewise.
57726         * tests/test-truncl.c (ASSERT): Likewise.
57727         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57728         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57729         * tests/test-vasnprintf.c (ASSERT): Likewise.
57730         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57731         * tests/test-vasprintf.c (ASSERT): Likewise.
57732         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57733         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57734         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57735         * tests/test-vsnprintf.c (ASSERT): Likewise.
57736         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57737         * tests/test-wcwidth.c (ASSERT): Likewise.
57738         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57739         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57740         * tests/test-xvasprintf.c (ASSERT): Likewise.
57741         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57742         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57743         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57744         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57745         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57746         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57747         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57748         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57749         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57750         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57751         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57752         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57753         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57754         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57755         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57756         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57757         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57758         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57759         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57760         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57761         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57762         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57763         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57764         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57765         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57766         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57767         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57768         * tests/unictype/test-combining.c (ASSERT): Likewise.
57769         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57770         * tests/unictype/test-digit.c (ASSERT): Likewise.
57771         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57772         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57773         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57774         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57775         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57776         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57777         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57778         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57779         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57780         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57781         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57782         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57783         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57784         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57785         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57786         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57787         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57788         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57789         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57790         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57791         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57792         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57793         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57794         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57795         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57796         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57797         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57798         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57799         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57800         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57801         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57802         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57803         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57804         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57805         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57806         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57807         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57808         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57809         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57810         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57811         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57812         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57813         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57814         Reported by Eric Blake.
57815
57816 2008-04-11  Bruno Haible  <bruno@clisp.org>
57817
57818         * lib/wchar.in.h: Tweak comment.
57819
57820 2008-04-11  Bruno Haible  <bruno@clisp.org>
57821
57822         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57823         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57824         gl_COMMON.
57825         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57826
57827 2008-04-11  Bruno Haible  <bruno@clisp.org>
57828
57829         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57830
57831 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57832
57833         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57834         of attempting to use non-existing /dev/*random.  Based on patch
57835         from Adam Strzelecki <ono@java.pl> in
57836         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57837
57838 2008-04-08  Bruno Haible  <bruno@clisp.org>
57839
57840         Add tentative support for emx+gcc.
57841         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57842         * lib/fpurge.c (fpurge): Likewise.
57843         * lib/freadable.c (freadable): Likewise.
57844         * lib/freadahead.c (freadahead): Likewise.
57845         * lib/freading.c (freading): Likewise.
57846         * lib/freadptr.c (freadptr): Likewise.
57847         * lib/freadseek.c (freadptrinc): Likewise.
57848         * lib/fseeko.c (rpl_fseeko): Likewise.
57849         * lib/fseterr.c (fseterr): Likewise.
57850         * lib/fwritable.c (fwritable): Likewise.
57851         * lib/fwriting.c (fwriting): Likewise.
57852         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57853
57854 2008-04-09  Eric Blake  <ebb9@byu.net>
57855
57856         Avoid some autoconf warnings.
57857         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57858         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57859         * m4/afs.m4 (gl_AFS): Likewise.
57860         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57861         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57862         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57863         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57864         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57865         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57866         (AC_CHECK_DECLS_ONCE): Likewise.
57867         Rename file...
57868         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57869         gnulib-tool requires autoconf 2.59 or better.
57870         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57871
57872 2008-04-08  Eric Blake  <ebb9@byu.net>
57873
57874         Use 'git describe --match' if present (added in git 1.5.5).
57875         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57876         if possible.
57877
57878 2008-04-08  Bruno Haible  <bruno@clisp.org>
57879
57880         Add tentative support for OpenServer.
57881         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57882         _ptr, _cnt.
57883         * lib/fpurge.c (fpurge): Likewise.
57884         * lib/freadable.c (freadable): Likewise.
57885         * lib/freadahead.c (freadahead): Likewise.
57886         * lib/freading.c (freading): Likewise.
57887         * lib/freadptr.c (freadptr): Likewise.
57888         * lib/freadseek.c (freadptrinc): Likewise.
57889         * lib/fseeko.c (rpl_fseeko): Likewise.
57890         * lib/fseterr.c (fseterr): Likewise.
57891         * lib/fwritable.c (fwritable): Likewise.
57892         * lib/fwriting.c (fwriting): Likewise.
57893         Reported by Roger Cornelius <rac@tenzing.org> and
57894         Brian K. White <brian@aljex.com>.
57895
57896 2008-04-06  Jim Meyering  <meyering@redhat.com>
57897
57898         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57899
57900 2008-04-06  Bruno Haible  <bruno@clisp.org>
57901
57902         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57903         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57904         * tests/test-printf-posix.sh: Likewise.
57905         * tests/test-vfprintf-posix.sh: Likewise.
57906         * tests/test-vprintf-posix.sh: Likewise.
57907         * tests/test-xprintf-posix.sh: Likewise.
57908
57909 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57910
57911         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57912         hide error from 'ls', needed on OS/2.
57913         Report by Elbert Pol <elbert.pol@gmail.com>.
57914
57915 2008-04-04  Eric Blake  <ebb9@byu.net>
57916
57917         Make test-fseeko.c failures meaningful.
57918         * tests/test-fseeko.c: Print line number on failure.
57919         * tests/test-fseek.c: Likewise.
57920         Reported by Nelson H. F. Beebe.
57921
57922         Improve strtod bug detection check.
57923         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57924         required for Solaris 10.
57925         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57926
57927 2008-04-04  Bruno Haible  <bruno@clisp.org>
57928
57929         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57930         by m4/setenv.m4.
57931
57932 2008-04-03  Eric Blake  <ebb9@byu.net>
57933
57934         Ensure sane .version contents.
57935         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57936         version string.
57937         * build-aux/git-version-gen: Improve documentation.
57938
57939         Make GNU make output nicer.
57940         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57941         MAKECMDGOALS to enforce message for all command line targets.  Set
57942         srcdir for use in maint.mk.
57943
57944         Another maintainer tweak.
57945         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57946         a target that regenerates version.
57947
57948 2008-04-03  Jim Meyering  <meyering@redhat.com>
57949
57950         vc-list-files: don't cause coreutils "make po-check" failure
57951         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57952
57953 2008-04-03  Eric Blake  <ebb9@byu.net>
57954
57955         Allow VPATH usage of vc-list-files.
57956         * build-aux/vc-list-files (scriptversion): Add timestamp.
57957         (options): Add --help, --version, -C.
57958         (CVS): Support installed cvsu.
57959
57960 2008-04-02  Bruno Haible  <bruno@clisp.org>
57961
57962         Avoid some "statement with no effect" warnings from gcc.
57963         * tests/test-wctype.c (main): Explicitly ignore unused values.
57964         Reported by Jim Meyering.
57965
57966 2008-04-02  Jim Meyering  <meyering@redhat.com>
57967
57968         Avoid some warnings from "gcc -Wshadow".
57969         * tests/test-frexp.c (exp): Define to a different identifier.
57970         * tests/test-frexpl.c (exp): Likewise.
57971
57972 2008-04-03  Jim Meyering  <meyering@redhat.com>
57973
57974         bootstrap: remove dangling *.[ch] symlinks from lib
57975         * build-aux/bootstrap [dangling symlink removal]: Move find's
57976         -depth option to precede all others, to avoid a warning.
57977         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57978
57979 2008-04-02  Bruno Haible  <bruno@clisp.org>
57980
57981         Avoid some warnings from "gcc -Wshadow".
57982         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57983         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57984         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57985         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57986         Reported by Jim Meyering.
57987
57988 2008-04-01  Bruno Haible  <bruno@clisp.org>
57989
57990         Fix test to work on IRIX 6.5 with cc.
57991         * tests/test-math.c (numeric_equal): New function.
57992         (main): Use it.
57993
57994 2008-04-01  Bruno Haible  <bruno@clisp.org>
57995
57996         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57997
57998 2008-04-01  Bruno Haible  <bruno@clisp.org>
57999
58000         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
58001         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58002         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
58003         (Depends-on): Remove math.
58004
58005         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
58006         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58007         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
58008         (Depends-on): Remove math.
58009
58010         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
58011         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58012         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
58013         (Depends-on): Remove math.
58014         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
58015         (Depends-on): Remove math.
58016
58017         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
58018         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58019         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
58020         (Depends-on): Remove math.
58021         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
58022         (Depends-on): Remove math.
58023
58024         * tests/test-round1.c: Include nan.h.
58025         (main): Use NaNd instead of NAN.
58026         * modules/round-tests (Files): Add tests/nan.h.
58027
58028         * tests/test-trunc1.c: Include nan.h.
58029         (main): Use NaNd instead of NAN.
58030         * modules/trunc-tests (Files): Add tests/nan.h.
58031
58032         * tests/test-roundf1.c: Include nan.h.
58033         (main): Use NaNf instead of NAN.
58034         * modules/roundf-tests (Files): Add tests/nan.h.
58035
58036         * tests/test-truncf1.c: Include nan.h.
58037         (main): Use NaNf instead of NAN.
58038         * modules/truncf-tests (Files): Add tests/nan.h.
58039
58040         * tests/test-ceilf1.c: Include nan.h.
58041         (main): Use NaNf instead of NAN.
58042         * modules/ceilf-tests (Files): Add tests/nan.h.
58043
58044         * tests/test-floorf1.c: Include nan.h.
58045         (main): Use NaNf instead of NAN.
58046         * modules/floorf-tests (Files): Add tests/nan.h.
58047
58048         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
58049         (main): Use NaNf instead of NAN.
58050         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
58051
58052         * tests/test-isnand.c: Include nan.h instead of <math.h>.
58053         (main): Use NaNd instead of NAN.
58054         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
58055
58056         * tests/test-frexp.c: Include nan.h.
58057         (main): Use NaNd instead of NAN.
58058         * modules/frexp-tests (Files): Add tests/nan.h.
58059
58060         * lib/isnan.c: Don't include <math.h>.
58061         (FUNC): Don't use NAN macro.
58062         * modules/isnand-nolibm (Depends-on): Remove math.
58063         * modules/isnanf-nolibm (Depends-on): Remove math.
58064         * modules/isnanl (Depends-on): Remove math.
58065         * modules/isnanl-nolibm (Depends-on): Remove math.
58066
58067         * tests/nan.h: New file.
58068
58069 2008-04-01  Eric Blake  <ebb9@byu.net>
58070
58071         Fix typos.
58072         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
58073         values to be the right type.
58074
58075         For now, cater to gnulib strtod inaccuracies.
58076         * tests/test-strtod.c (main): Allow 1-ulp error on expected
58077         fractional results.  While not as nice from a QoI perspective, it
58078         is a quicker patch than correctly implementing decimal to binary
58079         rounding.
58080
58081 2008-03-31  Eric Blake  <ebb9@byu.net>
58082
58083         Guarantee a definition of NAN.
58084         * lib/math.in.h (NAN): Define if missing.
58085         * tests/test-math.c (main): Test it.
58086         * doc/posix-headers/math.texi (math.h): Document this.
58087         * lib/isnan.c (rpl_isnand): Use it.
58088         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
58089         * tests/test-floorf1.c (NaN): Likewise.
58090         * tests/test-frexp.c (NaN): Likewise.
58091         * tests/test-isnand.c (NaN): Likewise.
58092         * tests/test-isnanf.c (NaN): Likewise.
58093         * tests/test-round1.c (NaN): Likewise.
58094         * tests/test-roundf1.c (NaN): Likewise.
58095         * tests/test-snprintf-posix.h (NaN): Likewise.
58096         * tests/test-sprintf-posix.h (NaN): Likewise.
58097         * tests/test-trunc1.c (NaN): Likewise.
58098         * tests/test-truncf1.c (NaN): Likewise.
58099         * tests/test-vasnprintf-posix.c (NaN): Likewise.
58100         * tests/test-vasprintf-posix.c (NaN): Likewise.
58101         * modules/isnand-nolibm (Depends-on): Add math.
58102         * modules/isnanf-nolibm (Depends-on): Likewise.
58103         * modules/isnanl (Depends-on): Likewise.
58104         * modules/isnanl-nolibm (Depends-on): Likewise.
58105         * modules/snprintf-posix-tests (Depends-on): Likewise.
58106         * modules/sprintf-posix-tests (Depends-on): Likewise.
58107         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
58108         * modules/vsprintf-posix-tests (Depends-on): Likewise.
58109         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
58110         * modules/vasprintf-posix-tests (Depends-on): Likewise.
58111
58112 2008-03-31  Bruno Haible  <bruno@clisp.org>
58113
58114         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
58115         * doc/posix-functions/strtod.texi: Likewise.
58116
58117 2008-03-31  Bruno Haible  <bruno@clisp.org>
58118
58119         * tests/test-strtod.c (main): Don't use C99 syntax.
58120
58121 2008-03-31  Bruno Haible  <bruno@clisp.org>
58122
58123         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
58124         Reported by Eric Blake.
58125
58126 2008-03-31  Jim Meyering  <meyering@redhat.com>
58127
58128         Don't compare actual signbit return values.
58129         * tests/test-strtod.c (main): Rather, compare only their
58130         zero/non-zero nature.
58131
58132 2008-03-31  Eric Blake  <ebb9@byu.net>
58133
58134         More strtod documentation.
58135         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58136         failures as distinct bugs.
58137
58138 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58139
58140         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58141         Problem reported by Erik Benada in
58142         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58143
58144 2008-03-30  Bruno Haible  <bruno@clisp.org>
58145
58146         * tests/test-strtod.c: Add comments about which assertion fails on which
58147         platform.
58148         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58149
58150 2008-03-30  Eric Blake  <ebb9@byu.net>
58151
58152         Test signbit behavior on zeros.
58153         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58154         (test_signbitd, test_signbitl): Likewise.
58155
58156         More strtod touchups.
58157         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58158         sign of negative underflow, for now.  Use .5, not .1.
58159         * doc/posix-functions/strtod.texi (strtod): Mention these
58160         limitations.
58161         Reported by Jim Meyering.
58162
58163 2008-03-30  Bruno Haible  <bruno@clisp.org>
58164
58165         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58166         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58167
58168 2008-03-30  Bruno Haible  <bruno@clisp.org>
58169
58170         Avoid failure when attempting to return empty iconv results on some
58171         platforms.
58172         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58173         allocation, don't report ENOMEM when the resulting string is empty.
58174
58175 2008-03-30  Bruno Haible  <bruno@clisp.org>
58176
58177         Fix buffer overrun.
58178         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58179         Don't consider the width for tmp_length. Check count against tmp_length
58180         before doing the padding. Ensure enough allocation during padding.
58181
58182 2008-03-30  Eric Blake  <ebb9@byu.net>
58183
58184         strtod touchups.
58185         * lib/strtod.c (strtod): Avoid compiler warnings.
58186         Reported by Jim Meyering.
58187
58188 2008-03-30  Bruno Haible  <bruno@clisp.org>
58189
58190         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58191         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58192         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58193         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58194         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58195         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58196         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58197         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58198
58199         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58200         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58201         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58202         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58203         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58204         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58205         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58206         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58207
58208         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58209         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58210         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58211         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58212         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58213         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58214         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58215         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58216
58217         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58218         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58219
58220         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58221         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58222
58223         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58224         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58225
58226         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58228         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58229
58230         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58231         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58232         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58233
58234         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58236         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58237
58238         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58239         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58240         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58241
58242         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58243         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58244         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58245         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58246         (Depends-on): Add EOVERFLOW.
58247         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58248         (Depends-on): Add EOVERFLOW.
58249         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58250         (Depends-on): Add EOVERFLOW.
58251         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58252         (Depends-on): Add EOVERFLOW.
58253         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58254         (Depends-on): Add EOVERFLOW.
58255         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58256         (Depends-on): Add EOVERFLOW.
58257         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58258         (Depends-on): Add EOVERFLOW.
58259         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58260         (Depends-on): Add EOVERFLOW.
58261
58262         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58264         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58265
58266         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58267         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58268         * modules/snprintf (Depends-on): Add EOVERFLOW.
58269
58270         * lib/poll.c (EOVERFLOW): Remove fallback.
58271         * modules/poll (Depends-on): Add EOVERFLOW.
58272
58273         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58274         * modules/getugroups (Depends-on): Add EOVERFLOW.
58275
58276         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58277         * modules/getdelim (Depends-on): Add EOVERFLOW.
58278
58279         * lib/ftell.c (EOVERFLOW): Remove fallback.
58280         * modules/ftell (Depends-on): Add EOVERFLOW.
58281
58282         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58283         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58284         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58285
58286         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58287
58288         * modules/EOVERFLOW-tests: New file.
58289         * tests/test-EOVERFLOW.c: New file.
58290
58291         * modules/EOVERFLOW: New file.
58292         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58293
58294 2008-03-30  Bruno Haible  <bruno@clisp.org>
58295
58296         Fix bug introduced on 2007-06-10.
58297         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58298         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58299
58300 2008-03-30  Bruno Haible  <bruno@clisp.org>
58301
58302         Improve freadseek's efficiency after ungetc.
58303         * lib/freadseek.c: Include freadahead.h.
58304         (freadptrinc): New function, extracted from freadseek.
58305         (freadseek): Use it in a loop. Use freadahead to determine the number
58306         of loop iterations.
58307         * modules/freadseek (Depends-on): Add freadahead.
58308         (configure.ac): Require AC_C_INLINE.
58309
58310 2008-03-30  Bruno Haible  <bruno@clisp.org>
58311
58312         * lib/freadseek.c (freadseek): Don't ignore the return value of
58313         freadptr.
58314
58315 2008-03-29  Eric Blake  <ebb9@byu.net>
58316
58317         Add hex float support.
58318         * modules/strtod (Depends-on): Add c-ctype.
58319         (Link): Mention POW_LIB.
58320         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58321         whitespace between 'e' and exponent.
58322         * tests/test-strtod.c (main): Enable hex float tests.
58323         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58324         now provides.
58325
58326         Document various strtod bugs, with some fixes.
58327         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58328         "-0x", "inf", "nan", and hex constants.
58329         * doc/posix-functions/atof.texi (atof): Likewise.
58330         * modules/stdlib (Makefile.am): Support strtod.
58331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58332         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58333         detect additional strtod bugs.
58334         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58335         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58336         bool where appropriate.  Parse 'inf' and 'nan'.
58337         * tests/test-strtod.c: New file.
58338         * modules/strtod (Depends-on): Add stdbool, stdlib.
58339         (configure.ac): Turn on module indicator.
58340         * modules/strtod-tests: New module.
58341
58342 2008-03-29  Eric Blake  <ebb9@byu.net>
58343
58344         Fix ftell on mingw.
58345         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58346         * modules/ftell-tests (Depends-on): Add binary-io.
58347         * modules/ftello-tests (Depends-on): Likewise.
58348         * tests/test-ftell.c (main): Enhance test to cover behavior after
58349         ungetc.  Enforce binary mode.
58350         * tests/test-ftello.c (main): Likewise.
58351
58352         Pass test-freadseek on cygwin.
58353         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58354         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58355         ungetc buffer.
58356
58357         * tests/test-fflush2.c (main): Fix typo.
58358
58359 2008-03-29  Bruno Haible  <bruno@clisp.org>
58360
58361         * tests/test-fflush2.c (main): Temporarily disable the contents of
58362         this test.
58363         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58364         Reported by Eric Blake.
58365
58366 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58367
58368         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58369         (GC_SHA224_DIGEST_SIZE): Add.
58370
58371         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58372         (gc_hash_digest_length): Likewise.
58373         (gc_hash_buffer): Likewise.
58374
58375 2008-03-25  Bruno Haible  <bruno@clisp.org>
58376
58377         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58378         detail which gettext release to use.
58379         Reported by Simon Josefsson.
58380
58381 2008-03-26  Jim Meyering  <meyering@redhat.com>
58382
58383         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58384         * modules/gnumakefile (clean-GNUmakefile): Also, use
58385         test ... && ... || : syntax rather than if-then ... fi.
58386
58387         gnumakefile: Don't double-quote-expand $(VPATH) value.
58388         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58389
58390 2008-03-24  Eric Blake  <ebb9@byu.net>
58391
58392         Alter GNUmakefile to install into top directory.
58393         * modules/maintainer-makefile: Split, and add dependency...
58394         * modules/gnumakefile: to this new module.
58395         * build-aux/GNUmakefile: Move...
58396         * top/GNUmakefile: ...here.
58397         * build-aux/maint.mk: Move...
58398         * top/maint.mk: ...here.
58399         * MODULES.html.sh (Support for maintaining...): Document new
58400         module.
58401
58402 2008-03-23  Bruno Haible  <bruno@clisp.org>
58403
58404         * gnulib-tool: New options --vc-files, --no-vc-files.
58405         (func_usage): Document them.
58406         (vc_files): New variable.
58407         (func_import): Consider vc_files.
58408         (func_create_testdir): Set vc_files to empty.
58409         Suggested by Jim Meyering and Karl Berry.
58410
58411 2008-03-23  Bruno Haible  <bruno@clisp.org>
58412
58413         Fix regex compilation error on HP-UX 11.
58414         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58415         * modules/regex (Files): Add m4/mbstate_t.m4.
58416         Reported by Ton Voon <ton.voon@altinity.com>.
58417
58418 2008-03-23  Bruno Haible  <bruno@clisp.org>
58419
58420         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58421
58422 2008-03-23  Eric Blake  <ebb9@byu.net>
58423             Bruno Haible  <bruno@clisp.org>
58424
58425         Install files from top/ in the destination directory.
58426         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58427         augmentation also for the files from top/.
58428         (func_import, func_create_testdir): Rewrite file names:
58429         top/filename -> filename.
58430
58431 2008-03-23  Bruno Haible  <bruno@clisp.org>
58432
58433         Tweak "gnulib --version" output.
58434         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58435
58436 2008-03-23  Bruno Haible  <bruno@clisp.org>
58437
58438         Tweak "gnulib --version" output.
58439         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58440         rather than contents of ChangeLog, when possible.
58441
58442 2008-03-21  Eric Blake  <ebb9@byu.net>
58443
58444         More --version tweaks.
58445         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58446         date of last ChangeLog entry.
58447
58448 2008-03-21  Jim Meyering  <meyering@redhat.com>
58449
58450         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58451
58452 2008-03-20  Eric Blake  <ebb9@byu.net>
58453
58454         VPATH fix.
58455         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58456
58457 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58458
58459         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58460         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58461
58462 2008-03-20  Eric Blake  <ebb9@byu.net>
58463
58464         Sync GNUmakefile with coreutils.
58465         * build-aux/GNUmakefile (have-Makefile): Rename...
58466         (_have-Makefile): ...to this, for namespace consideration.
58467         (GNUmakefile.cfg): Include, if present.
58468         (_autoreconf): Define a default.
58469         (_is-dist-target): New rule for rebuilds to pick up intra-release
58470         version.
58471         (maint-cfg.mk): Rename...
58472         (cfg.mk): ...to this.
58473
58474 2008-03-18  Jim Meyering  <meyering@redhat.com>
58475
58476         New script and module: mktempd
58477         * MODULES.html.sh (maint+release support): Add mktempd.
58478         * build-aux/mktempd: New file.
58479         * modules/mktempd: New file.
58480
58481 2008-03-15  Jim Meyering  <meyering@redhat.com>
58482
58483         Undo last change.
58484         * lib/sha1.c, lib/md5.c: 63 != ~63.
58485         Reported by Andreas Schwab.
58486
58487         sha1.c, md5.c: Hoist a redundant expression.
58488         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58489         "ctx->buflen" only once, before calling *_process_block.
58490         * lib/md5.c (md5_process_bytes): Likewise.
58491
58492 2008-03-14  Eric Blake  <ebb9@byu.net>
58493
58494         Bump copyright year in files generated by gnulib-tool.
58495         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58496         gnulib-tool, rather than hard-coding it.
58497
58498         Fix 'gnulib-tool --version' output to work with git.
58499         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58500         (startup): ...here.
58501         (func_version): Use it to invoke git-version-gen, rather than
58502         relying on CVS keyword expansion.  Modernize wording.
58503         (cvsdatestamp, last_checkin_date, version): Kill unused
58504         variables.
58505
58506 2008-03-12  Jim Meyering  <meyering@redhat.com>
58507
58508         Recognize optional cast of the argument to free.
58509         * build-aux/useless-if-before-free: Update regexps.
58510
58511         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58512
58513 2008-03-11  Bruno Haible  <bruno@clisp.org>
58514
58515         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58516         by a single package.
58517         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58518         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58519         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58520         Reported by Sam Steingold <sds@gnu.org>.
58521
58522 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58523
58524         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58525         repositories.
58526
58527 2008-03-11  Bruno Haible  <bruno@clisp.org>
58528
58529         Avoid conflicts between local macro definitions.
58530         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58531         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58532
58533 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58534             Bruno Haible  <bruno@clisp.org>
58535
58536         Make va_copy work with some version of xlc on AIX 5.1.
58537         * lib/stdarg.in.h: New file.
58538         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58539         On AIX, use a <stdarg.h> file substitute.
58540         * modules/stdarg (Files): Add lib/stdarg.in.h.
58541         (Depends-on): Add include_next.
58542         (Makefile.am): Build a stdarg.h substitute if requested.
58543         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58544
58545 2008-03-10  Bruno Haible  <bruno@clisp.org>
58546
58547         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58548         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58549         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58550
58551 2008-03-10  Bruno Haible  <bruno@clisp.org>
58552
58553         * modules/stdlib (Depends-on): Add include_next, remove
58554         absolute-header.
58555
58556 2008-03-09  Bruno Haible  <bruno@clisp.org>
58557
58558         * lib/freadahead.h (freadahead): Document more precisely.
58559         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58560         the sum of both buffer sizes.
58561         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58562         * NEWS: Document the change.
58563
58564 2008-03-09  Bruno Haible  <bruno@clisp.org>
58565
58566         Extend freadptr to return also the buffer size.
58567         * lib/freadptr.h (freadptr): Add sizep argument.
58568         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58569         (freadptr): Add sizep argument. Determine buffer size like freadahead
58570         does.
58571         * tests/test-freadptr.c: Don't include freadahead.h.
58572         (main): Adapt for new calling convention of freadptr.
58573         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58574         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58575         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58576         tests/test-freadptr2.sh.
58577         (Depends): Remove freadahead.
58578         (TESTS): Add test-freadptr2.sh.
58579         (check_PROGRAMS): Add test-freadptr2.
58580
58581 2008-03-09  Bruno Haible  <bruno@clisp.org>
58582
58583         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58584         Report and solution by Simon Josefsson.
58585
58586 2008-03-06  Bruno Haible  <bruno@clisp.org>
58587
58588         Make fflush after ungetc work on BSD platforms.
58589         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58590         * tests/test-fflush2.c: New file.
58591         * tests/test-fflush2.sh: New file.
58592         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58593         tests/test-fflush2.c.
58594         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58595         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58596
58597 2008-03-06  Eric Blake  <ebb9@byu.net>
58598
58599         Likewise for ftello.
58600         * modules/ftello (Dependencies): Add extensions.
58601         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58602
58603 2008-03-06  Bruno Haible  <bruno@clisp.org>
58604
58605         * modules/fseeko (Dependencies): Add extensions.
58606         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58607         Needed on glibc systems.
58608
58609 2008-03-06  Bruno Haible  <bruno@clisp.org>
58610
58611         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58612         email address.
58613         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58614
58615 2008-03-06  Bruno Haible  <bruno@clisp.org>
58616
58617         * users.txt: Add libgnupdf.
58618
58619 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58620
58621         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58622         (Header File Substitutes, Function Substitutes,
58623         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58624         (Build robot for gnulib): Fix typo.
58625
58626 2008-03-06  Bruno Haible  <bruno@clisp.org>
58627
58628         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58629         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58630
58631 2008-03-06  Bruno Haible  <bruno@clisp.org>
58632
58633         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58634         * doc/gnulib.texi: Include it.
58635
58636 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58637
58638         * modules/func (License): Change license to unlimited; there was
58639         no LGPL parts in the module anyway.
58640
58641 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58642
58643         * modules/__func__: Renamed to modules/func.
58644         * modules/__func__-tests: Renamed to modules/func-tests.
58645         * tests/test-__func__.c: Renamed to tests/test-func.c.
58646         * m4/__func__.m4: Renamed to m4/func.m4.
58647         * doc/gnulib.texi (__func__): Section renamed to func.
58648         Suggested by Eric Blake <ebb9@byu.net>.
58649
58650 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58651
58652         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58653         about __func__.  Make example self-contained.  Suggested by Eric
58654         Blake <ebb9@byu.net>.
58655
58656         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58657         Suggested by Eric Blake <ebb9@byu.net>.
58658
58659 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58660
58661         * modules/__func__: New file.
58662         * modules/__func__-tests: New file.
58663         * tests/test-__func__.c: New file.
58664         * m4/__func__.m4: New file.
58665         * doc/gnulib.texi (__func__): Document __func__ module.
58666
58667 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58668
58669         * modules/byteswap (License): Re-license as LGPLv2+.
58670
58671 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58672
58673         * doc/Makefile: Add pdf target.
58674
58675 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58676
58677         * modules/inline (License): Use 'unlimited', since there are only
58678         *.m4 files in this module.
58679
58680 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58681             Bruno Haible  <bruno@clisp.org>
58682
58683         Add support for HP C 7.1 on OpenVMS 8.3.
58684         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58685
58686 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58687
58688         Update VMS specifics.
58689         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58690
58691 2008-03-02  Jim Meyering  <meyering@redhat.com>
58692
58693         Remove the last dependency on the "free" module.
58694         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58695         Reported by Bob Proulx.
58696
58697         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58698
58699         Remove useless "if" tests before free.  Deprecate "free" module.
58700         * doc/posix-functions/free.texi: Mention that this
58701         module is no longer useful.
58702         * modules/free (Notice): Say this module is obsolete.
58703         * modules/readutmp (Depends-on): Remove free.
58704         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58705         * lib/putenv.c (putenv): Likewise.
58706         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58707         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58708         * tests/test-c-strcasestr.c (main): Likewise.
58709         * tests/test-c-strstr.c (main): Likewise.
58710         * tests/test-mbscasestr1.c (main): Likewise.
58711         * tests/test-mbscasestr2.c (main): Likewise.
58712         * tests/test-mbsstr1.c (main): Likewise.
58713         * tests/test-mbsstr2.c (main): Likewise.
58714         * tests/test-memmem.c (main): Likewise.
58715         * tests/test-strcasestr.c (main): Likewise.
58716         * tests/test-striconv.c (main): Likewise.
58717         * tests/test-striconveh.c (main): Likewise.
58718         * tests/test-striconveha.c (main): Likewise.
58719         * tests/test-strstr.c (main): Likewise.
58720
58721         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58722
58723         bootstrap: sync from coreutils again
58724         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58725
58726 2008-03-01  Jim Meyering  <meyering@redhat.com>
58727
58728         bootstrap: sync from coreutils
58729         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58730         also when the target doesn't exist.
58731
58732 2008-03-01  Eric Blake  <ebb9@byu.net>
58733
58734         Fix bugs in last patch.
58735         * lib/memchr2.c (memchr2): Fix typo.
58736         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58737         extension.
58738         Reported by Bruce Korb.
58739
58740         New module 'memchr2'.
58741         * modules/memchr2: New file.
58742         * modules/memchr2-tests: Likewise.
58743         * lib/memchr2.h: Likewise.
58744         * lib/memchr2.c: Likewise, based on memchr.c.
58745         * tests/test-memchr2.c: New test.
58746         * MODULES.html.sh (String handling): Add memchr2.
58747
58748 2008-02-29  Bruno Haible  <bruno@clisp.org>
58749
58750         * modules/freadseek-tests: New file.
58751         * tests/test-freadseek.sh: New file.
58752         * tests/test-freadseek.c: New file.
58753
58754         New module 'freadseek'.
58755         * modules/freadseek: New file.
58756         * lib/freadseek.h: New file.
58757         * lib/freadseek.c: New file.
58758         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58759
58760 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58761
58762         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58763         wydawca.
58764
58765         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58766         program_invocation_name and program_invocation_short_name are
58767         present.
58768
58769 2008-02-28  Bruno Haible  <bruno@clisp.org>
58770
58771         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58772         * tests/test-freadptr.sh: Also test non-seekable stdin.
58773
58774 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58775
58776         * build-aux/bootstrap (source_base, m4_base)
58777         (doc_base, tests_base): New variables.
58778         (gnulib_tool_options): Do not hardcode base directories, use
58779         the above variables instead.
58780
58781 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58782
58783         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58784
58785 2008-02-28  Bruno Haible  <bruno@clisp.org>
58786
58787         * modules/freadptr-tests: New file.
58788         * tests/test-freadptr.sh: New file.
58789         * tests/test-freadptr.c: New file.
58790
58791         New module 'freadptr'.
58792         * modules/freadptr: New file.
58793         * lib/freadptr.h: New file.
58794         * lib/freadptr.c: New file.
58795         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58796
58797 2008-02-26  Karl Berry  <karl@freefriends.org>
58798
58799         Sync from Libtool:
58800         * libltdl/argz.c (argz_add, argz_count): New functions.
58801         * libltdl/argz.in.h: Declare them.
58802         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58803
58804 2008-02-22  Bruno Haible  <bruno@clisp.org>
58805
58806         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58807         is a pointer type.  Needed for HP-UX 10.
58808         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58809         * doc/posix-functions/gmtime_r.texi: Likewise.
58810         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58811
58812 2008-02-24  Bruno Haible  <bruno@clisp.org>
58813
58814         * modules/environ-tests: New file.
58815         * tests/test-environ.c: New file.
58816
58817         New module 'environ'.
58818         * modules/environ: New file.
58819         * lib/unistd.in.h (environ): New declaration.
58820         * m4/environ.m4: New file.
58821         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58822         after use.
58823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58824         HAVE_DECL_ENVIRON.
58825         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58826         HAVE_DECL_ENVIRON.
58827         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58828         wrong claim that 'environ' is missing on some systems.
58829         * modules/execute (Depends-on): Add environ.
58830         * lib/execute.c (environ): Remove fallback declaration.
58831         * modules/pipe (Depends-on): Add environ.
58832         * lib/pipe.c (environ): Remove fallback declaration.
58833         * modules/setenv (Depends-on): Add environ.
58834         * lib/setenv.c (environ): Remove fallback declaration.
58835         * modules/unsetenv (Depends-on): Add environ.
58836         * lib/unsetenv.c (environ): Remove fallback declaration.
58837         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58838         m4/environ.m4.
58839         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58840         (gl_PREREQ_UNSETENV): Likewise.
58841
58842 2008-02-24  Bruno Haible  <bruno@clisp.org>
58843
58844         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58845
58846 2008-02-20  Bob Proulx  <bob@proulx.com>
58847
58848         Enable use of older two part flavor 'git describe'.
58849         * build-aux/git-version-gen: If using the older two part flavor of
58850         git version then recreate the third part now present in the
58851         newer three part flavor of git describe.
58852
58853 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58854
58855         * lib/fts.c (fts_build): Typo correction to comment.
58856
58857 2008-02-17  Bruno Haible  <bruno@clisp.org>
58858
58859         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58860         generating no-op conflicts.
58861
58862 2008-02-17  Bruno Haible  <bruno@clisp.org>
58863
58864         Speed up by 10%.
58865         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58866         result_entries, rather than an index-based loop.
58867
58868 2008-02-17  Bruno Haible  <bruno@clisp.org>
58869
58870         Speed up by 25%.
58871         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58872         'hashcode_cached'.
58873         (entry_create): New function.
58874         (entry_hashcode): Use the cached hashcode if possible.
58875         (read_changelog_file, try_split_merged_entry): Use entry_create.
58876
58877 2008-02-17  Bruno Haible  <bruno@clisp.org>
58878
58879         Speed up from O(n^2) to O(n) for long ChangeLog files.
58880         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58881         (read_changelog_file): Change implementation of entries_reversed list
58882         to rbtreehash.
58883         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58884
58885 2008-02-17  Bruno Haible  <bruno@clisp.org>
58886
58887         New option --split-merged-entry.
58888         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58889         (find_paragraph_end, try_split_merged_entry): New functions.
58890         (long_options): Add option --split-merged-entry.
58891         (usage): Document option --split-merged-entry.
58892         (main): Implement option --split-merged-entry.
58893         Reported by Eric Blake.
58894
58895 2008-02-17  Bruno Haible  <bruno@clisp.org>
58896
58897         * lib/git-merge-changelog.c: Include c-strstr.h.
58898         (main): Support the "git pull --rebase" situation.
58899         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58900         Reported by Eric Blake.
58901
58902 2008-02-16  Eric Blake  <ebb9@byu.net>
58903
58904         Avoid doubling \ in common case of "c-maybe" quoting style.
58905         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58906         eliding outer quotes.
58907         * lib/quotearg.h: Document this.
58908         * tests/test-quotearg.c (result_strings, inputs, results_g)
58909         (flag_results, locale_results): Test it by adding a new string to
58910         each test group.
58911         (compare_strings): Test new string.
58912
58913 2008-02-13  Eric Blake  <ebb9@byu.net>
58914
58915         Avoid trigraph quoting in default output.
58916         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58917         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58918         unless explicitly requested.
58919         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58920
58921 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58922
58923         Don't rely on signed integer overflowing to negative value.
58924         * lib/getugroups.c (getugroups): Include <limits.h>.
58925         Instead, compare against INT_MAX, and increment only if the test passes.
58926
58927 2008-02-13  Jim Meyering  <meyering@redhat.com>
58928         and Eric Blake  <ebb9@byu.net>
58929
58930         Avoid shadowing warning and compile errors on Linux.
58931         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58932         forwarding macros on Linux.
58933         (dcgettext): Define a stub, for Linux.
58934         (results_g, main): Avoid warnings.
58935
58936 2008-02-12  Eric Blake  <ebb9@byu.net>
58937
58938         Silence warning in last patch.
58939         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58940
58941         Quotearg part 4: add tests, fix c-maybe colon quoting.
58942         * lib/quotearg.h: Improve documentation.
58943         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58944         escapes when adding outer quotes.  When quoting trigraphs, use
58945         valid C notation.  When quoting NUL, omit extra characters if next
58946         character is not digit.  Alter prototype.
58947         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58948         callers.
58949         * modules/quotearg-tests: New module.
58950         * tests/test-quotearg.c: New test.
58951
58952 2008-02-07  Eric Blake  <ebb9@byu.net>
58953
58954         Quotearg part 3: add flag to control outer quote elision.
58955         * lib/quotearg.h (c_maybe_quoting_style): New style.
58956         (enum quoting_flags): Better documentation of flags.
58957         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58958         c-maybe style.
58959         (quotearg_buffer_restyled): Handle new flag to elide outer
58960         quotes.
58961
58962         Quotearg part 2: add flag that can control NUL elision.
58963         * lib/quotearg.h (set_quoting_flags): New prototype.
58964         * lib/quotearg.c (struct quoting_options): Add flag field.
58965         (set_quoting_flags): New function.
58966         (quotearg_buffer_restyled): Add flags parameter.
58967         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58968         (quotearg_n_options): Set the flag, since length cannot be
58969         returned.
58970         (quoting_options_from_style): Default flags correctly.
58971
58972         Quotearg part 1: more wrappers, restore quotearg_char state.
58973         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58974         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58975         (quotearg_colon_mem): New wrappers.
58976         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58977         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58978         functions.
58979         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58980         (quotearg_colon_mem): New functions.
58981
58982 2008-02-11  Bruno Haible  <bruno@clisp.org>
58983
58984         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58985         library in the current directory: it does not work with parallel make.
58986         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58987
58988 2008-02-11  Bruno Haible  <bruno@clisp.org>
58989
58990         * .gitattributes: New file.
58991
58992 2008-02-11  Jim Meyering  <meyering@redhat.com>
58993
58994         useless-if-before-free: Fix reversed exit values.
58995         * build-aux/useless-if-before-free: Use correct values
58996         for EXIT_MATCH and EXIT_NO_MATCH.
58997
58998         * build-aux/useless-if-before-free: Close stdout carefully.
58999
59000 2008-02-10  Bruno Haible  <bruno@clisp.org>
59001
59002         New module 'git-merge-changelog'.
59003         * modules/git-merge-changelog: New file.
59004         * lib/git-merge-changelog.c: New file.
59005
59006 2008-02-10  Jim Meyering  <meyering@redhat.com>
59007
59008         useless-if-before-free: New option: --list (-l).
59009
59010         useless-if-before-free: Don't exit immediately upon open failure.
59011         * build-aux/useless-if-before-free: Exit 2 for errors.
59012         Upon failure to open a file, don't exit immediately.
59013         Rather, just warn and continue with any remaining files.
59014
59015 2008-02-10  Bruno Haible  <bruno@clisp.org>
59016
59017         New abstract list operation 'node_set_value'.
59018         * lib/gl_list.h (gl_list_node_set_value): New function.
59019         (struct gl_list_implementation): New field node_set_value.
59020         * lib/gl_list.c (gl_list_node_set_value): New function.
59021         * lib/gl_array_list.c (gl_array_node_set_value): New function.
59022         (gl_array_list_implementation): Update.
59023         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
59024         (gl_carray_list_implementation): Update.
59025         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
59026         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59027         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59028         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
59029         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59030         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59031         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59032         Update.
59033         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59034         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
59035         (gl_sublist_list_implementation): Update.
59036
59037 2008-02-10  Bruno Haible  <bruno@clisp.org>
59038
59039         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
59040         Needed when ELEMENT is #defined to 'some_type *'.
59041
59042 2008-02-10  Jim Meyering  <meyering@redhat.com>
59043
59044         New script and module: useless-if-before-free
59045         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
59046         * build-aux/useless-if-before-free: New file.
59047         * modules/useless-if-before-free: New file.
59048
59049         * build-aux/gitlog-to-changelog: Use committer date, not author date.
59050
59051         xstrtol_error: Fix typo.
59052         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
59053         s/exit_failure/exit_status/.
59054
59055 2008-02-09  Jim Meyering  <meyering@redhat.com>
59056
59057         New script and module: gitlog-to-changelog
59058         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
59059         * modules/gitlog-to-changelog: New file.
59060         * build-aux/gitlog-to-changelog: New file.
59061
59062 2008-02-08  Jim Meyering  <meyering@redhat.com>
59063
59064         Avoid two "parameter unused" warnings.
59065         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
59066         Mark "st" as used.
59067
59068         Use "git COMMAND", not "git-COMMAND".
59069         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
59070         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
59071         * build-aux/git-version-gen: Use "git status", not "git-status".
59072
59073 2008-02-07  Bruno Haible  <bruno@clisp.org>
59074
59075         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
59076         Avoids a crash on Windows Vista.
59077         Reported by Adam Strzelecki <ono@java.pl> via
59078         Simon Josefsson <simon@josefsson.org>.
59079
59080 2008-02-06  Bruno Haible  <bruno@clisp.org>
59081
59082         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
59083         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
59084         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
59085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
59086         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59087         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59088         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
59089         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
59090         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59091         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59092         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59093         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59094         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59096         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59097         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
59098         left-adjust flag.
59099         * tests/test-snprintf-posix.h (test_function): Likewise.
59100         * tests/test-sprintf-posix.h (test_function): Likewise.
59101         * tests/test-vasprintf-posix.c (test_function): Likewise.
59102         * doc/posix-functions/fprintf.texi: Update.
59103         * doc/posix-functions/printf.texi: Update.
59104         * doc/posix-functions/snprintf.texi: Update.
59105         * doc/posix-functions/sprintf.texi: Update.
59106         * doc/posix-functions/vfprintf.texi: Update.
59107         * doc/posix-functions/vprintf.texi: Update.
59108         * doc/posix-functions/vsnprintf.texi: Update.
59109         * doc/posix-functions/vsprintf.texi: Update.
59110         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59111
59112 2008-02-06  Bruno Haible  <bruno@clisp.org>
59113
59114         Fix bug introduced on 2008-01-26.
59115         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
59116
59117 2008-02-06  Bruno Haible  <bruno@clisp.org>
59118
59119         Fix bug introduced on 2007-06-10.
59120         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
59121         !NEED_PRINTF_FLAG_ZERO.
59122
59123 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
59124
59125         getloadavg: use libperfstat on AIX5
59126         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
59127
59128 2008-02-03  Bruno Haible  <bruno@clisp.org>
59129
59130         * lib/diffseq.h: Add comments about required #includes.
59131         Reported by Michael Biggs <gnulib@doubleplum.net>.
59132
59133 2008-02-01  Bruno Haible  <bruno@clisp.org>
59134
59135         * users.txt: Add gnuit.
59136
59137 2008-01-31  Bruno Haible  <bruno@clisp.org>
59138
59139         * lib/md4.c (set_uint32): Mark as inline.
59140         * lib/md5.c (set_uint32): Likewise.
59141         * lib/sha1.c (set_uint32): Likewise.
59142         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59143         * m4/md5.m4 (gl_MD5): Likewise.
59144         * m4/sha1.m4 (gl_SHA1): Likewise.
59145
59146 2008-01-31  Jim Meyering  <meyering@redhat.com>
59147
59148         Use "sizeof VAR", rather than a literal "4".
59149         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59150         * lib/md4.c (md4_read_ctx): Likewise.
59151         * lib/sha1.c (sha1_read_ctx): Likewise.
59152
59153 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59154
59155         * tests/test-sha1.c: New file, based on test-md5.c.
59156
59157         * modules/crypto/sha1-tests: New file.
59158
59159 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59160
59161         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59162
59163 2008-01-31  Jim Meyering  <meyering@redhat.com>
59164
59165         Prefer "sizeof v" over the equivalent "4".
59166         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59167         * lib/md5.c (set_uint32): Likewise.
59168         * lib/sha1.c (set_uint32): Likewise.
59169
59170 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59171
59172         * lib/sha1.c (set_uint32): Mark function as static.
59173
59174 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59175
59176         md2: clarify comments to say that alignment is not required.
59177         * lib/md2.h: Remove warning about alignment in comment.
59178         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59179         never been required.
59180
59181 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59182
59183         md4: adapt alignment constraint fix from sha1.
59184         * lib/md4.c (set_uint32): New function, from sha1.c
59185         (md4_read_ctx): Use it.
59186         (md4_finish_ctx): Doc fix.
59187         * lib/md4.h: Doc fix.
59188
59189 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59190
59191         md5: adapt alignment constraint fix from sha1.
59192         * lib/md5.c (set_uint32): New function, from sha1.c
59193         (md5_read_ctx): Use it.
59194         (md5_finish_ctx): Doc fix.
59195         * lib/md5.h: Doc fix.
59196
59197 2008-01-30  Peter Palfrader  <weasel@debian.org>
59198
59199         sha1: remove the result buffer alignment constraint
59200         * lib/sha1.c (set_uint32): New function.
59201         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59202         constraint.
59203         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59204         * lib/sha1.h: Likewise.
59205
59206 2008-01-30  Andreas Schwab  <schwab@suse.de>
59207             Bruno Haible  <bruno@clisp.org>
59208
59209         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59210         correct definition of LDBL_MIN_EXP.
59211
59212 2008-01-30  Karl Berry  <karl@gnu.org>
59213
59214         * config/srclist-update: try to preserve x bit on updates.
59215         * config/srclistvars.sh: update for karl.
59216
59217 2008-01-29  Jim Meyering  <meyering@redhat.com>
59218
59219         vasnprintf.c: Avoid warning about unused label
59220         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59221         "overflow" label definition and associated code with the
59222         same cpp condition that guards the sole use of that label.
59223
59224 2008-01-26  Bruno Haible  <bruno@clisp.org>
59225
59226         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59227         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59228         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59229         * lib/isnanl-nolibm.h (isnanl): Likewise.
59230         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59231
59232 2008-01-26  Bruno Haible  <bruno@clisp.org>
59233
59234         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59235         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59236
59237 2008-01-26  Bruno Haible  <bruno@clisp.org>
59238
59239         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59240         GCC >= 4.0 built-in.
59241         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59242
59243 2008-01-26  Bruno Haible  <bruno@clisp.org>
59244
59245         Rename isnan, applicable to 'double' only, to isnand.
59246         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59247         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59248         (configure.ac): Update.
59249         (Include): Replace "isnan.h" with "isnand.h".
59250         * m4/isnand.m4: Renamed from m4/isnan.m4.
59251         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59252         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59253         instead of isnan.c.
59254         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59255         instead of HAVE_ISNAN_IN_LIBC.
59256         (isnand): Renamed from isnan.
59257         * lib/isnand.c: New file.
59258         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59259         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59260         (Makefile.am): Update.
59261         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59262         Include isnand.h instead of isnan.h.
59263         (main): Test isnand instead of isnan.
59264         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59265         isnan-nolibm.
59266         * modules/frexp (Depends-on): Likewise.
59267         * modules/frexp-tests (Depends-on): Likewise.
59268         * modules/frexp-nolibm (Depends-on): Likewise.
59269         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59270         * modules/isfinite (Depends-on): Likewise.
59271         * modules/round-tests (Depends-on): Likewise.
59272         * modules/signbit (Depends-on): Likewise.
59273         * modules/signbit-tests (Depends-on): Likewise.
59274         * modules/snprintf-posix (Depends-on): Likewise.
59275         * modules/sprintf-posix (Depends-on): Likewise.
59276         * modules/trunc-tests (Depends-on): Likewise.
59277         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59278         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59279         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59280         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59281         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59282         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59283         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59284         * modules/vasnprintf-posix (Depends-on): Likewise.
59285         * modules/vasprintf-posix (Depends-on): Likewise.
59286         * modules/vfprintf-posix (Depends-on): Likewise.
59287         * modules/vsnprintf-posix (Depends-on): Likewise.
59288         * modules/vsprintf-posix (Depends-on): Likewise.
59289         * lib/frexp.c: Include isnand.h instead of isnan.h.
59290         (ISNAN): Set to isnand instead of isnan.
59291         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59292         (gl_isfinited): Use isnand instead of isnan.
59293         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59294         (gl_signbitd): Use isnand instead of isnan.
59295         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59296         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59297         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59298         (main): Use isnand instead of isnan.
59299         * tests/test-round1.c: Include isnand.h.
59300         (main): Use isnand instead of isnan.
59301         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59302         (ISNAN): Set to isnand instead of isnan.
59303         * tests/test-trunc1.c: Include isnand.h.
59304         (main): Use isnand instead of isnan.
59305         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59306         (equal): Use isnand instead of isnan.
59307         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59308         isnand-nolibm.
59309         * NEWS: Mention the change.
59310
59311 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59312             Bruno Haible  <bruno@clisp.org>
59313
59314         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59315         the GCC builtins for signbits are present and set
59316         REPLACE_SIGNBIT_USING_GCC if so.
59317         * lib/math.in.h (signbit): Define using GCC builtins if
59318         REPLACE_SIGNBIT_USING_GCC is set.
59319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59320         REPLACE_SIGNBIT_USING_GCC.
59321         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59322
59323 2008-01-25  Jim Meyering  <meyering@redhat.com>
59324
59325         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59326         * lib/poll.c: Include <config.h>, not "config.h".
59327         * tests/test-getaddrinfo.c: Likewise.
59328
59329 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59330
59331         * modules/sockets-tests: New file.
59332
59333 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59334
59335         * modules/sockets: New module, can be used to call WSA_Startup and
59336         WSA_Cleanup when needed.
59337
59338         * lib/sockets.h, lib/sockets.c: New files.
59339
59340         * m4/sockets.m4: New file.
59341
59342         * tests/test-sockets.c: New file.
59343
59344 2008-01-19  Bruno Haible  <bruno@clisp.org>
59345
59346         * doc/posix-headers: Renamed from doc/headers.
59347         * doc/posix-functions: Renamed from doc/functions.
59348         * doc/gnulib.texi: Update.
59349
59350 2008-01-19  Bruno Haible  <bruno@clisp.org>
59351
59352         * doc/glibc-functions/strcasestr.texi: Include contents of
59353         doc/functions/strcasestr.texi, fixing the list of platforms.
59354         * doc/functions/strcasestr.texi: Remove file.
59355
59356 2008-01-19  Bruno Haible  <bruno@clisp.org>
59357
59358         * doc/glibc-functions/memmem.texi: Include contents of
59359         doc/functions/memmem.texi.
59360         * doc/functions/memmem.texi: Remove file.
59361
59362 2008-01-18  Bruno Haible  <bruno@clisp.org>
59363
59364         * doc/glibc-functions/*.texi: New files.
59365         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59366         to use the new files.
59367
59368 2008-01-17  Bruno Haible  <bruno@clisp.org>
59369
59370         * tests/test-gethostname.c (main): Fix printf statement.
59371
59372 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59373
59374         * modules/gethostname-tests: New file.
59375
59376         * tests/test-gethostname.c: New file.
59377
59378 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59379
59380         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59381         used by the UNAME case.  Reported by Bruno Haible
59382         <bruno@clisp.org>.
59383
59384 2008-01-17  Eric Blake  <ebb9@byu.net>
59385
59386         Convert c-strcasestr to be more efficient.
59387         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59388         (Depends-on): Add c-strcase, remove malloca, strnlen.
59389         * tests/test-c-strcasestr.c (main): Enhance test.
59390         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59391
59392 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59393
59394         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59395         Use it in creating po/Makevars.
59396
59397 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59398
59399         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59400         Applications that requires it should initialize libgcrypt
59401         manually.
59402
59403 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59404
59405         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59406
59407 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59408
59409         Fix problem with getdate on mingw32 reported by Simon Josefsson
59410         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59411         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59412         tzname", when deciding whether to declare tzname.
59413         * lib/strftime.c (tzname): Likewise.
59414
59415 2008-01-15  Bruno Haible  <bruno@clisp.org>
59416
59417         Work around a MacOS X 10.5 bug in frexpl().
59418         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59419         * doc/functions/frexpl.texi: Document the bug.
59420         Reported by Elias Pipping <pipping@gentoo.org>.
59421
59422 2008-01-14  Eric Blake  <ebb9@byu.net>
59423
59424         Touch up previous patch.
59425         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59426         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59427
59428         Convert strcasestr module to use Two-Way algorithm.
59429         * modules/strcasestr-simple: New module, based on the old
59430         strcasestr, but with Two-Way rather than KMP.
59431         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59432         * lib/string.in.h (rpl_strcasestr): Declare.
59433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59434         performance.
59435         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59436         * modules/string (Makefile.am): Support strcasestr.
59437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59438         * modules/strcasestr-tests (Depends-on): Check for alarm.
59439         * tests/test-strcasestr.c: Augment test.
59440         * lib/str-two-way.h: Clean up stray macro.
59441         * NEWS: Document new module.
59442         * MODULES.html.sh (string handling): Likewise.
59443         * doc/functions/strcasestr.texi: New file.
59444         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59445         here, since it is not a POSIX function.
59446
59447 2008-01-14  Colin Watson  <cjwatson@debian.org>
59448             Bruno Haible  <bruno@clisp.org>
59449
59450         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59451         works fine; if not, set REPLACE_STRSIGNAL.
59452         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59454         REPLACE_STRSIGNAL.
59455         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59456         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59457         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59458
59459 2008-01-14  Bruno Haible  <bruno@clisp.org>
59460
59461         * modules/strsignal (Include): Change to <string.h>.
59462
59463 2008-01-14  Colin Watson  <cjwatson@debian.org>
59464
59465         * modules/argp (Notice): Add a notice recommending to change
59466         XGETTEXT_OPTIONS.
59467         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59468
59469 2008-01-13  Colin Watson  <cjwatson@debian.org>
59470
59471         * modules/strsignal-tests: New file.
59472         * tests/test-strsignal.c: New file.
59473
59474         * lib/strsignal.c: New file, from glibc with modifications.
59475         * lib/siglist.h: New file, from glibc with modifications.
59476         * lib/string.in.h (strsignal): New declaration.
59477         * m4/strsignal.m4: New file.
59478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59479         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59480         * modules/strsignal: New file.
59481         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59482         HAVE_DECL_STRSIGNAL.
59483
59484 2008-01-13  Bruno Haible  <bruno@clisp.org>
59485
59486         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59487         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59488         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59489         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59490
59491 2008-01-13  Bruno Haible  <bruno@clisp.org>
59492
59493         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59494         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59495         * lib/argp.h (__attribute__): Likewise.
59496         * lib/c-stack.c (__attribute__): Likewise.
59497         * lib/error.h (__attribute__): Likewise.
59498         * lib/fts.c (__attribute__): Likewise.
59499         * lib/openat.h (__attribute__): Likewise.
59500         * lib/stdio.in.h (__attribute__): Likewise.
59501         * lib/string.in.h (__attribute__): Likewise.
59502         * lib/utimens.c (__attribute__): Likewise.
59503         * lib/vasnprintf.h (__attribute__): Likewise.
59504         * lib/xalloc.h (__attribute__): Likewise.
59505         * lib/xprintf.h (__attribute__): Likewise.
59506         * lib/xstrtol.h (__attribute__): Likewise.
59507         * lib/xvasprintf.h (__attribute__): Likewise.
59508
59509 2008-01-12  Bruno Haible  <bruno@clisp.org>
59510
59511         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59512         * doc/glibc-headers/a.out.texi: New file.
59513         * doc/glibc-headers/aliases.texi: New file.
59514         * doc/glibc-headers/alloca.texi: New file.
59515         * doc/glibc-headers/ar.texi: New file.
59516         * doc/glibc-headers/argp.texi: New file.
59517         * doc/glibc-headers/argz.texi: New file.
59518         * doc/glibc-headers/byteswap.texi: New file.
59519         * doc/glibc-headers/crypt.texi: New file.
59520         * doc/glibc-headers/endian.texi: New file.
59521         * doc/glibc-headers/envz.texi: New file.
59522         * doc/glibc-headers/err.texi: New file.
59523         * doc/glibc-headers/error.texi: New file.
59524         * doc/glibc-headers/execinfo.texi: New file.
59525         * doc/glibc-headers/fpu_control.texi: New file.
59526         * doc/glibc-headers/fstab.texi: New file.
59527         * doc/glibc-headers/fts.texi: New file.
59528         * doc/glibc-headers/getopt.texi: New file.
59529         * doc/glibc-headers/ieee754.texi: New file.
59530         * doc/glibc-headers/ifaddrs.texi: New file.
59531         * doc/glibc-headers/libintl.texi: New file.
59532         * doc/glibc-headers/mcheck.texi: New file.
59533         * doc/glibc-headers/mntent.texi: New file.
59534         * doc/glibc-headers/obstack.texi: New file.
59535         * doc/glibc-headers/paths.texi: New file.
59536         * doc/glibc-headers/printf.texi: New file.
59537         * doc/glibc-headers/pty.texi: New file.
59538         * doc/glibc-headers/resolv.texi: New file.
59539         * doc/glibc-headers/shadow.texi: New file.
59540         * doc/glibc-headers/sysexits.texi: New file.
59541         * doc/glibc-headers/ttyent.texi: New file.
59542
59543 2008-01-12  Jim Meyering  <meyering@redhat.com>
59544
59545         announce-gen: emit Gnulib's git-based version string.
59546         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59547         New option --gnulib-version=V, where V is expected to be
59548         the output of running git describe in the gnulib directory.
59549         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59550         not useful, and plan to stop publishing an xdelta file with each
59551         coreutils release.
59552
59553         * build-aux/announce-gen: Also check for lzma-compressed files.
59554
59555 2008-01-11  Bruno Haible  <bruno@clisp.org>
59556
59557         * tests/test-memmem.c (main): Increase maximum allowed time.
59558         * tests/test-strstr.c (main): Likewise.
59559
59560 2008-01-11  Bruno Haible  <bruno@clisp.org>
59561
59562         * doc/functions/memmem.texi: Add more precisions about platforms.
59563         * doc/functions/strstr.texi: Likewise.
59564
59565 2008-01-10  Eric Blake  <ebb9@byu.net>
59566
59567         * m4/strstr.m4: Delete cruft from copy-n-paste.
59568         Reported by Bruno Haible.
59569
59570 2008-01-10  Bruno Haible  <bruno@clisp.org>
59571
59572         Make c-strstr rely on strstr.
59573         * lib/c-strstr.c: Don't include str-kmp.h.
59574         (c_strstr): Define in terms of strstr.
59575         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59576         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59577
59578 2008-01-10  Bruno Haible  <bruno@clisp.org>
59579
59580         * doc/gnulib.texi (String Functions in C Locale): New section.
59581         * doc/c-ctype.texi: New file.
59582         * doc/c-strcase.texi: New file.
59583         * doc/c-strcaseeq.texi: New file.
59584         * doc/c-strcasestr.texi: New file.
59585         * doc/c-strstr.texi: New file.
59586         * doc/c-strtod.texi: New file.
59587         * doc/c-strtold.texi: New file.
59588
59589 2008-01-10  Eric Blake  <ebb9@byu.net>
59590
59591         * lib/relocatable.h: Fix a comment.
59592
59593 2008-01-10  Eric Blake  <ebb9@byu.net>
59594
59595         Share two-way algorithm.
59596         * lib/str-two-way.h: New file, merged from...
59597         * lib/memmem.c: ...here...
59598         * lib/strstr.c: ...and here.
59599         * modules/memmem (Files): Use it.
59600         * modules/strstr (Files): Likewise.
59601
59602         Avoid quadratic strstr implementations.
59603         * lib/strstr.c: New file.
59604         * m4/strstr.m4: Likewise.
59605         * modules/strstr: Likewise.
59606         * modules/strstr-tests: Likewise.
59607         * tests/test-strstr.c: Likewise.
59608         * lib/string.in.h (rpl_strstr): Declare.
59609         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59611         * modules/string (Makefile.am): Likewise.
59612         * MODULES.html.sh (string handling): Mention new module.
59613         * doc/functions/strstr.texi (strstr): Document the bug.
59614
59615 2008-01-10  Bruno Haible  <bruno@clisp.org>
59616
59617         * lib/relocatable.h (relocate): State whether result is freshly
59618         allocated or not.
59619         * lib/relocatable.c (relocate): Return a freshly allocated string
59620         instead of a pointer to a privately held string.
59621         Reported by Sylvain Beucler <beuc@gnu.org>.
59622
59623 2008-01-10  Colin Watson  <cjwatson@debian.org>
59624
59625         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59626         s/S_ISNLK/S_ISLNK/.
59627
59628 2008-01-09  Bruno Haible  <bruno@clisp.org>
59629
59630         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59631         and other files.
59632         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59633         if it's only a guess.
59634         * modules/memmem: Simplify by depending on memmem-simple.
59635
59636 2008-01-09  Bruno Haible  <bruno@clisp.org>
59637
59638         Work around OpenBSD 4.0 tdelete() bug.
59639         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59640         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59641         macros and don't redefine the enum values.
59642         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59643         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59644         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59645
59646 2008-01-09  Bruno Haible  <bruno@clisp.org>
59647
59648         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59649         (main): Don't perform the tests if setlocale did not install a UTF-8
59650         locale. Needed on OpenBSD 4.0.
59651         * modules/wcwidth-tests (Depends-on): Add localcharset.
59652
59653 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59654
59655         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59656         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59657         * NEWS: announce this.
59658         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59659
59660 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59661         and Eric Blake  <ebb9@byu.net>
59662
59663         Add memmem-simple module.
59664         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59665         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59666         * modules/memmem-simple: New file.
59667         * modules/memmem (Description): Tweak.
59668         * MODULES.html.sh (string handling): Mention new module.
59669         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59670         addressed by memmem-simple.
59671         * NEWS: Document the difference.
59672
59673 2008-01-09  Eric Blake  <ebb9@byu.net>
59674
59675         Give gcc some memmem optimization hints.
59676         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59677         (strcasestr): Declare as pure.
59678         * modules/memmem (Maintainer): Claim my implementation.
59679
59680 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59681
59682         Support AIX 6.1 and higher.
59683         * build-aux/config.libpath: Likewise.
59684         * build-aux/config.rpath: Likewise.
59685
59686 2008-01-08  Jim Meyering  <meyering@redhat.com>
59687             Bruno Haible  <bruno@clisp.org>
59688
59689         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59690         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59691         Reported by Peter Fales in
59692         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59693
59694 2008-01-08  Bruno Haible  <bruno@clisp.org>
59695
59696         * modules/unictype/category-of (Depends-on): Add
59697         unictype/category-none.
59698         * modules/unictype/category-and-tests (Depends-on): Add
59699         unictype/category-{L,N,Lu,Nd}.
59700         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59701         * modules/unictype/category-or-tests (Depends-on): Add
59702         unictype/category-{L,N}.
59703         * modules/unictype/category-name-tests (Depends-on): Add
59704         unictype/category-{Z,Nl}.
59705         Reported by Simon Josefsson.
59706
59707 2008-01-08  Bruno Haible  <bruno@clisp.org>
59708
59709         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59710         convention better.
59711         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59712         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59713         Reported by Peter Miller <millerp@canb.auug.org.au>.
59714
59715 2008-01-08  Eric Blake  <ebb9@byu.net>
59716
59717         Rewrite memmem to guarantee linear complexity without malloc.
59718         * lib/memmem.c (memmem): Use Two-Way rather than
59719         Knuth-Morris-Pratt, to allow O(1) space usage.
59720         (critical_factorization, two_way_short_needle)
59721         (two_way_long_needle): New functions.
59722         (knuth_morris_pratt): Delete.
59723         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59724         Add stdint.
59725         * tests/test-memmem.c (main): Add tests for periodic needle and
59726         sublinear performance.
59727         * doc/functions/memmem.texi (memmem): Document other deficiencies
59728         in cygwin and older glibc.
59729
59730 2008-01-08  Bruno Haible  <bruno@clisp.org>
59731
59732         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59733         augmentation.
59734
59735 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59736
59737         Add a configure time option: --disable-acl.
59738         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59739         AC_ARG_ENABLE(acl).
59740
59741 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59742
59743         * tests/test-localename.c: Don't include obsolete "setenv.h".
59744
59745         * modules/localename-tests (Depends-on): Need unsetenv.
59746
59747 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59748
59749         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59750
59751 2008-01-06  Colin Watson  <cjwatson@debian.org>
59752
59753         * users.txt: Add man-db.
59754
59755 2008-01-07  Bruno Haible  <bruno@clisp.org>
59756
59757         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59758         previous section name.
59759
59760 2008-01-07  Bruno Haible  <bruno@clisp.org>
59761
59762         * lib/progname.c (set_program_name): Don't strip off a leading
59763         "lt-" prefix outside a .libs directory.
59764         Suggested by Paul Eggert.
59765
59766 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59767             Bruno Haible  <bruno@clisp.org>
59768
59769         Improve memory cleanup in 'relocatable' module.
59770         * lib/relocatable.h (compute_curr_prefix): Change return type to
59771         'char *'.
59772         * lib/relocatable.c (compute_curr_prefix): Change return type to
59773         'char *'. Free curr_installdir after use.
59774         (relocate): Free curr_prefix_better after use.
59775         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59776
59777 2008-01-01  Bruno Haible  <bruno@clisp.org>
59778
59779         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59780         failure on older glibc systems.
59781         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59782
59783 2008-01-05  Eric Blake  <ebb9@byu.net>
59784
59785         Avoid quadratic system memmem.
59786         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59787         Reported by Ralf Wildenhues.
59788
59789         Fix memmem test for mingw.
59790         * modules/memmem-tests (configure.ac): Check for alarm.
59791         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59792         it.
59793         * doc/functions/memmem.texi: New file.
59794         * doc/gnulib.texi (Function Substitutes): Add memmem.
59795         Reported by Bruno Haible.
59796
59797 2008-01-04  Bruno Haible  <bruno@clisp.org>
59798
59799         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59800         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59801         gl_HEADER_STRING_H_DEFAULTS.
59802
59803 2008-01-04  Eric Blake  <ebb9@byu.net>
59804
59805         Shorten duration of memmem test.
59806         * tests/test-memmem.c (main): Use alarm to declare failure if test
59807         is taking too long.
59808         Reported by Ralf Wildenhues.
59809
59810 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59811
59812         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59813         string, needed by strerror.
59814
59815 2008-01-03  Colin Watson  <cjwatson@debian.org>
59816             Bruno Haible  <bruno@clisp.org>
59817
59818         * doc/gnulib-tool.texi (Localization): New section.
59819
59820 2008-01-02  Bruno Haible  <bruno@clisp.org>
59821
59822         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59823         variables to 'unsigned char *' type.
59824         Reported by Paul Eggert.
59825
59826 2008-01-02  Jim Meyering  <jim@meyering.net>
59827
59828         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59829
59830 2007-12-31  Jim Meyering  <jim@meyering.net>
59831
59832         Avoid use of private FTS type name.
59833         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59834
59835 2007-12-30  Karl Berry  <karl@gnu.org>
59836
59837         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59838         work around defect in Texinfo and/or the standalone Info browser.
59839
59840 2007-12-30  Bruno Haible  <bruno@clisp.org>
59841
59842         Unify 5 copies of the KMP code.
59843         * lib/str-kmp.h: New file.
59844         * lib/c-strcasestr.c: Include str-kmp.h.
59845         (knuth_morris_pratt): Remove function.
59846         (c_strcasestr): Update.
59847         * lib/c-strstr.c: Include str-kmp.h.
59848         (knuth_morris_pratt): Remove function.
59849         (c_strcasestr): Update.
59850         * lib/mbscasestr.c: Include str-kmp.h.
59851         (knuth_morris_pratt_unibyte): Remove function.
59852         * lib/mbsstr.c: Include str-kmp.h.
59853         (knuth_morris_pratt_unibyte): Remove function.
59854         * lib/strcasestr.c: Include str-kmp.h.
59855         (knuth_morris_pratt): Remove function.
59856         (strcasestr): Update.
59857         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59858         * modules/c-strstr (Files): Likewise.
59859         * modules/mbscasestr (Files): Likewise.
59860         * modules/mbsstr (Files): Likewise.
59861         * modules/strcasestr (Files): Likewise.
59862         Suggested by Paul Eggert.
59863
59864 2007-12-30  Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59867         defined.
59868
59869 2007-12-30  Bruno Haible  <bruno@clisp.org>
59870
59871         * lib/xmalloca.h: Include xalloc.h.
59872         (xnmalloca): New macro.
59873
59874 2007-12-30  Bruno Haible  <bruno@clisp.org>
59875
59876         * lib/malloca.h (nmalloca): New macro.
59877         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59878         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59879         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59880         knuth_morris_pratt_multibyte): Likewise.
59881         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59882         knuth_morris_pratt_multibyte): Likewise.
59883         * lib/memmem.c (knuth_morris_pratt): Likewise.
59884         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59885
59886 2007-12-25  Bruno Haible  <bruno@clisp.org>
59887
59888         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59889         * lib/glob.c: Don't include openat.h.
59890         (link_exists2_p): Add back the code that deals with the
59891         !GLOB_ALTDIRFUNC case.
59892         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59893         let it do the filename concatenation.
59894         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59895         * modules/glob (Depends-on): Remove openat.
59896
59897 2007-12-31  Bruno Haible  <bruno@clisp.org>
59898
59899         * modules/dirfd (License): Change to LGPLv2+.
59900         Approved by Jim Meyering.
59901
59902 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59903
59904         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59905         when multiplying M by sizeof (size_t).
59906
59907 2007-12-10  Martin Lambers  <marlam@marlam.de>
59908
59909         Override getpagesize on mingw.
59910         * lib/getpagesize.c: New file.
59911         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59912         * modules/getpagesize (Files): Add lib/getpagesize.c.
59913         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59915         REPLACE_GETPAGESIZE.
59916         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59917
59918 2007-12-25  Bruno Haible  <bruno@clisp.org>
59919
59920         * modules/localcharset (Notice): New field.
59921         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59922         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59923
59924 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59925             Bruno Haible  <bruno@clisp.org>
59926
59927         Avoid using the syntax symbol() in formatted documentation.
59928         * MODULES.html.sh (func_module): When replacing symbol() with a
59929         hyperlink, remove the parentheses. Show an error if some remain.
59930         Recognize and render the '...' syntax.
59931         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59932         Rework. Add paragraph about GCC's inlining.
59933         * doc/alloca.texi: Likewise.
59934         * doc/error.texi: Remove parentheses from symbol reference.
59935         * doc/gnulib-intro.texi: Likewise.
59936         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59937         * modules/fnmatch (Description): Reword to say "the ... function".
59938         * modules/full-read (Description): Likewise.
59939         * modules/full-write (Description): Likewise.
59940         * modules/safe-read (Description): Likewise.
59941         * modules/safe-write (Description): Likewise.
59942         * modules/strchrnul (Description): Likewise.
59943         * modules/trim (Description): Likewise.
59944         * modules/error (Description): Remove parentheses from symbol
59945         references.
59946         * modules/verror (Description): Likewise.
59947         Reported by Karl Berry.
59948
59949 2007-12-25  Bruno Haible  <bruno@clisp.org>
59950
59951         Fixup after 2007-10-16 commit.
59952         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59953
59954 2007-12-24  Bruno Haible  <bruno@clisp.org>
59955
59956         Make --enable-relocatable work with DESTDIR.
59957         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59958         to compute installdir from destprog.
59959         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59960         also set the RELOC_DESTDIR variable.
59961         Reported by Левашев Иван <octagram@bluebottle.com>.
59962
59963 2007-12-24  Bruno Haible  <bruno@clisp.org>
59964
59965         Fix link error due to xalloc_die().
59966         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59967         of xreadlink.
59968         * lib/relocwrapper.c: Update comments.
59969         * build-aux/install-reloc: Remove xreadlink.c from file list.
59970         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59971         xreadlink.c.
59972         Reported by Левашев Иван <octagram@bluebottle.com>.
59973
59974 2007-12-24  Bruno Haible  <bruno@clisp.org>
59975
59976         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59977         * lib/setenv.h: Remove file.
59978         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59979         lib/setenv.h.
59980         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59981         (Depends-on): Add stdlib.
59982         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59983         gl_FUNC_UNSETENV.
59984         (Include): Replace setenv.h with <stdlib.h>.
59985         * modules/unsetenv: New file.
59986         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59987         * lib/unsetenv.c: Include <stdlib.h> first.
59988         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59989         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59990         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59991         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59992         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59993         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59995         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59996         * doc/functions/unsetenv.texi: Update.
59997         * modules/xsetenv (Depends-on): Add unsetenv.
59998         * modules/getdate (Depends-on): Likewise.
59999         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
60000         * lib/xsetenv.c: Don't include setenv.h.
60001         * lib/getdate.y: Likewise.
60002         * lib/relocwrapper.c: Likewise.
60003         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
60004         (Depends-on): Add stdlib.
60005         * NEWS: Mention the changes.
60006         Reported by Левашев Иван <octagram@bluebottle.com>.
60007
60008 2007-12-23  Bruno Haible  <bruno@clisp.org>
60009
60010         * lib/memmem.c (memmem): Use lowercase variable names. Tab
60011         indentation.
60012
60013 2007-12-23  Bruno Haible  <bruno@clisp.org>
60014
60015         * lib/c-strcasestr.c: Add more comments.
60016         * lib/c-strstr.c: Likewise.
60017         * lib/mbscasestr.c: Likewise.
60018         * lib/mbsstr.c: Likewise.
60019         * lib/strcasestr.c: Likewise.
60020         * lib/memmem.c: Likewise.
60021
60022 2007-12-23  Bruno Haible  <bruno@clisp.org>
60023
60024         * tests/test-memmem.c: Include <string.h> first.
60025
60026 2007-12-22  Bruno Haible  <bruno@clisp.org>
60027
60028         * gnulib-tool (func_create_testdir): Change $auxdir while generating
60029         the contents of $testsbase.
60030         Reported by Ralf Wildenhues.
60031
60032 2007-12-22  Bruno Haible  <bruno@clisp.org>
60033
60034         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
60035         two variables local_ldadd_before, local_ldadd_last.
60036
60037 2007-12-20  Eric Blake  <ebb9@byu.net>
60038
60039         Work around circular library issue when cross-compiling.
60040         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
60041         that progname.o does not need to pull in rpl_memcmp.
60042
60043 2007-12-19  Eric Blake  <ebb9@byu.net>
60044
60045         Fix memmem to avoid O(n^2) worst-case complexity.
60046         * lib/memmem.c (knuth_morris_pratt): New function.
60047         (memmem): Use it if first few naive iterations fail.
60048         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
60049         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
60050         * modules/memchr (License): Likewise.
60051         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
60052         malloca.
60053         * tests/test-memmem.c: Rewrite, borrowing ideas from
60054         test-mbsstr1.c; the old version wouldn't even compile!
60055         * modules/memmem-tests: New file.
60056         * lib/string.in.h (rpl_memmem): Add declaration.
60057         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
60058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
60059         REPLACE_MEMMEM.
60060
60061 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60062
60063         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
60064         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
60065         before any system include files, and undef after them all.  This
60066         should fix a problem on VMS reported by John E. Malmberg in
60067         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
60068
60069 2007-12-17  Eric Blake  <ebb9@byu.net>
60070
60071         Revert addition of verify, for BSD/OS.
60072         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
60073         can't handle large files, for the sake of obsolete platforms.
60074         * modules/fseeko (Depends-on): Remove verify.
60075         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
60076         * doc/functions/ftello.texi (ftello): Likewise.
60077         * doc/functions/fgetpos.texi (fgetpos): Likewise.
60078         Reported by Larry Jones.
60079
60080 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
60081
60082         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
60083         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
60084
60085 2007-12-17  Jim Meyering  <meyering@redhat.com>
60086
60087         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
60088         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
60089         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
60090         * modules/getcwd (Depends-on): Add openat.
60091         Reported by Petr Salinger.
60092
60093 2007-12-17  Bruno Haible  <bruno@clisp.org>
60094
60095         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
60096         avoid a segmentation fault of the configure test on x86_64 systems.
60097
60098 2007-12-15  Jim Meyering  <meyering@redhat.com>
60099
60100         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
60101
60102 2007-12-13  Eric Blake  <ebb9@byu.net>
60103
60104         Another fseek test.
60105         * tests/test-fseek.c (main): Also test ungetc handling.
60106         * tests/test-fseeko.c (main): Likewise.
60107         * modules/fseeko (Depends-on): Add verify.
60108         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
60109         large.
60110         Reported by Larry Jones.
60111
60112         Fix fseeko on mingw.
60113         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
60114         seek.
60115
60116         Beef up fseek tests.
60117         * tests/test-fseek.c (main): Also test eof handling.
60118         * tests/test-fseeko.c (main): Likewise.
60119         Reported by Larry Jones.
60120
60121 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
60122
60123         Fix fseeko on BSD-based platforms.
60124         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
60125         successful seek.
60126
60127 2007-12-12  Eric Blake  <ebb9@byu.net>
60128
60129         Allow circular dependency of separate libtests.a
60130         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
60131         when use_libtests.
60132
60133 2007-12-11  Eric Blake  <ebb9@byu.net>
60134
60135         Fix bug with -0.0L in previous patch.
60136         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60137         * tests/test-isnan.c (main): Also test on zeroes.
60138         * tests/test-isnanf.c (main): Likewise.
60139         * tests/test-isnanl.h (main): Likewise.
60140
60141         Detect pseudo-denormals on x86 even when cross-compiling.
60142         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60143         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60144         invalid bit patterns that happen to satisfy ==.
60145
60146         Avoid link failures with separate libtests.a.
60147         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60148         last, to satisfy circular dependencies.
60149
60150 2007-12-11  Eric Blake  <ebb9@byu.net>
60151         and Bruno Haible  <bruno@clisp.org>
60152
60153         Fix OpenBSD 4.0 <float.h> handling of long double.
60154         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60155         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60156         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60157
60158 2007-12-11  Jim Meyering  <meyering@redhat.com>
60159
60160         * users.txt: Add libvirt.
60161
60162         Support versions of autoconf prior to 2.59c.
60163         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60164         if it is not already defined.
60165
60166 2007-12-09  Bruno Haible  <bruno@clisp.org>
60167
60168         Let 'gnulib-tool --import' collect sources needed for the tests in
60169         tests/ rather than in lib/.
60170         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60171         argument. If true, add rules to generate libtests.a, and put libtests.a
60172         into $(LDADD). Consider source files in subdirectories and set
60173         uses_subdirs.
60174         (func_emit_initmacro_start, func_emit_initmacro_end,
60175         func_emit_initmacro_done): Pass all arguments explicitly.
60176         (func_import): Determine two module lists main_modules,
60177         testsrelated_modules. Determine use_libtests. Determine two variables
60178         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60179         instead of just sed_transform_lib_file. Determine two variables
60180         main_files and testsrelated_files. Compute 'files' as the union of
60181         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60182         func_add_or_update. In the generated gnulib-comp.m4, collect the
60183         object files for tests/ in different variables than those for lib/.
60184         Substitute LIBTESTS_LIBDEPS.
60185         (func_create_testdir): Combine the uses_subdirs results from
60186         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60187
60188 2007-12-09  Bruno Haible  <bruno@clisp.org>
60189
60190         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60191         the build-aux directory.
60192
60193 2007-12-09  Bruno Haible  <bruno@clisp.org>
60194
60195         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60196         introduced on 2006-09-09.
60197
60198 2007-12-07  Jim Meyering  <meyering@redhat.com>
60199
60200         Let these macros work also with autoconf-2.59.
60201         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60202         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60203         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60204
60205 2007-12-06  Jim Meyering  <meyering@redhat.com>
60206
60207         Avoid a configure-time syntax error in gl_FUNC_ACL.
60208         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60209         function in each branch, before testing the cache variable.
60210
60211 2007-12-04  Eric Blake  <ebb9@byu.net>
60212
60213         Make scripts executable.
60214         * build-aux/config.guess: Add execute permissions.
60215         * build-aux/config.sub: Likewise.
60216         * build-aux/gendocs.sh: Likewise.
60217
60218         Fix frexp on mingw.
60219         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60220         cross-compiling.
60221         * doc/functions/frexp.texi (frexp): Document the bug.
60222
60223         Make cygwin fseeko check more reliable.
60224         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60225         version numbers, rather than unrelated feature check.
60226         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60227         * doc/functions/ftello.texi (ftello): Likewise.
60228         Reported by Bruno Haible.
60229
60230         * m4/strerror.m4: Bump version number.
60231
60232 2007-12-03  Bruno Haible  <bruno@clisp.org>
60233
60234         * doc/functions/mprotect.texi: Mention the mingw problem.
60235
60236 2007-12-03  Eric Blake  <ebb9@byu.net>
60237
60238         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60239         REPLACE_STRERROR is initialized before this macro.
60240
60241 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60242
60243         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60244         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60245         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60246         put -lsec in even for programs other than 'ls'.  This fixes a problem
60247         for gettext reported by Bruno Haible in
60248         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60249         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60250         Add support for Solaris 10.  This isn't efficient, but should get the
60251         job done for now.
60252
60253 2007-12-03  James Youngman  <jay@gnu.org>
60254
60255         * doc/regexprops-generic.texi: change "an close-group" to "a
60256         close-group" and "illegal" to "not allowed".
60257
60258 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60259
60260         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60261         pr_byname.h. Needed for the rare case when the maintainer has done
60262         "make maintainer-clean" in the source directory and then attempts a
60263         build outside the source directory.
60264         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60265         scripts_byname.h.
60266
60267 2007-12-02  Martin Lambers <marlam@marlam.de>
60268             Bruno Haible  <bruno@clisp.org>
60269
60270         * lib/getpagesize.h: Remove file.
60271         * lib/unistd.in.h: Include declaration of getpagesize here.
60272         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60273         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60274         HAVE_SYS_PARAM_H.
60275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60276         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60277         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60278         (Depends-on): Add unistd.
60279         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60280         (Include): Use <unistd.h> instead of getpagesize.h.
60281         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60282         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60283         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60284         gl_GETPAGESIZE invocation, already handled by module dependency.
60285         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60286
60287 2007-12-02  Bruno Haible  <bruno@clisp.org>
60288
60289         * modules/strings-tests: New file.
60290         * tests/test-strings.c: New file.
60291
60292         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60293         * lib/strings.in.h: New file.
60294         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60295         * m4/strings_h.m4: New file.
60296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60297         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60298         * modules/strings: New file.
60299         * modules/string (Makefile.am): Update.
60300         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60301         Reported by Karl Berry.
60302
60303 2007-12-01  Eric Blake  <ebb9@byu.net>
60304
60305         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60306         accommodate fix in cygwin 1.5.25.
60307
60308 2007-12-01  Jim Meyering  <meyering@redhat.com>
60309
60310         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60311         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60312         that would inhibit utf8-optimization of a regexp containing line-
60313         or buffer-anchors, e.g., `^', `$'.
60314
60315 2007-11-30  Bruno Haible  <bruno@clisp.org>
60316
60317         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60318         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60319         glthread_recursive_lock_init.
60320         * lib/lock.c (glthread_recursive_lock_init)
60321         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60322         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60323
60324 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60325
60326         New function qset_acl, like set_acl but with syscall semantics.
60327         * lib/acl.h (qset_acl): New decl.
60328         * lib/acl.c (qset_acl): New function.
60329         (set_acl): Use new function.  Use more-consistent diagnostics.
60330
60331 2007-11-28  Jim Meyering  <meyering@redhat.com>
60332
60333         * modules/physmem (License): Change from GPL to LGPLv2+.
60334
60335 2007-11-26  Bruno Haible  <bruno@clisp.org>
60336
60337         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60338         'long double' type has excess precision.
60339         Reported by Jim Meyering in
60340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60341
60342 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60343
60344         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60345         Sync from <http://gnu.org/licenses>.
60346         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60347         with license text from same location.
60348         * doc/maintain.texi, doc/standards.texi:  Sync from
60349         <http://savannah.gnu.org/projects/gnustandards>.
60350
60351 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
60352         and Jim Meyering  <meyering@redhat.com>
60353
60354         Adjust getdate' grammar to accept a slightly more regular language.
60355         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60356         Before, the former was rejected.
60357         * lib/getdate.y (digits_to_date_time): New function, factored
60358         out of ...
60359         (number): ...here.  Just call digits_to_date_time.
60360         (hybrid): New non-terminal to handle an <unsigned number,
60361         signed relative offset> sequence consistently.
60362
60363 2007-11-18  Jim Meyering  <meyering@redhat.com>
60364
60365         Pull my changes from coreutils:
60366         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60367         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60368         use of $gnulib_tool_option_extras, so that it's separated from the
60369         preceding argument.
60370
60371         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60372         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60373         parent destination directories before copying a file into place.
60374
60375 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60376
60377         bootstrap: work also with 4-argument variant of AC_INIT
60378         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60379
60380 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60381
60382         Port test-getaddrinfo to Solaris.
60383         Problem reported by Bruno Haible in
60384         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60385         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60386         explanation of setting 'hints'.
60387         Don't reject an implementation merely because it returns EAI_SERVICE.
60388         (EAI_SERVICE): Define to 0 if not defined.
60389
60390 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         The license of gnu-make and posix-shell is now "GPLed build tool".
60393         * modules/gnu-make (License): Likewise.
60394         * modules/posix-shell (License): Likewise.
60395
60396         New module posix-shell, for determining a POSIX shell
60397         or perhaps something that is close enough to a POSIX shell.
60398         * m4/posix-shell.m4: New file.
60399         * modules/posix-shell: New file.
60400
60401         * MODULES.html.sh: Mention new module.
60402
60403         New module gnu-make, for determining whether we're using GNU Make.
60404         * m4/gnu-make.m4: New file.
60405         * modules/gnu-make: New file.
60406         * MODULES.html.sh: Mention new module.
60407
60408 2007-11-14  Jim Meyering  <meyering@redhat.com>
60409
60410         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60411         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60412         use this macro to create a function _definition_.
60413         Remove useless "#undef ARGMATCH_DIE".
60414
60415 2007-11-14  Bruno Haible  <bruno@clisp.org>
60416
60417         * lib/config.charset: Update for OpenBSD 4.1.
60418         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60419
60420 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60421
60422         Document 64-bit #if problems in stdint.texi.
60423         * doc/headers/stdint.texi (stdint.h): Mention problems with
60424         64-bit-#if, and how to work around them.
60425
60426         Don't insist on 'long long int' support in the preprocessor.  It
60427         breaks too many things.  For example, PRIdMAX still uses a 'long
60428         long int' format with the latest Sun compiler, even though
60429         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60430         preprocessor problem.  This causes the latest coreutils to dump
60431         core on Solaris 10 sparc with the Sun C compiler.
60432         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60433         the troublesome expressions at configure-time, not at #if-time.
60434         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60435         preprocessor.
60436         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60437         compile-time C checks, done at 'configure'-time.
60438         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60439         * modules/inttypes (Makefile): Substitute the new symbols that
60440         gl_INTTYPES_H now generates.
60441         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60442
60443 2007-11-12  Bruno Haible  <bruno@clisp.org>
60444
60445         Tests for Unicode character classification functions.
60446
60447         * modules/unictype/bidicategory-byname-tests: New file.
60448         * modules/unictype/bidicategory-name-tests: New file.
60449         * modules/unictype/bidicategory-of-tests: New file.
60450         * modules/unictype/bidicategory-test-tests: New file.
60451         * modules/unictype/block-list-tests: New file.
60452         * modules/unictype/block-of-tests: New file.
60453         * modules/unictype/block-test-tests: New file.
60454         * modules/unictype/category-C-tests: New file.
60455         * modules/unictype/category-Cc-tests: New file.
60456         * modules/unictype/category-Cf-tests: New file.
60457         * modules/unictype/category-Cn-tests: New file.
60458         * modules/unictype/category-Co-tests: New file.
60459         * modules/unictype/category-Cs-tests: New file.
60460         * modules/unictype/category-L-tests: New file.
60461         * modules/unictype/category-Ll-tests: New file.
60462         * modules/unictype/category-Lm-tests: New file.
60463         * modules/unictype/category-Lo-tests: New file.
60464         * modules/unictype/category-Lt-tests: New file.
60465         * modules/unictype/category-Lu-tests: New file.
60466         * modules/unictype/category-M-tests: New file.
60467         * modules/unictype/category-Mc-tests: New file.
60468         * modules/unictype/category-Me-tests: New file.
60469         * modules/unictype/category-Mn-tests: New file.
60470         * modules/unictype/category-N-tests: New file.
60471         * modules/unictype/category-Nd-tests: New file.
60472         * modules/unictype/category-Nl-tests: New file.
60473         * modules/unictype/category-No-tests: New file.
60474         * modules/unictype/category-P-tests: New file.
60475         * modules/unictype/category-Pc-tests: New file.
60476         * modules/unictype/category-Pd-tests: New file.
60477         * modules/unictype/category-Pe-tests: New file.
60478         * modules/unictype/category-Pf-tests: New file.
60479         * modules/unictype/category-Pi-tests: New file.
60480         * modules/unictype/category-Po-tests: New file.
60481         * modules/unictype/category-Ps-tests: New file.
60482         * modules/unictype/category-S-tests: New file.
60483         * modules/unictype/category-Sc-tests: New file.
60484         * modules/unictype/category-Sk-tests: New file.
60485         * modules/unictype/category-Sm-tests: New file.
60486         * modules/unictype/category-So-tests: New file.
60487         * modules/unictype/category-Z-tests: New file.
60488         * modules/unictype/category-Zl-tests: New file.
60489         * modules/unictype/category-Zp-tests: New file.
60490         * modules/unictype/category-Zs-tests: New file.
60491         * modules/unictype/category-and-not-tests: New file.
60492         * modules/unictype/category-and-tests: New file.
60493         * modules/unictype/category-byname-tests: New file.
60494         * modules/unictype/category-name-tests: New file.
60495         * modules/unictype/category-none-tests: New file.
60496         * modules/unictype/category-of-tests: New file.
60497         * modules/unictype/category-or-tests: New file.
60498         * modules/unictype/category-test-withtable-tests: New file.
60499         * modules/unictype/combining-class-tests: New file.
60500         * modules/unictype/ctype-alnum-tests: New file.
60501         * modules/unictype/ctype-alpha-tests: New file.
60502         * modules/unictype/ctype-blank-tests: New file.
60503         * modules/unictype/ctype-cntrl-tests: New file.
60504         * modules/unictype/ctype-digit-tests: New file.
60505         * modules/unictype/ctype-graph-tests: New file.
60506         * modules/unictype/ctype-lower-tests: New file.
60507         * modules/unictype/ctype-print-tests: New file.
60508         * modules/unictype/ctype-punct-tests: New file.
60509         * modules/unictype/ctype-space-tests: New file.
60510         * modules/unictype/ctype-upper-tests: New file.
60511         * modules/unictype/ctype-xdigit-tests: New file.
60512         * modules/unictype/decimal-digit-tests: New file.
60513         * modules/unictype/digit-tests: New file.
60514         * modules/unictype/mirror-tests: New file.
60515         * modules/unictype/numeric-tests: New file.
60516         * modules/unictype/property-alphabetic-tests: New file.
60517         * modules/unictype/property-ascii-hex-digit-tests: New file.
60518         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60519         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60520         * modules/unictype/property-bidi-block-separator-tests: New file.
60521         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60522         * modules/unictype/property-bidi-common-separator-tests: New file.
60523         * modules/unictype/property-bidi-control-tests: New file.
60524         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60525         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60526         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60527         * modules/unictype/property-bidi-european-digit-tests: New file.
60528         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60529         * modules/unictype/property-bidi-left-to-right-tests: New file.
60530         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60531         * modules/unictype/property-bidi-other-neutral-tests: New file.
60532         * modules/unictype/property-bidi-pdf-tests: New file.
60533         * modules/unictype/property-bidi-segment-separator-tests: New file.
60534         * modules/unictype/property-bidi-whitespace-tests: New file.
60535         * modules/unictype/property-byname-tests: New file.
60536         * modules/unictype/property-combining-tests: New file.
60537         * modules/unictype/property-composite-tests: New file.
60538         * modules/unictype/property-currency-symbol-tests: New file.
60539         * modules/unictype/property-dash-tests: New file.
60540         * modules/unictype/property-decimal-digit-tests: New file.
60541         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60542         * modules/unictype/property-deprecated-tests: New file.
60543         * modules/unictype/property-diacritic-tests: New file.
60544         * modules/unictype/property-extender-tests: New file.
60545         * modules/unictype/property-format-control-tests: New file.
60546         * modules/unictype/property-grapheme-base-tests: New file.
60547         * modules/unictype/property-grapheme-extend-tests: New file.
60548         * modules/unictype/property-grapheme-link-tests: New file.
60549         * modules/unictype/property-hex-digit-tests: New file.
60550         * modules/unictype/property-hyphen-tests: New file.
60551         * modules/unictype/property-id-continue-tests: New file.
60552         * modules/unictype/property-id-start-tests: New file.
60553         * modules/unictype/property-ideographic-tests: New file.
60554         * modules/unictype/property-ids-binary-operator-tests: New file.
60555         * modules/unictype/property-ids-trinary-operator-tests: New file.
60556         * modules/unictype/property-ignorable-control-tests: New file.
60557         * modules/unictype/property-iso-control-tests: New file.
60558         * modules/unictype/property-join-control-tests: New file.
60559         * modules/unictype/property-left-of-pair-tests: New file.
60560         * modules/unictype/property-line-separator-tests: New file.
60561         * modules/unictype/property-logical-order-exception-tests: New file.
60562         * modules/unictype/property-lowercase-tests: New file.
60563         * modules/unictype/property-math-tests: New file.
60564         * modules/unictype/property-non-break-tests: New file.
60565         * modules/unictype/property-not-a-character-tests: New file.
60566         * modules/unictype/property-numeric-tests: New file.
60567         * modules/unictype/property-other-alphabetic-tests: New file.
60568         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60569         * modules/unictype/property-other-grapheme-extend-tests: New file.
60570         * modules/unictype/property-other-id-continue-tests: New file.
60571         * modules/unictype/property-other-id-start-tests: New file.
60572         * modules/unictype/property-other-lowercase-tests: New file.
60573         * modules/unictype/property-other-math-tests: New file.
60574         * modules/unictype/property-other-uppercase-tests: New file.
60575         * modules/unictype/property-paired-punctuation-tests: New file.
60576         * modules/unictype/property-paragraph-separator-tests: New file.
60577         * modules/unictype/property-pattern-syntax-tests: New file.
60578         * modules/unictype/property-pattern-white-space-tests: New file.
60579         * modules/unictype/property-private-use-tests: New file.
60580         * modules/unictype/property-punctuation-tests: New file.
60581         * modules/unictype/property-quotation-mark-tests: New file.
60582         * modules/unictype/property-radical-tests: New file.
60583         * modules/unictype/property-sentence-terminal-tests: New file.
60584         * modules/unictype/property-soft-dotted-tests: New file.
60585         * modules/unictype/property-space-tests: New file.
60586         * modules/unictype/property-terminal-punctuation-tests: New file.
60587         * modules/unictype/property-test-tests: New file.
60588         * modules/unictype/property-titlecase-tests: New file.
60589         * modules/unictype/property-unassigned-code-value-tests: New file.
60590         * modules/unictype/property-unified-ideograph-tests: New file.
60591         * modules/unictype/property-uppercase-tests: New file.
60592         * modules/unictype/property-variation-selector-tests: New file.
60593         * modules/unictype/property-white-space-tests: New file.
60594         * modules/unictype/property-xid-continue-tests: New file.
60595         * modules/unictype/property-xid-start-tests: New file.
60596         * modules/unictype/property-zero-width-tests: New file.
60597         * modules/unictype/scripts-tests: New file.
60598         * modules/unictype/syntax-c-ident-tests: New file.
60599         * modules/unictype/syntax-c-whitespace-tests: New file.
60600         * modules/unictype/syntax-java-ident-tests: New file.
60601         * modules/unictype/syntax-java-whitespace-tests: New file.
60602         * tests/unictype/test-bidi_byname.c: New file.
60603         * tests/unictype/test-bidi_name.c: New file.
60604         * tests/unictype/test-bidi_of.c: New file.
60605         * tests/unictype/test-bidi_test.c: New file.
60606         * tests/unictype/test-block_list.c: New file.
60607         * tests/unictype/test-block_of.c: New file.
60608         * tests/unictype/test-block_test.c: New file.
60609         * tests/unictype/test-categ_and.c: New file.
60610         * tests/unictype/test-categ_and_not.c: New file.
60611         * tests/unictype/test-categ_byname.c: New file.
60612         * tests/unictype/test-categ_name.c: New file.
60613         * tests/unictype/test-categ_none.c: New file.
60614         * tests/unictype/test-categ_of.c: New file.
60615         * tests/unictype/test-categ_or.c: New file.
60616         * tests/unictype/test-categ_test_withtable.c: New file.
60617         * tests/unictype/test-combining.c: New file.
60618         * tests/unictype/test-decdigit.c: New file.
60619         * tests/unictype/test-digit.c: New file.
60620         * tests/unictype/test-mirror.c: New file.
60621         * tests/unictype/test-numeric.c: New file.
60622         * tests/unictype/test-pr_byname.c: New file.
60623         * tests/unictype/test-pr_test.c: New file.
60624         * tests/unictype/test-predicate-part1.h: New file.
60625         * tests/unictype/test-predicate-part2.h: New file.
60626         * tests/unictype/test-scripts.c: New file.
60627         * tests/unictype/test-sy_c_ident.c: New file.
60628         * tests/unictype/test-sy_java_ident.c: New file.
60629
60630         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60631         for Unicode 5.0.0.
60632         * tests/unictype/test-categ_Cc.c: Likewise.
60633         * tests/unictype/test-categ_Cf.c: Likewise.
60634         * tests/unictype/test-categ_Cn.c: Likewise.
60635         * tests/unictype/test-categ_Co.c: Likewise.
60636         * tests/unictype/test-categ_Cs.c: Likewise.
60637         * tests/unictype/test-categ_L.c: Likewise.
60638         * tests/unictype/test-categ_Ll.c: Likewise.
60639         * tests/unictype/test-categ_Lm.c: Likewise.
60640         * tests/unictype/test-categ_Lo.c: Likewise.
60641         * tests/unictype/test-categ_Lt.c: Likewise.
60642         * tests/unictype/test-categ_Lu.c: Likewise.
60643         * tests/unictype/test-categ_M.c: Likewise.
60644         * tests/unictype/test-categ_Mc.c: Likewise.
60645         * tests/unictype/test-categ_Me.c: Likewise.
60646         * tests/unictype/test-categ_Mn.c: Likewise.
60647         * tests/unictype/test-categ_N.c: Likewise.
60648         * tests/unictype/test-categ_Nd.c: Likewise.
60649         * tests/unictype/test-categ_Nl.c: Likewise.
60650         * tests/unictype/test-categ_No.c: Likewise.
60651         * tests/unictype/test-categ_P.c: Likewise.
60652         * tests/unictype/test-categ_Pc.c: Likewise.
60653         * tests/unictype/test-categ_Pd.c: Likewise.
60654         * tests/unictype/test-categ_Pe.c: Likewise.
60655         * tests/unictype/test-categ_Pf.c: Likewise.
60656         * tests/unictype/test-categ_Pi.c: Likewise.
60657         * tests/unictype/test-categ_Po.c: Likewise.
60658         * tests/unictype/test-categ_Ps.c: Likewise.
60659         * tests/unictype/test-categ_S.c: Likewise.
60660         * tests/unictype/test-categ_Sc.c: Likewise.
60661         * tests/unictype/test-categ_Sk.c: Likewise.
60662         * tests/unictype/test-categ_Sm.c: Likewise.
60663         * tests/unictype/test-categ_So.c: Likewise.
60664         * tests/unictype/test-categ_Z.c: Likewise.
60665         * tests/unictype/test-categ_Zl.c: Likewise.
60666         * tests/unictype/test-categ_Zp.c: Likewise.
60667         * tests/unictype/test-categ_Zs.c: Likewise.
60668         * tests/unictype/test-ctype_alnum.c: Likewise.
60669         * tests/unictype/test-ctype_alpha.c: Likewise.
60670         * tests/unictype/test-ctype_blank.c: Likewise.
60671         * tests/unictype/test-ctype_cntrl.c: Likewise.
60672         * tests/unictype/test-ctype_digit.c: Likewise.
60673         * tests/unictype/test-ctype_graph.c: Likewise.
60674         * tests/unictype/test-ctype_lower.c: Likewise.
60675         * tests/unictype/test-ctype_print.c: Likewise.
60676         * tests/unictype/test-ctype_punct.c: Likewise.
60677         * tests/unictype/test-ctype_space.c: Likewise.
60678         * tests/unictype/test-ctype_upper.c: Likewise.
60679         * tests/unictype/test-ctype_xdigit.c: Likewise.
60680         * tests/unictype/test-decdigit.h: Likewise.
60681         * tests/unictype/test-digit.h: Likewise.
60682         * tests/unictype/test-numeric.h: Likewise.
60683         * tests/unictype/test-pr_alphabetic.c: Likewise.
60684         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60685         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60686         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60687         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60688         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60689         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60690         * tests/unictype/test-pr_bidi_control.c: Likewise.
60691         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60692         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60693         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60694         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60695         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60696         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60697         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60698         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60699         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60700         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60701         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60702         * tests/unictype/test-pr_combining.c: Likewise.
60703         * tests/unictype/test-pr_composite.c: Likewise.
60704         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60705         * tests/unictype/test-pr_dash.c: Likewise.
60706         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60707         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60708         * tests/unictype/test-pr_deprecated.c: Likewise.
60709         * tests/unictype/test-pr_diacritic.c: Likewise.
60710         * tests/unictype/test-pr_extender.c: Likewise.
60711         * tests/unictype/test-pr_format_control.c: Likewise.
60712         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60713         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60714         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60715         * tests/unictype/test-pr_hex_digit.c: Likewise.
60716         * tests/unictype/test-pr_hyphen.c: Likewise.
60717         * tests/unictype/test-pr_id_continue.c: Likewise.
60718         * tests/unictype/test-pr_id_start.c: Likewise.
60719         * tests/unictype/test-pr_ideographic.c: Likewise.
60720         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60721         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60722         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60723         * tests/unictype/test-pr_iso_control.c: Likewise.
60724         * tests/unictype/test-pr_join_control.c: Likewise.
60725         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60726         * tests/unictype/test-pr_line_separator.c: Likewise.
60727         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60728         * tests/unictype/test-pr_lowercase.c: Likewise.
60729         * tests/unictype/test-pr_math.c: Likewise.
60730         * tests/unictype/test-pr_non_break.c: Likewise.
60731         * tests/unictype/test-pr_not_a_character.c: Likewise.
60732         * tests/unictype/test-pr_numeric.c: Likewise.
60733         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60734         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60735         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60736         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60737         * tests/unictype/test-pr_other_id_start.c: Likewise.
60738         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60739         * tests/unictype/test-pr_other_math.c: Likewise.
60740         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60741         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60742         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60743         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60744         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60745         * tests/unictype/test-pr_private_use.c: Likewise.
60746         * tests/unictype/test-pr_punctuation.c: Likewise.
60747         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60748         * tests/unictype/test-pr_radical.c: Likewise.
60749         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60750         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60751         * tests/unictype/test-pr_space.c: Likewise.
60752         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60753         * tests/unictype/test-pr_titlecase.c: Likewise.
60754         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60755         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60756         * tests/unictype/test-pr_uppercase.c: Likewise.
60757         * tests/unictype/test-pr_variation_selector.c: Likewise.
60758         * tests/unictype/test-pr_white_space.c: Likewise.
60759         * tests/unictype/test-pr_xid_continue.c: Likewise.
60760         * tests/unictype/test-pr_xid_start.c: Likewise.
60761         * tests/unictype/test-pr_zero_width.c: Likewise.
60762         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60763         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60764
60765 2007-11-12  Bruno Haible  <bruno@clisp.org>
60766
60767         Unicode character classification functions.
60768         * lib/unictype.h: New file.
60769         * modules/unictype/base: New file.
60770         * modules/unictype/category-L: New file.
60771         * modules/unictype/category-Lu: New file.
60772         * modules/unictype/category-Ll: New file.
60773         * modules/unictype/category-Lt: New file.
60774         * modules/unictype/category-Lm: New file.
60775         * modules/unictype/category-Lo: New file.
60776         * modules/unictype/category-M: New file.
60777         * modules/unictype/category-Mn: New file.
60778         * modules/unictype/category-Mc: New file.
60779         * modules/unictype/category-Me: New file.
60780         * modules/unictype/category-N: New file.
60781         * modules/unictype/category-Nd: New file.
60782         * modules/unictype/category-Nl: New file.
60783         * modules/unictype/category-No: New file.
60784         * modules/unictype/category-P: New file.
60785         * modules/unictype/category-Pc: New file.
60786         * modules/unictype/category-Pd: New file.
60787         * modules/unictype/category-Ps: New file.
60788         * modules/unictype/category-Pe: New file.
60789         * modules/unictype/category-Pi: New file.
60790         * modules/unictype/category-Pf: New file.
60791         * modules/unictype/category-Po: New file.
60792         * modules/unictype/category-S: New file.
60793         * modules/unictype/category-Sm: New file.
60794         * modules/unictype/category-Sc: New file.
60795         * modules/unictype/category-Sk: New file.
60796         * modules/unictype/category-So: New file.
60797         * modules/unictype/category-Z: New file.
60798         * modules/unictype/category-Zs: New file.
60799         * modules/unictype/category-Zl: New file.
60800         * modules/unictype/category-Zp: New file.
60801         * modules/unictype/category-C: New file.
60802         * modules/unictype/category-Cc: New file.
60803         * modules/unictype/category-Cf: New file.
60804         * modules/unictype/category-Cs: New file.
60805         * modules/unictype/category-Co: New file.
60806         * modules/unictype/category-Cn: New file.
60807         * modules/unictype/category-or: New file.
60808         * modules/unictype/category-of: New file.
60809         * modules/unictype/category-test: New file.
60810         * modules/unictype/category-test-withtable: New file.
60811         * modules/unictype/category-byname: New file.
60812         * modules/unictype/category-none: New file.
60813         * modules/unictype/category-and: New file.
60814         * modules/unictype/category-and-not: New file.
60815         * modules/unictype/category-name: New file.
60816         * modules/unictype/combining-class: New file.
60817         * modules/unictype/category-all: New file.
60818         * modules/unictype/bidicategory-all: New file.
60819         * modules/unictype/bidicategory-byname: New file.
60820         * modules/unictype/bidicategory-name: New file.
60821         * modules/unictype/bidicategory-of: New file.
60822         * modules/unictype/bidicategory-test: New file.
60823         * modules/unictype/decimal-digit: New file.
60824         * modules/unictype/digit: New file.
60825         * modules/unictype/numeric: New file.
60826         * modules/unictype/mirror: New file.
60827         * modules/unictype/property-white-space: New file.
60828         * modules/unictype/property-alphabetic: New file.
60829         * modules/unictype/property-other-alphabetic: New file.
60830         * modules/unictype/property-not-a-character: New file.
60831         * modules/unictype/property-default-ignorable-code-point: New file.
60832         * modules/unictype/property-other-default-ignorable-code-point: New
60833         file.
60834         * modules/unictype/property-deprecated: New file.
60835         * modules/unictype/property-logical-order-exception: New file.
60836         * modules/unictype/property-variation-selector: New file.
60837         * modules/unictype/property-private-use: New file.
60838         * modules/unictype/property-unassigned-code-value: New file.
60839         * modules/unictype/property-uppercase: New file.
60840         * modules/unictype/property-other-uppercase: New file.
60841         * modules/unictype/property-lowercase: New file.
60842         * modules/unictype/property-other-lowercase: New file.
60843         * modules/unictype/property-titlecase: New file.
60844         * modules/unictype/property-soft-dotted: New file.
60845         * modules/unictype/property-id-start: New file.
60846         * modules/unictype/property-other-id-start: New file.
60847         * modules/unictype/property-id-continue: New file.
60848         * modules/unictype/property-other-id-continue: New file.
60849         * modules/unictype/property-xid-start: New file.
60850         * modules/unictype/property-xid-continue: New file.
60851         * modules/unictype/property-pattern-white-space: New file.
60852         * modules/unictype/property-pattern-syntax: New file.
60853         * modules/unictype/property-join-control: New file.
60854         * modules/unictype/property-grapheme-base: New file.
60855         * modules/unictype/property-grapheme-extend: New file.
60856         * modules/unictype/property-other-grapheme-extend: New file.
60857         * modules/unictype/property-grapheme-link: New file.
60858         * modules/unictype/property-bidi-control: New file.
60859         * modules/unictype/property-bidi-left-to-right: New file.
60860         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60861         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60862         * modules/unictype/property-bidi-european-digit: New file.
60863         * modules/unictype/property-bidi-eur-num-separator: New file.
60864         * modules/unictype/property-bidi-eur-num-terminator: New file.
60865         * modules/unictype/property-bidi-arabic-digit: New file.
60866         * modules/unictype/property-bidi-common-separator: New file.
60867         * modules/unictype/property-bidi-block-separator: New file.
60868         * modules/unictype/property-bidi-segment-separator: New file.
60869         * modules/unictype/property-bidi-whitespace: New file.
60870         * modules/unictype/property-bidi-non-spacing-mark: New file.
60871         * modules/unictype/property-bidi-boundary-neutral: New file.
60872         * modules/unictype/property-bidi-pdf: New file.
60873         * modules/unictype/property-bidi-embedding-or-override: New file.
60874         * modules/unictype/property-bidi-other-neutral: New file.
60875         * modules/unictype/property-hex-digit: New file.
60876         * modules/unictype/property-ascii-hex-digit: New file.
60877         * modules/unictype/property-ideographic: New file.
60878         * modules/unictype/property-unified-ideograph: New file.
60879         * modules/unictype/property-radical: New file.
60880         * modules/unictype/property-ids-binary-operator: New file.
60881         * modules/unictype/property-ids-trinary-operator: New file.
60882         * modules/unictype/property-zero-width: New file.
60883         * modules/unictype/property-space: New file.
60884         * modules/unictype/property-non-break: New file.
60885         * modules/unictype/property-iso-control: New file.
60886         * modules/unictype/property-format-control: New file.
60887         * modules/unictype/property-dash: New file.
60888         * modules/unictype/property-hyphen: New file.
60889         * modules/unictype/property-punctuation: New file.
60890         * modules/unictype/property-line-separator: New file.
60891         * modules/unictype/property-paragraph-separator: New file.
60892         * modules/unictype/property-quotation-mark: New file.
60893         * modules/unictype/property-sentence-terminal: New file.
60894         * modules/unictype/property-terminal-punctuation: New file.
60895         * modules/unictype/property-currency-symbol: New file.
60896         * modules/unictype/property-math: New file.
60897         * modules/unictype/property-other-math: New file.
60898         * modules/unictype/property-paired-punctuation: New file.
60899         * modules/unictype/property-left-of-pair: New file.
60900         * modules/unictype/property-combining: New file.
60901         * modules/unictype/property-composite: New file.
60902         * modules/unictype/property-decimal-digit: New file.
60903         * modules/unictype/property-numeric: New file.
60904         * modules/unictype/property-diacritic: New file.
60905         * modules/unictype/property-extender: New file.
60906         * modules/unictype/property-ignorable-control: New file.
60907         * modules/unictype/property-test: New file.
60908         * modules/unictype/property-byname: New file.
60909         * modules/unictype/property-all: New file.
60910         * modules/unictype/scripts: New file.
60911         * modules/unictype/scripts-all: New file.
60912         * modules/unictype/block-of: New file.
60913         * modules/unictype/block-test: New file.
60914         * modules/unictype/block-list: New file.
60915         * modules/unictype/block-all: New file.
60916         * modules/unictype/syntax-c-whitespace: New file.
60917         * modules/unictype/syntax-java-whitespace: New file.
60918         * modules/unictype/syntax-c-ident: New file.
60919         * modules/unictype/syntax-java-ident: New file.
60920         * modules/unictype/ctype-alnum: New file.
60921         * modules/unictype/ctype-alpha: New file.
60922         * modules/unictype/ctype-cntrl: New file.
60923         * modules/unictype/ctype-digit: New file.
60924         * modules/unictype/ctype-graph: New file.
60925         * modules/unictype/ctype-lower: New file.
60926         * modules/unictype/ctype-print: New file.
60927         * modules/unictype/ctype-punct: New file.
60928         * modules/unictype/ctype-space: New file.
60929         * modules/unictype/ctype-upper: New file.
60930         * modules/unictype/ctype-xdigit: New file.
60931         * modules/unictype/ctype-blank: New file.
60932         * lib/unictype/bidi_byname.c: New file.
60933         * lib/unictype/bidi_name.c: New file.
60934         * lib/unictype/bidi_of.c: New file.
60935         * lib/unictype/bidi_test.c: New file.
60936         * lib/unictype/bitmap.h: New file.
60937         * lib/unictype/block_test.c: New file.
60938         * lib/unictype/blocks.c: New file.
60939         * lib/unictype/categ_C.c: New file.
60940         * lib/unictype/categ_Cc.c: New file.
60941         * lib/unictype/categ_Cf.c: New file.
60942         * lib/unictype/categ_Cn.c: New file.
60943         * lib/unictype/categ_Co.c: New file.
60944         * lib/unictype/categ_Cs.c: New file.
60945         * lib/unictype/categ_L.c: New file.
60946         * lib/unictype/categ_Ll.c: New file.
60947         * lib/unictype/categ_Lm.c: New file.
60948         * lib/unictype/categ_Lo.c: New file.
60949         * lib/unictype/categ_Lt.c: New file.
60950         * lib/unictype/categ_Lu.c: New file.
60951         * lib/unictype/categ_M.c: New file.
60952         * lib/unictype/categ_Mc.c: New file.
60953         * lib/unictype/categ_Me.c: New file.
60954         * lib/unictype/categ_Mn.c: New file.
60955         * lib/unictype/categ_N.c: New file.
60956         * lib/unictype/categ_Nd.c: New file.
60957         * lib/unictype/categ_Nl.c: New file.
60958         * lib/unictype/categ_No.c: New file.
60959         * lib/unictype/categ_P.c: New file.
60960         * lib/unictype/categ_Pc.c: New file.
60961         * lib/unictype/categ_Pd.c: New file.
60962         * lib/unictype/categ_Pe.c: New file.
60963         * lib/unictype/categ_Pf.c: New file.
60964         * lib/unictype/categ_Pi.c: New file.
60965         * lib/unictype/categ_Po.c: New file.
60966         * lib/unictype/categ_Ps.c: New file.
60967         * lib/unictype/categ_S.c: New file.
60968         * lib/unictype/categ_Sc.c: New file.
60969         * lib/unictype/categ_Sk.c: New file.
60970         * lib/unictype/categ_Sm.c: New file.
60971         * lib/unictype/categ_So.c: New file.
60972         * lib/unictype/categ_Z.c: New file.
60973         * lib/unictype/categ_Zl.c: New file.
60974         * lib/unictype/categ_Zp.c: New file.
60975         * lib/unictype/categ_Zs.c: New file.
60976         * lib/unictype/categ_and.c: New file.
60977         * lib/unictype/categ_and_not.c: New file.
60978         * lib/unictype/categ_byname.c: New file.
60979         * lib/unictype/categ_name.c: New file.
60980         * lib/unictype/categ_none.c: New file.
60981         * lib/unictype/categ_of.c: New file.
60982         * lib/unictype/categ_or.c: New file.
60983         * lib/unictype/categ_test.c: New file.
60984         * lib/unictype/combining.c: New file.
60985         * lib/unictype/ctype_alnum.c: New file.
60986         * lib/unictype/ctype_alpha.c: New file.
60987         * lib/unictype/ctype_blank.c: New file.
60988         * lib/unictype/ctype_cntrl.c: New file.
60989         * lib/unictype/ctype_digit.c: New file.
60990         * lib/unictype/ctype_graph.c: New file.
60991         * lib/unictype/ctype_lower.c: New file.
60992         * lib/unictype/ctype_print.c: New file.
60993         * lib/unictype/ctype_punct.c: New file.
60994         * lib/unictype/ctype_space.c: New file.
60995         * lib/unictype/ctype_upper.c: New file.
60996         * lib/unictype/ctype_xdigit.c: New file.
60997         * lib/unictype/decdigit.c: New file.
60998         * lib/unictype/digit.c: New file.
60999         * lib/unictype/identsyntaxmap.h: New file.
61000         * lib/unictype/mirror.c: New file.
61001         * lib/unictype/numeric.c: New file.
61002         * lib/unictype/pr_alphabetic.c: New file.
61003         * lib/unictype/pr_ascii_hex_digit.c: New file.
61004         * lib/unictype/pr_bidi_arabic_digit.c: New file.
61005         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
61006         * lib/unictype/pr_bidi_block_separator.c: New file.
61007         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
61008         * lib/unictype/pr_bidi_common_separator.c: New file.
61009         * lib/unictype/pr_bidi_control.c: New file.
61010         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
61011         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
61012         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
61013         * lib/unictype/pr_bidi_european_digit.c: New file.
61014         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
61015         * lib/unictype/pr_bidi_left_to_right.c: New file.
61016         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
61017         * lib/unictype/pr_bidi_other_neutral.c: New file.
61018         * lib/unictype/pr_bidi_pdf.c: New file.
61019         * lib/unictype/pr_bidi_segment_separator.c: New file.
61020         * lib/unictype/pr_bidi_whitespace.c: New file.
61021         * lib/unictype/pr_byname.c: New file.
61022         * lib/unictype/pr_byname.gperf: New file.
61023         * lib/unictype/pr_combining.c: New file.
61024         * lib/unictype/pr_composite.c: New file.
61025         * lib/unictype/pr_currency_symbol.c: New file.
61026         * lib/unictype/pr_dash.c: New file.
61027         * lib/unictype/pr_decimal_digit.c: New file.
61028         * lib/unictype/pr_default_ignorable_code_point.c: New file.
61029         * lib/unictype/pr_deprecated.c: New file.
61030         * lib/unictype/pr_diacritic.c: New file.
61031         * lib/unictype/pr_extender.c: New file.
61032         * lib/unictype/pr_format_control.c: New file.
61033         * lib/unictype/pr_grapheme_base.c: New file.
61034         * lib/unictype/pr_grapheme_extend.c: New file.
61035         * lib/unictype/pr_grapheme_link.c: New file.
61036         * lib/unictype/pr_hex_digit.c: New file.
61037         * lib/unictype/pr_hyphen.c: New file.
61038         * lib/unictype/pr_id_continue.c: New file.
61039         * lib/unictype/pr_id_start.c: New file.
61040         * lib/unictype/pr_ideographic.c: New file.
61041         * lib/unictype/pr_ids_binary_operator.c: New file.
61042         * lib/unictype/pr_ids_trinary_operator.c: New file.
61043         * lib/unictype/pr_ignorable_control.c: New file.
61044         * lib/unictype/pr_iso_control.c: New file.
61045         * lib/unictype/pr_join_control.c: New file.
61046         * lib/unictype/pr_left_of_pair.c: New file.
61047         * lib/unictype/pr_line_separator.c: New file.
61048         * lib/unictype/pr_logical_order_exception.c: New file.
61049         * lib/unictype/pr_lowercase.c: New file.
61050         * lib/unictype/pr_math.c: New file.
61051         * lib/unictype/pr_non_break.c: New file.
61052         * lib/unictype/pr_not_a_character.c: New file.
61053         * lib/unictype/pr_numeric.c: New file.
61054         * lib/unictype/pr_other_alphabetic.c: New file.
61055         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
61056         * lib/unictype/pr_other_grapheme_extend.c: New file.
61057         * lib/unictype/pr_other_id_continue.c: New file.
61058         * lib/unictype/pr_other_id_start.c: New file.
61059         * lib/unictype/pr_other_lowercase.c: New file.
61060         * lib/unictype/pr_other_math.c: New file.
61061         * lib/unictype/pr_other_uppercase.c: New file.
61062         * lib/unictype/pr_paired_punctuation.c: New file.
61063         * lib/unictype/pr_paragraph_separator.c: New file.
61064         * lib/unictype/pr_pattern_syntax.c: New file.
61065         * lib/unictype/pr_pattern_white_space.c: New file.
61066         * lib/unictype/pr_private_use.c: New file.
61067         * lib/unictype/pr_punctuation.c: New file.
61068         * lib/unictype/pr_quotation_mark.c: New file.
61069         * lib/unictype/pr_radical.c: New file.
61070         * lib/unictype/pr_sentence_terminal.c: New file.
61071         * lib/unictype/pr_soft_dotted.c: New file.
61072         * lib/unictype/pr_space.c: New file.
61073         * lib/unictype/pr_terminal_punctuation.c: New file.
61074         * lib/unictype/pr_test.c: New file.
61075         * lib/unictype/pr_titlecase.c: New file.
61076         * lib/unictype/pr_unassigned_code_value.c: New file.
61077         * lib/unictype/pr_unified_ideograph.c: New file.
61078         * lib/unictype/pr_uppercase.c: New file.
61079         * lib/unictype/pr_variation_selector.c: New file.
61080         * lib/unictype/pr_white_space.c: New file.
61081         * lib/unictype/pr_xid_continue.c: New file.
61082         * lib/unictype/pr_xid_start.c: New file.
61083         * lib/unictype/pr_zero_width.c: New file.
61084         * lib/unictype/scripts.c: New file.
61085         * lib/unictype/sy_c_ident.c: New file.
61086         * lib/unictype/sy_c_whitespace.c: New file.
61087         * lib/unictype/sy_java_ident.c: New file.
61088         * lib/unictype/sy_java_whitespace.c: New file.
61089
61090         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
61091         Unicode 5.0.0.
61092         * lib/unictype/blocks.h: Likewise.
61093         * lib/unictype/categ_C.h: Likewise.
61094         * lib/unictype/categ_Cc.h: Likewise.
61095         * lib/unictype/categ_Cf.h: Likewise.
61096         * lib/unictype/categ_Cn.h: Likewise.
61097         * lib/unictype/categ_Co.h: Likewise.
61098         * lib/unictype/categ_Cs.h: Likewise.
61099         * lib/unictype/categ_L.h: Likewise.
61100         * lib/unictype/categ_Ll.h: Likewise.
61101         * lib/unictype/categ_Lm.h: Likewise.
61102         * lib/unictype/categ_Lo.h: Likewise.
61103         * lib/unictype/categ_Lt.h: Likewise.
61104         * lib/unictype/categ_Lu.h: Likewise.
61105         * lib/unictype/categ_M.h: Likewise.
61106         * lib/unictype/categ_Mc.h: Likewise.
61107         * lib/unictype/categ_Me.h: Likewise.
61108         * lib/unictype/categ_Mn.h: Likewise.
61109         * lib/unictype/categ_N.h: Likewise.
61110         * lib/unictype/categ_Nd.h: Likewise.
61111         * lib/unictype/categ_Nl.h: Likewise.
61112         * lib/unictype/categ_No.h: Likewise.
61113         * lib/unictype/categ_P.h: Likewise.
61114         * lib/unictype/categ_Pc.h: Likewise.
61115         * lib/unictype/categ_Pd.h: Likewise.
61116         * lib/unictype/categ_Pe.h: Likewise.
61117         * lib/unictype/categ_Pf.h: Likewise.
61118         * lib/unictype/categ_Pi.h: Likewise.
61119         * lib/unictype/categ_Po.h: Likewise.
61120         * lib/unictype/categ_Ps.h: Likewise.
61121         * lib/unictype/categ_S.h: Likewise.
61122         * lib/unictype/categ_Sc.h: Likewise.
61123         * lib/unictype/categ_Sk.h: Likewise.
61124         * lib/unictype/categ_Sm.h: Likewise.
61125         * lib/unictype/categ_So.h: Likewise.
61126         * lib/unictype/categ_Z.h: Likewise.
61127         * lib/unictype/categ_Zl.h: Likewise.
61128         * lib/unictype/categ_Zp.h: Likewise.
61129         * lib/unictype/categ_Zs.h: Likewise.
61130         * lib/unictype/categ_of.h: Likewise.
61131         * lib/unictype/combining.h: Likewise.
61132         * lib/unictype/ctype_alnum.h: Likewise.
61133         * lib/unictype/ctype_alpha.h: Likewise.
61134         * lib/unictype/ctype_blank.h: Likewise.
61135         * lib/unictype/ctype_cntrl.h: Likewise.
61136         * lib/unictype/ctype_digit.h: Likewise.
61137         * lib/unictype/ctype_graph.h: Likewise.
61138         * lib/unictype/ctype_lower.h: Likewise.
61139         * lib/unictype/ctype_print.h: Likewise.
61140         * lib/unictype/ctype_punct.h: Likewise.
61141         * lib/unictype/ctype_space.h: Likewise.
61142         * lib/unictype/ctype_upper.h: Likewise.
61143         * lib/unictype/ctype_xdigit.h: Likewise.
61144         * lib/unictype/decdigit.h: Likewise.
61145         * lib/unictype/digit.h: Likewise.
61146         * lib/unictype/mirror.h: Likewise.
61147         * lib/unictype/numeric.h: Likewise.
61148         * lib/unictype/pr_alphabetic.h: Likewise.
61149         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61150         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61151         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61152         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61153         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61154         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61155         * lib/unictype/pr_bidi_control.h: Likewise.
61156         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61157         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61158         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61159         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61160         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61161         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61162         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61163         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61164         * lib/unictype/pr_bidi_pdf.h: Likewise.
61165         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61166         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61167         * lib/unictype/pr_combining.h: Likewise.
61168         * lib/unictype/pr_composite.h: Likewise.
61169         * lib/unictype/pr_currency_symbol.h: Likewise.
61170         * lib/unictype/pr_dash.h: Likewise.
61171         * lib/unictype/pr_decimal_digit.h: Likewise.
61172         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61173         * lib/unictype/pr_deprecated.h: Likewise.
61174         * lib/unictype/pr_diacritic.h: Likewise.
61175         * lib/unictype/pr_extender.h: Likewise.
61176         * lib/unictype/pr_format_control.h: Likewise.
61177         * lib/unictype/pr_grapheme_base.h: Likewise.
61178         * lib/unictype/pr_grapheme_extend.h: Likewise.
61179         * lib/unictype/pr_grapheme_link.h: Likewise.
61180         * lib/unictype/pr_hex_digit.h: Likewise.
61181         * lib/unictype/pr_hyphen.h: Likewise.
61182         * lib/unictype/pr_id_continue.h: Likewise.
61183         * lib/unictype/pr_id_start.h: Likewise.
61184         * lib/unictype/pr_ideographic.h: Likewise.
61185         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61186         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61187         * lib/unictype/pr_ignorable_control.h: Likewise.
61188         * lib/unictype/pr_iso_control.h: Likewise.
61189         * lib/unictype/pr_join_control.h: Likewise.
61190         * lib/unictype/pr_left_of_pair.h: Likewise.
61191         * lib/unictype/pr_line_separator.h: Likewise.
61192         * lib/unictype/pr_logical_order_exception.h: Likewise.
61193         * lib/unictype/pr_lowercase.h: Likewise.
61194         * lib/unictype/pr_math.h: Likewise.
61195         * lib/unictype/pr_non_break.h: Likewise.
61196         * lib/unictype/pr_not_a_character.h: Likewise.
61197         * lib/unictype/pr_numeric.h: Likewise.
61198         * lib/unictype/pr_other_alphabetic.h: Likewise.
61199         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61200         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61201         * lib/unictype/pr_other_id_continue.h: Likewise.
61202         * lib/unictype/pr_other_id_start.h: Likewise.
61203         * lib/unictype/pr_other_lowercase.h: Likewise.
61204         * lib/unictype/pr_other_math.h: Likewise.
61205         * lib/unictype/pr_other_uppercase.h: Likewise.
61206         * lib/unictype/pr_paired_punctuation.h: Likewise.
61207         * lib/unictype/pr_paragraph_separator.h: Likewise.
61208         * lib/unictype/pr_pattern_syntax.h: Likewise.
61209         * lib/unictype/pr_pattern_white_space.h: Likewise.
61210         * lib/unictype/pr_private_use.h: Likewise.
61211         * lib/unictype/pr_punctuation.h: Likewise.
61212         * lib/unictype/pr_quotation_mark.h: Likewise.
61213         * lib/unictype/pr_radical.h: Likewise.
61214         * lib/unictype/pr_sentence_terminal.h: Likewise.
61215         * lib/unictype/pr_soft_dotted.h: Likewise.
61216         * lib/unictype/pr_space.h: Likewise.
61217         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61218         * lib/unictype/pr_titlecase.h: Likewise.
61219         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61220         * lib/unictype/pr_unified_ideograph.h: Likewise.
61221         * lib/unictype/pr_uppercase.h: Likewise.
61222         * lib/unictype/pr_variation_selector.h: Likewise.
61223         * lib/unictype/pr_white_space.h: Likewise.
61224         * lib/unictype/pr_xid_continue.h: Likewise.
61225         * lib/unictype/pr_xid_start.h: Likewise.
61226         * lib/unictype/pr_zero_width.h: Likewise.
61227         * lib/unictype/scripts.h: Likewise.
61228         * lib/unictype/scripts_byname.gperf: Likewise.
61229         * lib/unictype/sy_c_ident.h: Likewise.
61230         * lib/unictype/sy_c_whitespace.h: Likewise.
61231         * lib/unictype/sy_java_ident.h: Likewise.
61232         * lib/unictype/sy_java_whitespace.h: Likewise.
61233
61234         * lib/unictype/Makefile: New file.
61235         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61236         glibc.
61237         * lib/unictype/3level.h: New file, copied from glibc.
61238         * lib/unictype/3levelbit.h: New file.
61239
61240 2007-11-11  Bruno Haible  <bruno@clisp.org>
61241
61242         * modules/gperf: New file.
61243         * modules/iconv_open (Depends-on): Add it.
61244         (Makefile.am): Remove the GPERF definition.
61245
61246 2007-11-11  Bruno Haible  <bruno@clisp.org>
61247
61248         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61249         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61250
61251 2007-11-11  Bruno Haible  <bruno@clisp.org>
61252
61253         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61254         (usage): Remove function.
61255
61256 2007-11-11  Bruno Haible  <bruno@clisp.org>
61257
61258         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61259         gl_FUNC_CEILF_LIBS.
61260         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61261         gl_FUNC_CEIL_LIBS.
61262         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61263         gl_FUNC_CEILL_LIBS.
61264         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61265         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61266         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61267
61268 2007-11-11  Bruno Haible  <bruno@clisp.org>
61269
61270         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61271         roundf were declared but do not exist on functions.
61272         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61273         roundl were declared but do not exist on functions.
61274         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61275         HAVE_FLOORL_AND_CEILL, respectively.
61276         Needed for Sun C on Solaris 10.
61277
61278 2007-11-11  Bruno Haible  <bruno@clisp.org>
61279
61280         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61281         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61282         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61283         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61284         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61285         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61286         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61287         HAVE_DECL_ROUNDF.
61288         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61289         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61291         of HAVE_DECL_ROUND*.
61292         * modules/math (Makefile.am): Update.
61293
61294 2007-11-10  Bruno Haible  <bruno@clisp.org>
61295
61296         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61297         ptrdiff_t as m4/intl.m4.
61298
61299 2007-11-10  Jim Meyering  <meyering@redhat.com>
61300
61301         Avoid link failure for the argmatch test.
61302         * tests/test-argmatch.c (usage): Define function to avoid a link
61303         failure: argmatch_die requires a usage function.
61304
61305 2007-11-09  Bruno Haible  <bruno@clisp.org>
61306
61307         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61308         * doc/functions/vsnprintf.texi: Likewise.
61309         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61310         with a size argument < 2.
61311
61312 2007-11-09  Bruno Haible  <bruno@clisp.org>
61313
61314         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61315         buffer. Fixes an inefficiency introduced on 2007-11-03.
61316
61317 2007-11-09  Bruno Haible  <bruno@clisp.org>
61318
61319         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61320         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61321
61322 2007-11-08  Jim Meyering  <meyering@redhat.com>
61323
61324         Change cache variable name prefix "jm_" to "gl_" everywhere.
61325         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61326         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61327         * m4/uptime.m4: s/gl_/jm_/
61328
61329 2007-11-07  Bruno Haible  <bruno@clisp.org>
61330
61331         Update to GNU gettext 0.17.
61332         * m4/intl.m4: Update to GNU gettext 0.17.
61333         * m4/po.m4: Likewise.
61334         * modules/gettext (Files): Remove m4/ulonglong.m4.
61335         (configure.ac): Require gettext infrastructure from version 0.17.
61336
61337 2007-11-06  Bruno Haible  <bruno@clisp.org>
61338
61339         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61340         symbolic values are not defined in a public header.
61341         * lib/freadable.c (freadable) [QNX]: Likewise.
61342         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61343         * lib/freading.c (freading) [QNX]: Likewise.
61344         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61345         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61346         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61347         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61348         Reported by Alain Magloire.
61349
61350         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61351
61352 2007-11-05  Bruno Haible  <bruno@clisp.org>
61353
61354         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61355         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61356         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61357         Reported by Eric Blake.
61358
61359 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61360             Bruno Haible  <bruno@clisp.org>
61361
61362         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61363         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61364         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61365         (malloc): Undefine also before including <stdlib.h>.
61366         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61367         Needed on OSF/1 4.0.
61368
61369 2007-11-05  Jim Meyering  <meyering@redhat.com>
61370
61371         git-version-gen: sync from coreutils.
61372         * build-aux/git-version-gen: Add comments.
61373         Change the first '-' to '.' in the snapshot version string,
61374         e.g., 6.9-377-08144 -> 6.9.377-08144
61375         Remove first parameter.
61376         Don't declare a version "-dirty" merely because a time
61377         stamp has changed.
61378
61379 2007-11-04  Bruno Haible  <bruno@clisp.org>
61380
61381         * lib/lock.h: Protect all macro definitions containing an 'if'
61382         statement through a "do { ... } while (0)".
61383         * lib/tls.h: Likewise.
61384
61385 2007-11-04  Bruno Haible  <bruno@clisp.org>
61386
61387         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61388
61389 2007-11-04  Bruno Haible  <bruno@clisp.org>
61390
61391         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61392         * modules/fprintf-posix (Depends-on): Add nocrash.
61393         * modules/snprintf-posix (Depends-on): Likewise.
61394         * modules/sprintf-posix (Depends-on): Likewise.
61395         * modules/vasnprintf-posix (Depends-on): Likewise.
61396         * modules/vasprintf-posix (Depends-on): Likewise.
61397         * modules/vfprintf-posix (Depends-on): Likewise.
61398         * modules/vsnprintf-posix (Depends-on): Likewise.
61399         * modules/vsprintf-posix (Depends-on): Likewise.
61400         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61401         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61402         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61403         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61404         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61405         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61406         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61407
61408 2007-11-04  Bruno Haible  <bruno@clisp.org>
61409
61410         * modules/nocrash: New file.
61411         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61412         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61413
61414 2007-11-04  Bruno Haible  <bruno@clisp.org>
61415
61416         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61417         precision handling.
61418         * tests/test-vasprintf-posix.c (test_function): Likewise.
61419         * tests/test-snprintf-posix.h (test_function): Likewise.
61420         * tests/test-sprintf-posix.h (test_function): Likewise.
61421
61422         Fix *printf behaviour for large precisions on mingw and BeOS.
61423         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61424         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61426         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61427         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61428         gl_PRINTF_PRECISION and test its result. Invoke
61429         gl_PREREQ_VASNPRINTF_PRECISION.
61430         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61431         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61432         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61433         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61434         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61435         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61436         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61437         * doc/functions/fprintf.texi: Update.
61438         * doc/functions/printf.texi: Update.
61439         * doc/functions/snprintf.texi: Update.
61440         * doc/functions/sprintf.texi: Update.
61441         * doc/functions/vfprintf.texi: Update.
61442         * doc/functions/vprintf.texi: Update.
61443         * doc/functions/vsnprintf.texi: Update.
61444         * doc/functions/vsprintf.texi: Update.
61445
61446 2007-11-04  Bruno Haible  <bruno@clisp.org>
61447
61448         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61449
61450 2007-11-04  Bruno Haible  <bruno@clisp.org>
61451
61452         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61453         Reported by Sylvain Beucler <beuc@gnu.org>.
61454
61455 2007-11-03  Bruno Haible  <bruno@clisp.org>
61456
61457         * tests/test-fprintf-posix2.sh: New file.
61458         * tests/test-fprintf-posix2.c: New file.
61459         * modules/fprintf-posix-tests (Files): Add them.
61460         (TESTS): Add test-fprintf-posix2.sh.
61461         (configure.ac): Check for getrlimit and setrlimit.
61462         (check_PROGRAMS): Add test-fprintf-posix2.
61463
61464         * tests/test-printf-posix2.sh: New file.
61465         * tests/test-printf-posix2.c: New file.
61466         * modules/printf-posix-tests (Files): Add them.
61467         (TESTS): Add test-printf-posix2.sh.
61468         (configure.ac): Check for getrlimit and setrlimit.
61469         (check_PROGRAMS): Add test-printf-posix2.
61470
61471         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61472         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61473         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61474         (decode_double): New function, copied from decode_long_double.
61475         (scale10_round_decimal_decoded): New function, extracted from
61476         scale10_round_decimal_long_double.
61477         (scale10_round_decimal_long_double): Use it.
61478         (scale10_round_decimal_double): New function.
61479         (floorlog10): New function.
61480         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61482         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61483         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61484         gl_PRINTF_ENOMEM and test its result. Invoke
61485         gl_PREREQ_VASNPRINTF_ENOMEM.
61486         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61487         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61488         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61489         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61490         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61491         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61492         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61493         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61494         * modules/snprintf-posix (Depends-on): Likewise.
61495         * modules/sprintf-posix (Depends-on): Likewise.
61496         * modules/vasnprintf-posix (Depends-on): Likewise.
61497         * modules/vasprintf-posix (Depends-on): Likewise.
61498         * modules/vfprintf-posix (Depends-on): Likewise.
61499         * modules/vsnprintf-posix (Depends-on): Likewise.
61500         * modules/vsprintf-posix (Depends-on): Likewise.
61501         * doc/functions/fprintf.texi: Update.
61502         * doc/functions/printf.texi: Update.
61503         * doc/functions/snprintf.texi: Update.
61504         * doc/functions/sprintf.texi: Update.
61505         * doc/functions/vfprintf.texi: Update.
61506         * doc/functions/vprintf.texi: Update.
61507         * doc/functions/vsnprintf.texi: Update.
61508         * doc/functions/vsprintf.texi: Update.
61509
61510 2007-11-03  Bruno Haible  <bruno@clisp.org>
61511
61512         * modules/frexp-nolibm-tests: New file.
61513
61514         * modules/frexp-nolibm: New file.
61515         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61516
61517 2007-11-03  Bruno Haible  <bruno@clisp.org>
61518
61519         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61520         value is C99 compliant.
61521         Needed for OSF/1 5.1.
61522
61523 2007-11-03  Bruno Haible  <bruno@clisp.org>
61524
61525         Fix out-of-memory handling of vasnprintf.
61526         * lib/printf-parse.c: Include <errno.h>.
61527         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61528         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61529         is already set.
61530
61531 2007-11-02  Eric Blake  <ebb9@byu.net>
61532
61533         Fix tests on cygwin.
61534         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61535
61536 2007-11-01  Bruno Haible  <bruno@clisp.org>
61537
61538         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61539         warning.
61540         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61541         needed for POSIX compatibility.
61542
61543 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61544
61545         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61546         for compatibility with GNU.
61547
61548 2007-11-01  Bruno Haible  <bruno@clisp.org>
61549
61550         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61551         (putenv): Renamed from rpl_putenv. Change argument type from
61552         'const char *' to 'char *'.
61553         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61554         of defining putenv in config.h, just set REPLACE_PUTENV.
61555         * modules/putenv (Depends-on): Add stdlib.
61556         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61557         (Include): Use <stdlib.h>.
61558         * lib/stdlib.in.h (putenv): New declaration.
61559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61560         REPLACE_PUTENV.
61561         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61562         REPLACE_PUTENV.
61563         Needed for MacOS X 10.5.0.
61564         Reported by Peter O'Gorman <peter@pogma.com>.
61565
61566 2007-11-01  Jim Meyering  <meyering@redhat.com>
61567
61568         Treat an empty date string exactly like "0".
61569         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61570         if the remaining date string (to be parsed) is empty, use "0".
61571         Reported by Mischa Molhoek and discussed in this thread:
61572         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61573
61574 2007-10-31  Bruno Haible  <bruno@clisp.org>
61575
61576         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61577         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61578         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61579         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61580         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61581         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61582
61583 2007-10-31  Bruno Haible  <bruno@clisp.org>
61584
61585         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61586         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61587         (AC_TYPE_LONG_LONG_INT): Use it.
61588         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61589         it as well.
61590         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61591         to m4/longlong.m4.
61592         * modules/stdint (Files): Remove m4/ulonglong.m4.
61593         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61594         m4/ulonglong.m4.
61595         * modules/strtoumax (Files): Likewise.
61596
61597 2007-10-30  Bruno Haible  <bruno@clisp.org>
61598
61599         * modules/xvasprintf-posix: New file.
61600         Suggested by Eric Blake.
61601
61602 2007-10-30  Bruno Haible  <bruno@clisp.org>
61603
61604         * modules/xprintf-posix-tests: New file.
61605         * tests/test-xprintf-posix.sh: New file.
61606         * tests/test-xprintf-posix.c: New file.
61607         * tests/test-xfprintf-posix.c: New file.
61608
61609         * modules/xprintf-posix: New file.
61610
61611 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61612
61613         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61614         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61615         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61616
61617 2007-10-29  Bruno Haible  <bruno@clisp.org>
61618
61619         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61620         contain the special marker '_cv_'.
61621         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61622         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61623         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61624         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61625         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61626         Reported by Ralf Wildenhues.
61627
61628 2007-10-29  Bruno Haible  <bruno@clisp.org>
61629
61630         * gnulib-tool (func_import): When --lgpl is not specified, set
61631         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61632         GPLv3.
61633         Reported by Simon Josefsson.
61634
61635 2007-10-28  Bruno Haible  <bruno@clisp.org>
61636
61637         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61638         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61639         HAVE_DECL_ISFINITE.
61640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61641         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61642         HAVE_DECL_ISFINITE.
61643
61644 2007-10-28  Bruno Haible  <bruno@clisp.org>
61645
61646         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61647         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61648
61649 2007-10-28  Bruno Haible  <bruno@clisp.org>
61650
61651         Fix link errors with Sun C 5.0 on Solaris 10.
61652         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61653         function is declared but not present in the compiler's libm.
61654         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61655         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61656         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61657         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61658         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61659         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61660         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61662         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61663         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61664         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61665         HAVE_DECL_FLOORL.
61666
61667 2007-10-28  Bruno Haible  <bruno@clisp.org>
61668
61669         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61670         gl_FUNC_FLOORL. Cache the result.
61671         (gl_FUNC_FLOORL): Use it.
61672         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61673         gl_FUNC_CEILL. Cache the result.
61674         (gl_FUNC_CEILL): Use it.
61675
61676         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61677         gl_FUNC_FLOOR. Cache the result.
61678         (gl_FUNC_FLOOR): Use it.
61679         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61680         gl_FUNC_CEIL. Cache the result.
61681         (gl_FUNC_CEIL): Use it.
61682
61683         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61684         gl_FUNC_FLOORF. Cache the result.
61685         (gl_FUNC_FLOORF): Use it.
61686         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61687         gl_FUNC_CEILF. Cache the result.
61688         (gl_FUNC_CEILF): Use it.
61689
61690 2007-10-28  Bruno Haible  <bruno@clisp.org>
61691
61692         * gnulib-tool: Allow specifying the LGPL version number through
61693         --lgpl=2 or --lgpl=3.
61694         (func_usage): Document --lgpl with argument.
61695         Handle --lgpl=... arguments.
61696         (func_import): Recognize also gl_LGPL calls with an argument. When
61697         --lgpl=2 is used and the module's license is just LGPL, report an
61698         error. Set sed_transform_lib_file according to the lgpl variable. In
61699         the generated files, use --lgpl or gl_LGPL invocations with argument,
61700         if necessary.
61701         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61702         an LGPv2+ license.
61703         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61704         gl_LGPL macro.
61705
61706 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61707             Bruno Haible  <bruno@clisp.org>
61708
61709         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61710         (u16_uctomb_aux): Likewise.
61711         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61712         !HAVE_INLINE.
61713         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61714
61715 2007-10-28  Bruno Haible  <bruno@clisp.org>
61716
61717         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61718         Invoke AM_GETTEXT_OPTION if it exists.
61719         * modules/vasprintf: Likewise.
61720         * modules/verror: Likewise.
61721         * modules/xprintf: Likewise.
61722         * modules/xvasprintf: Likewise.
61723
61724 2007-10-27  Ben Pfaff  <blp@gnu.org>
61725
61726         * lib/math.in.h: Define isfinite macro and prototypes for
61727         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61728         implementations.
61729         * m4/math_h.m4: New substitutions for isfinite module.
61730         * lib/isfinite.c: New file.
61731         * m4/isfinite.m4: New file.
61732         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61733         * modules/isfinite: New file.
61734         * modules/isfinite-tests: New file.
61735         * tests/tests-isfinite.c: New file.
61736         * doc/functions/isfinite.texi: Mention isfinite module.
61737         * MODULES.html.sh: Mention new module.
61738
61739 2007-10-27  Ben Pfaff  <blp@gnu.org>
61740
61741         Ralf Wildenhues reported that Tru64 4.0D declares the round
61742         functions but does not have definitions.
61743         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61744         cannot be found in any library, set the output variable to
61745         "missing" instead of "".
61746         * m4/round.m4: Also use our substitute if we cannot find round in
61747         any library, even if it is declared.
61748         * m4/roundf.m4: Likewise for roundf.
61749         * m4/roundl.m4: Likewise for roundl.
61750         * lib/math.in.h: Undefine roundf, round, roundl before defining
61751         their replacements, to allow for hypothetical systems where these
61752         may be defined as macros but not available in libraries.
61753
61754 2007-10-27  Bruno Haible  <bruno@clisp.org>
61755
61756         * doc/gnulib.texi: Invoke @firstparagraphindent.
61757         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61758         changes in gnulib.
61759         (Source changes): New section.
61760
61761 2007-10-26  Bruno Haible  <bruno@clisp.org>
61762
61763         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61764         borrowed from autoconf.
61765
61766 2007-10-26  Bruno Haible  <bruno@clisp.org>
61767
61768         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61769         strerror returned the empty string. Needed on HP-UX 11.00.
61770
61771 2007-10-24  Micah Cowan  <micah@cowan.name>
61772
61773         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61774         * build-aux/bootstrap: Remove support for now-unnecessary option,
61775         --cvs-user, and envvars CVS_USER, CVS_RSH.
61776
61777 2007-10-24  Jim Meyering  <meyering@redhat.com>
61778
61779         Avoid diagnostics from sha1sum when there is no cached checksum.
61780         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61781         if the po.s1 file hasn't been created yet.
61782
61783         * build-aux/bootstrap: Sync from coreutils:
61784         2007-10-24  Jim Meyering  <meyering@redhat.com>
61785         Get gnulib from the git repository, not from an obsolete cvs one.
61786         * build-aux/bootstrap: Suggestion from Micah Cowan.
61787         2007-10-04  Jim Meyering  <jim@meyering.net>
61788         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61789         (update_po_files): Work also when there are no .po files in po/.
61790
61791 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61792
61793         * README: Append ".git" to git and cg examples.
61794         Problem reported by Benoit Sigoure.
61795
61796 2007-10-23  Micah Cowan  <micah@cowan.name>
61797
61798         * users.txt: Add wget.
61799
61800 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61801
61802         Fix linking of some unistdio tests on FreeBSD.
61803         * modules/unistdio/u16-vsnprintf-tests
61804         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61805         * modules/unistdio/u16-vsprintf-tests
61806         (test_u16_vsnprintf1_LDADD): Likewise.
61807         * modules/unistdio/u32-vsnprintf-tests
61808         (test_u32_vsnprintf1_LDADD): Likewise.
61809         * modules/unistdio/u32-vsprintf-tests
61810         (test_u32_vsprintf1_LDADD): Likewise.
61811         * modules/unistdio/u8-vsnprintf-tests
61812         (test_u8_vsnprintf1_LDADD): Likewise.
61813         * modules/unistdio/u8-vsprintf-tests
61814         (test_u8_vsprintf1_LDADD): Likewise.
61815         * modules/unistdio/ulc-vsnprintf-tests
61816         (test_ulc_vsnprintf1_LDADD): Likewise.
61817         * modules/unistdio/ulc-vsprintf-tests
61818         (test_ulc_vsprintf1_LDADD): Likewise.
61819
61820         Fix linking of some uniconv tests on FreeBSD.
61821         * modules/uniconv/u16-conv-from-enc-tests
61822         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61823         * modules/uniconv/u16-conv-to-enc-tests
61824         (test_u16_conv_to_enc_LDADD): Likewise.
61825         * modules/uniconv/u16-strconv-from-enc-tests
61826         (test_u16_strconv_from_enc_LDADD): Likewise.
61827         * modules/uniconv/u16-strconv-to-enc-tests
61828         (test_u16_strconv_to_enc_LDADD): Likewise.
61829         * modules/uniconv/u32-conv-from-enc-tests
61830         (test_u32_conv_from_enc_LDADD): Likewise.
61831         * modules/uniconv/u32-conv-to-enc-tests
61832         (test_u32_conv_to_enc_LDADD): Likewise.
61833         * modules/uniconv/u32-strconv-from-enc-tests
61834         (test_u32_strconv_from_enc_LDADD): Likewise.
61835         * modules/uniconv/u32-strconv-to-enc-tests
61836         (test_u32_strconv_to_enc_LDADD): Likewise.
61837         * modules/uniconv/u8-conv-from-enc-tests
61838         (test_u8_conv_from_enc_LDADD): Likewise.
61839         * modules/uniconv/u8-conv-to-enc-tests
61840         (test_u8_conv_to_enc_LDADD): Likewise.
61841         * modules/uniconv/u8-strconv-from-enc-tests
61842         (test_u8_strconv_from_enc_LDADD): Likewise.
61843         * modules/uniconv/u8-strconv-to-enc-tests
61844         (test_u8_strconv_to_enc_LDADD): Likewise.
61845
61846 2007-10-22  Bruno Haible  <bruno@clisp.org>
61847
61848         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61849         size.
61850
61851 2007-10-22  Eric Blake  <ebb9@byu.net>
61852
61853         Tweak x*printf documentation.
61854         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61855         variable name and comments.
61856         Suggested by Bruno Haible.
61857
61858 2007-10-22  Bruno Haible  <bruno@clisp.org>
61859
61860         * lib/acl.c (copy_acl): Fix file name in comment.
61861
61862 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61863
61864         Fix Tru64 problem with stdbool.h.
61865         * lib/stdbool.in.h (false, true):
61866         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61867         Don't declare as an enum in this situation; it runs afoul of Tru64.
61868         Problem reported by Steven M. Schweda in
61869         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61870
61871 2007-10-22  Eric Blake  <ebb9@byu.net>
61872
61873         Also wrap vf?printf.
61874         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61875         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61876         (xvprintf, xvfprintf): New functions.
61877
61878 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61879
61880         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61881         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61882
61883         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61884         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61885
61886 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61887
61888         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61889         by Bruno Haible.
61890
61891 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61892
61893         * lib/getloadavg.c
61894         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61895         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61896
61897         * tests/test-i-ring.c: Work for C89.
61898
61899 2007-10-22  Bruno Haible  <bruno@clisp.org>
61900
61901         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61902         -1u, in preprocessor expression, so that we don't test for the bug
61903         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61904         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61905
61906 2007-10-22  Eric Blake  <ebb9@byu.net>
61907
61908         * tests/test-yesno.sh: Silence stderr during test.
61909
61910 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61911
61912         * modules/crypto/gc-camellia: New file.
61913
61914         * m4/gc-camellia.m4: New file.
61915
61916         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61917
61918         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61919
61920 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61921
61922         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61923         --help to stdout.  Reported by sms@antinode.org (Steven
61924         M. Schweda).
61925
61926 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61927
61928         * users.txt: Fix link to libksba.
61929
61930 2007-10-21  Ben Pfaff  <blp@gnu.org>
61931
61932         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61933         round.c roundf implementation that depends on floorf and ceilf to
61934         be tested unconditionally.
61935
61936 2007-10-21  Ben Pfaff  <blp@gnu.org>
61937
61938         * m4/check-libm-func.m4: Removed.
61939         * m4/check-math-lib.m4: New file.
61940         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61941         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61942         definition and lack of AC_LIBOBJ([roundf]).
61943         * m4/roundl.m4: Ditto, and similarly for roundl.
61944         * modules/round: Reference new m4 file.
61945         * modules/roundf: Ditto.
61946         * modules/roundl: Ditto.
61947         * tests/test-round2.c (main): Use ROUND instead of round.
61948         Bug report from Bruno Haible.
61949
61950 2007-10-21  Bruno Haible  <bruno@clisp.org>
61951
61952         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61953         context.
61954
61955 2007-10-21  Bruno Haible  <bruno@clisp.org>
61956
61957         * tests/test-wcwidth.c (main): Allow negative result for some control
61958         characters.
61959
61960         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61961         Needed on OSF/1 5.1.
61962
61963 2007-10-21  Bruno Haible  <bruno@clisp.org>
61964
61965         * tests/test-floorf1.c: Include isnanf.h.
61966         (main): Use isnanf() instead of isnan().
61967         * tests/test-ceilf1.c: Include isnanf.h.
61968         (main): Use isnanf() instead of isnan().
61969         * tests/test-truncf1.c: Include isnanf.h.
61970         (main): Use isnanf() instead of isnan().
61971         * tests/test-roundf1.c: Include isnanf.h.
61972         (main): Use isnanf() instead of isnan().
61973
61974 2007-10-21  Eric Blake  <ebb9@byu.net>
61975
61976         * users.txt: Update URL for m4.
61977
61978 2007-10-21  Bruno Haible  <bruno@clisp.org>
61979
61980         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61981
61982 2007-10-21  Bruno Haible  <bruno@clisp.org>
61983
61984         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61985         Git's management files if the CVS files are not present.
61986
61987 2007-10-20  Bruno Haible  <bruno@clisp.org>
61988
61989         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61990         gcc-3.4.x.
61991
61992 2007-10-20  Ben Pfaff  <blp@gnu.org>
61993
61994         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61995         implementations.
61996         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61997         * lib/round.c: New file.
61998         * lib/roundf.c: New file.
61999         * lib/roundl.c: New file.
62000         * m4/round.m4: New file.
62001         * m4/roundf.m4: New file.
62002         * m4/roundl.m4: New file.
62003         * m4/check-libm-func-m4: New file.
62004         * modules/math: Replace round, roundf, roundl related @VARS@ in
62005         math.in.h.
62006         * modules/round: New file.
62007         * modules/round-tests: New file.
62008         * modules/roundf: New file.
62009         * modules/roundf-tests: New file.
62010         * modules/roundl: New file.
62011         * modules/roundl-tests: New file.
62012         * tests/test-round1.c: New file.
62013         * tests/test-round2.c: New file.
62014         * tests/test-roundf1.c: New file.
62015         * tests/test-roundf2.c: New file.
62016         * tests/test-roundl.c: New file.
62017         * doc/functions/round.texi: Mention round module.
62018         * doc/functions/roundf.texi: Mention roundf module.
62019         * doc/functions/roundl.texi: Mention roundl module.
62020         * MODULES.html.sh: Mention new modules.
62021         Thanks to Bruno Haible for suggestions.
62022
62023 2007-10-20  Jim Meyering  <meyering@redhat.com>
62024
62025         * lib/xprintf.c: Include <config.h> unconditionally.
62026
62027         Change xprintf's license to GPL.
62028         * modules/xprintf (License): s/LGPL/GPL/, since this module
62029         depends on modules (exit and exitfail) which are GPL.
62030         Suggestion from Bruno Haible.
62031
62032         xprintf fixes.
62033         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
62034         Use a clearer diagnostic.
62035         Patch from Bruno Haible.
62036
62037 2007-10-20  Bruno Haible  <bruno@clisp.org>
62038
62039         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
62040         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
62041         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62042
62043 2007-10-20  Bruno Haible  <bruno@clisp.org>
62044
62045         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
62046         precision in the comparison result > x - 1 or similar.
62047         * tests/test-ceilf2.c (correct_result_p): Likewise.
62048         * tests/test-truncf2.c (correct_result_p): Likewise.
62049         * tests/test-trunc2.c (correct_result_p): Likewise.
62050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62051
62052 2007-10-20  Bruno Haible  <bruno@clisp.org>
62053
62054         * modules/ceil: New file.
62055         * m4/ceil.m4: New file.
62056         * doc/functions/ceil.texi: Mention the 'ceil' module.
62057
62058 2007-10-20  Bruno Haible  <bruno@clisp.org>
62059
62060         * modules/floor: New file.
62061         * m4/floor.m4: New file.
62062         * doc/functions/floor.texi: Mention the 'floor' module.
62063
62064 2007-10-20  Bruno Haible  <bruno@clisp.org>
62065
62066         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
62067         of %a.
62068         * modules/floorf-tests (Depends-on): Likewise.
62069         * modules/truncf-tests (Depends-on): Likewise.
62070         * modules/trunc-tests (Depends-on): Likewise.
62071         Reported by Ben Pfaff.
62072
62073 2007-10-19  Jim Meyering  <meyering@redhat.com>
62074
62075         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
62076         Don't bother testing specific errno values.  Just test ferror.
62077
62078         New module: xprintf
62079         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
62080
62081 2007-10-19  Bruno Haible  <bruno@clisp.org>
62082
62083         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
62084         syntax.
62085         * modules/javaexec (Makefile.am): Likewise.
62086         * modules/relocatable-prog (Makefile.am): Likewise.
62087         Suggested by Jim Meyering.
62088
62089 2007-10-18  Bruno Haible  <bruno@clisp.org>
62090
62091         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
62092         Reported by Jim Meyering.
62093
62094 2007-10-18  Eric Blake  <ebb9@byu.net>
62095
62096         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
62097
62098 2007-10-18  Bruno Haible  <bruno@clisp.org>
62099
62100         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
62101         the format string into writable memory. Needed in Fortify conditions.
62102
62103 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
62104             Bruno Haible  <bruno@clisp.org>
62105
62106         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
62107         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
62108         * modules/trim (Depends-on): Add mbchar.
62109         (configure.ac): Add gl_FUNC_MBRTOWC.
62110         (Makefile.am): Augment lib_SOURCES.
62111
62112 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62113
62114         Modify glob.c to use fstatat and dirfd, to simplify it.
62115         Suggested by Eric Blake.
62116         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
62117         Don't include <stdbool.h>; not used.
62118         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
62119         (link_exists_p): Simplify implementation, since we can now assume
62120         dirfd and fstatat.
62121         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
62122
62123 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62124
62125         * gnulib-tool (func_get_dependencies): Fix sed script to
62126         match only tests.
62127
62128 2007-10-17  Bruno Haible  <bruno@clisp.org>
62129
62130         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
62131         allow locale names without encoding suffix.
62132         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62133         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62134
62135 2007-10-16  Bruno Haible  <bruno@clisp.org>
62136
62137         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62138         * lib/getgroups.c (getgroups): Likewise.
62139         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62140
62141 2007-10-16  Bruno Haible  <bruno@clisp.org>
62142
62143         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62144         * modules/malloc-posix (License): Likewise.
62145         * modules/realloc-posix (License): Likewise.
62146         * modules/calloc-posix (License): Likewise.
62147         * modules/intprops (License): Change from GPL to LGPL, with
62148         Paul Eggert's approval.
62149
62150 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62151
62152         Merge glibc changes into lib/glob.c.
62153
62154         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62155         2007-10-15 04:59:03 UTC.  Here are the changes:
62156
62157         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62158
62159         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62160
62161         * lib/glob.c: Add some branch prediction throughout.
62162
62163         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62164
62165         [BZ #5103]
62166         * lib/glob.c (glob): Recognize patterns starting \/.
62167
62168         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62169
62170         [BZ #3996]
62171         * lib/glob.c (attribute_hidden): Define if not defined.
62172         (glob): Unescape dirname, filename or username when needed and not
62173         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62174         is NULL.  Handle unescaped [ in pattern without closing ].
62175         Don't pass GLOB_CHECK down to recursive glob for directories.
62176         (__glob_pattern_type): New function.
62177         (__glob_pattern_p): Implement using __glob_pattern_type.
62178         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62179         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62180         Remove unreachable code.
62181
62182         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62183
62184         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62185         explain why there are no leaks.
62186
62187         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62188
62189         [BZ #3253]
62190         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62191         time, rather allocate increasingly bigger arrays of pointers, if
62192         possible with alloca, if too large with malloc.
62193
62194 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62195
62196         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62197         Problem reported by H.Merijn Brand in
62198         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62199         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62200         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62201
62202 2007-10-15  Bruno Haible  <bruno@clisp.org>
62203
62204         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62205         with explicit rpl_ prefix.
62206         * lib/fopen.c (fopen): Likewise.
62207         * lib/freopen.c (freopen): Likewise.
62208         * lib/iconv.c (iconv): Likewise.
62209         * lib/iconv_close.c (iconv_close): Likewise.
62210
62211 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62212
62213         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62214
62215 2007-10-15  Bruno Haible  <bruno@clisp.org>
62216
62217         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62218         <stddef.h> instead of <stdlib.h> since we only need NULL.
62219         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62220
62221 2007-10-15  Bruno Haible  <bruno@clisp.org>
62222
62223         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62224         Replace paragraph talking about LIBOBJS.
62225         Reported by Colin Watson <cjwatson@debian.org>.
62226
62227 2007-10-15  Bruno Haible  <bruno@clisp.org>
62228
62229         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62230         <stdlib.h> before using NULL.
62231
62232 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62233
62234         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62235         Reported by Albert Chin <china@thewrittenword.com>.
62236
62237 2007-10-14  Bruno Haible  <bruno@clisp.org>
62238
62239         * modules/iconv_open-utf-tests: New file.
62240         * tests/test-iconv-utf.c: New file.
62241
62242         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62243         * modules/iconv_open-utf: New file.
62244         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62245         (iconv, iconv_close): New declarations.
62246         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62247         be defined.
62248         (iconv_open): Add special handling of conversion between UTF-8 and
62249         UTF-{16,32}{BE,LE}.
62250         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62251         * lib/iconv_close.c: New file.
62252         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62253         gl_FUNC_ICONV_OPEN.
62254         (gl_FUNC_ICONV_OPEN): Use it.
62255         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62256         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62257         and REPLACE_ICONV_UTF.
62258         * modules/iconv_open (Depends-on): Add c-strcase.
62259         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62260         ICONV_CONST.
62261         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62262
62263 2007-10-13  Albert Chin  <china@thewrittenword.com>
62264             Bruno Haible  <bruno@clisp.org>
62265
62266         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62267         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62268
62269 2007-10-13  Bruno Haible  <bruno@clisp.org>
62270
62271         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62272         defined, use the ISO C99 inline semantics.
62273         * lib/argp.h (ARGP_EI): Likewise.
62274
62275 2007-10-13  Bruno Haible  <bruno@clisp.org>
62276
62277         Handle 'inline' change in gcc 4.3.0.
62278         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62279         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62280         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62281         argp_fmtstream_point): Disable 'extern' declaration if the function
62282         definition is going to be provided inline.
62283         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62284         semantics, not the ISO C99 inline semantics.
62285         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62286         'extern' declaration if the function definition is going to be provided
62287         inline.
62288         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62289         the GNU C inline semantics, not the ISO C99 inline semantics. With
62290         GCC 4.2, avoid a warning.
62291
62292 2007-10-13  Bruno Haible  <bruno@clisp.org>
62293
62294         * lib/freading.h (freading): Enable the use of __freading for
62295         glibc >= 2.7.
62296         * lib/freading.c (freading): Likewise.
62297
62298 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62299
62300         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62301         "warning: C99 inline functions are not supported; using GNU89".
62302
62303 2007-10-12  Bruno Haible  <bruno@clisp.org>
62304
62305         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62306         of 2.
62307         * tests/test-ceilf2.c: New file.
62308         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62309
62310         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62311         * modules/ceilf-tests: Update.
62312
62313 2007-10-12  Bruno Haible  <bruno@clisp.org>
62314
62315         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62316         of 2.
62317         * tests/test-floorf2.c: New file.
62318         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62319
62320         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62321         * modules/floorf-tests: Update.
62322
62323 2007-10-12  Bruno Haible  <bruno@clisp.org>
62324
62325         * tests/test-trunc2.c: New file.
62326         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62327
62328         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62329         * modules/trunc-tests: Update.
62330
62331 2007-10-12  Bruno Haible  <bruno@clisp.org>
62332
62333         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62334         of 2.
62335         * tests/test-truncf2.c: New file.
62336         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62337
62338         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62339         * modules/truncf-tests: Update.
62340
62341 2007-10-11  Eric Blake  <ebb9@byu.net>
62342
62343         Don't claim strerror is broken on Interix.
62344         * doc/functions/strerror.texi (strerror): Known broken systems are
62345         now Solaris 8, and not Interix.
62346         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62347         Interix on cross-compile.
62348         Reported by Martin Koeppe in
62349         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62350
62351 2007-10-11  Bruno Haible  <bruno@clisp.org>
62352
62353         * modules/i-ring-tests: New file.
62354         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62355         instead of assert.
62356
62357 2007-10-11  Bruno Haible  <bruno@clisp.org>
62358
62359         * modules/filenamecat-tests: New file.
62360         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62361         * lib/filenamecat.c: Remove test code.
62362
62363 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62364
62365         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62366
62367         * lib/strerror.c: Include <string.h> always, to test interface,
62368         and to remove the need for the dummy.
62369         Include intprops.h to compute width instead of doing it ourselves
62370         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62371         (strerror): Define it to return NULL if there's no system strerror.
62372         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62373         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62374         ancient pre-strerror Unix systems well any more.  Saying "unknown
62375         system error" is enough.
62376         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62377         simpler strerror.c implementation.
62378         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62379         Simplify the tests to reflect the simpler strerror implementation.
62380         * modules/strerror (Depends-on): Add intprops.
62381
62382 2007-10-09  Eric Blake  <ebb9@byu.net>
62383
62384         Silence test-fpending.
62385         * modules/fpending-tests (Files): Add wrapper script.
62386         * tests/test-fpending.sh: New file.
62387
62388 2007-10-09  Bruno Haible  <bruno@clisp.org>
62389
62390         * MODULES.html.sh (func_module): Don't create a hyperlink for
62391         function names like 'printf_frexp'.
62392         (Misc): Add crc, memxor.
62393         (Characteristics of floating types): New section.
62394         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62395         isnanf-nolibm, signbit, trunc, truncf, truncl.
62396         (Enhancements for ISO C 99 functions): New subsection Input/output.
62397         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62398         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62399         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62400         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62401         (Enhancements for POSIX:2001 functions): Add chdir-long.
62402         (File system functions): Add areadlink, chdir-safer, read-file.
62403         Remove cycle-check.
62404         (File system as inode set): New section.
62405         (Date and time): Add gethrxtime.
62406         (Multithreading): Add openmp.
62407         (Internationalization functions): Add localename.
62408         (Unicode string functions): Add unistr/u*-mbsnlen.
62409         (Support for maintaining and releasing projects): Add git-version-gen.
62410         (Lone files): Remove directories.
62411
62412 2007-10-08  Ben Pfaff  <blp@gnu.org>
62413
62414         * lib/xmalloca.h: Fix typo in comment.
62415
62416 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62417
62418         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62419         when avoiding problems with integer overflow.  Use a portable test
62420         instead.
62421
62422 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62423
62424         * modules/dummy (License): Change to LGPLv2+.
62425         * modules/float (License): Likewise
62426         * modules/realloc (License): Likewise
62427         * modules/stdlib (License): Likewise
62428
62429 2007-10-07  Bruno Haible  <bruno@clisp.org>
62430
62431         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62432         * floor.c (TWO_MANT_DIG): Likewise.
62433         * ceil.c (TWO_MANT_DIG): Likewise.
62434         Reported by Ben Pfaff.
62435
62436 2007-10-07  Bruno Haible  <bruno@clisp.org>
62437
62438         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62439         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62440         * lib/frexp.c (FUNC): Likewise.
62441         * lib/printf-frexp.h (printf_frexp): Likewise.
62442         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62443         * lib/printf-frexp.c (FUNC): Likewise.
62444         Suggested by Jim Meyering.
62445
62446 2007-10-07  Jim Meyering  <meyering@redhat.com>
62447
62448         Make xnanosleep's integer overflow test more robust.
62449         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62450         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62451
62452 2007-10-07  Bruno Haible  <bruno@clisp.org>
62453
62454         * NEWS: Mention the license change.
62455
62456         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62457         abbreviations in the modules files.
62458
62459         Change copyright notice from GPLv2+ to GPLv3+.
62460         * README: Change copyright notice.
62461         * MODULES.html.sh: Likewise.
62462         * build-aux/bootstrap.conf: Likewise.
62463         * build-aux/config.libpath: Likewise.
62464         * build-aux/csharpcomp.sh.in: Likewise.
62465         * build-aux/csharpexec.sh.in: Likewise.
62466         * build-aux/install-reloc: Likewise.
62467         * build-aux/javacomp.sh.in: Likewise.
62468         * build-aux/javaexec.sh.in: Likewise.
62469         * build-aux/ldd.sh.in: Likewise.
62470         * build-aux/reloc-ldflags: Likewise.
62471         * build-aux/relocatable.sh.in: Likewise.
62472         * build-aux/x-to-1.in: Likewise.
62473         * check-module: Likewise.
62474         * config/srclistvars.sh: Likewise.
62475         * gnulib-tool: Likewise.
62476         * lib/acl-internal.h: Likewise.
62477         * lib/acl.c: Likewise.
62478         * lib/acl.h: Likewise.
62479         * lib/acl_entries.c: Likewise.
62480         * lib/areadlink-with-size.c: Likewise.
62481         * lib/areadlink.c: Likewise.
62482         * lib/areadlink.h: Likewise.
62483         * lib/argmatch.c: Likewise.
62484         * lib/argmatch.h: Likewise.
62485         * lib/argp-ba.c: Likewise.
62486         * lib/argp-eexst.c: Likewise.
62487         * lib/argp-fmtstream.c: Likewise.
62488         * lib/argp-fmtstream.h: Likewise.
62489         * lib/argp-fs-xinl.c: Likewise.
62490         * lib/argp-help.c: Likewise.
62491         * lib/argp-namefrob.h: Likewise.
62492         * lib/argp-parse.c: Likewise.
62493         * lib/argp-pin.c: Likewise.
62494         * lib/argp-pv.c: Likewise.
62495         * lib/argp-pvh.c: Likewise.
62496         * lib/argp-xinl.c: Likewise.
62497         * lib/argp.h: Likewise.
62498         * lib/at-func.c: Likewise.
62499         * lib/atanl.c: Likewise.
62500         * lib/backupfile.c: Likewise.
62501         * lib/backupfile.h: Likewise.
62502         * lib/basename.c: Likewise.
62503         * lib/binary-io.h: Likewise.
62504         * lib/byteswap.in.h: Likewise.
62505         * lib/c-stack.c: Likewise.
62506         * lib/c-stack.h: Likewise.
62507         * lib/c-strcasestr.c: Likewise.
62508         * lib/c-strcasestr.h: Likewise.
62509         * lib/c-strstr.c: Likewise.
62510         * lib/c-strstr.h: Likewise.
62511         * lib/c-strtod.c: Likewise.
62512         * lib/calloc.c: Likewise.
62513         * lib/canon-host.c: Likewise.
62514         * lib/canon-host.h: Likewise.
62515         * lib/canonicalize-lgpl.c: Likewise.
62516         * lib/canonicalize.c: Likewise.
62517         * lib/canonicalize.h: Likewise.
62518         * lib/ceil.c: Likewise.
62519         * lib/ceilf.c: Likewise.
62520         * lib/ceill.c: Likewise.
62521         * lib/chdir-long.c: Likewise.
62522         * lib/chdir-long.h: Likewise.
62523         * lib/chdir-safer.c: Likewise.
62524         * lib/chdir-safer.h: Likewise.
62525         * lib/chown.c: Likewise.
62526         * lib/classpath.c: Likewise.
62527         * lib/classpath.h: Likewise.
62528         * lib/clean-temp.c: Likewise.
62529         * lib/clean-temp.h: Likewise.
62530         * lib/cloexec.c: Likewise.
62531         * lib/close-stream.c: Likewise.
62532         * lib/closein.c: Likewise.
62533         * lib/closein.h: Likewise.
62534         * lib/closeout.c: Likewise.
62535         * lib/closeout.h: Likewise.
62536         * lib/concat-filename.c: Likewise.
62537         * lib/copy-file.c: Likewise.
62538         * lib/copy-file.h: Likewise.
62539         * lib/count-one-bits.h: Likewise.
62540         * lib/crc.c: Likewise.
62541         * lib/crc.h: Likewise.
62542         * lib/creat-safer.c: Likewise.
62543         * lib/csharpcomp.c: Likewise.
62544         * lib/csharpcomp.h: Likewise.
62545         * lib/csharpexec.c: Likewise.
62546         * lib/csharpexec.h: Likewise.
62547         * lib/cycle-check.c: Likewise.
62548         * lib/cycle-check.h: Likewise.
62549         * lib/diacrit.c: Likewise.
62550         * lib/diacrit.h: Likewise.
62551         * lib/diffseq.h: Likewise.
62552         * lib/dirchownmod.c: Likewise.
62553         * lib/dirent.in.h: Likewise.
62554         * lib/dirfd.c: Likewise.
62555         * lib/dirfd.h: Likewise.
62556         * lib/dirname.c: Likewise.
62557         * lib/dirname.h: Likewise.
62558         * lib/dummy.c: Likewise.
62559         * lib/dup-safer.c: Likewise.
62560         * lib/dup2.c: Likewise.
62561         * lib/eealloc.h: Likewise.
62562         * lib/error.c: Likewise.
62563         * lib/error.h: Likewise.
62564         * lib/euidaccess.c: Likewise.
62565         * lib/exclude.c: Likewise.
62566         * lib/exclude.h: Likewise.
62567         * lib/execute.c: Likewise.
62568         * lib/execute.h: Likewise.
62569         * lib/exitfail.c: Likewise.
62570         * lib/exitfail.h: Likewise.
62571         * lib/expl.c: Likewise.
62572         * lib/fatal-signal.c: Likewise.
62573         * lib/fatal-signal.h: Likewise.
62574         * lib/fbufmode.c: Likewise.
62575         * lib/fbufmode.h: Likewise.
62576         * lib/fchdir.c: Likewise.
62577         * lib/fchmodat.c: Likewise.
62578         * lib/fchownat.c: Likewise.
62579         * lib/fcntl--.h: Likewise.
62580         * lib/fcntl-safer.h: Likewise.
62581         * lib/fcntl.in.h: Likewise.
62582         * lib/fd-safer.c: Likewise.
62583         * lib/fflush.c: Likewise.
62584         * lib/file-has-acl.c: Likewise.
62585         * lib/file-set.c: Likewise.
62586         * lib/file-type.c: Likewise.
62587         * lib/file-type.h: Likewise.
62588         * lib/fileblocks.c: Likewise.
62589         * lib/filemode.c: Likewise.
62590         * lib/filemode.h: Likewise.
62591         * lib/filename.h: Likewise.
62592         * lib/filenamecat.c: Likewise.
62593         * lib/filenamecat.h: Likewise.
62594         * lib/findprog.c: Likewise.
62595         * lib/findprog.h: Likewise.
62596         * lib/float.in.h: Likewise.
62597         * lib/floor.c: Likewise.
62598         * lib/floorf.c: Likewise.
62599         * lib/floorl.c: Likewise.
62600         * lib/fopen-safer.c: Likewise.
62601         * lib/fopen.c: Likewise.
62602         * lib/fpending.c: Likewise.
62603         * lib/fpending.h: Likewise.
62604         * lib/fprintf.c: Likewise.
62605         * lib/fprintftime.h: Likewise.
62606         * lib/fpucw.h: Likewise.
62607         * lib/fpurge.c: Likewise.
62608         * lib/fpurge.h: Likewise.
62609         * lib/freadable.c: Likewise.
62610         * lib/freadable.h: Likewise.
62611         * lib/freadahead.c: Likewise.
62612         * lib/freadahead.h: Likewise.
62613         * lib/freading.c: Likewise.
62614         * lib/freading.h: Likewise.
62615         * lib/free.c: Likewise.
62616         * lib/freopen.c: Likewise.
62617         * lib/frexp.c: Likewise.
62618         * lib/frexpl.c: Likewise.
62619         * lib/fseek.c: Likewise.
62620         * lib/fseterr.c: Likewise.
62621         * lib/fseterr.h: Likewise.
62622         * lib/fstatat.c: Likewise.
62623         * lib/fstrcmp.c: Likewise.
62624         * lib/fstrcmp.h: Likewise.
62625         * lib/fsusage.c: Likewise.
62626         * lib/fsusage.h: Likewise.
62627         * lib/ftell.c: Likewise.
62628         * lib/ftello.c: Likewise.
62629         * lib/fts-cycle.c: Likewise.
62630         * lib/fts.c: Likewise.
62631         * lib/fts_.h: Likewise.
62632         * lib/full-read.c: Likewise.
62633         * lib/full-read.h: Likewise.
62634         * lib/full-write.c: Likewise.
62635         * lib/full-write.h: Likewise.
62636         * lib/fwritable.c: Likewise.
62637         * lib/fwritable.h: Likewise.
62638         * lib/fwriteerror.c: Likewise.
62639         * lib/fwriteerror.h: Likewise.
62640         * lib/fwriting.c: Likewise.
62641         * lib/fwriting.h: Likewise.
62642         * lib/gcd.c: Likewise.
62643         * lib/gcd.h: Likewise.
62644         * lib/getcwd.c: Likewise.
62645         * lib/getdate.h: Likewise.
62646         * lib/getdate.y: Likewise.
62647         * lib/getdomainname.c: Likewise.
62648         * lib/getdomainname.h: Likewise.
62649         * lib/getgroups.c: Likewise.
62650         * lib/gethostname.c: Likewise.
62651         * lib/gethrxtime.c: Likewise.
62652         * lib/gethrxtime.h: Likewise.
62653         * lib/getloadavg.c: Likewise.
62654         * lib/getndelim2.c: Likewise.
62655         * lib/getndelim2.h: Likewise.
62656         * lib/getnline.c: Likewise.
62657         * lib/getnline.h: Likewise.
62658         * lib/getopt.c: Likewise.
62659         * lib/getopt.in.h: Likewise.
62660         * lib/getopt1.c: Likewise.
62661         * lib/getopt_int.h: Likewise.
62662         * lib/getpagesize.h: Likewise.
62663         * lib/getsubopt.c: Likewise.
62664         * lib/gettime.c: Likewise.
62665         * lib/getugroups.c: Likewise.
62666         * lib/getugroups.h: Likewise.
62667         * lib/getusershell.c: Likewise.
62668         * lib/gl_anyavltree_list1.h: Likewise.
62669         * lib/gl_anyavltree_list2.h: Likewise.
62670         * lib/gl_anyhash_list1.h: Likewise.
62671         * lib/gl_anyhash_list2.h: Likewise.
62672         * lib/gl_anylinked_list1.h: Likewise.
62673         * lib/gl_anylinked_list2.h: Likewise.
62674         * lib/gl_anyrbtree_list1.h: Likewise.
62675         * lib/gl_anyrbtree_list2.h: Likewise.
62676         * lib/gl_anytree_list1.h: Likewise.
62677         * lib/gl_anytree_list2.h: Likewise.
62678         * lib/gl_anytree_oset.h: Likewise.
62679         * lib/gl_anytreehash_list1.h: Likewise.
62680         * lib/gl_anytreehash_list2.h: Likewise.
62681         * lib/gl_array_list.c: Likewise.
62682         * lib/gl_array_list.h: Likewise.
62683         * lib/gl_array_oset.c: Likewise.
62684         * lib/gl_array_oset.h: Likewise.
62685         * lib/gl_avltree_list.c: Likewise.
62686         * lib/gl_avltree_list.h: Likewise.
62687         * lib/gl_avltree_oset.c: Likewise.
62688         * lib/gl_avltree_oset.h: Likewise.
62689         * lib/gl_avltreehash_list.c: Likewise.
62690         * lib/gl_avltreehash_list.h: Likewise.
62691         * lib/gl_carray_list.c: Likewise.
62692         * lib/gl_carray_list.h: Likewise.
62693         * lib/gl_linked_list.c: Likewise.
62694         * lib/gl_linked_list.h: Likewise.
62695         * lib/gl_linkedhash_list.c: Likewise.
62696         * lib/gl_linkedhash_list.h: Likewise.
62697         * lib/gl_list.c: Likewise.
62698         * lib/gl_list.h: Likewise.
62699         * lib/gl_oset.c: Likewise.
62700         * lib/gl_oset.h: Likewise.
62701         * lib/gl_rbtree_list.c: Likewise.
62702         * lib/gl_rbtree_list.h: Likewise.
62703         * lib/gl_rbtree_oset.c: Likewise.
62704         * lib/gl_rbtree_oset.h: Likewise.
62705         * lib/gl_rbtreehash_list.c: Likewise.
62706         * lib/gl_rbtreehash_list.h: Likewise.
62707         * lib/gl_sublist.c: Likewise.
62708         * lib/gl_sublist.h: Likewise.
62709         * lib/group-member.c: Likewise.
62710         * lib/group-member.h: Likewise.
62711         * lib/hard-locale.c: Likewise.
62712         * lib/hard-locale.h: Likewise.
62713         * lib/hash-pjw.c: Likewise.
62714         * lib/hash-pjw.h: Likewise.
62715         * lib/hash-triple.c: Likewise.
62716         * lib/hash.c: Likewise.
62717         * lib/hash.h: Likewise.
62718         * lib/human.c: Likewise.
62719         * lib/human.h: Likewise.
62720         * lib/i-ring.c: Likewise.
62721         * lib/i-ring.h: Likewise.
62722         * lib/idcache.c: Likewise.
62723         * lib/imaxabs.c: Likewise.
62724         * lib/imaxdiv.c: Likewise.
62725         * lib/inet_pton.c: Likewise.
62726         * lib/inet_pton.h: Likewise.
62727         * lib/intprops.h: Likewise.
62728         * lib/inttostr.c: Likewise.
62729         * lib/inttostr.h: Likewise.
62730         * lib/inttypes.in.h: Likewise.
62731         * lib/isapipe.c: Likewise.
62732         * lib/isdir.c: Likewise.
62733         * lib/isnan.c: Likewise.
62734         * lib/isnan.h: Likewise.
62735         * lib/isnanf.c: Likewise.
62736         * lib/isnanf.h: Likewise.
62737         * lib/isnanl-nolibm.h: Likewise.
62738         * lib/isnanl.c: Likewise.
62739         * lib/isnanl.h: Likewise.
62740         * lib/javacomp.c: Likewise.
62741         * lib/javacomp.h: Likewise.
62742         * lib/javaexec.c: Likewise.
62743         * lib/javaexec.h: Likewise.
62744         * lib/javaversion.c: Likewise.
62745         * lib/javaversion.h: Likewise.
62746         * lib/javaversion.java: Likewise.
62747         * lib/lbrkprop.h: Likewise.
62748         * lib/lchmod.h: Likewise.
62749         * lib/lchown.c: Likewise.
62750         * lib/ldexpl.c: Likewise.
62751         * lib/linebreak.c: Likewise.
62752         * lib/linebreak.h: Likewise.
62753         * lib/linebuffer.c: Likewise.
62754         * lib/linebuffer.h: Likewise.
62755         * lib/locale.in.h: Likewise.
62756         * lib/logl.c: Likewise.
62757         * lib/long-options.c: Likewise.
62758         * lib/long-options.h: Likewise.
62759         * lib/lstat.c: Likewise.
62760         * lib/lstat.h: Likewise.
62761         * lib/math.in.h: Likewise.
62762         * lib/mbchar.c: Likewise.
62763         * lib/mbchar.h: Likewise.
62764         * lib/mbfile.h: Likewise.
62765         * lib/mbiter.h: Likewise.
62766         * lib/mbscasecmp.c: Likewise.
62767         * lib/mbscasestr.c: Likewise.
62768         * lib/mbschr.c: Likewise.
62769         * lib/mbscspn.c: Likewise.
62770         * lib/mbslen.c: Likewise.
62771         * lib/mbsncasecmp.c: Likewise.
62772         * lib/mbsnlen.c: Likewise.
62773         * lib/mbspbrk.c: Likewise.
62774         * lib/mbspcasecmp.c: Likewise.
62775         * lib/mbsrchr.c: Likewise.
62776         * lib/mbssep.c: Likewise.
62777         * lib/mbsspn.c: Likewise.
62778         * lib/mbsstr.c: Likewise.
62779         * lib/mbstok_r.c: Likewise.
62780         * lib/mbswidth.c: Likewise.
62781         * lib/mbswidth.h: Likewise.
62782         * lib/mbuiter.h: Likewise.
62783         * lib/memcasecmp.c: Likewise.
62784         * lib/memcasecmp.h: Likewise.
62785         * lib/memchr.c: Likewise.
62786         * lib/memcmp.c: Likewise.
62787         * lib/memcoll.c: Likewise.
62788         * lib/memcoll.h: Likewise.
62789         * lib/memcpy.c: Likewise.
62790         * lib/memrchr.c: Likewise.
62791         * lib/mkancesdirs.c: Likewise.
62792         * lib/mkdir-p.c: Likewise.
62793         * lib/mkdir-p.h: Likewise.
62794         * lib/mkdir.c: Likewise.
62795         * lib/mkdirat.c: Likewise.
62796         * lib/mkdtemp.c: Likewise.
62797         * lib/mkstemp-safer.c: Likewise.
62798         * lib/mkstemp.c: Likewise.
62799         * lib/modechange.c: Likewise.
62800         * lib/modechange.h: Likewise.
62801         * lib/mountlist.c: Likewise.
62802         * lib/mountlist.h: Likewise.
62803         * lib/mpsort.c: Likewise.
62804         * lib/nanosleep.c: Likewise.
62805         * lib/obstack.c: Likewise.
62806         * lib/obstack.h: Likewise.
62807         * lib/open-safer.c: Likewise.
62808         * lib/open.c: Likewise.
62809         * lib/openat-die.c: Likewise.
62810         * lib/openat-priv.h: Likewise.
62811         * lib/openat-proc.c: Likewise.
62812         * lib/openat.c: Likewise.
62813         * lib/openat.h: Likewise.
62814         * lib/pagealign_alloc.c: Likewise.
62815         * lib/pagealign_alloc.h: Likewise.
62816         * lib/physmem.c: Likewise.
62817         * lib/physmem.h: Likewise.
62818         * lib/pipe-safer.c: Likewise.
62819         * lib/pipe.c: Likewise.
62820         * lib/pipe.h: Likewise.
62821         * lib/posixtm.c: Likewise.
62822         * lib/posixtm.h: Likewise.
62823         * lib/posixver.c: Likewise.
62824         * lib/printf-frexp.c: Likewise.
62825         * lib/printf-frexp.h: Likewise.
62826         * lib/printf-frexpl.c: Likewise.
62827         * lib/printf-frexpl.h: Likewise.
62828         * lib/printf.c: Likewise.
62829         * lib/progname.c: Likewise.
62830         * lib/progname.h: Likewise.
62831         * lib/progreloc.c: Likewise.
62832         * lib/putenv.c: Likewise.
62833         * lib/quote.c: Likewise.
62834         * lib/quote.h: Likewise.
62835         * lib/quotearg.c: Likewise.
62836         * lib/quotearg.h: Likewise.
62837         * lib/raise.c: Likewise.
62838         * lib/readline.c: Likewise.
62839         * lib/readline.h: Likewise.
62840         * lib/readlink.c: Likewise.
62841         * lib/readtokens.c: Likewise.
62842         * lib/readtokens.h: Likewise.
62843         * lib/readtokens0.c: Likewise.
62844         * lib/readtokens0.h: Likewise.
62845         * lib/readutmp.c: Likewise.
62846         * lib/readutmp.h: Likewise.
62847         * lib/realloc.c: Likewise.
62848         * lib/relocwrapper.c: Likewise.
62849         * lib/rename-dest-slash.c: Likewise.
62850         * lib/rename.c: Likewise.
62851         * lib/rmdir.c: Likewise.
62852         * lib/rpmatch.c: Likewise.
62853         * lib/safe-read.c: Likewise.
62854         * lib/safe-read.h: Likewise.
62855         * lib/safe-write.c: Likewise.
62856         * lib/safe-write.h: Likewise.
62857         * lib/same-inode.h: Likewise.
62858         * lib/same.c: Likewise.
62859         * lib/same.h: Likewise.
62860         * lib/save-cwd.c: Likewise.
62861         * lib/save-cwd.h: Likewise.
62862         * lib/savedir.c: Likewise.
62863         * lib/savedir.h: Likewise.
62864         * lib/savewd.c: Likewise.
62865         * lib/savewd.h: Likewise.
62866         * lib/search.in.h: Likewise.
62867         * lib/setenv.c: Likewise.
62868         * lib/setenv.h: Likewise.
62869         * lib/settime.c: Likewise.
62870         * lib/sh-quote.c: Likewise.
62871         * lib/sh-quote.h: Likewise.
62872         * lib/sig2str.c: Likewise.
62873         * lib/sig2str.h: Likewise.
62874         * lib/signal.in.h: Likewise.
62875         * lib/signbitd.c: Likewise.
62876         * lib/signbitf.c: Likewise.
62877         * lib/signbitl.c: Likewise.
62878         * lib/sigprocmask.c: Likewise.
62879         * lib/sincosl.c: Likewise.
62880         * lib/sleep.c: Likewise.
62881         * lib/sprintf.c: Likewise.
62882         * lib/sqrtl.c: Likewise.
62883         * lib/stat-time.h: Likewise.
62884         * lib/stdio--.h: Likewise.
62885         * lib/stdio-safer.h: Likewise.
62886         * lib/stdlib--.h: Likewise.
62887         * lib/stdlib-safer.h: Likewise.
62888         * lib/stdlib.in.h: Likewise.
62889         * lib/stpcpy.c: Likewise.
62890         * lib/stpncpy.c: Likewise.
62891         * lib/strchrnul.c: Likewise.
62892         * lib/strcspn.c: Likewise.
62893         * lib/strerror.c: Likewise.
62894         * lib/strftime.c: Likewise.
62895         * lib/strftime.h: Likewise.
62896         * lib/striconveh.c: Likewise.
62897         * lib/striconveh.h: Likewise.
62898         * lib/striconveha.c: Likewise.
62899         * lib/striconveha.h: Likewise.
62900         * lib/stripslash.c: Likewise.
62901         * lib/strnlen1.c: Likewise.
62902         * lib/strnlen1.h: Likewise.
62903         * lib/strtod.c: Likewise.
62904         * lib/strtoimax.c: Likewise.
62905         * lib/strtok_r.c: Likewise.
62906         * lib/strtol.c: Likewise.
62907         * lib/strtoll.c: Likewise.
62908         * lib/strtoul.c: Likewise.
62909         * lib/strtoull.c: Likewise.
62910         * lib/sysexits.in.h: Likewise.
62911         * lib/tempname.c: Likewise.
62912         * lib/tempname.h: Likewise.
62913         * lib/timespec.h: Likewise.
62914         * lib/tls.c: Likewise.
62915         * lib/tls.h: Likewise.
62916         * lib/tmpdir.c: Likewise.
62917         * lib/tmpdir.h: Likewise.
62918         * lib/tmpfile-safer.c: Likewise.
62919         * lib/tmpfile.c: Likewise.
62920         * lib/trigl.c: Likewise.
62921         * lib/trigl.h: Likewise.
62922         * lib/trim.c: Likewise.
62923         * lib/trim.h: Likewise.
62924         * lib/trunc.c: Likewise.
62925         * lib/truncf.c: Likewise.
62926         * lib/truncl.c: Likewise.
62927         * lib/tsearch.c: Likewise.
62928         * lib/unicodeio.c: Likewise.
62929         * lib/unicodeio.h: Likewise.
62930         * lib/unistd--.h: Likewise.
62931         * lib/unistd-safer.h: Likewise.
62932         * lib/unistdio/ulc-fprintf.c: Likewise.
62933         * lib/unistdio/ulc-vfprintf.c: Likewise.
62934         * lib/unlinkdir.c: Likewise.
62935         * lib/unlinkdir.h: Likewise.
62936         * lib/unlocked-io.h: Likewise.
62937         * lib/unsetenv.c: Likewise.
62938         * lib/userspec.c: Likewise.
62939         * lib/utime.c: Likewise.
62940         * lib/utimecmp.c: Likewise.
62941         * lib/utimecmp.h: Likewise.
62942         * lib/utimens.c: Likewise.
62943         * lib/verify.h: Likewise.
62944         * lib/verror.c: Likewise.
62945         * lib/verror.h: Likewise.
62946         * lib/version-etc-fsf.c: Likewise.
62947         * lib/version-etc.c: Likewise.
62948         * lib/version-etc.h: Likewise.
62949         * lib/vfprintf.c: Likewise.
62950         * lib/vprintf.c: Likewise.
62951         * lib/vsprintf.c: Likewise.
62952         * lib/w32spawn.h: Likewise.
62953         * lib/wait-process.c: Likewise.
62954         * lib/wait-process.h: Likewise.
62955         * lib/wcwidth.c: Likewise.
62956         * lib/write-any-file.c: Likewise.
62957         * lib/xalloc-die.c: Likewise.
62958         * lib/xalloc.h: Likewise.
62959         * lib/xasprintf.c: Likewise.
62960         * lib/xgetcwd.c: Likewise.
62961         * lib/xgetcwd.h: Likewise.
62962         * lib/xgetdomainname.c: Likewise.
62963         * lib/xgetdomainname.h: Likewise.
62964         * lib/xgethostname.c: Likewise.
62965         * lib/xmalloc.c: Likewise.
62966         * lib/xmalloca.c: Likewise.
62967         * lib/xmalloca.h: Likewise.
62968         * lib/xmemcoll.c: Likewise.
62969         * lib/xnanosleep.c: Likewise.
62970         * lib/xreadlink.c: Likewise.
62971         * lib/xreadlink.h: Likewise.
62972         * lib/xsetenv.c: Likewise.
62973         * lib/xsetenv.h: Likewise.
62974         * lib/xstriconv.c: Likewise.
62975         * lib/xstriconv.h: Likewise.
62976         * lib/xstrndup.c: Likewise.
62977         * lib/xstrndup.h: Likewise.
62978         * lib/xstrtod.c: Likewise.
62979         * lib/xstrtod.h: Likewise.
62980         * lib/xstrtol-error.c: Likewise.
62981         * lib/xstrtol.c: Likewise.
62982         * lib/xstrtol.h: Likewise.
62983         * lib/xtime.h: Likewise.
62984         * lib/xvasprintf.c: Likewise.
62985         * lib/xvasprintf.h: Likewise.
62986         * lib/yesno.c: Likewise.
62987         * lib/yesno.h: Likewise.
62988         * posix-modules: Likewise.
62989         * tests/test-alloca-opt.c: Likewise.
62990         * tests/test-arcfour.c: Likewise.
62991         * tests/test-arctwo.c: Likewise.
62992         * tests/test-argmatch.c: Likewise.
62993         * tests/test-argp-2.sh: Likewise.
62994         * tests/test-argp.c: Likewise.
62995         * tests/test-arpa_inet.c: Likewise.
62996         * tests/test-array_list.c: Likewise.
62997         * tests/test-array_oset.c: Likewise.
62998         * tests/test-atexit.c: Likewise.
62999         * tests/test-avltree_list.c: Likewise.
63000         * tests/test-avltree_oset.c: Likewise.
63001         * tests/test-avltreehash_list.c: Likewise.
63002         * tests/test-base64.c: Likewise.
63003         * tests/test-binary-io.c: Likewise.
63004         * tests/test-byteswap.c: Likewise.
63005         * tests/test-c-ctype.c: Likewise.
63006         * tests/test-c-strcasecmp.c: Likewise.
63007         * tests/test-c-strcasestr.c: Likewise.
63008         * tests/test-c-strncasecmp.c: Likewise.
63009         * tests/test-c-strstr.c: Likewise.
63010         * tests/test-canonicalize-lgpl.c: Likewise.
63011         * tests/test-canonicalize.c: Likewise.
63012         * tests/test-carray_list.c: Likewise.
63013         * tests/test-ceilf.c: Likewise.
63014         * tests/test-ceill.c: Likewise.
63015         * tests/test-count-one-bits.c: Likewise.
63016         * tests/test-crc.c: Likewise.
63017         * tests/test-dirname.c: Likewise.
63018         * tests/test-fbufmode.c: Likewise.
63019         * tests/test-fcntl.c: Likewise.
63020         * tests/test-fflush.c: Likewise.
63021         * tests/test-floorf.c: Likewise.
63022         * tests/test-floorl.c: Likewise.
63023         * tests/test-fopen.c: Likewise.
63024         * tests/test-fprintf-posix.c: Likewise.
63025         * tests/test-fprintf-posix.h: Likewise.
63026         * tests/test-fpurge.c: Likewise.
63027         * tests/test-freadable.c: Likewise.
63028         * tests/test-freadahead.c: Likewise.
63029         * tests/test-freading.c: Likewise.
63030         * tests/test-freopen.c: Likewise.
63031         * tests/test-frexp.c: Likewise.
63032         * tests/test-frexpl.c: Likewise.
63033         * tests/test-fseek.c: Likewise.
63034         * tests/test-fseeko.c: Likewise.
63035         * tests/test-fseterr.c: Likewise.
63036         * tests/test-fstrcmp.c: Likewise.
63037         * tests/test-ftell.c: Likewise.
63038         * tests/test-ftello.c: Likewise.
63039         * tests/test-fwritable.c: Likewise.
63040         * tests/test-fwriting.c: Likewise.
63041         * tests/test-getaddrinfo.c: Likewise.
63042         * tests/test-getpass.c: Likewise.
63043         * tests/test-gettimeofday.c: Likewise.
63044         * tests/test-hmac-md5.c: Likewise.
63045         * tests/test-hmac-sha1.c: Likewise.
63046         * tests/test-iconv.c: Likewise.
63047         * tests/test-iconvme.c: Likewise.
63048         * tests/test-inttypes.c: Likewise.
63049         * tests/test-isnan.c: Likewise.
63050         * tests/test-isnanf.c: Likewise.
63051         * tests/test-isnanl-nolibm.c: Likewise.
63052         * tests/test-isnanl.c: Likewise.
63053         * tests/test-isnanl.h: Likewise.
63054         * tests/test-ldexpl.c: Likewise.
63055         * tests/test-linked_list.c: Likewise.
63056         * tests/test-linkedhash_list.c: Likewise.
63057         * tests/test-locale.c: Likewise.
63058         * tests/test-localename.c: Likewise.
63059         * tests/test-lock.c: Likewise.
63060         * tests/test-lseek.c: Likewise.
63061         * tests/test-malloca.c: Likewise.
63062         * tests/test-math.c: Likewise.
63063         * tests/test-mbscasecmp.c: Likewise.
63064         * tests/test-mbscasestr1.c: Likewise.
63065         * tests/test-mbscasestr2.c: Likewise.
63066         * tests/test-mbscasestr3.c: Likewise.
63067         * tests/test-mbscasestr4.c: Likewise.
63068         * tests/test-mbschr.c: Likewise.
63069         * tests/test-mbscspn.c: Likewise.
63070         * tests/test-mbsncasecmp.c: Likewise.
63071         * tests/test-mbspbrk.c: Likewise.
63072         * tests/test-mbspcasecmp.c: Likewise.
63073         * tests/test-mbsrchr.c: Likewise.
63074         * tests/test-mbsspn.c: Likewise.
63075         * tests/test-mbsstr1.c: Likewise.
63076         * tests/test-mbsstr2.c: Likewise.
63077         * tests/test-mbsstr3.c: Likewise.
63078         * tests/test-md5.c: Likewise.
63079         * tests/test-memmem.c: Likewise.
63080         * tests/test-netinet_in.c: Likewise.
63081         * tests/test-open.c: Likewise.
63082         * tests/test-printf-frexp.c: Likewise.
63083         * tests/test-printf-frexpl.c: Likewise.
63084         * tests/test-printf-posix.c: Likewise.
63085         * tests/test-printf-posix.h: Likewise.
63086         * tests/test-rbtree_list.c: Likewise.
63087         * tests/test-rbtree_oset.c: Likewise.
63088         * tests/test-rbtreehash_list.c: Likewise.
63089         * tests/test-read-file.c: Likewise.
63090         * tests/test-rijndael.c: Likewise.
63091         * tests/test-search.c: Likewise.
63092         * tests/test-signbit.c: Likewise.
63093         * tests/test-sleep.c: Likewise.
63094         * tests/test-snprintf-posix.c: Likewise.
63095         * tests/test-snprintf-posix.h: Likewise.
63096         * tests/test-snprintf.c: Likewise.
63097         * tests/test-sprintf-posix.c: Likewise.
63098         * tests/test-sprintf-posix.h: Likewise.
63099         * tests/test-stat-time.c: Likewise.
63100         * tests/test-stdbool.c: Likewise.
63101         * tests/test-stdint.c: Likewise.
63102         * tests/test-stdio.c: Likewise.
63103         * tests/test-stdlib.c: Likewise.
63104         * tests/test-stpncpy.c: Likewise.
63105         * tests/test-strcasestr.c: Likewise.
63106         * tests/test-striconv.c: Likewise.
63107         * tests/test-striconveh.c: Likewise.
63108         * tests/test-striconveha.c: Likewise.
63109         * tests/test-string.c: Likewise.
63110         * tests/test-sys_select.c: Likewise.
63111         * tests/test-sys_socket.c: Likewise.
63112         * tests/test-sys_stat.c: Likewise.
63113         * tests/test-sys_time.c: Likewise.
63114         * tests/test-sysexits.c: Likewise.
63115         * tests/test-time.c: Likewise.
63116         * tests/test-tls.c: Likewise.
63117         * tests/test-trunc.c: Likewise.
63118         * tests/test-truncf.c: Likewise.
63119         * tests/test-truncl.c: Likewise.
63120         * tests/test-unistd.c: Likewise.
63121         * tests/test-vasnprintf-posix.c: Likewise.
63122         * tests/test-vasnprintf-posix2.c: Likewise.
63123         * tests/test-vasnprintf.c: Likewise.
63124         * tests/test-vasprintf-posix.c: Likewise.
63125         * tests/test-vasprintf.c: Likewise.
63126         * tests/test-verify.c: Likewise.
63127         * tests/test-vfprintf-posix.c: Likewise.
63128         * tests/test-vprintf-posix.c: Likewise.
63129         * tests/test-vsnprintf-posix.c: Likewise.
63130         * tests/test-vsnprintf.c: Likewise.
63131         * tests/test-vsprintf-posix.c: Likewise.
63132         * tests/test-wchar.c: Likewise.
63133         * tests/test-wctype.c: Likewise.
63134         * tests/test-wcwidth.c: Likewise.
63135         * tests/test-xstrtol.c: Likewise.
63136         * tests/test-xvasprintf.c: Likewise.
63137         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63138         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63139         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63140         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63141         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63142         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63143         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63144         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63145         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63146         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63147         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63148         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63149         * tests/uniname/test-uninames.c: Likewise.
63150         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63151         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63152         * tests/unistdio/test-u16-printf1.h: Likewise.
63153         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63154         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63155         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63156         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63157         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63158         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63159         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63160         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63161         * tests/unistdio/test-u32-printf1.h: Likewise.
63162         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63163         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63164         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63165         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63166         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63167         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63168         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63169         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63170         * tests/unistdio/test-u8-printf1.h: Likewise.
63171         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63172         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63173         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63174         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63175         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63176         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63177         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63178         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63179         * tests/unistdio/test-ulc-printf1.h: Likewise.
63180         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63181         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63182         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63183         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63184         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63185         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63186         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63187         * tests/uniwidth/test-u16-width.c: Likewise.
63188         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63189         * tests/uniwidth/test-u32-width.c: Likewise.
63190         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63191         * tests/uniwidth/test-u8-width.c: Likewise.
63192         * tests/uniwidth/test-uc_width.c: Likewise.
63193         * config/srclist-update: Likewise.
63194         (fixlicense): Update to GPLv3+.
63195
63196         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63197         * tests/test-tsearch.c: Change copyright notice.
63198
63199         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63200         * lib/c-strcaseeq.h: Change copyright notice.
63201         * lib/streq.h: Likewise.
63202         * lib/uniconv.h: Likewise.
63203         * lib/uniconv/u-conv-from-enc.h: Likewise.
63204         * lib/uniconv/u-conv-to-enc.h: Likewise.
63205         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63206         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63207         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63208         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63209         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63210         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63211         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63212         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63213         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63214         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63215         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63216         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63217         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63218         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63219         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63220         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63221         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63222         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63223         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63224         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63225         * lib/uniname.h: Likewise.
63226         * lib/uniname/uniname.c: Likewise.
63227         * lib/unistdio.h: Likewise.
63228         * lib/unistdio/u-asnprintf.h: Likewise.
63229         * lib/unistdio/u-asprintf.h: Likewise.
63230         * lib/unistdio/u-printf-args.c: Likewise.
63231         * lib/unistdio/u-printf-args.h: Likewise.
63232         * lib/unistdio/u-printf-parse.h: Likewise.
63233         * lib/unistdio/u-snprintf.h: Likewise.
63234         * lib/unistdio/u-sprintf.h: Likewise.
63235         * lib/unistdio/u-vasprintf.h: Likewise.
63236         * lib/unistdio/u-vsnprintf.h: Likewise.
63237         * lib/unistdio/u-vsprintf.h: Likewise.
63238         * lib/unistdio/u16-asnprintf.c: Likewise.
63239         * lib/unistdio/u16-asprintf.c: Likewise.
63240         * lib/unistdio/u16-printf-parse.c: Likewise.
63241         * lib/unistdio/u16-snprintf.c: Likewise.
63242         * lib/unistdio/u16-sprintf.c: Likewise.
63243         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63244         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63245         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63246         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63247         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63248         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63249         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63250         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63251         * lib/unistdio/u16-vasnprintf.c: Likewise.
63252         * lib/unistdio/u16-vasprintf.c: Likewise.
63253         * lib/unistdio/u16-vsnprintf.c: Likewise.
63254         * lib/unistdio/u16-vsprintf.c: Likewise.
63255         * lib/unistdio/u32-asnprintf.c: Likewise.
63256         * lib/unistdio/u32-asprintf.c: Likewise.
63257         * lib/unistdio/u32-printf-parse.c: Likewise.
63258         * lib/unistdio/u32-snprintf.c: Likewise.
63259         * lib/unistdio/u32-sprintf.c: Likewise.
63260         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63261         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63262         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63263         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63264         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63265         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63266         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63267         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63268         * lib/unistdio/u32-vasnprintf.c: Likewise.
63269         * lib/unistdio/u32-vasprintf.c: Likewise.
63270         * lib/unistdio/u32-vsnprintf.c: Likewise.
63271         * lib/unistdio/u32-vsprintf.c: Likewise.
63272         * lib/unistdio/u8-asnprintf.c: Likewise.
63273         * lib/unistdio/u8-asprintf.c: Likewise.
63274         * lib/unistdio/u8-printf-parse.c: Likewise.
63275         * lib/unistdio/u8-snprintf.c: Likewise.
63276         * lib/unistdio/u8-sprintf.c: Likewise.
63277         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63278         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63279         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63280         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63281         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63282         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63283         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63284         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63285         * lib/unistdio/u8-vasnprintf.c: Likewise.
63286         * lib/unistdio/u8-vasprintf.c: Likewise.
63287         * lib/unistdio/u8-vsnprintf.c: Likewise.
63288         * lib/unistdio/u8-vsprintf.c: Likewise.
63289         * lib/unistdio/ulc-asnprintf.c: Likewise.
63290         * lib/unistdio/ulc-asprintf.c: Likewise.
63291         * lib/unistdio/ulc-printf-parse.c: Likewise.
63292         * lib/unistdio/ulc-snprintf.c: Likewise.
63293         * lib/unistdio/ulc-sprintf.c: Likewise.
63294         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63295         * lib/unistdio/ulc-vasprintf.c: Likewise.
63296         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63297         * lib/unistdio/ulc-vsprintf.c: Likewise.
63298         * lib/unistr.h: Likewise.
63299         * lib/unistr/u-cpy-alloc.h: Likewise.
63300         * lib/unistr/u-cpy.h: Likewise.
63301         * lib/unistr/u-endswith.h: Likewise.
63302         * lib/unistr/u-move.h: Likewise.
63303         * lib/unistr/u-set.h: Likewise.
63304         * lib/unistr/u-startswith.h: Likewise.
63305         * lib/unistr/u-stpcpy.h: Likewise.
63306         * lib/unistr/u-stpncpy.h: Likewise.
63307         * lib/unistr/u-strcat.h: Likewise.
63308         * lib/unistr/u-strcpy.h: Likewise.
63309         * lib/unistr/u-strcspn.h: Likewise.
63310         * lib/unistr/u-strdup.h: Likewise.
63311         * lib/unistr/u-strlen.h: Likewise.
63312         * lib/unistr/u-strncat.h: Likewise.
63313         * lib/unistr/u-strncpy.h: Likewise.
63314         * lib/unistr/u-strnlen.h: Likewise.
63315         * lib/unistr/u-strpbrk.h: Likewise.
63316         * lib/unistr/u-strspn.h: Likewise.
63317         * lib/unistr/u-strstr.h: Likewise.
63318         * lib/unistr/u-strtok.h: Likewise.
63319         * lib/unistr/u16-check.c: Likewise.
63320         * lib/unistr/u16-chr.c: Likewise.
63321         * lib/unistr/u16-cmp.c: Likewise.
63322         * lib/unistr/u16-cpy-alloc.c: Likewise.
63323         * lib/unistr/u16-cpy.c: Likewise.
63324         * lib/unistr/u16-endswith.c: Likewise.
63325         * lib/unistr/u16-mblen.c: Likewise.
63326         * lib/unistr/u16-mbsnlen.c: Likewise.
63327         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63328         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63329         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63330         * lib/unistr/u16-mbtouc.c: Likewise.
63331         * lib/unistr/u16-mbtoucr.c: Likewise.
63332         * lib/unistr/u16-move.c: Likewise.
63333         * lib/unistr/u16-next.c: Likewise.
63334         * lib/unistr/u16-prev.c: Likewise.
63335         * lib/unistr/u16-set.c: Likewise.
63336         * lib/unistr/u16-startswith.c: Likewise.
63337         * lib/unistr/u16-stpcpy.c: Likewise.
63338         * lib/unistr/u16-stpncpy.c: Likewise.
63339         * lib/unistr/u16-strcat.c: Likewise.
63340         * lib/unistr/u16-strchr.c: Likewise.
63341         * lib/unistr/u16-strcmp.c: Likewise.
63342         * lib/unistr/u16-strcpy.c: Likewise.
63343         * lib/unistr/u16-strcspn.c: Likewise.
63344         * lib/unistr/u16-strdup.c: Likewise.
63345         * lib/unistr/u16-strlen.c: Likewise.
63346         * lib/unistr/u16-strmblen.c: Likewise.
63347         * lib/unistr/u16-strmbtouc.c: Likewise.
63348         * lib/unistr/u16-strncat.c: Likewise.
63349         * lib/unistr/u16-strncmp.c: Likewise.
63350         * lib/unistr/u16-strncpy.c: Likewise.
63351         * lib/unistr/u16-strnlen.c: Likewise.
63352         * lib/unistr/u16-strpbrk.c: Likewise.
63353         * lib/unistr/u16-strrchr.c: Likewise.
63354         * lib/unistr/u16-strspn.c: Likewise.
63355         * lib/unistr/u16-strstr.c: Likewise.
63356         * lib/unistr/u16-strtok.c: Likewise.
63357         * lib/unistr/u16-to-u32.c: Likewise.
63358         * lib/unistr/u16-to-u8.c: Likewise.
63359         * lib/unistr/u16-uctomb-aux.c: Likewise.
63360         * lib/unistr/u16-uctomb.c: Likewise.
63361         * lib/unistr/u32-check.c: Likewise.
63362         * lib/unistr/u32-chr.c: Likewise.
63363         * lib/unistr/u32-cmp.c: Likewise.
63364         * lib/unistr/u32-cpy-alloc.c: Likewise.
63365         * lib/unistr/u32-cpy.c: Likewise.
63366         * lib/unistr/u32-endswith.c: Likewise.
63367         * lib/unistr/u32-mblen.c: Likewise.
63368         * lib/unistr/u32-mbsnlen.c: Likewise.
63369         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63370         * lib/unistr/u32-mbtouc.c: Likewise.
63371         * lib/unistr/u32-mbtoucr.c: Likewise.
63372         * lib/unistr/u32-move.c: Likewise.
63373         * lib/unistr/u32-next.c: Likewise.
63374         * lib/unistr/u32-prev.c: Likewise.
63375         * lib/unistr/u32-set.c: Likewise.
63376         * lib/unistr/u32-startswith.c: Likewise.
63377         * lib/unistr/u32-stpcpy.c: Likewise.
63378         * lib/unistr/u32-stpncpy.c: Likewise.
63379         * lib/unistr/u32-strcat.c: Likewise.
63380         * lib/unistr/u32-strchr.c: Likewise.
63381         * lib/unistr/u32-strcmp.c: Likewise.
63382         * lib/unistr/u32-strcpy.c: Likewise.
63383         * lib/unistr/u32-strcspn.c: Likewise.
63384         * lib/unistr/u32-strdup.c: Likewise.
63385         * lib/unistr/u32-strlen.c: Likewise.
63386         * lib/unistr/u32-strmblen.c: Likewise.
63387         * lib/unistr/u32-strmbtouc.c: Likewise.
63388         * lib/unistr/u32-strncat.c: Likewise.
63389         * lib/unistr/u32-strncmp.c: Likewise.
63390         * lib/unistr/u32-strncpy.c: Likewise.
63391         * lib/unistr/u32-strnlen.c: Likewise.
63392         * lib/unistr/u32-strpbrk.c: Likewise.
63393         * lib/unistr/u32-strrchr.c: Likewise.
63394         * lib/unistr/u32-strspn.c: Likewise.
63395         * lib/unistr/u32-strstr.c: Likewise.
63396         * lib/unistr/u32-strtok.c: Likewise.
63397         * lib/unistr/u32-to-u16.c: Likewise.
63398         * lib/unistr/u32-to-u8.c: Likewise.
63399         * lib/unistr/u32-uctomb.c: Likewise.
63400         * lib/unistr/u8-check.c: Likewise.
63401         * lib/unistr/u8-chr.c: Likewise.
63402         * lib/unistr/u8-cmp.c: Likewise.
63403         * lib/unistr/u8-cpy-alloc.c: Likewise.
63404         * lib/unistr/u8-cpy.c: Likewise.
63405         * lib/unistr/u8-endswith.c: Likewise.
63406         * lib/unistr/u8-mblen.c: Likewise.
63407         * lib/unistr/u8-mbsnlen.c: Likewise.
63408         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63409         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63410         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63411         * lib/unistr/u8-mbtouc.c: Likewise.
63412         * lib/unistr/u8-mbtoucr.c: Likewise.
63413         * lib/unistr/u8-move.c: Likewise.
63414         * lib/unistr/u8-next.c: Likewise.
63415         * lib/unistr/u8-prev.c: Likewise.
63416         * lib/unistr/u8-set.c: Likewise.
63417         * lib/unistr/u8-startswith.c: Likewise.
63418         * lib/unistr/u8-stpcpy.c: Likewise.
63419         * lib/unistr/u8-stpncpy.c: Likewise.
63420         * lib/unistr/u8-strcat.c: Likewise.
63421         * lib/unistr/u8-strchr.c: Likewise.
63422         * lib/unistr/u8-strcmp.c: Likewise.
63423         * lib/unistr/u8-strcpy.c: Likewise.
63424         * lib/unistr/u8-strcspn.c: Likewise.
63425         * lib/unistr/u8-strdup.c: Likewise.
63426         * lib/unistr/u8-strlen.c: Likewise.
63427         * lib/unistr/u8-strmblen.c: Likewise.
63428         * lib/unistr/u8-strmbtouc.c: Likewise.
63429         * lib/unistr/u8-strncat.c: Likewise.
63430         * lib/unistr/u8-strncmp.c: Likewise.
63431         * lib/unistr/u8-strncpy.c: Likewise.
63432         * lib/unistr/u8-strnlen.c: Likewise.
63433         * lib/unistr/u8-strpbrk.c: Likewise.
63434         * lib/unistr/u8-strrchr.c: Likewise.
63435         * lib/unistr/u8-strspn.c: Likewise.
63436         * lib/unistr/u8-strstr.c: Likewise.
63437         * lib/unistr/u8-strtok.c: Likewise.
63438         * lib/unistr/u8-to-u16.c: Likewise.
63439         * lib/unistr/u8-to-u32.c: Likewise.
63440         * lib/unistr/u8-uctomb-aux.c: Likewise.
63441         * lib/unistr/u8-uctomb.c: Likewise.
63442         * lib/unitypes.h: Likewise.
63443         * lib/uniwidth.h: Likewise.
63444         * lib/uniwidth/cjk.h: Likewise.
63445         * lib/uniwidth/u16-strwidth.c: Likewise.
63446         * lib/uniwidth/u16-width.c: Likewise.
63447         * lib/uniwidth/u32-strwidth.c: Likewise.
63448         * lib/uniwidth/u32-width.c: Likewise.
63449         * lib/uniwidth/u8-strwidth.c: Likewise.
63450         * lib/uniwidth/u8-width.c: Likewise.
63451         * lib/uniwidth/width.c: Likewise.
63452
63453 2007-10-07  Bruno Haible  <bruno@clisp.org>
63454
63455         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63456         The file is still under LGPL (see modules/inttypes).
63457
63458 2007-10-06  Bruno Haible  <bruno@clisp.org>
63459
63460         * modules/trunc (Dependencies): Add 'extensions'.
63461         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63462         Reported by Ben Pfaff <blp@gnu.org>.
63463
63464 2007-10-06  Bruno Haible  <bruno@clisp.org>
63465
63466         * modules/freopen-tests: New file.
63467         * tests/test-freopen.c: New file.
63468
63469         * modules/fopen-tests: New file.
63470         * tests/test-fopen.c: New file.
63471
63472         * modules/fopen: New file.
63473         * lib/fopen.c: New file.
63474         * m4/fopen.m4: New file.
63475         * modules/freopen: New file.
63476         * lib/freopen.c: New file.
63477         * m4/freopen.m4: New file.
63478         * lib/stdio.in.h (fopen, freopen): New declarations.
63479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63480         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63481         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63482         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63483         * doc/functions/fopen.texi: Mention the 'fopen' module.
63484         * doc/functions/freopen.texi: Mention the 'freopen' module.
63485
63486 2007-10-06  Bruno Haible  <bruno@clisp.org>
63487
63488         * modules/open-tests: New file.
63489         * tests/test-open.c: New file.
63490
63491         * modules/open: New file.
63492         * lib/open.c: New file.
63493         * m4/open.m4: New file.
63494         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63495         lib/open.c does.
63496         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63497         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63498         macros.
63499         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63500         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63501         REPLACE_OPEN.
63502         * doc/functions/open.texi: Mention the 'open' module.
63503
63504 2007-10-04  Bruno Haible  <bruno@clisp.org>
63505
63506         * modules/ceill-tests: New file.
63507         * tests/test-ceill.c: New file.
63508
63509         * modules/ceill: New file.
63510         * lib/ceill.c: Replace entire file.
63511         * m4/ceill.m4: New file.
63512         * lib/math.in.h (ceill): Replace declaration.
63513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63514         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63515         * doc/functions/ceill.texi: Mention the 'ceill' module.
63516         * modules/mathl (Files): Remove lib/ceill.c.
63517         (Depends-on): Add ceill.
63518
63519 2007-10-04  Bruno Haible  <bruno@clisp.org>
63520
63521         * modules/ceilf-tests: New file.
63522         * tests/test-ceilf.c: New file.
63523
63524         * modules/ceilf: New file.
63525         * lib/ceil.c: New file.
63526         * lib/ceilf.c: New file.
63527         * m4/ceilf.m4: New file.
63528         * lib/math.in.h (ceilf): New declaration.
63529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63530         HAVE_DECL_CEILF.
63531         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63532         HAVE_DECL_CEILF.
63533         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63534
63535 2007-10-04  Bruno Haible  <bruno@clisp.org>
63536
63537         * modules/floorl-tests: New file.
63538         * tests/test-floorl.c: New file.
63539
63540         * modules/floorl: New file.
63541         * lib/floorl.c: Replace entire file.
63542         * m4/floorl.m4: New file.
63543         * lib/math.in.h (floorl): Replace declaration.
63544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63545         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63546         * doc/functions/floorl.texi: Mention the 'floorl' module.
63547         * modules/mathl (Files): Remove lib/floorl.c.
63548         (Depends-on): Add floorl.
63549
63550 2007-10-04  Bruno Haible  <bruno@clisp.org>
63551
63552         * modules/floorf-tests: New file.
63553         * tests/test-floorf.c: New file.
63554
63555         * modules/floorf: New file.
63556         * lib/floor.c: New file.
63557         * lib/floorf.c: New file.
63558         * m4/floorf.m4: New file.
63559         * lib/math.in.h (floorf): New declaration.
63560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63561         HAVE_DECL_FLOORF.
63562         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63563         HAVE_DECL_FLOORF.
63564         * doc/functions/floorf.texi: Mention the 'floorf' module.
63565
63566 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63567             Bruno Haible  <bruno@clisp.org>
63568
63569         Advertise for the Git server instead of the CVS server.
63570         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63571         repository instead of the CVS one.
63572         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63573         about all VCS systems generically.
63574         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63575
63576 2007-10-04  Bruno Haible  <bruno@clisp.org>
63577
63578         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63579         means.
63580         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63581
63582 2007-10-04  Bruno Haible  <bruno@clisp.org>
63583
63584         * modules/truncl-tests: New file.
63585         * tests/test-truncl.c: New file.
63586
63587         * modules/truncl: New file.
63588         * lib/truncl.c: New file.
63589         * m4/truncl.m4: New file.
63590         * lib/math.in.h (truncl): New declaration.
63591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63592         HAVE_DECL_TRUNCL.
63593         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63594         HAVE_DECL_TRUNCL.
63595         * doc/functions/truncl.texi: Mention the 'truncl' module.
63596
63597 2007-10-04  Bruno Haible  <bruno@clisp.org>
63598
63599         * modules/truncf-tests: New file.
63600         * tests/test-truncf.c: New file.
63601
63602         * modules/truncf: New file.
63603         * lib/trunc.c: Make paramerizable through USE_* macros.
63604         * lib/truncf.c: New file.
63605         * m4/truncf.m4: New file.
63606         * lib/math.in.h (truncf): New declaration.
63607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63608         HAVE_DECL_TRUNCF.
63609         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63610         HAVE_DECL_TRUNCF.
63611         * doc/functions/truncf.texi: Mention the 'truncf' module.
63612
63613 2007-10-03  Bruno Haible  <bruno@clisp.org>
63614
63615         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63616         augmentation also for tests modules.
63617         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63618         * modules/atexit-tests (Makefile.am): Likewise.
63619         * modules/binary-io-tests (Makefile.am): Likewise.
63620         * modules/c-strcase-tests (Makefile.am): Likewise.
63621         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63622         * modules/canonicalize-tests (Makefile.am): Likewise.
63623         * modules/closein-tests (Makefile.am): Likewise.
63624         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63625         * modules/freadahead-tests (Makefile.am): Likewise.
63626         * modules/fseek-tests (Makefile.am): Likewise.
63627         * modules/fseeko-tests (Makefile.am): Likewise.
63628         * modules/ftell-tests (Makefile.am): Likewise.
63629         * modules/ftello-tests (Makefile.am): Likewise.
63630         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63631         * modules/isnanl-tests (Makefile.am): Likewise.
63632         * modules/lseek-tests (Makefile.am): Likewise.
63633         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63634         * modules/mbscasestr-tests (Makefile.am): Likewise.
63635         * modules/mbschr-tests (Makefile.am): Likewise.
63636         * modules/mbscspn-tests (Makefile.am): Likewise.
63637         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63638         * modules/mbspbrk-tests (Makefile.am): Likewise.
63639         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63640         * modules/mbsrchr-tests (Makefile.am): Likewise.
63641         * modules/mbsspn-tests (Makefile.am): Likewise.
63642         * modules/mbsstr-tests (Makefile.am): Likewise.
63643         * modules/printf-posix-tests (Makefile.am): Likewise.
63644         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63645         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63646         * modules/tsearch-tests (Makefile.am): Likewise.
63647         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63648         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63649         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63650         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63651         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63652         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63653         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63654         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63655         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63656         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63657         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63658         * modules/xstrtol-tests (Makefile.am): Likewise.
63659         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63660         * modules/yesno-tests (Makefile.am): Likewise.
63661
63662 2007-10-03  Bruno Haible  <bruno@clisp.org>
63663
63664         * modules/trunc-tests: New file.
63665         * tests/test-trunc.c: New file.
63666
63667         * modules/trunc: New file.
63668         * lib/trunc.c: New file.
63669         * m4/trunc.m4: New file.
63670         * lib/math.in.h (trunc): New declaration.
63671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63672         HAVE_DECL_TRUNC.
63673         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63674         HAVE_DECL_TRUNC.
63675         * doc/functions/trunc.texi: Mention the 'trunc' module.
63676
63677 2007-10-03  Bruno Haible  <bruno@clisp.org>
63678
63679         * tests/test-fpending.c: New file, mostly copied
63680         from coreutils/lib/t-fpending.c.
63681         * modules/fpending-tests: New file.
63682
63683 2007-10-03  Bruno Haible  <bruno@clisp.org>
63684
63685         Port the stdio extensions to QNX (untested).
63686         * lib/fseterr.c (fseterr): Add support for QNX.
63687         * lib/fbufmode.c (fbufmode): Likewise.
63688         * lib/freadable.c (freadable): Likewise.
63689         * lib/fwritable.c (fwritable): Likewise.
63690         * lib/freading.c (freading): Likewise.
63691         * lib/fwriting.c (fwriting): Likewise.
63692         * lib/freadahead.c (freadahed): Likewise.
63693         * lib/fpurge.c (fpurge): Likewise.
63694         * lib/fseeko.c (rpl_fseeko): Likewise.
63695
63696 2007-10-03  Bruno Haible  <bruno@clisp.org>
63697             Jim Meyering  <jim@meyering.net>
63698             Eric Blake  <ebb9@byu.net>
63699
63700         * doc/relocatable.texi: Use @command instead of @program.
63701
63702 2007-10-02  Jim Meyering  <jim@meyering.net>
63703
63704         Perform one more "_.h" -> ".in.h" substitution.
63705         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63706         instead of unistd_.h here, too.
63707
63708 2007-10-01  Bruno Haible  <bruno@clisp.org>
63709
63710         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63711         Needed for the alloca-opt module.
63712
63713 2007-09-30  Bruno Haible  <bruno@clisp.org>
63714
63715         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63716         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63717         alloca_.h.
63718         * lib/argz.in.h: Renamed from lib/argz_.h.
63719         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63720         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63721         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63722         byteswap_.h.
63723         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63724         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63725         dirent_.h.
63726         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63727         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63728         fcntl_.h.
63729         * lib/float.in.h: Renamed from lib/float_.h.
63730         * modules/float (Files, Makefile.am): Use float.in.h instead of
63731         float_.h.
63732         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63733         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63734         fnmatch_.h.
63735         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63736         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63737         getopt_.h.
63738         * lib/glob.in.h: Renamed from lib/glob_.h.
63739         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63740         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63741         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63742         iconv_.h.
63743         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63744         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63745         inttypes_.h.
63746         * lib/locale.in.h: Renamed from lib/locale_.h.
63747         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63748         locale_.h.
63749         * lib/math.in.h: Renamed from lib/math_.h.
63750         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63751         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63752         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63753         of netinet_in_.h. Add dependency.
63754         * lib/poll.in.h: Renamed from lib/poll_.h.
63755         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63756         * lib/search.in.h: Renamed from lib/search_.h.
63757         * modules/search (Files, Makefile.am): Use search.in.h instead of
63758         search_.h.
63759         * lib/signal.in.h: Renamed from lib/signal_.h.
63760         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63761         _signal.h.
63762         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63763         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63764         stdbool_.h.
63765         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63766         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63767         stdint_.h.
63768         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63769         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63770         stdio_.h.
63771         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63772         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63773         stdlib_.h.
63774         * lib/string.in.h: Renamed from lib/string_.h.
63775         * modules/string (Files, Makefile.am): Use string.in.h instead of
63776         string_.h.
63777         * doc/gnulib-tool.texi (Initial import): Update.
63778         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63779         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63780         of sys_select_.h. Add dependency.
63781         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63782         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63783         of sys_socket_.h.
63784         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63785         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63786         sys_stat_.h.
63787         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63788         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63789         sys_time_.h.
63790         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63791         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63792         sysexits_.h.
63793         * lib/time.in.h: Renamed from lib/time_.h.
63794         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63795         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63796         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63797         unistd_.h.
63798         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63799         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63800         wchar_.h.
63801         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63802         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63803         wctype_.h.
63804         * build-aux/bootstrap (slurp): Update.
63805         * lib/.cppi-disable: Update.
63806
63807 2007-09-30  Bruno Haible  <bruno@clisp.org>
63808
63809         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63810         Needed on BeOS.
63811
63812 2007-09-30  Bruno Haible  <bruno@clisp.org>
63813
63814         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63815
63816 2007-09-29  Bruno Haible  <bruno@clisp.org>
63817
63818         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63819
63820 2007-09-29  Bruno Haible  <bruno@clisp.org>
63821
63822         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63823         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63824         * build-aux/install-reloc: Compile also areadlink.c.
63825         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63826
63827 2007-09-29  Bruno Haible  <bruno@clisp.org>
63828
63829         * gnulib-tool (func_emit_initmacro_done): Indentation.
63830
63831 2007-09-29  Bruno Haible  <bruno@clisp.org>
63832
63833         * README: Add CVS checkout update instructions.
63834         Info from Bob Proulx <bob@proulx.com>.
63835
63836 2007-09-28  Eric Blake  <ebb9@byu.net>
63837
63838         Provide move-if-change.
63839         * build-aux/move-if-change: New file, based on best practice
63840         rather than any canonical upstream location.
63841
63842 2007-09-28  Jim Meyering  <jim@meyering.net>
63843
63844         Fix canonicalize loop-detection corner case.
63845         Do not attempt to stat the symlink values stored via seen_triple.
63846         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63847         on linux-2.6.18, (but not 2.6.22).
63848         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63849         triple_compare.  The former compares dev,ino,filename, while the latter
63850         would actually stat dirname(filename) when dev and ino were equal.
63851         * lib/hash-triple.c: Install <string.h>.
63852         (STREQ): Define.
63853         (triple_compare_ino_str): New function.
63854         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63855
63856 2007-09-28  Eric Blake  <ebb9@byu.net>
63857
63858         Enforce that AC_REPLACE_FUNCS files exist.
63859         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63860         override check for typos.
63861
63862         Fix test-closein on Solaris 10.
63863         * tests/test-closein.c (main): Don't assume stdin can be inherited
63864         closed on all systems.
63865         * tests/test-closein.sh: Likewise.
63866         Reported by Piotr Tarnowski.
63867
63868 2007-09-28  Jim Meyering  <jim@meyering.net>
63869
63870         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63871
63872 2007-09-27  Jim Meyering  <jim@meyering.net>
63873
63874         canonicalize: Avoid a false-positive cycle failure.
63875         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63876         Sort.  Remove cycle-check.
63877         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63878         not cycle-check.h.
63879         (seen_triple): New function.
63880         (canonicalize_filename_mode): Use it instead of cycle-check.
63881         * tests/test-canonicalize.c: Add a test for this bug.
63882         * tests/test-canonicalize.sh: Set up and run the test.
63883
63884         New module, file-set, from coreutils.
63885         * modules/file-set: Define it.
63886         * lib/file-set.c, lib/file-set.h: Implement.
63887
63888         New module, hash-triple, from coreutils.
63889         * modules/hash-triple: Define it.
63890         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63891
63892 2007-09-25  Eric Blake  <ebb9@byu.net>
63893
63894         Fix strerror on Interix.
63895         * lib/string_.h (strerror): Declare replacement.
63896         * doc/functions/strerror.texi (strerror): Document the Interix
63897         shortcoming.
63898         * modules/string (Makefile.am): Support new hooks.
63899         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63900         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63901         gl_FUNC_STRERROR_SEPARATE.
63902         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63903         * lib/strerror.c (rpl_strerror): Provide replacement.
63904         * modules/strerror (Depends-on): Add string.
63905         (configure.ac): Detect use of module.
63906         * tests/test-strerror.c: New file.
63907         * modules/strerror-tests: New test module.
63908         * modules/argp (Depends-on): Add strerror.
63909         * modules/error (Depends-on): Likewise.
63910         Reported by Martin Koeppe.
63911
63912 2007-09-24  Bruno Haible  <bruno@clisp.org>
63913
63914         * README: Update git instructions.
63915
63916 2007-09-24  Eric Blake  <ebb9@byu.net>
63917
63918         Revert fpending breakage from 2007-09-08.
63919         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63920         __fpending.c.
63921
63922 2007-09-24  Jim Meyering  <jim@meyering.net>
63923
63924         filenamecat.c: Add a test.
63925         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63926         showing how the function works when DIR is the empty string.
63927
63928 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63929
63930         * tests/test-canonicalize.sh: Turn on executable bit.
63931
63932 2007-09-19  Eric Blake  <ebb9@byu.net>
63933
63934         * README: Update CVS instructions.
63935
63936 2007-09-18  Bruno Haible  <bruno@clisp.org>
63937
63938         * modules/areadlink: New file.
63939         * lib/areadlink.h (areadlink): New declaration.
63940         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63941
63942 2007-09-17  Jim Meyering  <jim@meyering.net>
63943
63944         * lib/savewd.c (ESTALE) [!defined]: Define.
63945         Reported to be required on Interix by Martin Koeppe.
63946
63947 2007-09-17  Bruno Haible  <bruno@clisp.org>
63948
63949         * gnulib-tool (func_version): Use $version.
63950
63951 2007-09-16  Bruno Haible  <bruno@clisp.org>
63952
63953         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63954         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63955         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63956         Reported by Greg Schafer <gschafer@zip.com.au>.
63957
63958 2007-09-15  Bruno Haible  <bruno@clisp.org>
63959
63960         * gnulib-tool (sed): Try a little harder to make bash understand the
63961         alias.
63962         Reported by Bruce Korb <bruce.korb@gmail.com>.
63963
63964 2007-09-13  Eric Blake  <ebb9@byu.net>
63965
63966         * ChangeLog: Remove conflict markers.
63967
63968 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63969
63970         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63971         Reported by Bruno Haible <bruno@clisp.org>.
63972
63973 2007-09-12  Bruno Haible  <bruno@clisp.org>
63974
63975         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63976         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63977         is not defined.
63978
63979 2007-09-12  Eric Blake  <ebb9@byu.net>
63980
63981         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63982         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63983         Autoconf definition.
63984         * modules/euidaccess (Depends-on): Add extensions, for
63985         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63986         * modules/fnmatch (Depends-on): Likewise.
63987         * modules/getaddrinfo (Depends-on): Likewise.
63988         * modules/getdelim (Depends-on): Likewise.
63989         * modules/getline (Depends-on): Likewise.
63990         * modules/getsubopt (Depends-on): Likewise.
63991         * modules/gettext (Depends-on): Likewise.
63992         * modules/group-member (Depends-on): Likewise.
63993         * modules/mbchar (Depends-on): Likewise.
63994         * modules/memmem (Depends-on): Likewise.
63995         * modules/mempcpy (Depends-on): Likewise.
63996         * modules/memrchr (Depends-on): Likewise.
63997         * modules/pagealign_alloc (Depends-on): Likewise.
63998         * modules/readutmp (Depends-on): Likewise.
63999         * modules/stpcpy (Depends-on): Likewise.
64000         * modules/stpncpy (Depends-on): Likewise.
64001         * modules/strchrnul (Depends-on): Likewise.
64002         * modules/strndup (Depends-on): Likewise.
64003         * modules/strsep (Depends-on): Likewise.
64004         * modules/strverscmp (Depends-on): Likewise.
64005         * modules/vasprintf (Depends-on): Likewise.
64006         * modules/wcwidth (Depends-on): Likewise.
64007         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
64008         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
64009         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
64010         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
64011         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64012         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64013         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
64014         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64015         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
64016         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
64017         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64018         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64019         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64020         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64021         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
64022         * m4/readutmp.m4 (gl_READUTMP): Likewise.
64023         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64024         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64025         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64026         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64027         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64028         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64029         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64030         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
64031         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
64032         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64033         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
64034         so that lock.m4 can be used in gettext without extensions module.
64035
64036 2007-09-11  Bruno Haible  <bruno@clisp.org>
64037
64038         * m4/isc-posix.m4: Remove file.
64039         Suggested by Eric Blake.
64040
64041 2007-09-11  Eric Blake  <ebb9@byu.net>
64042
64043         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
64044
64045 2007-09-10  Bruno Haible  <bruno@clisp.org>
64046
64047         * posix-modules: Fix typo in error message.
64048         Reported by Matt <mkraai@beckman.com>.
64049
64050 2007-09-09  Bruno Haible  <bruno@clisp.org>
64051
64052         * doc/functions/getdelim.texi: Update list of platforms lacking the
64053         function.
64054         * doc/functions/getline.texi: Likewise.
64055
64056 2007-09-09  Jim Meyering  <jim@meyering.net>
64057
64058         * lib/hash.c (hash_initialize): Detect calloc failure.
64059         Reported by Bruno Haible.
64060
64061 2007-09-09  Bruno Haible  <bruno@clisp.org>
64062
64063         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
64064         malloc or realloc fails.
64065
64066 2007-09-09  Bruno Haible  <bruno@clisp.org>
64067
64068         * modules/getcwd (Depends-on): Add malloc-posix.
64069         * modules/glob (Depends-on): Likewise.
64070         * modules/putenv (Depends-on): Likewise.
64071         * modules/strdup (Depends-on): Likewise.
64072         * modules/getdelim (Depends-on): Add realloc-posix.
64073         * modules/read-file (Depends-on): Likewise.
64074
64075 2007-09-09  Bruno Haible  <bruno@clisp.org>
64076
64077         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
64078         (gl_FUNC_MALLOC_POSIX): Require it.
64079         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
64080         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
64081         * modules/realloc (Files): Add m4/malloc.m4.
64082         * modules/calloc (Files): Likewise.
64083
64084 2007-09-09  Bruno Haible  <bruno@clisp.org>
64085
64086         * modules/malloc-posix: New file.
64087         * modules/malloc (Depends-on): Add malloc-posix.
64088         * lib/malloc.c: Include errno.h.
64089         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
64090         and a POSIX-compatible malloc into a single function. Set ENOMEM
64091         when returning NULL.
64092         * m4/malloc.m4: New file.
64093         * doc/functions/malloc.texi: Mention the malloc-posix module.
64094         * lib/stdlib_.h (malloc): New declaration.
64095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64096         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
64097         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
64098         and HAVE_MALLOC_POSIX.
64099
64100 2007-09-09  Bruno Haible  <bruno@clisp.org>
64101
64102         * modules/realloc-posix: New file.
64103         * modules/realloc (Depends-on): Add realloc-posix.
64104         * lib/realloc.c: Include errno.h.
64105         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
64106         and a POSIX-compatible realloc into a single function. Set ENOMEM
64107         when returning NULL.
64108         * m4/realloc.m4: New file.
64109         * doc/functions/realloc.texi: Mention the realloc-posix module.
64110         * lib/stdlib_.h (realloc): New declaration.
64111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64112         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
64113         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
64114         and HAVE_REALLOC_POSIX.
64115
64116 2007-09-09  Bruno Haible  <bruno@clisp.org>
64117
64118         * modules/calloc-posix: New file.
64119         * modules/calloc (Depends-on): Add calloc-posix.
64120         * lib/calloc.c: Include errno.h.
64121         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
64122         and a POSIX-compatible calloc into a single function. Set ENOMEM
64123         when returning NULL.
64124         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
64125         * doc/functions/calloc.texi: Mention the calloc-posix module.
64126         * lib/stdlib_.h (calloc): New declaration.
64127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64128         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
64129         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
64130         and HAVE_CALLOC_POSIX.
64131
64132 2007-09-09  Bruno Haible  <bruno@clisp.org>
64133
64134         Allow for modules to show an arbitrary notice.
64135         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64136         * gnulib-tool: New option --extract-notice.
64137         (func_usage): Document it.
64138         (sed_extract_prog): Update.
64139         (func_get_notice): New function.
64140         (func_modules_notice): New function.
64141         (func_import, func_create_testdir): Invoke it.
64142         Suggested by Jim Meyering.
64143
64144 2007-09-09  Bruno Haible  <bruno@clisp.org>
64145
64146         * gnulib-tool: New options --verbose, --quiet.
64147         (func_usage): Document them.
64148         (verbose): New variable.
64149         (func_execute_command): New function.
64150         (func_import): Don't show the module list and the file list if
64151         $verbose < 0.
64152         (func_create_testdir): Likewise. Use func_execute_command.
64153         (func_create_megatestdir): Use func_execute_command.
64154
64155 2007-09-08  Bruno Haible  <bruno@clisp.org>
64156
64157         * gnulib-tool (func_import): Prefer rsync over wget when available,
64158         for fetching the PO files.
64159
64160 2007-09-08  Bruno Haible  <bruno@clisp.org>
64161
64162         * posix-modules: New file. Portions copied from gnulib-tool.
64163         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64164
64165 2007-09-08  Jim Meyering  <jim@meyering.net>
64166
64167         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64168         * lib/fpending.h: Rename from __fpending.h.
64169         * lib/fpending.c: Rename from __fpending.c.
64170         Include "fpending.h", not "__fpending.h".
64171         * lib/__fpending.h, lib/__fpending.c: Remove files.
64172         * modules/fpending (Files): Reflect new file names.
64173         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64174
64175 2007-09-08  Bruno Haible  <bruno@clisp.org>
64176
64177         * m4/inttypes-h.m4: Remove stub file.
64178
64179 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64180
64181         * doc/headers/stdint.texi: Discuss #include_next issue.
64182
64183 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64184
64185         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64186
64187 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64188
64189         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64190         in variable name.
64191
64192 2007-09-03  Jim Meyering  <jim@meyering.net>
64193
64194         New module: git-version-gen.
64195         * modules/git-version-gen: New file.
64196
64197         Import changes from coreutils for bootstrap script.
64198
64199         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64200
64201         bootstrap: uses rsync to download the .po files
64202         * build-aux/bootstrap (po_download_command_format): New global.
64203         (download_po_files): Use rsync.
64204         (update_po_files): Don't remove .po files after download,
64205         so future rsync runs can take advantage of the copies.
64206
64207         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64208
64209         Solve the unnecessary-.po-file-regeneration problem once and for all.
64210         * build-aux/bootstrap (download_po_files): New function, renamed from
64211         get_translations.  Now, downloads, but doesn't update LINGUAS.
64212         (update_po_files): New function.
64213
64214         bootstrap: Ignore more.
64215         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64216         uniwidth to e.g., lib/.gitignore.
64217         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64218
64219         * build-aux/bootstrap: New setting: vc_ignore.
64220         (insert_sorted_if_absent): Create $file if absent.
64221         Adapt to new, possibly empty, list: $vc_ignore.
64222
64223         bootstrap: generate more ignorable names
64224         * build-aux/bootstrap (slurp): When generating ignorable names,
64225         also map .sin to .sed, .gperf to .c, and .y to .c.
64226
64227 2007-09-03  Jim Meyering  <jim@meyering.net>
64228
64229         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64230         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64231
64232 2007-09-02  Bruno Haible  <bruno@clisp.org>
64233
64234         Fix mis-recognition of 'mcs' on QNX 6.
64235         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64236         output contains the string "Mono".
64237         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64238         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64239
64240 2007-09-01  Bruno Haible  <bruno@clisp.org>
64241
64242         Fix collision between uniwidth/* and linebreak modules.
64243         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64244         u32_width): Remove declarations.
64245         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64246         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64247         streq3, streq2, streq1, streq0): Remove functions.
64248         (STREQ): Remove macro.
64249         (is_cjk_encoding): Remove function.
64250         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64251         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64252         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64253         * NEWS: Document the change.
64254
64255 2007-09-01  Bruno Haible  <bruno@clisp.org>
64256
64257         * lib/streq.h: Add double-inclusion guard.
64258
64259 2007-09-01  Karl Berry  <karl@gnu.org>
64260
64261         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64262
64263 2007-08-28  Jim Meyering  <jim@meyering.net>
64264
64265         Rename mreadlink_with_size to areadlink_with_size.
64266         * NEWS: Document the change.
64267         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64268         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64269         * lib/mreadlink.h: Rename this to...
64270         * lib/areadlink.h: ...this.
64271         * modules/mreadlink-with-size: Rename this to...
64272         * modules/areadlink-with-size: ...this.
64273         * lib/canonicalize.c: Reflect the renaming.
64274         * modules/canonicalize: Likewise.
64275
64276 2007-08-26  Bruno Haible  <bruno@clisp.org>
64277
64278         * gnulib-tool (func_import): When deciding which files to remove,
64279         consider also dangling symbolic links.
64280         Reported by Eric Blake.
64281
64282 2007-08-26  Bruno Haible  <bruno@clisp.org>
64283
64284         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64285
64286 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64287
64288         * lib/readline.c: Don't include getline.h, the prototype is now
64289         found in stdio.h.
64290
64291 2007-08-23  Jim Meyering  <jim@meyering.net>
64292
64293         Getdelim touchup.
64294         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64295         around the funlockfile call, since funlockfile never sets errno.
64296         Don't set errno upon failed realloc.
64297
64298 2007-08-22  Eric Blake  <ebb9@byu.net>
64299
64300         Getline touchups.
64301         * lib/getdelim.c (getdelim): Revert regression that required *n to
64302         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64303         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64304         getdelim, rather than whether implementation is missing.
64305         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64306         * lib/stdio_.h (getline): Also declare if replacement is
64307         required.
64308         * doc/functions/getdelim.texi: New file.
64309         * doc/functions/getline.texi: Likewise.
64310         * doc/gnulib.texi (Function Substitutes): Add new files.
64311         Reported by Bruno Haible.
64312
64313 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64314
64315         * users.txt: Add Guile.
64316
64317 2007-08-22  Eric Blake  <ebb9@byu.net>
64318
64319         * tests/test-getdelim.c (main): Use remove, not unlink.
64320         * tests/test-getline.c (main): Likewise.
64321
64322         Move getline and getdelim into stdio.h, per POSIX 200x.
64323         * modules/getline (Files): Remove getline.h.
64324         (Depends-on): Add stdio.
64325         (configure.ac): Add module indicator.
64326         * modules/getdelim (Files): Remove getdelim.h.
64327         (Depends-on): Add stdio.
64328         (configure.ac): Add module indicator.
64329         * modules/stdio (Makefile.am): Work with new indicators.
64330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64331         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64332         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64333         * lib/getdelim.h: Delete.
64334         * lib/getline.h: Delete.
64335         * lib/stdio_.h (getdelim, getline): Declare.
64336         * modules/getdelim-tests: New module.
64337         * modules/getline-tests: Likewise.
64338         * tests/test-getdelim.c: New file.
64339         * tests/test-getline.c: Likewise.
64340         * NEWS: Document the change.
64341         * lib/getline.c: Update choice of header.
64342         * lib/csharpcomp.c: Likewise.
64343         * lib/getpass.c: Likewise.
64344         * lib/javacomp.c: Likewise.
64345         * lib/javaversion.c: Likewise.
64346         * lib/yesno.c: Likewise.
64347         * lib/getdelim.c: Likewise.
64348         (getdelim): Set errno on failure, and avoid memory leak.
64349
64350 2007-08-19  Bruno Haible  <bruno@clisp.org>
64351
64352         * modules/closein (Depends-on): Add freadahead.
64353         * lib/closein.c: Include freadahead.h.
64354         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64355         is zero.
64356
64357 2007-08-19  Bruno Haible  <bruno@clisp.org>
64358
64359         * modules/freadahead-tests: New file.
64360         * tests/test-freadahead.sh: New file.
64361         * tests/test-freadahead.c: New file.
64362
64363         * modules/freadahead: New file.
64364         * lib/freadahead.h: New file.
64365         * lib/freadahead.c: New file.
64366         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64367         fbufmode, fpurge, freadable, fwritable.
64368
64369 2007-08-19  Eric Blake  <ebb9@byu.net>
64370
64371         Test yesno in combination with closein.
64372         * lib/yesno.c (yesno): Document use of stdin.
64373         * modules/yesno-tests (Files): New module.
64374         * tests/test-yesno.c (main): New file.
64375         * tests/test-yesno.sh: Likewise.
64376
64377 2007-08-19  Bruno Haible  <bruno@clisp.org>
64378
64379         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64380         * lib/fseeko.c (rpl_fseeko): Likewise.
64381         * lib/fseterr.c (fseterr): Likewise.
64382
64383 2007-08-19  Bruno Haible  <bruno@clisp.org>
64384
64385         * tests/test-lseek.c (main): Disable a test for BeOS.
64386         * doc/functions/lseek.texi: Document the BeOS bug.
64387
64388 2007-08-19  Bruno Haible  <bruno@clisp.org>
64389             Eric Blake  <ebb9@byu.net>
64390
64391         * lib/lseek.c: Include <sys/stat.h>.
64392         (rpl_lseek): Add workaround code also for Unix platforms.
64393         Needed for BeOS.
64394         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64395         * doc/functions/lseek.texi: Document BeOS definiency.
64396
64397 2007-08-18  Bruno Haible  <bruno@clisp.org>
64398
64399         * modules/fstrcmp-tests: New file.
64400         * tests/test-fstrcmp.c: New file.
64401
64402 2007-08-18  Bruno Haible  <bruno@clisp.org>
64403
64404         * modules/fstrcmp: New file, from GNU gettext with modifications.
64405         * lib/fstrcmp.h: New file, from GNU gettext.
64406         * lib/fstrcmp.c: New file, from GNU gettext.
64407         * MODULES.html.sh (String handling): Add fstrcmp.
64408
64409 2007-08-18  Bruno Haible  <bruno@clisp.org>
64410
64411         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64412         'bool'.
64413         (diag, compareseq): Remove const from the ctxt argument.
64414         (USE_HEURISTIC): Undefine at the end.
64415
64416 2007-08-18  Jim Meyering  <jim@meyering.net>
64417
64418         New file: lib/idcache.h
64419         * NEWS: Mention the addition.
64420         * modules/idcache (Files): Add lib/idcache.h
64421         * lib/idcache.c: Include "idcache.h".
64422         Don't include <sys/types.h>.
64423         Add a FIXME comment.
64424         Move file-scoped "static" declarations to the top.
64425         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64426
64427 2007-08-17  Bruno Haible  <bruno@clisp.org>
64428         and Paul Eggert  <eggert@cs.ucla.edu>
64429
64430         * MODULES.html.sh: Add diffseq.
64431         * modules/diffseq: New file.
64432         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64433         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64434
64435 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64436
64437         Import changes from coreutils for bootstrap script.
64438
64439         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64440
64441         * build-aux/bootstrap (slurp): Work even in environments where
64442         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64443         current code does not slurp files whose names start with ".", and
64444         this looks like it might be a troublesome area.
64445
64446         2007-07-11  Jim Meyering  <jim@meyering.net>
64447
64448         If there's a GPL vN copyright comment, require that N == 3.
64449
64450         2007-07-08  Jim Meyering  <jim@meyering.net>
64451
64452         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64453         * build-aux/bootstrap (mam_template): Move definition out of loop.
64454
64455         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64456
64457         * build-aux/bootstrap (symlink_to_dir): Rename function from
64458         symlink_to_gnulib.  Add a directory parameter.  Update all
64459         callers.
64460         (cp_mark_as_generated): Also check for -- and link to -- files in
64461         gl/.
64462
64463         2007-07-08  Jim Meyering  <jim@meyering.net>
64464
64465         Adapt to deeper hierarchy in gnulib.
64466         * build-aux/bootstrap (symlink_to_dir): If the destination
64467         directory doesn't exist, create it. This is required at least for
64468         "lib/uniwidth/cjk.h".
64469
64470         2007-05-15  Jim Meyering  <jim@meyering.net>
64471
64472         * build-aux/bootstrap: Now that generated Makefile.am files
64473         are no longer under version control, they must be created at
64474         bootstrap time.
64475
64476 2007-08-14  Ben Pfaff  <blp@gnu.org>
64477
64478         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64479
64480 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64481
64482         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64483         given the changes below.
64484         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64485         even on hosts that have padding bits beyond the supported 64.
64486
64487 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64488
64489         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64490         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64491         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64492         depends on it.
64493         (xstrtol_error): Remove.
64494         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64495         but with a different signature.
64496         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64497         * lib/xstrtol-error.c: Include exitfail.h.
64498         (xstrtol_fatal): New function, with a different signature from the
64499         old xstrtol_error, so that the caller need not worry about passing
64500         in an exit status, or about storage management of the option argument.
64501         (xstrtol_error): Now a static function.  Redo signature to
64502         implement xstrtol_fatal.  Output the correct number of hyphens in
64503         front of the option so that the caller need not worry about
64504         storage management.
64505         (N_): New macro.
64506         (_): Remove; not used now.
64507         * modules/xstrtol: Depend on getopt.
64508         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64509         of old STRTOL_FATAL_ERROR macro.
64510         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64511         of test program.
64512         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64513         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64514
64515 2007-08-08  Eric Blake  <ebb9@byu.net>
64516
64517         * lib/xstrtol-error.c: Add missing include.
64518
64519         Move xstrtol messages into gnulib domain, when --pobase is used.
64520         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64521         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64522         * modules/xstrtol (Files): Distribute new file.
64523         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64524         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64525         * tests/test-xstrtol.c: ...into new file.
64526         * tests/test-xstrtoul.c: Also test xstrtoul.
64527         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64528         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64529         * tests/test-xstrtol.sh: Drive the tests.
64530         * tests/test-xstrtoimax.sh: Likewise.
64531         * tests/test-xstrtoumax.sh: Likewise.
64532         * modules/xstrtol-tests: New module.
64533         * modules/xstrtoimax-tests: Likewise.
64534         * modules/xstrtoumax-tests: Likewise.
64535
64536 2007-08-08  Jim Meyering  <jim@meyering.net>
64537
64538         New function: mfile_name_concat.
64539         * lib/filenamecat.c (mfile_name_concat): New function, just like
64540         file_name_concat, but return NULL upon failure rather than exiting
64541         with a diagnostic.
64542         * lib/filenamecat.h: Declare it.
64543
64544 2007-08-07  Bruno Haible  <bruno@clisp.org>
64545
64546         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64547         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64548         warning from gcc.
64549         Reported by Eric Blake.
64550
64551 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64552
64553         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64554         * modules/crypto/arcfour (License): Likewise.
64555         * modules/crypto/des-tests (License): Likewise.
64556         * modules/crypto/gc-arctwo-tests (License): Likewise.
64557         * modules/crypto/gc-des-tests (License): Likewise.
64558         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64559         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64560         * modules/crypto/gc-md2-tests (License): Likewise.
64561         * modules/crypto/gc-md4-tests (License): Likewise.
64562         * modules/crypto/gc-md5-tests (License): Likewise.
64563         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64564         * modules/crypto/gc-rijndael-tests (License): Likewise.
64565         * modules/crypto/gc-sha1-tests (License): Likewise.
64566         * modules/crypto/gc-tests (License): Likewise.
64567         * modules/crypto/hmac-md5 (License): Likewise.
64568         * modules/crypto/hmac-sha1 (License): Likewise.
64569         * modules/crypto/md2-tests (License): Likewise.
64570         * modules/crypto/md4-tests (License): Likewise.
64571         * modules/crypto/md5 (License): Likewise.
64572         * modules/crypto/rijndael (License): Likewise.
64573         * modules/crypto/sha1 (License): Likewise.
64574         * modules/memxor (License): Likewise.
64575
64576 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64577         and Bruno Haible  <bruno@clisp.org>
64578
64579         * NEWS: Describe interface changes to human, xstrtol.
64580         * lib/human.h: Include <xstrtol.h>.
64581         (human_options): Return enum strtol_error, not int.  Remove
64582         bool arg; take int * instead.
64583         * lib/human.c: Don't include "gettext.h".
64584         (_): Remove; no longer used.
64585         Don't include <xstrtol.h>, since human.h does it.
64586         (human_options): Adjust to abovementioned interface changes.
64587         Do not report error to stderr; that's now the caller's
64588         responsibility.
64589         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64590         interface change.
64591         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64592         Str, Argument_type_string.  All uses changed.  Put " argument"
64593         in diagnostics to make them clearer.  Change wording of suffix
64594         message for clarity.
64595         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64596         Argument_type_string.
64597         (STRTOL_FATAL_WARN): Remove; no longer used.
64598         * modules/human (Depends-on): Remove gettext-h.
64599
64600 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64601
64602         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64603
64604 2007-07-31  Bruno Haible  <bruno@clisp.org>
64605
64606         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64607         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64608         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64609
64610 2007-07-31  Bruno Haible  <bruno@clisp.org>
64611
64612         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64613         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64614
64615 2007-07-30  Bruno Haible  <bruno@clisp.org>
64616
64617         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64618         * modules/c-ctype (License): Likewise.
64619         * modules/c-strcase (License): Likewise.
64620         * modules/check-version (License): Likewise.
64621         * modules/iconv (License): Likewise.
64622         * modules/iconv_open (License): Likewise.
64623         * modules/read-file (License): Likewise.
64624         * modules/striconv (License): Likewise.
64625         * modules/strverscmp (License): Likewise.
64626         * modules/vasprintf (License): Likewise.
64627         * modules/crypto/des (License): Likewise.
64628         * modules/crypto/gc (License): Likewise.
64629         * modules/crypto/gc-arcfour (License): Likewise.
64630         * modules/crypto/gc-arctwo (License): Likewise.
64631         * modules/crypto/gc-des (License): Likewise.
64632         * modules/crypto/gc-hmac-md5 (License): Likewise.
64633         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64634         * modules/crypto/gc-md2 (License): Likewise.
64635         * modules/crypto/gc-md4 (License): Likewise.
64636         * modules/crypto/gc-md5 (License): Likewise.
64637         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64638         * modules/crypto/gc-random (License): Likewise.
64639         * modules/crypto/gc-rijndael (License): Likewise.
64640         * modules/crypto/gc-sha1 (License): Likewise.
64641         * modules/crypto/md2 (License): Likewise.
64642         * modules/crypto/md4 (License): Likewise.
64643
64644 2007-07-30  Jim Meyering  <jim@meyering.net>
64645
64646         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64647         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64648         it has valid stat data.  This bug would cause du not to count the
64649         sizes of inaccessible directories.
64650         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64651         in <http://bugzilla.redhat.com/250077>.
64652
64653 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64654             Bruno Haible  <bruno@clisp.org>
64655
64656         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64657         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64658         #include_next, gives a diagnostic about it, but reports no error in
64659         the exit code.
64660         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64661
64662 2007-07-24  Ben Pfaff  <blp@gnu.org>
64663
64664         Improve name: "count-one-bits" is better than "popcount".
64665         * MODULES.html.sh: Update name.
64666         * lib/popcount.h: Renamed lib/count-one-bits.h.
64667         (popcount): Renamed count_one_bits.
64668         (popcountl): Renamed count_one_bits_l.
64669         (popcountll): Renamed count_one_bits_ll.
64670         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64671         * modules/popcount: Renamed module/count-one-bits.
64672         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64673         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64674
64675 2007-07-23  Ben Pfaff  <blp@gnu.org>
64676
64677         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64678         better code generation, and add U to large constants to avoid
64679         warnings, in non-GCC case.
64680         Suggested by Bruno Haible.
64681
64682 2007-07-23  Ben Pfaff  <blp@gnu.org>
64683
64684         * lib/popcount.h: Use verify_true instead of if...abort.
64685         * modules/popcount: Depend on verify module.
64686         Suggested by Jim Meyering.
64687
64688 2007-07-23  Bruno Haible  <bruno@clisp.org>
64689
64690         * gnulib-tool (func_import): Create a .cvsignore file also when the
64691         directory is not yet in CVS but the toplevel directory is. When
64692         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64693         Reported by Karl Berry.
64694
64695 2007-07-22  Ben Pfaff  <blp@gnu.org>
64696
64697         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64698         case.
64699         Suggested by Eric Blake.
64700
64701 2007-07-22  Ben Pfaff  <blp@gnu.org>
64702
64703         New module: popcount.
64704         * MODULES.html.sh: Add popcount.
64705         * modules/popcount: New file.
64706         * modules/popcount-tests: New file.
64707         * tests/test-popcount.c: New file.
64708         * lib/popcount.h: New file.
64709         * m4/popcount.m4: New file.
64710
64711 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64712
64713         * build-aux/announce-gen: Update to GPLv3.
64714
64715         * build-aux/config.guess: Update from config.
64716
64717 2007-07-21  Bruno Haible  <bruno@clisp.org>
64718
64719         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64720         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64721
64722 2007-07-20  Jim Meyering  <jim@meyering.net>
64723
64724         * check-module: Diagnose a self-dependency.
64725
64726 2007-07-19  Bruno Haible  <bruno@clisp.org>
64727
64728         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64729         empty.
64730         Reported by Eric Blake.
64731
64732 2007-07-18  Bruno Haible  <bruno@clisp.org>
64733
64734         * gnulib-tool: New options --po-base, --po-domain.
64735         (func_usage): Document them.
64736         (pobase, po_domain): New variables.
64737         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64738         DEFAULT_TEXT_DOMAIN.
64739         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64740         (func_import): Consider pobase and po_domain. Create a po/ directory.
64741         (func_create_testdir): Set pobase and po_domain to empty.
64742         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64743         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64744
64745 2007-07-18  Bruno Haible  <bruno@clisp.org>
64746
64747         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64748         EXTRA_DIST augmentation for files in build-aux/.
64749
64750 2007-07-16  Bruno Haible  <bruno@clisp.org>
64751
64752         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64753         * modules/getdelim (License): Likewise.
64754
64755 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64756
64757         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64758         * modules/d-type (License): Likewise.
64759         * modules/extensions (License): Likewise.
64760         * modules/fnmatch (License): Likewise.
64761         * modules/fseeko (License): Likewise.
64762         * modules/getaddrinfo (License): Likewise.
64763         * modules/getline (License): Likewise.
64764         * modules/getlogin_r (License): Likewise.
64765         * modules/getpass (License): Likewise.
64766         * modules/gettimeofday (License): Likewise.
64767         * modules/glob (License): Likewise.
64768         * modules/inet_ntop (License): Likewise.
64769         * modules/malloc (License): Likewise.
64770         * modules/malloca (License): Likewise.
64771         * modules/memmem (License): Likewise.
64772         * modules/mempcpy (License): Likewise.
64773         * modules/memset (License): Likewise.
64774         * modules/minmax (License): Likewise.
64775         * modules/mktime (License): Likewise.
64776         * modules/netinet_in (License): Likewise.
64777         * modules/pathmax (License): Likewise.
64778         * modules/poll (License): Likewise.
64779         * modules/regex (License): Likewise.
64780         * modules/snprintf (License): Likewise.
64781         * modules/stdbool (License): Likewise.
64782         * modules/stdint (License): Likewise.
64783         * modules/stdio (License): Likewise.
64784         * modules/strcase (License): Likewise.
64785         * modules/strcasestr (License): Likewise.
64786         * modules/strdup (License): Likewise.
64787         * modules/string (License): Likewise.
64788         * modules/strndup (License): Likewise.
64789         * modules/strnlen (License): Likewise.
64790         * modules/strpbrk (License): Likewise.
64791         * modules/strptime (License): Likewise.
64792         * modules/strsep (License): Likewise.
64793         * modules/sys_select (License): Likewise.
64794         * modules/sys_socket (License): Likewise.
64795         * modules/sys_stat (License): Likewise.
64796         * modules/sys_time (License): Likewise.
64797         * modules/time (License): Likewise.
64798         * modules/time_r (License): Likewise.
64799         * modules/timegm (License): Likewise.
64800         * modules/unistd (License): Likewise.
64801         * modules/vsnprintf (License): Likewise.
64802         * modules/wctype (License): Likewise.
64803
64804 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64805
64806         * modules/argz (License): LGPLv2+.
64807
64808 2007-07-15  Karl Berry  <karl@gnu.org>
64809
64810         * doc/gnulib.texi: revise node structure per new fdl.texi.
64811
64812 2007-07-14  Bruno Haible  <bruno@clisp.org>
64813
64814         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64815         the output file.
64816         * lib/uniname/uninames.h: Regenerated.
64817
64818 2007-07-14  Karl Berry  <karl@gnu.org>
64819
64820         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64821         omitting sectioning and index commands.
64822
64823 2007-07-13  Bruno Haible  <bruno@clisp.org>
64824
64825         New gnulib-tool option --more-symlinks.
64826         * gnulib-tool (func_usage): Document --more-symlinks.
64827         (do_copyrights): New variable.
64828         Recognize option --more-symlinks.
64829         (func_import): Don't add a copyright notice transform to
64830         sed_transform_lib_file if do_copyrights is empty.
64831
64832 2007-07-13  Bruno Haible  <bruno@clisp.org>
64833
64834         * lib/vasnprintf.c (decimal_point_char): Define also if
64835         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64836         && !NEED_PRINTF_DIRECTIVE_A.
64837         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64838         Gary V. Vaughan <gary@gnu.org>.
64839
64840 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64841
64842         * lib/inttypes_.h: Undo previous change, since it was fixed
64843         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64844
64845 2007-07-13  Bruno Haible  <bruno@clisp.org>
64846
64847         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64848         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64849
64850 2007-07-13  Jim Meyering  <jim@meyering.net>
64851
64852         df: Don't fail for Tru64's "file-on-file mount".
64853         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64854         so we fall through and use statfs instead.  Details here:
64855         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64856         Reported by Albert Chin.
64857
64858 2007-07-13  Bruno Haible  <bruno@clisp.org>
64859
64860         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64861         * modules/configmake (License): Likewise.
64862         * modules/gettext (License): Likewise.
64863         * modules/gettext-h (License): Likewise.
64864         * modules/include_next (License): Likewise.
64865         * modules/link-warning (License): Likewise.
64866         * modules/localcharset (License): Likewise.
64867         * modules/localename (License): Likewise.
64868         * modules/lock (License): Likewise.
64869         * modules/relocatable-lib-lgpl (License): Likewise.
64870         * modules/size_max (License): Likewise.
64871         * modules/vasnprintf (License): Likewise.
64872         * modules/wchar (License): Likewise.
64873         * modules/xsize (License): Likewise.
64874
64875 2007-07-13  Bruno Haible  <bruno@clisp.org>
64876
64877         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64878         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64879
64880 2007-07-12  Bruno Haible  <bruno@clisp.org>
64881
64882         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64883         in the modules files.
64884
64885 2007-07-11  Karl Berry  <karl@gnu.org>
64886
64887         * MODULES.html.sh (func_module): use
64888          sed -e '\|^'"${includefile}"'$|d'
64889          instead of /.../d, to avoid errors on $includefile's containing /.
64890
64891 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64892
64893         * gnulib-tool (func_import): Avoid duplication of --avoid
64894         statements
64895         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64896         names to `_' in variable names.
64897
64898 2007-07-10  Eric Blake  <ebb9@byu.net>
64899
64900         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64901         * NEWS: Document this change.
64902
64903 2007-07-08  Bruno Haible  <bruno@clisp.org>
64904
64905         Update to Unicode 5.0.
64906         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64907         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64908         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64909         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64910         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64911         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64912         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64913         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64914         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64915         U+10A3F, U+1D242..U+1D244.
64916         (nonspacing_table_ind): Update.
64917         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64918         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64919
64920 2007-07-08  Bruno Haible  <bruno@clisp.org>
64921
64922         Update to Unicode 5.0.
64923         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64924         code transform. Extend the name index field of unicode_name_to_code and
64925         unicode_code_to_name from 16 to 24 bits.
64926         * lib/uniname/uniname.c (unicode_character_name,
64927         unicode_name_character): Add the range 0x12xxx to the code transform.
64928         * lib/uniname/uninames.h: Regenerated.
64929         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64930
64931 2007-07-07  Bruno Haible  <bruno@clisp.org>
64932
64933         * modules/wcwidth-tests: New file.
64934         * tests/test-wcwidth.c: New file.
64935
64936         Work around MacOS X wcwidth() bug.
64937         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64938         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64939         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64940         original wcwidth in non-UTF-8 locales.
64941         * modules/wcwidth (Depends-on): Add localcharset, streq,
64942         uniwidth/width.
64943         * doc/functions/wcwidth.texi: Update.
64944
64945 2007-07-07  Bruno Haible  <bruno@clisp.org>
64946
64947         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64948         (wcwidth): New declaration.
64949         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64950         macros.
64951         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64952         here. Prepare for creating <wchar.h> unconditionally.
64953         * modules/wchar (Depends-on): Add link-warning.
64954         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64955         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64956         * lib/wcwidth.h: Remove file.
64957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64958         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64959         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64960         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64961         (Include): Replace wcwidth.h with <wchar.h>.
64962         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64963         * lib/mbchar.h: Don't include wcwidth.h.
64964         * lib/mbswidth.c: Likewise.
64965         * NEWS: Mention the change.
64966
64967 2007-07-07  Bruno Haible  <bruno@clisp.org>
64968
64969         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64970         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64971         definition with an external declaration.
64972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64973         defined as a function. Remove AC_C_INLINE requirement.
64974         * modules/wcwidth (Files): Add lib/wcwidth.c.
64975         (Makefile.am): Remove redundant statement.
64976
64977 2007-07-07  Bruno Haible  <bruno@clisp.org>
64978
64979         * MODULES.html.sh (Unicode string functions): Add the new modules.
64980
64981         * tests/uniwidth/test-u32-strwidth.c: New file.
64982         * modules/uniwidth/u32-strwidth-tests: New file.
64983
64984         * lib/uniwidth/u32-strwidth.c: New file.
64985         * modules/uniwidth/u32-strwidth: New file.
64986
64987         * tests/uniwidth/test-u16-strwidth.c: New file.
64988         * modules/uniwidth/u16-strwidth-tests: New file.
64989
64990         * lib/uniwidth/u16-strwidth.c: New file.
64991         * modules/uniwidth/u16-strwidth: New file.
64992
64993         * tests/uniwidth/test-u8-strwidth.c: New file.
64994         * modules/uniwidth/u8-strwidth-tests: New file.
64995
64996         * lib/uniwidth/u8-strwidth.c: New file.
64997         * modules/uniwidth/u8-strwidth: New file.
64998
64999         * tests/uniwidth/test-u32-width.c: New file.
65000         * modules/uniwidth/u32-width-tests: New file.
65001
65002         * lib/uniwidth/u32-width.c: New file.
65003         * modules/uniwidth/u32-width: New file.
65004
65005         * tests/uniwidth/test-u16-width.c: New file.
65006         * modules/uniwidth/u16-width-tests: New file.
65007
65008         * lib/uniwidth/u16-width.c: New file.
65009         * modules/uniwidth/u16-width: New file.
65010
65011         * tests/uniwidth/test-u8-width.c: New file.
65012         * modules/uniwidth/u8-width-tests: New file.
65013
65014         * lib/uniwidth/u8-width.c: New file.
65015         * modules/uniwidth/u8-width: New file.
65016
65017         * tests/uniwidth/test-uc_width.c: New file.
65018         * modules/uniwidth/width-tests: New file.
65019
65020         * lib/uniwidth/width.c: New file, from GNU libiconv.
65021         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
65022         * modules/uniwidth/width: New file.
65023
65024         * lib/uniwidth.h: New file, from GNU libiconv.
65025         * modules/uniwidth/base: New file.
65026
65027 2007-07-07  Bruno Haible  <bruno@clisp.org>
65028
65029         * lib/uniname.h: New file, from GNU gettext.
65030         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
65031         * lib/uniname/uninames.h: New file, from GNU gettext.
65032         * lib/uniname/uniname.c: New file, from GNU gettext.
65033         * tests/uniname/test-uninames.sh: New file.
65034         * tests/uniname/test-uninames.c: New file, from GNU gettext.
65035         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
65036         * modules/uniname/base: New file.
65037         * modules/uniname/uniname: New file.
65038         * modules/uniname/uniname-tests: New file.
65039         * MODULES.html.sh (Unicode string functions): Add the new modules.
65040
65041 2007-07-06  Bruno Haible  <bruno@clisp.org>
65042
65043         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
65044
65045 2007-07-06  Bruno Haible  <bruno@clisp.org>
65046
65047         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
65048         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
65049         includes <cygwin/sys_time.h> which includes <sys/select.h> which
65050         include <sys/time.h>.
65051         Reported by Eric Blake.
65052
65053 2007-07-06  Eric Blake  <ebb9@byu.net>
65054
65055         Fix testing canonicalize on cygwin.
65056         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65057         Revert patch from 2007-06-19.
65058         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
65059         canonicalize module is also in use.
65060         * tests/test-canonicalize.c: New file.
65061         * tests/test-canonicalize.sh: Likewise.
65062         * modules/canonicalize-tests: Likewise.
65063
65064 2007-07-06  Jim Meyering  <jim@meyering.net>
65065
65066         * lib/getugroups.c (getugroups): Detect getgrent failure.
65067         Adjust comment to reflect reality: this function may return -1.
65068
65069 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
65070
65071         * build-aux/bootstrap (TP_URL,get_translations): Update to use
65072         the new TP address.
65073         (usage): Fix typo
65074         (gnulib_mk): New variable.
65075
65076 2007-07-05  Jim Meyering  <jim@meyering.net>
65077
65078         Don't let endgrent clobber errno, no matter how improbable.
65079         * lib/getugroups.c (getugroups): Save and restore errno around
65080         endgrent call.
65081
65082         Close the group DB even when failing with 2^31 or more members.
65083         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
65084
65085 2007-07-04  Jim Meyering  <jim@meyering.net>
65086
65087         * lib/getugroups.h: New file.
65088         * lib/getugroups.c: Include "getugroups.h".
65089         Remove uses of "register" keyword.
65090         Move local variable, "cp", down into scope where used.
65091         Give "username" parameter the "const" attribute.
65092         * modules/getugroups (Files): Add lib/getugroups.h
65093
65094 2007-07-04  Karl Berry  <karl@gnu.org>
65095
65096         * MODULES.html.sh (func_all_modules): Complete rename of
65097         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
65098
65099 2007-07-02  Bruno Haible  <bruno@clisp.org>
65100
65101         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
65102         mode, when inttypes.h comes from gnulib.
65103         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65104
65105 2007-07-02  Simon Josefsson  <simon@josefsson.org>
65106
65107         * NEWS: Mention lgpl module name change.
65108
65109         * modules/lgpl-2.1: Renamed from lgpl.
65110
65111         * NEWS: Mention gpl module name change.
65112
65113         * modules/gpl-3.0: New file, based on gpl-2.0.
65114
65115         * modules/gpl-2.0: Renamed from gpl.
65116
65117         * modules/gpl: Fix filename, doc/gpl.texi is now found at
65118         doc/gpl-2.0.texi.
65119
65120 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65121
65122         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
65123         #define __STDC_LIMIT_MACROS temporarily while including
65124         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
65125         Problem reported by Joel E. Denny in
65126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
65127
65128 2007-07-01  Bruno Haible  <bruno@clisp.org>
65129
65130         * lib/unistdio.h: New file.
65131         * lib/unistdio/u-asnprintf.h: New file.
65132         * lib/unistdio/u-asprintf.h: New file.
65133         * lib/unistdio/u-printf-args.c: New file.
65134         * lib/unistdio/u-printf-args.h: New file.
65135         * lib/unistdio/u-printf-parse.h: New file.
65136         * lib/unistdio/u-snprintf.h: New file.
65137         * lib/unistdio/u-sprintf.h: New file.
65138         * lib/unistdio/u-vasprintf.h: New file.
65139         * lib/unistdio/u-vsnprintf.h: New file.
65140         * lib/unistdio/u-vsprintf.h: New file.
65141         * lib/unistdio/ulc-asnprintf.c: New file.
65142         * lib/unistdio/ulc-asprintf.c: New file.
65143         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65144         * lib/unistdio/ulc-printf-parse.c: New file.
65145         * lib/unistdio/ulc-snprintf.c: New file.
65146         * lib/unistdio/ulc-sprintf.c: New file.
65147         * lib/unistdio/ulc-vasnprintf.c: New file.
65148         * lib/unistdio/ulc-vasprintf.c: New file.
65149         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65150         * lib/unistdio/ulc-vsnprintf.c: New file.
65151         * lib/unistdio/ulc-vsprintf.c: New file.
65152         * lib/unistdio/u8-asnprintf.c: New file.
65153         * lib/unistdio/u8-asprintf.c: New file.
65154         * lib/unistdio/u8-printf-parse.c: New file.
65155         * lib/unistdio/u8-snprintf.c: New file.
65156         * lib/unistdio/u8-sprintf.c: New file.
65157         * lib/unistdio/u8-vasnprintf.c: New file.
65158         * lib/unistdio/u8-vasprintf.c: New file.
65159         * lib/unistdio/u8-vsnprintf.c: New file.
65160         * lib/unistdio/u8-vsprintf.c: New file.
65161         * lib/unistdio/u8-u8-asnprintf.c: New file.
65162         * lib/unistdio/u8-u8-asprintf.c: New file.
65163         * lib/unistdio/u8-u8-snprintf.c: New file.
65164         * lib/unistdio/u8-u8-sprintf.c: New file.
65165         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65166         * lib/unistdio/u8-u8-vasprintf.c: New file.
65167         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65168         * lib/unistdio/u8-u8-vsprintf.c: New file.
65169         * lib/unistdio/u16-asnprintf.c: New file.
65170         * lib/unistdio/u16-asprintf.c: New file.
65171         * lib/unistdio/u16-printf-parse.c: New file.
65172         * lib/unistdio/u16-snprintf.c: New file.
65173         * lib/unistdio/u16-sprintf.c: New file.
65174         * lib/unistdio/u16-vasnprintf.c: New file.
65175         * lib/unistdio/u16-vasprintf.c: New file.
65176         * lib/unistdio/u16-vsnprintf.c: New file.
65177         * lib/unistdio/u16-vsprintf.c: New file.
65178         * lib/unistdio/u16-u16-asnprintf.c: New file.
65179         * lib/unistdio/u16-u16-asprintf.c: New file.
65180         * lib/unistdio/u16-u16-snprintf.c: New file.
65181         * lib/unistdio/u16-u16-sprintf.c: New file.
65182         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65183         * lib/unistdio/u16-u16-vasprintf.c: New file.
65184         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65185         * lib/unistdio/u16-u16-vsprintf.c: New file.
65186         * lib/unistdio/u32-asnprintf.c: New file.
65187         * lib/unistdio/u32-asprintf.c: New file.
65188         * lib/unistdio/u32-printf-parse.c: New file.
65189         * lib/unistdio/u32-snprintf.c: New file.
65190         * lib/unistdio/u32-sprintf.c: New file.
65191         * lib/unistdio/u32-vasnprintf.c: New file.
65192         * lib/unistdio/u32-vasprintf.c: New file.
65193         * lib/unistdio/u32-vsnprintf.c: New file.
65194         * lib/unistdio/u32-vsprintf.c: New file.
65195         * lib/unistdio/u32-u32-asnprintf.c: New file.
65196         * lib/unistdio/u32-u32-asprintf.c: New file.
65197         * lib/unistdio/u32-u32-snprintf.c: New file.
65198         * lib/unistdio/u32-u32-sprintf.c: New file.
65199         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65200         * lib/unistdio/u32-u32-vasprintf.c: New file.
65201         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65202         * lib/unistdio/u32-u32-vsprintf.c: New file.
65203         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65204         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65205         * tests/unistdio/test-ulc-printf1.h: New file.
65206         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65207         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65208         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65209         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65210         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65211         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65212         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65213         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65214         * tests/unistdio/test-u8-asnprintf1.c: New file.
65215         * tests/unistdio/test-u8-asnprintf1.h: New file.
65216         * tests/unistdio/test-u8-printf1.h: New file.
65217         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65218         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65219         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65220         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65221         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65222         * tests/unistdio/test-u8-vasprintf1.c: New file.
65223         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65224         * tests/unistdio/test-u8-vsprintf1.c: New file.
65225         * tests/unistdio/test-u16-asnprintf1.c: New file.
65226         * tests/unistdio/test-u16-asnprintf1.h: New file.
65227         * tests/unistdio/test-u16-printf1.h: New file.
65228         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65229         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65230         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65231         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65232         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65233         * tests/unistdio/test-u16-vasprintf1.c: New file.
65234         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65235         * tests/unistdio/test-u16-vsprintf1.c: New file.
65236         * tests/unistdio/test-u32-asnprintf1.c: New file.
65237         * tests/unistdio/test-u32-asnprintf1.h: New file.
65238         * tests/unistdio/test-u32-printf1.h: New file.
65239         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65240         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65241         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65242         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65243         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65244         * tests/unistdio/test-u32-vasprintf1.c: New file.
65245         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65246         * tests/unistdio/test-u32-vsprintf1.c: New file.
65247         * modules/unistdio/base: New file.
65248         * modules/unistdio/u-printf-args: New file.
65249         * modules/unistdio/ulc-asnprintf: New file.
65250         * modules/unistdio/ulc-asprintf: New file.
65251         * modules/unistdio/ulc-fprintf: New file.
65252         * modules/unistdio/ulc-printf-parse: New file.
65253         * modules/unistdio/ulc-snprintf: New file.
65254         * modules/unistdio/ulc-sprintf: New file.
65255         * modules/unistdio/ulc-vasnprintf: New file.
65256         * modules/unistdio/ulc-vasprintf: New file.
65257         * modules/unistdio/ulc-vfprintf: New file.
65258         * modules/unistdio/ulc-vsnprintf: New file.
65259         * modules/unistdio/ulc-vsprintf: New file.
65260         * modules/unistdio/u8-asnprintf: New file.
65261         * modules/unistdio/u8-asprintf: New file.
65262         * modules/unistdio/u8-printf-parse: New file.
65263         * modules/unistdio/u8-snprintf: New file.
65264         * modules/unistdio/u8-sprintf: New file.
65265         * modules/unistdio/u8-vasnprintf: New file.
65266         * modules/unistdio/u8-vasprintf: New file.
65267         * modules/unistdio/u8-vsnprintf: New file.
65268         * modules/unistdio/u8-vsprintf: New file.
65269         * modules/unistdio/u8-u8-asnprintf: New file.
65270         * modules/unistdio/u8-u8-asprintf: New file.
65271         * modules/unistdio/u8-u8-snprintf: New file.
65272         * modules/unistdio/u8-u8-sprintf: New file.
65273         * modules/unistdio/u8-u8-vasnprintf: New file.
65274         * modules/unistdio/u8-u8-vasprintf: New file.
65275         * modules/unistdio/u8-u8-vsnprintf: New file.
65276         * modules/unistdio/u8-u8-vsprintf: New file.
65277         * modules/unistdio/u16-asnprintf: New file.
65278         * modules/unistdio/u16-asprintf: New file.
65279         * modules/unistdio/u16-printf-parse: New file.
65280         * modules/unistdio/u16-snprintf: New file.
65281         * modules/unistdio/u16-sprintf: New file.
65282         * modules/unistdio/u16-vasnprintf: New file.
65283         * modules/unistdio/u16-vasprintf: New file.
65284         * modules/unistdio/u16-vsnprintf: New file.
65285         * modules/unistdio/u16-vsprintf: New file.
65286         * modules/unistdio/u16-u16-asnprintf: New file.
65287         * modules/unistdio/u16-u16-asprintf: New file.
65288         * modules/unistdio/u16-u16-snprintf: New file.
65289         * modules/unistdio/u16-u16-sprintf: New file.
65290         * modules/unistdio/u16-u16-vasnprintf: New file.
65291         * modules/unistdio/u16-u16-vasprintf: New file.
65292         * modules/unistdio/u16-u16-vsnprintf: New file.
65293         * modules/unistdio/u16-u16-vsprintf: New file.
65294         * modules/unistdio/u32-asnprintf: New file.
65295         * modules/unistdio/u32-asprintf: New file.
65296         * modules/unistdio/u32-printf-parse: New file.
65297         * modules/unistdio/u32-snprintf: New file.
65298         * modules/unistdio/u32-sprintf: New file.
65299         * modules/unistdio/u32-vasnprintf: New file.
65300         * modules/unistdio/u32-vasprintf: New file.
65301         * modules/unistdio/u32-vsnprintf: New file.
65302         * modules/unistdio/u32-vsprintf: New file.
65303         * modules/unistdio/u32-u32-asnprintf: New file.
65304         * modules/unistdio/u32-u32-asprintf: New file.
65305         * modules/unistdio/u32-u32-snprintf: New file.
65306         * modules/unistdio/u32-u32-sprintf: New file.
65307         * modules/unistdio/u32-u32-vasnprintf: New file.
65308         * modules/unistdio/u32-u32-vasprintf: New file.
65309         * modules/unistdio/u32-u32-vsnprintf: New file.
65310         * modules/unistdio/u32-u32-vsprintf: New file.
65311         * modules/unistdio/ulc-asnprintf-tests: New file.
65312         * modules/unistdio/ulc-vasnprintf-tests: New file.
65313         * modules/unistdio/ulc-vasprintf-tests: New file.
65314         * modules/unistdio/ulc-vsnprintf-tests: New file.
65315         * modules/unistdio/ulc-vsprintf-tests: New file.
65316         * modules/unistdio/u8-asnprintf-tests: New file.
65317         * modules/unistdio/u8-vasnprintf-tests: New file.
65318         * modules/unistdio/u8-vasprintf-tests: New file.
65319         * modules/unistdio/u8-vsnprintf-tests: New file.
65320         * modules/unistdio/u8-vsprintf-tests: New file.
65321         * modules/unistdio/u16-asnprintf-tests: New file.
65322         * modules/unistdio/u16-vasnprintf-tests: New file.
65323         * modules/unistdio/u16-vasprintf-tests: New file.
65324         * modules/unistdio/u16-vsnprintf-tests: New file.
65325         * modules/unistdio/u16-vsprintf-tests: New file.
65326         * modules/unistdio/u32-asnprintf-tests: New file.
65327         * modules/unistdio/u32-vasnprintf-tests: New file.
65328         * modules/unistdio/u32-vasprintf-tests: New file.
65329         * modules/unistdio/u32-vsnprintf-tests: New file.
65330         * modules/unistdio/u32-vsprintf-tests: New file.
65331         * MODULES.html.sh (Unicode string functions): Add the new modules.
65332
65333 2007-07-01  Bruno Haible  <bruno@clisp.org>
65334
65335         * lib/sprintf.c (sprintf): Limit the available length estimation,
65336         to avoid address wraparound.
65337         * lib/vsprintf.c (vsprintf): Likewise.
65338         * modules/sprintf-posix (Dependencies): Add stdint.
65339         * modules/vsprintf-posix (Dependencies): Likewise.
65340
65341 2007-07-01  Bruno Haible  <bruno@clisp.org>
65342
65343         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65344         Windows PATH as well. Conservative double-quoting. Comments.
65345
65346 2007-07-01  Bruno Haible  <bruno@clisp.org>
65347             Eric Blake  <ebb9@byu.net>
65348             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65349
65350         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65351         empty components in $PATH, denoting '.'.
65352
65353 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65354
65355         * gnulib-tool: Fix indentation.
65356         (func_create_megatestdir): Likewise.
65357         Report by Bruno Haible.
65358
65359 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65360
65361         Sync from Automake.
65362         * build-aux/gnupload: Fix shell portability issues with for loops.
65363         Report by Karl Berry.
65364
65365 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65366
65367         * build-aux/maint.mk (POURL): Use translationproject.org.
65368
65369 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65370             Bruno Haible  <bruno@clisp.org>
65371
65372         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65373         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65374         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65375         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65376         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65377
65378 2007-06-27  Bruno Haible  <bruno@clisp.org>
65379
65380         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65381         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65382
65383 2007-06-26  Karl Berry  <karl@gnu.org>
65384
65385         * MODULES.html.sh: remove xreadlink-with-size.
65386
65387 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65388
65389         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65390         method that I hope also handles the double-include problem noted
65391         by Bruno Haible in
65392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65393
65394 2007-06-23  Bruno Haible  <bruno@clisp.org>
65395
65396         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65397         Don't let the 'mostlyclean' target fail if the last subdirectory could
65398         not be removed.
65399         Reported by Karl Berry.
65400
65401 2007-06-23  Bruno Haible  <bruno@clisp.org>
65402
65403         * gnulib-tool (echo): Add a speedier workaround for ksh.
65404         * tests/test-echo.sh: Likewise.
65405
65406 2007-06-23  Bruno Haible  <bruno@clisp.org>
65407
65408         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65409         * tests/test-echo.sh: Likewise.
65410
65411 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65412
65413         * gnulib-tool (IFS): Initialize early, so we don't set it to
65414         empty later.
65415         (self_abspathname): Rewrite algorithm to set it, reindent.
65416         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65417         (func_create_megatestdir): Merge some sed scripts.
65418
65419 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65420
65421         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65422         exposed by Sun Studio 11 cc on Solaris 8.
65423
65424 2007-06-22  Bruno Haible  <bruno@clisp.org>
65425
65426         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65427         backslashes.
65428         * tests/test-echo.sh: New file.
65429
65430 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65431
65432         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65433         simplify `sed_replace_build_aux' scripts, they are portable but
65434         echoing them with `echo' is not.
65435         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65436
65437 2007-06-21  Karl Berry  <karl@gnu.org>
65438
65439         * config/srclist.txt: guess we can't handle the licenses via
65440         srclist at the moment.
65441
65442 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65443
65444         * MODULES.html.sh: Add include_next.
65445         * modules/include_next: New file.
65446
65447 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65448
65449         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65450         INCLUDE_NEXT.
65451         (gl_CHECK_NEXT_HEADERS): New macro.
65452         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65453         the obsolescent gl_ABSOLUTE_HEADER.
65454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65455         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65456         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65457         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65458         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65459         * m4/math_h.m4 (gl_MATH_H): Likewise.
65460         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65461         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65462         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65463         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65464         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65465         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65466         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65467         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65468         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65469         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65470         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65471         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65472         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65473         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65474         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65475         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65476         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65477         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65478         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65479         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65480         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65481         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65482         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65483         * lib/float_.h: Likewise.
65484         * lib/inttypes_.h: Likewise.
65485         * lib/math_.h: Likewise.
65486         * lib/search_.h: Likewise.
65487         * lib/signal_.h: Likewise.
65488         * lib/stdint_.h: Likewise.
65489         * lib/stdio_.h: Likewise.
65490         * lib/stdlib_.h: Likewise.
65491         * lib/string_.h: Likewise.
65492         * lib/sys_stat_.h: Likewise.
65493         * lib/sys_time_.h: Likewise.
65494         * lib/time_.h: Likewise.
65495         * lib/unistd_.h: Likewise.
65496         * lib/wchar_.h: Likewise.
65497         * lib/wctype_.h: Likewise.
65498         * lib/dirent_.h: Likewise.
65499         * lib/iconv_.h: Likewise.
65500         * lib/locale_.h: Likewise.
65501         * lib/netinet_in_.h: Likewise.
65502         * lib/sys_select_.h: Likewise.
65503         * lib/sys_socket_.h: Likewise.
65504         * lib/sysexits_.h: Likewise.
65505         * modules/fcntl (Depends-on): Depend on include_next, not
65506         absolute_header.
65507         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65508         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65509         * modules/fchdir: Likewise.
65510         * modules/float: Likewise.
65511         * modules/iconv_open: Likewise.
65512         * modules/inttypes: Likewise.
65513         * modules/locale: Likewise.
65514         * modules/math: Likewise.
65515         * modules/netinet_in: Likewise.
65516         * modules/search: Likewise.
65517         * modules/signal: Likewise.
65518         * modules/stdint: Likewise.
65519         * modules/stdio: Likewise.
65520         * modules/stdlib: Likewise.
65521         * modules/string: Likewise.
65522         * modules/sys_select: Likewise.
65523         * modules/sys_socket: Likewise.
65524         * modules/sys_stat: Likewise.
65525         * modules/sys_time: Likewise.
65526         * modules/sysexits: Likewise.
65527         * modules/time: Likewise.
65528         * modules/unistd: Likewise.
65529         * modules/wchar: Likewise.
65530         * modules/wctype: Likewise.
65531         * modules/sys_stat: Change maintainer to "all".
65532         * modules/unistd: Likewise.
65533
65534 2007-06-20  Karl Berry  <karl@gnu.org>
65535
65536         * config/srclist.txt: track www changes in license files.
65537
65538 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65539
65540         * build-aux/bootstrap: Remove stray dot.
65541         Make sure build_aux settings are honored when linking
65542         gnulib_extra_files.
65543
65544 2007-06-19  Eric Blake  <ebb9@byu.net>
65545
65546         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65547         Allow compilation on cygwin.
65548
65549 2007-06-19  Jim Meyering  <jim@meyering.net>
65550
65551         xreadlink-with-size: Remove module.  No longer used.
65552         Ex-callers now use xreadlink or mreadlink-with-size.
65553         * modules/xreadlink-with-size: Remove module.
65554         * lib/xreadlink-with-size.c: Remove file.
65555         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65556         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65557         just before the function definition *is* accurate.
65558
65559         Eliminate one way canonicalize_filename_mode could exit.
65560         * lib/canonicalize.c (canonicalize_filename_mode):
65561         Use mreadlink_with_size, not xreadlink_with_size.
65562
65563 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         Detect porting problems to FreeBSD/arm, which has time_t wider than
65566         long int.  Original problem reported for GNU diff by Xin Li in
65567         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65568         * modules/getdate (Depends-on): Add intprops, verify.
65569         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65570         is an integer type no wider than long int.
65571
65572 2007-06-18  Jim Meyering  <jim@meyering.net>
65573
65574         New module: mreadlink-with-size.
65575         * MODULES.html.sh: Add mreadlink-with-size.
65576         * modules/mreadlink-with-size: New module
65577         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65578         not xreadlink-with-size.
65579         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65580
65581 2007-06-16  Bruno Haible  <bruno@clisp.org>
65582
65583         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65584         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65585         Reported by Gary V. Vaughan <gary@gnu.org>.
65586
65587 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65588
65589         Revamp lchown so that it lives in unistd.h where it belongs.
65590         * lib/lchown.h: Remove.
65591         * lib/dirchownmod.c: Don't include lib/lchown.h.
65592         * lib/fchownat.c: Likewise.
65593         * lib/openat.c: Likewise.
65594         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65595         does not follow symlinks.
65596         (EOPNOTSUPP): Define if not defined.
65597         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65598         is defined to 0.
65599         (lchown): New decl.
65600         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65601         Do not check for lchown decl.
65602         Set REPLACE_LCHOWN.
65603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65604         REPLACE_LCHOWN.
65605         * modules/chown: Make it clear it follows symlinks.
65606         * modules/lchown: Make it clear it doesn't follow symlinks.
65607         (Files): Remove lib/lchown.h
65608         (Depends-on): Add unistd.
65609         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65610         (Include): Include <unistd.h>, not "lchown.h".
65611         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65612         REPLACE_LCHOWN.
65613
65614 2007-06-15  Jim Meyering  <jim@meyering.net>
65615
65616         Change license (GPL to LGPL) of fsusage and dependents.
65617         * modules/fsusage (License): Change to LGPL.
65618         * modules/full-read (License): Likewise.
65619         * modules/full-write (License): Likewise.
65620         * modules/safe-read (License): Likewise.
65621         * modules/safe-write (License): Likewise.
65622
65623 2007-06-14  Ben Pfaff  <blp@gnu.org>
65624
65625         Missing part of allocsa -> malloca transition.
65626         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65627         gl_MALLOCA.
65628
65629 2007-06-12  Bruno Haible  <bruno@clisp.org>
65630
65631         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65632         to ia64, x86_64, i386.
65633         Reported by Eric Blake.
65634
65635 2007-06-12  Bruno Haible  <bruno@clisp.org>
65636
65637         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65638         cross-compiling to x86_64.
65639
65640 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65641
65642         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65643         glitch reported by Ralf Wildenhues in
65644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65645
65646         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65647         Vin Shelton.
65648
65649 2007-06-11  Bruno Haible  <bruno@clisp.org>
65650
65651         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65652         replacement string.
65653         Reported by Eric Blake.
65654
65655 2007-06-10  Bruno Haible  <bruno@clisp.org>
65656
65657         Prepare vasnprintf code for use with Unicode strings.
65658         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65659         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65660         TYPE_U32_STRING.
65661         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65662         a_u32_string variants.
65663         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65664         * lib/printf-args.c: Don't include config.h and the specification
65665         header if PRINTF_FETCHARGS is already defined.
65666         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65667         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65668         TYPE_U16_STRING, TYPE_U32_STRING.
65669         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65670         u16_directive, u16_directives, u32_directive, u32_directives): New
65671         types.
65672         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65673         New declarations.
65674         * lib/printf-parse.c: Don't include config.h and the specification
65675         header if PRINTF_PARSE is already defined. Eliminate the set of
65676         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65677         them now. Include c-ctype.h.
65678         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65679         directive and CHAR_T_ONLY_ASCII.
65680         * lib/vasnprintf.c: Don't include config.h and the specification header
65681         if VASNPRINTF is already defined.
65682         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65683         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65684         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65685         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65686         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65687         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65688         code accordingly.
65689         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65690         pad_ourselves also in this case, with the 'c' and 's' directives, and
65691         with a different notion of "width".
65692         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65693
65694 2007-06-10  Bruno Haible  <bruno@clisp.org>
65695
65696         * modules/unistr/u32-mbsnlen: New file.
65697         * lib/unistr/u32-mbsnlen.c: New file.
65698
65699         * modules/unistr/u16-mbsnlen: New file.
65700         * lib/unistr/u16-mbsnlen.c: New file.
65701
65702         * modules/unistr/u8-mbsnlen: New file.
65703         * lib/unistr/u8-mbsnlen.c: New file.
65704
65705         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65706         declarations.
65707
65708 2007-06-10  Bruno Haible  <bruno@clisp.org>
65709
65710         * lib/string_.h (mbsnlen): New declaration.
65711         * lib/mbsnlen.c: New file.
65712         * m4/mbsnlen.m4: New file.
65713         * modules/mbsnlen: New file.
65714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65715         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65716         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65717
65718 2007-06-10  Bruno Haible  <bruno@clisp.org>
65719
65720         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65721
65722 2007-06-10  Bruno Haible  <bruno@clisp.org>
65723
65724         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65725         * lib/mbuiter.h: Likewise.
65726
65727 2007-06-10  Bruno Haible  <bruno@clisp.org>
65728
65729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65730         declaration.
65731
65732 2007-06-10  Karl Berry  <karl@gnu.org>
65733
65734         * config/srclist.txt: remove gettext entries, Bruno prefers
65735         to update individually.
65736
65737 2007-06-10  Bruno Haible  <bruno@clisp.org>
65738
65739         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65740         'maxlen'. Ensure only length + width bytes are allocated, not
65741         length + 1 + width.
65742
65743 2007-06-09  Bruno Haible  <bruno@clisp.org>
65744
65745         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65746         (CHAR_T): Remove macro.
65747         (VASNPRINTF): Update.
65748
65749 2007-06-09  Bruno Haible  <bruno@clisp.org>
65750
65751         * MODULES.html.sh (Unicode string functions): Add the new modules.
65752
65753         * modules/uniconv/u32-conv-to-enc: New file.
65754         * lib/uniconv/u32-conv-to-enc.c: New file.
65755         * modules/uniconv/u32-conv-to-enc-tests: New file.
65756         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65757
65758         * modules/uniconv/u16-conv-to-enc: New file.
65759         * lib/uniconv/u16-conv-to-enc.c: New file.
65760         * lib/uniconv/u-conv-to-enc.h: New file.
65761         * modules/uniconv/u16-conv-to-enc-tests: New file.
65762         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65763
65764         * modules/uniconv/u8-conv-to-enc: New file.
65765         * lib/uniconv/u8-conv-to-enc.c: New file.
65766         * modules/uniconv/u8-conv-to-enc-tests: New file.
65767         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65768
65769         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65770         u32_conv_to_encoding): New declarations.
65771
65772 2007-06-09  Bruno Haible  <bruno@clisp.org>
65773
65774         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65775
65776 2007-06-09  Bruno Haible  <bruno@clisp.org>
65777
65778         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65779         * modules/malloca: Renamed from modules/allocsa, updated.
65780         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65781         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65782         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65783         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65784         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65785         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65786         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65787         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65788         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65789         * modules/c-strcasestr (Depends-on): Update.
65790         * lib/c-strcasestr.c: Update.
65791         * modules/c-strstr (Depends-on): Update.
65792         * lib/c-strstr.c: Update.
65793         * modules/canonicalize-lgpl (Depends-on): Update.
65794         * lib/canonicalize-lgpl.c: Update.
65795         * modules/clean-temp (Depends-on): Update.
65796         * lib/clean-temp.c: Update.
65797         * modules/csharpcomp (Depends-on): Update.
65798         * lib/csharpcomp.c: Update.
65799         * modules/csharpexec (Depends-on): Update.
65800         * lib/csharpexec.c: Update.
65801         * modules/javacomp (Depends-on): Update.
65802         * lib/javacomp.c: Update.
65803         * modules/javaexec (Depends-on): Update.
65804         * lib/javaexec.c: Update.
65805         * modules/mbscasestr (Depends-on): Update.
65806         * lib/mbscasestr.c: Update.
65807         * modules/mbsstr (Depends-on): Update.
65808         * lib/mbsstr.c: Update.
65809         * modules/setenv (Depends-on): Update.
65810         * lib/setenv.c: Update.
65811         * modules/strcasestr (Depends-on): Update.
65812         * lib/strcasestr.c: Update.
65813         * modules/striconveha (Depends-on): Update.
65814         * lib/striconveha.c: Update.
65815         * modules/relocatable-prog-wrapper (Files): Update.
65816         * lib/relocwrapper.c: Update.
65817         * build-aux/install-reloc: Update.
65818         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65819
65820 2007-06-08  Bruno Haible  <bruno@clisp.org>
65821
65822         Port to uClibc.
65823         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65824         * lib/fpurge.c (fpurge): Likewise.
65825         * lib/freading.c (freading): Likewise.
65826         * lib/fseeko.c (rpl_fseeko): Likewise.
65827         * lib/fseterr.c (fseterr): Likewise.
65828         * lib/fwriting.c (fwriting): Likewise.
65829         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65830
65831 2007-06-08  Bruno Haible  <bruno@clisp.org>
65832
65833         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65834         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65835         * modules/gettext (Files): Add m4/intlmacosx.m4.
65836
65837 2007-06-07  Bruno Haible  <bruno@clisp.org>
65838
65839         * modules/localename-tests: New file.
65840         * tests/test-localename.c: New file.
65841
65842         New module 'localename'.
65843         * lib/localename.h: New file.
65844         * lib/localename.c: New file, from GNU gettext.
65845         * m4/localename.m4: New file.
65846         * modules/localename: New file.
65847
65848 2007-06-07  Bruno Haible  <bruno@clisp.org>
65849
65850         Work around the lack of <wchar.h> on some builds of uClibc.
65851         * doc/headers/wchar.texi: Update.
65852         * lib/wchar_.h: Include <wchar.h> only if it exists.
65853         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65854         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65855         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65856         doesn't exist.
65857         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65858         * modules/mbfile (Depends-on): Add wchar.
65859         * modules/mbiter (Depends-on): Likewise.
65860         * modules/mbuiter (Depends-on): Likewise.
65861         Reported by Simon Josefsson.
65862
65863 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65864
65865         Work around problem reported by Steven M. Schweda in
65866         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65867         Tru64 5.1B with the Compaq compiler environment installed declares
65868         an 'isblank' function but does not define it in the C library.
65869         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65870         * lib/regex_internal.h (isblank): Likewise.
65871         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65872         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65873
65874 2007-06-05  Bruno Haible  <bruno@clisp.org>
65875
65876         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65877         ia64.
65878         * modules/printf-safe: New file.
65879         * modules/fprintf-posix (Depends-on): Add printf-safe.
65880         * modules/printf-posix (Depends-on): Likewise.
65881         * modules/snprintf-posix (Depends-on): Likewise.
65882         * modules/sprintf-posix (Depends-on): Likewise.
65883         * modules/vasnprintf-posix (Depends-on): Likewise.
65884         * modules/vasprintf-posix (Depends-on): Likewise.
65885         * modules/vfprintf-posix (Depends-on): Likewise.
65886         * modules/vprintf-posix (Depends-on): Likewise.
65887         * modules/vsnprintf-posix (Depends-on): Likewise.
65888         * modules/vsprintf-posix (Depends-on): Likewise.
65889         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65890         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65891         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65892         "no" on i386, x86_64, ia64.
65893         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65894         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65895         on i386, x86_64, ia64.
65896         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65897         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65898         on i386, x86_64, ia64.
65899         * tests/test-vasnprintf-posix.c: Include float.h.
65900         (LDBL80_WORDS): New macro.
65901         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65902         on i386, x86_64, ia64.
65903         * tests/test-vasprintf-posix.c: Include float.h.
65904         (LDBL80_WORDS): New macro.
65905         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65906         on i386, x86_64, ia64.
65907         * tests/test-snprintf-posix.c: Include float.h.
65908         * tests/test-sprintf-posix.c: Likewise.
65909         * tests/test-vsnprintf-posix.c: Likewise.
65910         * tests/test-vsprintf-posix.c: Likewise.
65911
65912 2007-06-05  Bruno Haible  <bruno@clisp.org>
65913
65914         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65915         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65916         non-IEEE numbers on i386, x86_64, ia64.
65917         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65918         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65919         * tests/test-isnanl.h: Include float.h.
65920         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65921
65922 2007-06-05  Bruno Haible  <bruno@clisp.org>
65923
65924         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65925         also the %a / %A. Handle the %a / %A code before this extra handling.
65926
65927 2007-06-05  Bruno Haible  <bruno@clisp.org>
65928
65929         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65930         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65931
65932 2007-06-05  Bruno Haible  <bruno@clisp.org>
65933
65934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65935         typo in variable name.
65936
65937 2007-06-05  Eric Blake  <ebb9@byu.net>
65938
65939         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65940         Reported by Simon Josefsson.
65941
65942 2007-06-04  Bruno Haible  <bruno@clisp.org>
65943
65944         Avoid test failures on some PowerPC platforms.
65945         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65946         Define differently for PowerPC.
65947         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65948         Reported by Gary V. Vaughan <gary@gnu.org>.
65949
65950 2007-06-02  Bruno Haible  <bruno@clisp.org>
65951
65952         Fix test-stdint failure on FreeBSD/ia64.
65953         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65954         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65955         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65956         * doc/headers/stdint.texi: Update.
65957
65958 2007-06-01  Bruno Haible  <bruno@clisp.org>
65959
65960         * tests/test-binary-io.c (main): Pass a third argument to open().
65961         Reported by Gary V. Vaughan <gary@gnu.org>.
65962
65963 2007-06-01  Bruno Haible  <bruno@clisp.org>
65964
65965         * doc/functions/frexpl.texi: Update for mingw.
65966
65967 2007-06-01  Bruno Haible  <bruno@clisp.org>
65968
65969         * tests/test-lseek.c (main): Disable test of errno for invalid third
65970         argument.
65971         * doc/functions/lseek.texi: Update.
65972         Reported by Gary V. Vaughan <gary@gnu.org>.
65973
65974 2007-05-28  Bruno Haible  <bruno@clisp.org>
65975
65976         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65977
65978 2007-05-31  Eric Blake  <ebb9@byu.net>
65979
65980         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65981         cross compiling.
65982
65983 2007-05-30  Eric Blake  <ebb9@byu.net>
65984         and Bruno Haible  <bruno@clisp.org>
65985
65986         Work around mingw test failures exposed by m4-1.4.9b.
65987         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65988         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65989         moment.
65990
65991 2007-05-30  Bruno Haible  <bruno@clisp.org>
65992
65993         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65994         assuming that they are closed. Needed on HP-UX 11.
65995
65996 2007-05-29  Bruno Haible  <bruno@clisp.org>
65997
65998         Fix a problem with #include_next.
65999         * lib/dirent_.h: Split the double-inclusion guard.
66000         * lib/fcntl_.h: Likewise.
66001         * lib/float_.h: Likewise.
66002         * lib/iconv_.h: Likewise.
66003         * lib/inttypes_.h: Likewise.
66004         * lib/locale_.h: Likewise.
66005         * lib/math_.h: Likewise.
66006         * lib/netinet_in_.h: Likewise.
66007         * lib/search_.h: Likewise.
66008         * lib/signal_.h: Likewise.
66009         * lib/stdint_.h: Likewise.
66010         * lib/stdio_.h: Likewise.
66011         * lib/stdlib_.h: Likewise.
66012         * lib/string_.h: Likewise.
66013         * lib/sys_select_.h: Likewise.
66014         * lib/sys_socket_.h: Likewise.
66015         * lib/sys_stat_.h: Likewise.
66016         * lib/sys_time_.h: Likewise.
66017         * lib/sysexits_.h: Likewise.
66018         * lib/time_.h: Likewise.
66019         * lib/unistd_.h: Likewise.
66020         * lib/wchar_.h: Likewise.
66021         * lib/wctype_.h: Likewise.
66022
66023 2007-05-29  Bruno Haible  <bruno@clisp.org>
66024
66025         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
66026         for the moment.
66027
66028 2007-05-29  Bruno Haible  <bruno@clisp.org>
66029
66030         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
66031         invocation.
66032         Reported by Eric Blake.
66033
66034 2007-05-29  Bruno Haible  <bruno@clisp.org>
66035
66036         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
66037         compiling case.
66038
66039 2007-05-29  Eric Blake  <ebb9@byu.net>
66040             Bruno Haible  <bruno@clisp.org>
66041
66042         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
66043         cross compiles.
66044
66045 2007-05-28  Eric Blake  <ebb9@byu.net>
66046
66047         * modules/closein-tests (test_closein_LDADD): Support test on
66048         cygwin with libtool.
66049
66050 2007-05-28  Bruno Haible  <bruno@clisp.org>
66051
66052         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
66053         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66054         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66055         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66056         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66057         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66058         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66059         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66060         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66061
66062 2007-05-28  Eric Blake  <ebb9@byu.net>
66063
66064         Unconditionally include <config.h> in unit tests.
66065         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
66066         * tests/test-allocsa.c, tests/test-arcfour.c,
66067         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
66068         tests/test-array_list.c, tests/test-array_oset.c,
66069         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
66070         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
66071         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
66072         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
66073         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
66074         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
66075         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
66076         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
66077         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
66078         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
66079         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
66080         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
66081         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
66082         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
66083         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
66084         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
66085         test-md5.c, test-memmem.c, test-printf-posix.c,
66086         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
66087         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
66088         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
66089         test-strcasestr.c, test-striconv.c, test-striconveh.c,
66090         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
66091         test-vasnprintf-posix2.c, test-vasnprintf.c,
66092         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
66093         test-vfprintf-posix.c, test-vprintf-posix.c,
66094         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
66095         test-xvasprintf.c: Likewise.
66096
66097 2007-05-28  Bruno Haible  <bruno@clisp.org>
66098
66099         * gnulib-tool (func_import): Remember the --with-tests command-line
66100         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
66101         Reported by Eric Blake.
66102
66103 2007-05-28  Bruno Haible  <bruno@clisp.org>
66104
66105         * modules/ftell-tests: New file.
66106         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
66107         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
66108
66109         * lib/ftell.c: New file.
66110         * modules/ftell: New file.
66111         * m4/ftell.m4: New file.
66112         * doc/functions/ftell.texi: Update.
66113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
66114         REPLACE_FTELL.
66115         * lib/stdio_.h (rpl_ftell): New declaration.
66116         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
66117         REPLACE_FTELL.
66118
66119 2007-05-28  Eric Blake  <ebb9@byu.net>
66120
66121         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
66122
66123 2007-05-28  Bruno Haible  <bruno@clisp.org>
66124
66125         * modules/fseek-tests: New file.
66126         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
66127         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
66128
66129         * lib/fseek.c: New file.
66130         * modules/fseek: New file.
66131         * m4/fseek.m4: New file.
66132         * doc/functions/fseek.texi: Update.
66133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66134         REPLACE_FSEEK.
66135         * lib/stdio_.h (rpl_fseek): New declaration.
66136         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66137         REPLACE_FSEEK.
66138
66139 2007-05-28  Bruno Haible  <bruno@clisp.org>
66140
66141         * lib/stdio_.h (fflush): More comments.
66142
66143 2007-05-28  Bruno Haible  <bruno@clisp.org>
66144
66145         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66146         runtime test.
66147
66148 2007-05-28  Eric Blake  <ebb9@byu.net>
66149
66150         Improve lseek module.
66151         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66152         * lib/unistd_.h (lseek): Scale back link warning message.
66153         * tests/test-lseek.c: Beef up test.
66154         * tests/test-lseek.sh: Exercise more facets of lseek.
66155         Reported by Bruno Haible.
66156
66157 2007-05-28  Bruno Haible  <bruno@clisp.org>
66158
66159         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66160         to define.
66161
66162 2007-05-27  Bruno Haible  <bruno@clisp.org>
66163
66164         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66165
66166 2007-05-27  Bruno Haible  <bruno@clisp.org>
66167
66168         * modules/openmp: New file.
66169         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66170         Noah Misch.
66171
66172 2007-05-26  Bruno Haible  <bruno@clisp.org>
66173
66174         * modules/chdir-long (Depends-on): Add fchdir.
66175         * modules/chdir-safer (Depends-on): Likewise.
66176         * modules/fts (Depends-on): Likewise.
66177         * modules/fts-lgpl (Depends-on): Likewise.
66178         * modules/openat (Depends-on): Likewise.
66179         * modules/savewd (Depends-on): Likewise.
66180
66181 2007-05-24  Eric Blake  <ebb9@byu.net>
66182
66183         Fix lseek on mingw.
66184         * modules/lseek: New module.
66185         * m4/lseek.m4: New file.
66186         * lib/lseek.c: New file.
66187         * modules/lseek-tests: New file.
66188         * tests/test-lseek.c: New file.
66189         * tests/test-lseek.sh: New file.
66190         * MODULES.html.sh: Document lseek module.
66191         * modules/fflush (Depends-on): Add lseek, fseeko.
66192         * modules/fseeko (Depends-on): Likewise.
66193         * modules/ftello (Depends-on): Likewise.
66194         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66195         broken.
66196         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66197         broken.
66198         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66199         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66200         * lib/ftello.c (rpl_ftello): Likewise.
66201         * tests/test-fseeko.c (main): Test this.
66202         * tests/test-fseeko.sh: Likewise.
66203         * tests/test-ftello.c (main): Likewise.
66204         * tests/test-ftello.sh: Likewise.
66205         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66206         implies replacing fseek.
66207         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66208         HAVE_FTELLO.
66209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66210         * modules/unistd (Makefile.am): Likewise.
66211         * lib/unistd_.h (lseek): Declare a replacement.
66212         * doc/functions/lseek.texi (lseek): Document this fix.
66213         * doc/functions/fseek.texi (fseek): Likewise.
66214         * doc/functions/ftell.texi (ftell): Likewise.
66215
66216 2007-05-24  Bruno Haible  <bruno@clisp.org>
66217
66218         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66219         in the printed representation of a NaN.
66220         * tests/test-vasprintf-posix.c (test_function): Likewise.
66221         * tests/test-snprintf-posix.h (test_function): Likewise.
66222         * tests/test-sprintf-posix.h (test_function): Likewise.
66223         Reported by Eric Blake.
66224
66225 2007-05-23  Eric Blake  <ebb9@byu.net>
66226
66227         Fix fseeko/ftello on cygwin 1.5.24.
66228         * doc/functions/fseeko.texi (fseeko): Document the fix.
66229         * doc/functions/ftello.texi (ftello): Document the fix.
66230         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66231         * doc/functions/stdout.text (stdout): New file.
66232         * doc/functions/stderr.text (stderr): New file.
66233         * doc/gnulib.texi (Function Substitutes): Use new files.
66234         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66235         prior to 1.7.0.
66236         * tests/test-ftello.c (main): Likewise for ftello.
66237         * tests/test-fseeko.sh: New file.
66238         * tests/test-ftello.sh: New file.
66239         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66240         with seekable stdin.
66241         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66242         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66243         (gl_REPLACE_FSEEKO): New macro.
66244         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66245         * modules/fseeko (Files): Distribute fseeko.c.
66246         * modules/ftello (Files): Distribute ftello.c.
66247         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66248         mode.
66249         * lib/ftello.c (rpl_ftello): New file.
66250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66251         fseeko, ftello.
66252         (gl_STDIN_LARGE_OFFSET): New macro.
66253         * modules/stdio (Makefile.am): Perform the replacement.
66254         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66255
66256 2007-05-23  Bruno Haible  <bruno@clisp.org>
66257
66258         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66259         GNULIB_POSIXCHECK is defined.
66260
66261 2007-05-21  Bruno Haible  <bruno@clisp.org>
66262
66263         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66264         Check also the output for NaN arguments. When cross-compiling, guess
66265         no on IRIX.
66266         * lib/vasnprintf.c: Update comments.
66267         * tests/test-vasnprintf-posix.c (strisnan): New function.
66268         (test_function): Use it.
66269         * tests/test-vasprintf-posix.c (strisnan): New function.
66270         (test_function): Use it.
66271         * tests/test-snprintf-posix.h (strisnan): New function.
66272         (test_function): Use it.
66273         * tests/test-sprintf-posix.h (strisnan): New function.
66274         (test_function): Use it.
66275         Reported by Eric Blake.
66276
66277 2007-05-20  Bruno Haible  <bruno@clisp.org>
66278
66279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66280         numbers that fails on BeOS.
66281         * doc/functions/frexpl.texi: Update.
66282
66283 2007-05-20  Jim Meyering  <jim@meyering.net>
66284
66285         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66286         forced upon us by glibc-2.6.
66287
66288 2007-05-20  Bruno Haible  <bruno@clisp.org>
66289
66290         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66291         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66292         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66293         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66294         NEED_PRINTF_INFINITE.
66295         (is_infinitel): New function.
66296         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66297         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66298         gl_PREREQ_VASNPRINTF_INFINITE.
66299         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66300         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66301         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66302         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66303         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66304         gl_PREREQ_VASNPRINTF_INFINITE.
66305         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66306         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66307         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66308         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66309         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66310         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66311         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66312         * doc/functions/fprintf.texi: Update.
66313         * doc/functions/printf.texi: Update.
66314         * doc/functions/snprintf.texi: Update.
66315         * doc/functions/sprintf.texi: Update.
66316         * doc/functions/vfprintf.texi: Update.
66317         * doc/functions/vprintf.texi: Update.
66318         * doc/functions/vsnprintf.texi: Update.
66319         * doc/functions/vsprintf.texi: Update.
66320
66321 2007-05-20  Bruno Haible  <bruno@clisp.org>
66322
66323         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66324         was not found in libc.
66325         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66326
66327 2007-05-20  Bruno Haible  <bruno@clisp.org>
66328
66329         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66330         printed as "-nan" instead of "nan".
66331         * tests/test-vasprintf-posix.c (test_function): Likewise.
66332         * tests/test-snprintf-posix.h (test_function): Likewise.
66333         * tests/test-sprintf-posix.h (test_function): Likewise.
66334         Needed for HP-UX 11.
66335
66336 2007-05-20  Jim Meyering  <jim@meyering.net>
66337
66338         Fix buggy test for the fchownat-deref bug.
66339         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66340         symlink required for the run-test.  Without it, this test would
66341         always declare that fchownat doesn't work, and client code would
66342         unnecessarily use the replacement function with fixed libc.
66343         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66344         Reported by Greg Schafer.
66345
66346 2007-05-19  Bruno Haible  <bruno@clisp.org>
66347
66348         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66349         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66350         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66351         Needed for IRIX 6.5 and Solaris 2.5.1.
66352
66353 2007-05-19  Bruno Haible  <bruno@clisp.org>
66354
66355         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66356         (test_function): Skip tests involving -0.0 on platforms where
66357         -0.0 = 0.0.
66358         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66359         (test_function): Skip tests involving -0.0 on platforms where
66360         -0.0 = 0.0.
66361         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66362         (test_function): Skip tests involving -0.0 on platforms where
66363         -0.0 = 0.0.
66364         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66365         (test_function): Skip tests involving -0.0 on platforms where
66366         -0.0 = 0.0.
66367         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66368         tests.
66369         * tests/test-printf-posix.h (test_function): Likewise.
66370         * tests/test-printf-posix.output: Remove all -0.0 related results.
66371         Needed for IRIX 6.5.
66372
66373 2007-05-19  Bruno Haible  <bruno@clisp.org>
66374
66375         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66376         printed as "nan0x7fffffff" instead of "nan".
66377         * tests/test-vasprintf-posix.c (test_function): Likewise.
66378         * tests/test-snprintf-posix.h (test_function): Likewise.
66379         * tests/test-sprintf-posix.h (test_function): Likewise.
66380         * tests/test-fprintf-posix.h (NaN): Remove macro.
66381         (test_function): Remove all NaN related tests.
66382         * tests/test-printf-posix.h (NaN): Remove macro.
66383         (test_function): Remove all NaN related tests.
66384         * tests/test-printf-posix.output: Remove all NaN related results.
66385         Needed for IRIX 6.5.
66386
66387 2007-05-19  Bruno Haible  <bruno@clisp.org>
66388
66389         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66390         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66391
66392 2007-05-19  Bruno Haible  <bruno@clisp.org>
66393
66394         * lib/float_.h: New file.
66395         * m4/float_h.m4: New file.
66396         * modules/float: New file.
66397         * modules/isnanl (Dependencies): Add float.
66398         * modules/isnanl-nolibm (Dependencies): Likewise.
66399         * modules/mathl (Dependencies): Likewise.
66400         * modules/printf-frexpl (Dependencies): Likewise.
66401         * modules/signbit (Dependencies): Likewise.
66402         * modules/vasnprintf (Dependencies): Likewise.
66403         * doc/headers/float.texi: Update.
66404
66405 2007-05-19  Jim Meyering  <jim@meyering.net>
66406
66407         * lib/utimens.c (gl_futimens): Rename from futimens,
66408         now that glibc-2.6 declares futimens.
66409         * lib/utimens.h: Likewise.
66410
66411 2007-05-19  Bruno Haible  <bruno@clisp.org>
66412
66413         Avoid test failures on mingw.
66414         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66415         * tests/test-printf-posix.sh: Likewise.
66416         * tests/test-vfprintf-posix.sh: Likewise.
66417         * tests/test-vprintf-posix.sh: Likewise.
66418
66419 2007-05-19  Bruno Haible  <bruno@clisp.org>
66420
66421         Fix *printf result for NaN, Inf, -0.0 on mingw.
66422         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66423         * lib/vasnprintf.c: Include math.h and isnan.h.
66424         (is_infinite_or_zero): New function.
66425         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66426         values in the %f, %F, %e, %E, %g, %G directives.
66427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66429         gl_PRINTF_INFINITE and test its result. Invoke
66430         gl_PREREQ_VASNPRINTF_INFINITE.
66431         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66432         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66433         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66434         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66437         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66438         * doc/functions/fprintf.texi: Update.
66439         * doc/functions/printf.texi: Update.
66440         * doc/functions/snprintf.texi: Update.
66441         * doc/functions/sprintf.texi: Update.
66442         * doc/functions/vfprintf.texi: Update.
66443         * doc/functions/vprintf.texi: Update.
66444         * doc/functions/vsnprintf.texi: Update.
66445         * doc/functions/vsprintf.texi: Update.
66446
66447 2007-05-19  Bruno Haible  <bruno@clisp.org>
66448
66449         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66450         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66451         Instead of multiplying with 10^k, set extra_zeroes to k.
66452         (scale10_round_long_double): Remove function.
66453
66454 2007-05-18  Bruno Haible  <bruno@clisp.org>
66455
66456         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66457         introduced on 2007-05-06.
66458
66459 2007-05-18  Bruno Haible  <bruno@clisp.org>
66460
66461         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66462         %g directives.
66463         * tests/test-vasprintf-posix.c (test_function): Likewise.
66464         * tests/test-snprintf-posix.h (test_function): Likewise.
66465         * tests/test-sprintf-posix.h (test_function): Likewise.
66466
66467 2007-05-18  Bruno Haible  <bruno@clisp.org>
66468
66469         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66470         (strmatch): New function.
66471         (test_function): Test the %f directive on numbers of various exponents.
66472         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66473         (strmatch): New function.
66474         (test_function): Test the %f directive on numbers of various exponents.
66475         * tests/test-snprintf-posix.h (strmatch): New function.
66476         (test_function): Test the %f directive on numbers of various exponents.
66477         * tests/test-sprintf-posix.h (strmatch): New function.
66478         (test_function): Test the %f directive on numbers of various exponents.
66479         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66480         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66481         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66482         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66483
66484 2007-05-18  Bruno Haible  <bruno@clisp.org>
66485
66486         Add support for 'long double' number output.
66487         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66488         * lib/vasnprintf.c: Include math.h and float+.h.
66489         (mp_limb_t): New type.
66490         (GMP_LIMB_BITS): New macro.
66491         (mp_twolimb_t): New type.
66492         (GMP_TWOLIMB_BITS): New macro.
66493         (mpn_t): New type.
66494         (multiply, divide, convert_to_decimal, decode_long_double,
66495         scale10_round_long_double, scale10_round_decimal_long_double,
66496         floorlog10l): New functions.
66497         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66498         for the %f, %F, %e, %E, %g, %G directives.
66499         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66500         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66501         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66502         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66504         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66505         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66506         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66507         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66509         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66510         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66511         * modules/snprintf-posix (Depends-on): Likewise.
66512         * modules/sprintf-posix (Depends-on): Likewise.
66513         * modules/vasnprintf-posix (Depends-on): Likewise.
66514         * modules/vasprintf-posix (Depends-on): Likewise.
66515         * modules/vfprintf-posix (Depends-on): Likewise.
66516         * modules/vsnprintf-posix (Depends-on): Likewise.
66517         * modules/vsprintf-posix (Depends-on): Likewise.
66518         * modules/vasnprintf (Files): Add lib/float+.h.
66519         * doc/functions/fprintf.texi: Update.
66520         * doc/functions/printf.texi: Update.
66521         * doc/functions/snprintf.texi: Update.
66522         * doc/functions/sprintf.texi: Update.
66523         * doc/functions/vfprintf.texi: Update.
66524         * doc/functions/vprintf.texi: Update.
66525         * doc/functions/vsnprintf.texi: Update.
66526         * doc/functions/vsprintf.texi: Update.
66527
66528 2007-05-18  Bruno Haible  <bruno@clisp.org>
66529
66530         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66531
66532 2007-05-18  Bruno Haible  <bruno@clisp.org>
66533
66534         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66535         for printing 64-bit integers. Needed for mingw.
66536
66537 2007-05-18  Bruno Haible  <bruno@clisp.org>
66538
66539         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66540         gl_FUNC_FREXPL_WORKS.
66541         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66542
66543 2007-05-18  Bruno Haible  <bruno@clisp.org>
66544
66545         * modules/frexpl-nolibm-tests: New file.
66546
66547         * modules/frexpl-nolibm: New file.
66548         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66549
66550 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66551
66552         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66553         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66554         GCC 4.2, which otherwise issues a lot of warnings.
66555         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66556         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66557         Likewise.
66558         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66559         * modules/iconv_open (iconv.h): Likewise.
66560         * modules/locale (locale.h): Likewise.
66561         * modules/netinet_in (netinet/in.h): Likewise.
66562         * modules/sys_select (sys_select.h): Likewise.
66563         * modules/sys_socket (sys/socket.h): Likewise.
66564         * modules/sys_stat (sys/stat.h): Likewise.
66565         * modules/sysexits (sysexits.h): Likewise.
66566         * modules/unistd (unistd.h): Likewise.
66567
66568 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66569
66570         * modules/closein-tests (Makefile.am): Distribute
66571         `test-closein.sh'.
66572
66573 2007-05-17  Bruno Haible  <bruno@clisp.org>
66574
66575         * tests/test-printf-posix.output: Renamed from
66576         tests/test-fprintf-posix.out.
66577         * modules/fprintf-posix-tests: Update.
66578         * modules/printf-posix-tests: Update.
66579         * modules/vfprintf-posix-tests: Update.
66580         * modules/vprintf-posix-tests: Update.
66581         * tests/test-fprintf-posix.sh: Update.
66582         * tests/test-printf-posix.sh: Update.
66583         * tests/test-vfprintf-posix.sh: Update.
66584         * tests/test-vprintf-posix.sh: Update.
66585         Reported by Ralf Wildenhues.
66586
66587 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66588
66589         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66590         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66591         GCC 4.2, which otherwise issues a lot of warnings.
66592         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66593         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66594         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66595         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66596         it should no longer be needed.
66597         * lib/string_.h: Likewise.
66598         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66599         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66600         * modules/inttypes (inttypes.h): Likewise.
66601         * modules/math (math.h): Likewise.
66602         * modules/search (search.h): Likewise.
66603         * modules/signal (signal.h): Likewise.
66604         * modules/stdint (stdint.h): Likewise.
66605         * modules/stdio (stdio.h): Likewise.
66606         * modules/stdlib (stdlib.h): Likewise.
66607         * modules/string (string.h): Likewise.
66608         * modules/sys_time (sys/time.h): Likewise.
66609         * modules/time (time.h): Likewise.
66610         * modules/wchar (wchar.h): Likewise.
66611         * modules/wctype (wtype.h): Likewise.
66612
66613 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66614
66615         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66616
66617 2007-05-13  Bruno Haible  <bruno@clisp.org>
66618
66619         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66620         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66621         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66622         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66623         (gl_PREREQ_STRTOK_R): Don't require it here.
66624
66625 2007-05-13  Bruno Haible  <bruno@clisp.org>
66626
66627         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66628         when used in C++ mode.
66629
66630 2007-05-12  Bruno Haible  <bruno@clisp.org>
66631
66632         * lib/linebuffer.h: Tweak doc.
66633         * lib/linebuffer.c: Likewise.
66634
66635 2007-05-12  James Youngman  <jay@gnu.org>
66636
66637         * lib/linebuffer.c (readlinebuffer_delim): New function,
66638         like readlinebuffer, but use a caller-specified delimiter.
66639         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66640         as the delimiter.
66641         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66642
66643 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66644
66645         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66646         * modules/openat (Files): Remove openat-die.c.
66647         (Depends-on): Add openat-die.
66648         * modules/openat-die: New module.
66649
66650 2007-05-06  Bruno Haible  <bruno@clisp.org>
66651
66652         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66653         Update with info about Cygwin.
66654         * doc/functions/fprintf.texi: Update.
66655         * doc/functions/printf.texi: Update.
66656         * doc/functions/snprintf.texi: Update.
66657         * doc/functions/sprintf.texi: Update.
66658         * doc/functions/vfprintf.texi: Update.
66659         * doc/functions/vprintf.texi: Update.
66660         * doc/functions/vsnprintf.texi: Update.
66661         * doc/functions/vsprintf.texi: Update.
66662         Reported by Eric Blake.
66663
66664 2007-05-06  Bruno Haible  <bruno@clisp.org>
66665
66666         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66667         padding ourselves for the floating-point directives.
66668         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66671         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66672         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66674         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66675         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66676         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66677         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66678         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66679         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66680         * tests/test-snprintf-posix.h (test_function): Also check the width
66681         and some flags in the %f directive.
66682         * tests/test-sprintf-posix.h (test_function): Likewise.
66683         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66684         * tests/test-vasprintf-posix.c (test_function): Likewise.
66685         * doc/functions/fprintf.texi: Update.
66686         * doc/functions/printf.texi: Update.
66687         * doc/functions/snprintf.texi: Update.
66688         * doc/functions/sprintf.texi: Update.
66689         * doc/functions/vfprintf.texi: Update.
66690         * doc/functions/vprintf.texi: Update.
66691         * doc/functions/vsnprintf.texi: Update.
66692         * doc/functions/vsprintf.texi: Update.
66693
66694 2007-05-06  Bruno Haible  <bruno@clisp.org>
66695
66696         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66697         pass the ' flag character to sprintf or snprintf.
66698         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66700         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66701         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66702         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66703         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66704         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66705         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66706         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66707         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66708         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66709         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66710         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66711         flag.
66712         * tests/test-sprintf-posix.h (test_function): Likewise.
66713         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66714         * tests/test-vasprintf-posix.c (test_function): Likewise.
66715         * doc/functions/fprintf.texi: Update.
66716         * doc/functions/printf.texi: Update.
66717         * doc/functions/snprintf.texi: Update.
66718         * doc/functions/sprintf.texi: Update.
66719         * doc/functions/vfprintf.texi: Update.
66720         * doc/functions/vprintf.texi: Update.
66721         * doc/functions/vsnprintf.texi: Update.
66722         * doc/functions/vsprintf.texi: Update.
66723
66724 2007-05-01  Bruno Haible  <bruno@clisp.org>
66725
66726         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66727
66728 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66729
66730         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66731         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66732
66733 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66734
66735         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66736         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66737         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66738
66739 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66740
66741         * lib/argp-help.c (struct hol_entry): New member `ord'.
66742         (HOL_ENTRY_PTRCMP): Use ord for comparison
66743         (hol_sort): Initialize ord.
66744
66745 2007-05-01  Bruno Haible  <bruno@clisp.org>
66746
66747         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66748         Reported by Eric Blake.
66749         * doc/gnulib.texi (Function Substitutes): Update.
66750
66751 2007-05-01  Bruno Haible  <bruno@clisp.org>
66752
66753         * doc/functions.texi: Remove file, now redundant through
66754         doc/functions/*.texi.
66755
66756 2007-05-01  Bruno Haible  <bruno@clisp.org>
66757
66758         * modules/argp (Depends-on): Add sleep.
66759
66760 2007-05-01  Bruno Haible  <bruno@clisp.org>
66761
66762         * modules/sleep-tests: New file.
66763         * tests/test-sleep.c: New file.
66764
66765         * modules/sleep: New file.
66766         * lib/sleep.c: New file.
66767         * m4/sleep.m4: New file.
66768         * lib/unistd_.h (sleep): New declaration.
66769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66770         HAVE_SLEEP.
66771         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66772         * doc/functions/sleep.texi: Document the sleep module.
66773
66774 2007-05-01  Bruno Haible  <bruno@clisp.org>
66775
66776         * lib/sigprocmask.h: Remove file.
66777         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66778         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66779         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66780         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66781         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66782         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66783         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66784         HAVE_SIGSET_T as a shell variable.
66785         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66786         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66787         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66788         (Depends-on): Add signal. Remove verify.
66789         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66790         (Include): Mention <signal.h> instead of sigprocmask.h.
66791         * NEWS: Mention the change.
66792         * lib/fatal-signal.c: Don't include sigprocmask.h.
66793
66794 2007-05-01  Bruno Haible  <bruno@clisp.org>
66795
66796         * modules/signal: New file.
66797         * lib/signal_.h: New file.
66798         * m4/signal_h.m4: New file.
66799
66800 2007-05-01  Bruno Haible  <bruno@clisp.org>
66801
66802         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66803         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66804         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66805         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66806
66807 2007-05-01  Bruno Haible  <bruno@clisp.org>
66808
66809         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66810         configure time.
66811         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66812         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66813         * modules/sys_stat (Makefile.am): Substitute their values into
66814         sys/stat.h.
66815
66816 2007-05-01  Bruno Haible  <bruno@clisp.org>
66817
66818         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66819         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66820         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66821
66822 2007-05-01  Bruno Haible  <bruno@clisp.org>
66823
66824         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66825         'assert' module here.
66826
66827 2007-05-01  Bruno Haible  <bruno@clisp.org>
66828
66829         * doc/functions/*.texi: New files.
66830         * doc/functions/google-ranking.txt: New file.
66831         * doc/gnulib.texi (Function Substitutes): New chapter.
66832         (ctime, inet_ntoa): Remove sections.
66833         * doc/ctime.texi: Remove file.
66834         * doc/inet_ntoa.texi: Remove file.
66835         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66836         dependencies.
66837         (%.info): New rule, specifying a --reference-limit.
66838
66839 2007-05-01  Bruno Haible  <bruno@clisp.org>
66840
66841         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66842
66843 2007-05-01  Bruno Haible  <bruno@clisp.org>
66844
66845         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66846         the portability of 'mkdir' to mingw systems.
66847
66848 2007-05-01  Bruno Haible  <bruno@clisp.org>
66849
66850         * doc/headers/google-ranking.txt: New file.
66851
66852 2007-04-30  Eric Blake  <ebb9@byu.net>
66853
66854         Prefer fseeko to fseek.
66855         * modules/getpass (Depends-on): Add fseeko.
66856         * lib/getpass.c (getpass): Use fseeko, not fseek.
66857
66858 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66859
66860         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66861         assumes the sorting is stable, while most qsort implementations
66862         are not.  Use argument addresses to ensure they never compare as
66863         equal.
66864
66865         * tests/test-argp-2.sh (usage-indent test): Fix output
66866         (func_compare): Restore diff options
66867         * tests/test-argp.c: Restore #include "progname.h"
66868
66869 2007-04-29  Bruno Haible  <bruno@clisp.org>
66870
66871         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66872         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66873         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66874         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66875         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66876         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66877         (TESTS, check_PROGRAMS): Add test-snprintf.
66878         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66879         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66880         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66881         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66882         assertions that fail on HP-UX, OSF/1, or IRIX.
66883         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66884
66885 2007-04-29  Bruno Haible  <bruno@clisp.org>
66886
66887         * MODULES.html.sh (posix_functions): Remove 'contents'.
66888
66889 2007-04-29  Karl Berry  <karl@gnu.org>
66890
66891         * config/srclist.txt (gendocs_template_min): new entry.
66892
66893 2007-04-29  Bruno Haible  <bruno@clisp.org>
66894
66895         Work around fpurge bug on BSD systems.
66896         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66897         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66898         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66899         fpurge to rpl_fpurge if the system already has this function.
66900         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66901         the case where the system already has this function. Correct invariants
66902         on BSD systems.
66903         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66904         BSD systems.
66905
66906 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66907
66908         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66909         proposed by Sven Verdoolaege.
66910
66911         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66912         options.
66913         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66914         (usage and help tests): Update
66915
66916 2007-04-29  Bruno Haible  <bruno@clisp.org>
66917
66918         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66919         Print more information in case of failure. Disable a test on BeOS.
66920
66921 2007-04-29  Bruno Haible  <bruno@clisp.org>
66922
66923         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66924         This helps debugging on systems on which no gdb is available.
66925
66926 2007-04-29  Bruno Haible  <bruno@clisp.org>
66927
66928         * lib/freading.h: Improve comments.
66929         * lib/fwriting.h: Likewise.
66930         * tests/test-freading.c (main): Don't check freading immediately after
66931         repositioning. Needed for glibc.
66932
66933 2007-04-29  Bruno Haible  <bruno@clisp.org>
66934
66935         * lib/freading.c (freading): Trivial simplification.
66936
66937 2007-04-28  Bruno Haible  <bruno@clisp.org>
66938
66939         * tests/test-fwriting.c (main): Also test the interaction between
66940         fflush and fwriting.
66941         * modules/fwriting-tests (Depends-on): Add fflush.
66942
66943         * tests/test-freading.c (main): Also test the interaction between
66944         fflush and freading.
66945         * modules/freading-tests (Depends-on): Add fflush.
66946
66947 2007-04-28  Bruno Haible  <bruno@clisp.org>
66948
66949         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66950         fseeko and ftello.
66951         Suggested by Eric Blake.
66952
66953 2007-04-28  Jim Meyering  <jim@meyering.net>
66954
66955         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66956         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66957         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66958
66959 2007-04-27  Eric Blake  <ebb9@byu.net>
66960
66961         * doc/headers/assert.texi (assert.h): Document assert module use.
66962
66963 2007-04-27  Bruno Haible  <bruno@clisp.org>
66964
66965         * doc/headers/*.texi: New files.
66966         * doc/gnulib.texi (Header File Substitutes): New chapter.
66967         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66968         dependencies.
66969         (standards.info ,standards.html, standards.dvi): Update dependencies.
66970         (mostlyclean, clean): New targets.
66971
66972 2007-04-27  Bruno Haible  <bruno@clisp.org>
66973
66974         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66975         * modules/sysexits (Files, Makefile.am): Update.
66976
66977         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66978         * modules/sys_socket (Files, Makefile.am): Update.
66979
66980         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66981         * modules/sys_stat (Files, Makefile.am): Update.
66982
66983 2007-04-27  Eric Blake  <ebb9@byu.net>
66984
66985         * lib/freading.h: Improve comments.
66986         * lib/fwriting.h: Likewise.
66987         * lib/fflush.c: Likewise.
66988
66989         Fix closein for mingw.
66990         * modules/closein-tests: Add tests for closein.
66991         * tests/test-closein.c: New file.
66992         * tests/test-closein.sh: Likewise.
66993         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66994         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66995
66996 2007-04-27  Bruno Haible  <bruno@clisp.org>
66997
66998         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66999         version is < 6.
67000         * lib/math_.h [__DECC]: Likewise.
67001         * lib/stdio_.h [__DECC]: Likewise.
67002         * lib/stdlib_.h [__DECC]: Likewise.
67003         * lib/string_.h [__DECC]: Likewise.
67004         * lib/time_.h [__DECC]: Likewise.
67005         * lib/wchar_.h [__DECC]: Likewise.
67006         * lib/wctype_.h [__DECC]: Likewise.
67007
67008 2007-04-27  Bruno Haible  <bruno@clisp.org>
67009
67010         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
67011
67012 2007-04-27  Bruno Haible  <bruno@clisp.org>
67013
67014         * lib/fflush.c: Add comments.
67015         * modules/fpurge-tests (Depends-on): Add fflush.
67016         * modules/freadable-tests (Depends-on): Likewise.
67017         * modules/fwritable-tests (Depends-on): Likewise.
67018
67019 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
67020
67021         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
67022         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
67023         Report by Bruno Haible <bruno@clisp.org>.
67024
67025 2007-04-26  Eric Blake  <ebb9@byu.net>
67026
67027         Fix fflush on mingw.
67028         * modules/fflush (Depends-on): Add freading.
67029         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
67030         but unread data.
67031
67032 2007-04-26  Eric Blake  <ebb9@byu.net>
67033         and Bruno Haible  <bruno@clisp.org>
67034
67035         Implement freading and fwriting.
67036         * lib/freading.c: New file.
67037         * lib/freading.h: Likewise.
67038         * m4/freading.m4: Likewise.
67039         * modules/freading: Likewise.
67040         * modules/freading-tests: Likewise.
67041         * tests/test-freading.c: Likewise.
67042         * lib/fwriting.c: New file.
67043         * lib/fwriting.h: Likewise.
67044         * m4/fwriting.m4: Likewise.
67045         * modules/fwriting: Likewise.
67046         * modules/fwriting-tests: Likewise.
67047         * tests/test-fwriting.c: Likewise.
67048         * MODULES.html.sh (File stream based Input/Output): Mention them.
67049
67050 2007-04-26  Bruno Haible  <bruno@clisp.org>
67051
67052         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
67053         'long' when we assume it.
67054         Suggested by Eric Blake.
67055
67056 2007-04-26  Bruno Haible  <bruno@clisp.org>
67057
67058         Ensure fseeko, ftello are declared on glibc systems.
67059         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
67060         * modules/fseeko (configure.ac-early): Likewise.
67061         * modules/ftello (configure.ac-early): Likewise.
67062         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
67063         AC_FUNC_FSEEKO for this.
67064         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
67065         (gl_CHECK_FSEEKO): Remove macro.
67066
67067 2007-04-26  Bruno Haible  <bruno@clisp.org>
67068
67069         * tests/test-fflush.c (main): Also check the ftell result after
67070         fflush and fseek/fseeko.
67071         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
67072         file descriptor position cache in the stream.
67073         * lib/fseeko.c (rpl_fseeko): Likewise.
67074
67075 2007-04-26  Bruno Haible  <bruno@clisp.org>
67076
67077         * modules/fflush-tests (Depends-on): Add fseeko.
67078
67079 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
67080             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67081
67082         * lib/argz_.h: ensure error_t definition is obtained in same
67083         mechanism system argz.h would have.
67084         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
67085         argz facilities are known bad.  Err on the side of caution if
67086         cross-compiling.
67087
67088 2007-04-25  Eric Blake  <ebb9@byu.net>
67089
67090         * lib/fpurge.c (includes): Use stdlib.h for free.
67091         * tests/test-fflush.c (main): Also test fflush-fseeko.
67092
67093 2007-04-25  Bruno Haible  <bruno@clisp.org>
67094
67095         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
67096         * lib/fseeko.c: New file.
67097         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
67098         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
67099         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
67100         gl_FUNC_FSEEKO.
67101         (gl_FUNC_FSEEKO): Invoke it.
67102         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
67103         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
67104         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
67105
67106 2007-04-25  Bruno Haible  <bruno@clisp.org>
67107
67108         * modules/fflush (Depends-on): Add ftello.
67109
67110 2007-04-25  Bruno Haible  <bruno@clisp.org>
67111
67112         * modules/ftello-tests: New file.
67113         * tests/test-ftello.c: New file.
67114
67115         * modules/ftello: New file.
67116         * m4/ftello.m4: New file.
67117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
67118         HAVE_FTELLO.
67119         * lib/stdio_.h (ftello): New declaration.
67120         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
67121         HAVE_FTELLO.
67122
67123 2007-04-25  Bruno Haible  <bruno@clisp.org>
67124
67125         * modules/fseeko-tests: New file.
67126         * tests/test-fseeko.c: New file.
67127
67128         * modules/fseeko: New file.
67129         * m4/fseeko.m4: New file.
67130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
67131         HAVE_FSEEKO.
67132         * lib/stdio_.h (fseeko): New declaration.
67133         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67134         HAVE_FSEEKO.
67135
67136 2007-04-25  Bruno Haible  <bruno@clisp.org>
67137
67138         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67139
67140 2007-04-25  Bruno Haible  <bruno@clisp.org>
67141
67142         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67143         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67144         * tests/test-unistd.c: Likewise.
67145         * tests/test-fcntl.c: Likewise.
67146
67147 2007-04-23  Eric Blake  <ebb9@byu.net>
67148
67149         * lib/fflush.c: Fix missing include.
67150         Reported by Bruno Haible.
67151
67152 2007-04-23  Bruno Haible  <bruno@clisp.org>
67153
67154         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67155         Reported by Eric Blake.
67156
67157 2007-04-23  Bruno Haible  <bruno@clisp.org>
67158
67159         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67160
67161 2007-04-23  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67164
67165 2007-04-23  Bruno Haible  <bruno@clisp.org>
67166
67167         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67168         Needed on HP-UX 11.
67169
67170 2007-04-16  Eric Blake  <ebb9@byu.net>
67171
67172         Make fflush rely on fpurge.
67173         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67174         open coding all variants.
67175         * modules/fflush (Depends-on): Add fpurge and unistd.
67176         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67177         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67178
67179         Fix --with-tests compilation on cygwin.
67180         * modules/argmatch-tests (Makefile.am): List gnulib library first
67181         in LDADD.
67182         * modules/argp-tests (Makefile.am): Likewise.
67183         * modules/array-list-tests (Makefile.am): Likewise.
67184         * modules/array-oset-tests (Makefile.am): Likewise.
67185         * modules/avltree-list-tests (Makefile.am): Likewise.
67186         * modules/avltree-oset-tests (Makefile.am): Likewise.
67187         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67188         * modules/carray-list-tests (Makefile.am): Likewise.
67189         * modules/dirname-tests (Makefile.am): Likewise.
67190         * modules/frexp-tests (Makefile.am): Likewise.
67191         * modules/isnanl-tests (Makefile.am): Likewise.
67192         * modules/linked-list-tests (Makefile.am): Likewise.
67193         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67194         * modules/lock-tests (Makefile.am): Likewise.
67195         * modules/rbtree-list-tests (Makefile.am): Likewise.
67196         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67197         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67198         * modules/tls-tests (Makefile.am): Likewise.
67199         * modules/tsearch-tests (Makefile.am): Likewise.
67200         * modules/xvasprintf-tests (Makefile.am): Likewise.
67201
67202         Fix fpurge for cygwin.
67203         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67204         value.
67205         * modules/fpurge-tests (Depends-on): Clean up trash.
67206
67207 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67208
67209         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67210
67211         * m4/autobuild.m4: Re-indent.
67212
67213 2007-04-13  Bruno Haible  <bruno@clisp.org>
67214
67215         * modules/fpurge-tests: New file.
67216         * tests/test-fpurge.c: New file.
67217
67218         * modules/fpurge: New file.
67219         * lib/fpurge.h: New file.
67220         * lib/fpurge.c: New file.
67221         * m4/fpurge.m4: New file.
67222
67223 2007-04-13  Bruno Haible  <bruno@clisp.org>
67224
67225         * modules/fbufmode-tests: New file.
67226         * tests/test-fbufmode.c: New file.
67227
67228         * modules/fbufmode: New file.
67229         * lib/fbufmode.h: New file.
67230         * lib/fbufmode.c: New file.
67231         * m4/fbufmode.m4: New file.
67232
67233 2007-04-13  Bruno Haible  <bruno@clisp.org>
67234
67235         * modules/fwritable-tests: New file.
67236         * tests/test-fwritable.c: New file.
67237
67238         * modules/fwritable: New file.
67239         * lib/fwritable.h: New file.
67240         * lib/fwritable.c: New file.
67241         * m4/fwritable.m4: New file.
67242
67243 2007-04-13  Bruno Haible  <bruno@clisp.org>
67244
67245         * modules/freadable-tests: New file.
67246         * tests/test-freadable.c: New file.
67247
67248         * modules/freadable: New file.
67249         * lib/freadable.h: New file.
67250         * lib/freadable.c: New file.
67251         * m4/freadable.m4: New file.
67252
67253 2007-04-13  Bruno Haible  <bruno@clisp.org>
67254
67255         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67256         MOSTLYCLEANFILES.
67257
67258 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67259
67260         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67261         gzip bootstrap.conf to avoid dragging in i18n machinery.
67262         (gnulib_tool_option): Use it.
67263
67264 2007-04-13  Bruno Haible  <bruno@clisp.org>
67265
67266         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67267         %F directives.
67268         * tests/test-vasprintf-posix.c (test_function): Likewise.
67269         * tests/test-snprintf-posix.h (test_function): Likewise.
67270         * tests/test-sprintf-posix.h (test_function): Likewise.
67271         * tests/test-fprintf-posix.h (test_function): Likewise.
67272         * tests/test-printf-posix.h (test_function): Likewise.
67273         * tests/test-fprintf-posix.out: Likewise.
67274
67275 2007-04-13  Bruno Haible  <bruno@clisp.org>
67276
67277         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67278         * modules/tls-tests (configure.ac): Likewise.
67279         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67280
67281 2007-04-13  Bruno Haible  <bruno@clisp.org>
67282
67283         * lib/tls.c (glthread_tls_get): Fix return type.
67284         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67285
67286 2007-04-12  Eric Blake  <ebb9@byu.net>
67287
67288         * modules/gettime (Depends-on): Remove gettime.
67289         Reported by Dmitry V. Levin.
67290
67291 2007-04-12  Bruno Haible  <bruno@clisp.org>
67292
67293         * modules/fflush (Include): Mention <stdio.h>.
67294         * modules/strtoimax (Include): Mention <inttypes.h>.
67295         * modules/strtoumax (Include): Likewise.
67296
67297 2007-04-12  Eric Blake  <ebb9@byu.net>
67298
67299         * .cvsignore: New file.
67300         * .gitignore: Likewise.
67301
67302 2007-04-12  Bruno Haible  <bruno@clisp.org>
67303
67304         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67305         not before, since $(LDADD) often contains libgnu.a.
67306         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67307         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67308         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67309         Needed on Cygwin.
67310
67311 2007-04-12  Eric Blake  <ebb9@byu.net>
67312
67313         Work around glibc's failure to flush stdin on fclose.
67314         * lib/closein.c (close_stdin): Flush stdin before closing.
67315
67316         Work around glibc's failure to reset seekable stdin on exit.
67317         * modules/closein: New module.
67318         * lib/closein.c: New file.
67319         * lib/closein.h: Likewise.
67320         * m4/closein.m4: Likewise.
67321         * MODULES.html.sh (File stream based Input/Output): Document it.
67322
67323 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67324
67325         * gnulib-tool: Rename generated 'autobuild' script to
67326         'do-autobuild' in --create-megatestdir output.
67327
67328         * doc/gnulib.texi (Build robot for gnulib): Fix.
67329
67330 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67331
67332         * modules/sysexits (Depends-on): Add absolute-header.
67333
67334 2007-04-12  Eric Blake  <ebb9@byu.net>
67335
67336         No need to preserve errno on success.
67337         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67338         Reported by Bruno Haible.
67339
67340 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67341
67342         * MODULES.html.sh (Support for maintaining and releasing
67343         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67344
67345 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67346
67347         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67348
67349 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67350
67351         * modules/autobuild: New module.
67352
67353         * m4/autobuild.m4: New file.
67354
67355 2007-04-11  Bruno Haible  <bruno@clisp.org>
67356
67357         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67358         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67359         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67360         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67361         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67362         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67363         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67365         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67366         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67367         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67368         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67369         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67370         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67371         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67372         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67374         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67375         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67376         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67377         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67378         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67379         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67380         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67381         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67382         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67383         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67384         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67385         Reported by Eric Blake.
67386
67387 2007-04-11  Bruno Haible  <bruno@clisp.org>
67388
67389         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67390
67391 2007-04-10  Bruno Haible  <bruno@clisp.org>
67392
67393         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67394         for NaN and Infinity. Needed on FreeBSD 6.1.
67395         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67396         regarding results for "%010a" of Infinity and NaN.
67397         * tests/test-vasprintf-posix.c (test_function): Likewise.
67398         * tests/test-snprintf-posix.h (test_function): Likewise.
67399         * tests/test-sprintf-posix.h (test_function): Likewise.
67400         * tests/test-fprintf-posix.h (test_function): Likewise.
67401         * tests/test-printf-posix.h (test_function): Likewise.
67402         * tests/test-fprintf-posix.out: Likewise.
67403
67404 2007-04-10  Bruno Haible  <bruno@clisp.org>
67405
67406         * modules/locale-tests: New file.
67407         * tests/test-locale.c: New file.
67408
67409         * modules/locale: New file.
67410         * lib/locale_.h: New file.
67411         * m4/locale_h.m4: New file.
67412
67413 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67414             Bruno Haible  <bruno@clisp.org>
67415
67416         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67417         be determined, test for availability of the copysignf, copysign,
67418         copysignl functions.
67419         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67420         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67421         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67422
67423 2007-04-09  Eric Blake  <ebb9@byu.net>
67424
67425         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67426         * modules/stdio (Makefile.am): Support fflush.
67427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67428         * modules/fflush: New file.
67429         * lib/fflush.c: Likewise.
67430         * m4/fflush.m4: Likewise.
67431         * modules/fflush-tests: New test.
67432         * tests/test-fflush.c: Likewise.
67433         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67434
67435 2007-04-06  Bruno Haible  <bruno@clisp.org>
67436
67437         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67438         (VASNPRINTF): Use signbit for faster determination whether to print a
67439         minus sign.
67440         * modules/vasnprintf (Files): Remove lib/float+.h.
67441         * modules/fprintf-posix (Depends-on): Add signbit.
67442         * modules/snprintf-posix (Depends-on): Likewise.
67443         * modules/sprintf-posix (Depends-on): Likewise.
67444         * modules/vasnprintf-posix (Depends-on): Likewise.
67445         * modules/vasprintf-posix (Depends-on): Likewise.
67446         * modules/vfprintf-posix (Depends-on): Likewise.
67447         * modules/vsnprintf-posix (Depends-on): Likewise.
67448         * modules/vsprintf-posix (Depends-on): Likewise.
67449
67450 2007-04-06  Bruno Haible  <bruno@clisp.org>
67451
67452         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67453         * tests/test-frexpl.c (main): Likewise.
67454         * tests/test-ldexpl.c (main): Likewise.
67455         * modules/frexp-tests (Depends-on): Add signbit.
67456         * modules/frexpl-tests (Depdends-on): Likewise.
67457         * modules/ldexpl-tests (Depdends-on): Likewise.
67458
67459 2007-04-06  Bruno Haible  <bruno@clisp.org>
67460
67461         * modules/signbit-tests: New file.
67462         * tests/test-signbit.c: New file.
67463
67464         * modules/signbit: New file.
67465         * lib/signbitf.c: New file.
67466         * lib/signbitd.c: New file.
67467         * lib/signbitl.c: New file.
67468         * m4/signbit.m4: New file.
67469         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67470         (signbit): New macro.
67471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67472         REPLACE_SIGNBIT.
67473         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67474         REPLACE_FREXPL into math.h.
67475
67476 2007-04-06  Bruno Haible  <bruno@clisp.org>
67477
67478         * modules/isnanf-nolibm-tests: New file.
67479         * tests/test-isnanf.c: New file.
67480
67481         * modules/isnanf-nolibm: New file.
67482         * lib/isnanf.h: New file.
67483         * lib/isnanf.c: New file.
67484         * lib/isnan.c: Consider the USE_FLOAT macro.
67485         * m4/isnanf.m4: New file.
67486
67487 2007-04-06  Bruno Haible  <bruno@clisp.org>
67488
67489         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67490         (Link): New section.
67491
67492         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67493
67494 2007-04-06  Bruno Haible  <bruno@clisp.org>
67495
67496         Assume the 'long double' type.
67497         * m4/longdouble.m4: Remove file.
67498         * config/srclist.txt: Don't mention longdouble.m4.
67499         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67500         * lib/float+.h: Likewise.
67501         * lib/frexp.c: Likewise.
67502         * lib/printf-args.h: Likewise.
67503         * lib/printf-args.c: Likewise.
67504         * lib/printf-frexp.c: Likewise.
67505         * lib/printf-parse.c: Likewise.
67506         * lib/vasnprintf.c: Likewise.
67507         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67508         * m4/intl.m4: Likewise.
67509         * m4/isnanl.m4: Likewise.
67510         * m4/printf.m4: Likewise.
67511         * m4/printf-frexpl.m4: Likewise.
67512         * m4/vasnprintf.m4: Likewise.
67513         * modules/allocsa (Files): Remove m4/longdouble.m4.
67514         * modules/gettext (Files): Likewise.
67515         * modules/relocatable-prog-wrapper (Files): Likewise.
67516         * modules/vasnprintf (Files): Likewise.
67517         * modules/isnanl (Files): Likewise.
67518         (Include): Simplify.
67519         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67520         (Include): Simplify.
67521         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67522         (Include): Simplify.
67523         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67524         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67525         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67526         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67527         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67528         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67529         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67530         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67531         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67532         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67533         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67534         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67535         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67536         * tests/test-isnanl.c: Likewise.
67537         * tests/test-snprintf-posix.h: Likewise.
67538         * tests/test-sprintf-posix.h: Likewise.
67539         * tests/test-vasnprintf-posix.c: Likewise.
67540         * tests/test-vasnprintf-posix2.c: Likewise.
67541         * tests/test-vasprintf-posix.c: Likewise.
67542
67543 2007-04-06  Bruno Haible  <bruno@clisp.org>
67544
67545         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67546         * lib/math_.h [__DECC]: Include the overridden include file through
67547         #include_next, outside the double-inclusion guard.
67548         * lib/stdio_.h [__DECC]: Likewise.
67549         * lib/stdlib_.h [__DECC]: Likewise.
67550         * lib/string_.h [__DECC]: Likewise.
67551         * lib/time_.h [__DECC]: Likewise.
67552         * lib/wchar_.h [__DECC]: Likewise.
67553         * lib/wctype_.h [__DECC]: Likewise.
67554         * lib/inttypes_.h [__DECC]: Likewise.
67555         Reported by Albert Chin <china@thewrittenword.com> in
67556         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67557
67558 2007-04-04  Eric Blake  <ebb9@byu.net>
67559
67560         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67561         1.5.x.
67562
67563 2007-04-04  Bruno Haible  <bruno@clisp.org>
67564
67565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67566         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67567
67568 2007-04-04  Bruno Haible  <bruno@clisp.org>
67569
67570         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67571         results for "%010a" of Infinity and NaN.
67572         * tests/test-vasprintf-posix.c (test_function): Likewise.
67573         * tests/test-snprintf-posix.h (test_function): Likewise.
67574         * tests/test-sprintf-posix.h (test_function): Likewise.
67575         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67576         * tests/test-printf-posix.h (test_function): Likewise.
67577         * tests/test-fprintf-posix.out: Update.
67578         Needed for FreeBSD 6.1.
67579
67580 2007-04-04  Bruno Haible  <bruno@clisp.org>
67581
67582         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67583         directly used by the gnulib modules nor by gnulib-tool.
67584
67585 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67586
67587         * DEPENDENCIES: Give overall description of version dependency
67588         desirability.  Use more-typical names for apps.
67589         Add shell, coreutils, diffutils, grep, tar, gzip.
67590
67591 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67592
67593         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67594
67595 2007-04-04  Karl Berry  <karl@gnu.org>
67596
67597         * MODULES.html.sh (func_module): missing '.
67598
67599 2007-04-03  Bruno Haible  <bruno@clisp.org>
67600
67601         * modules/argmatch-tests (Makefile.am): New variable
67602         test_argmatch_LDADD.
67603         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67604         * modules/array-list-tests (Makefile.am): New variable
67605         test_array_list_LDADD.
67606         * modules/array-oset-tests (Makefile.am): New variable
67607         test_array_oset_LDADD.
67608         * modules/avltree-list-tests (Makefile.am): New variable
67609         test_avltree_list_LDADD.
67610         * modules/avltree-oset-tests (Makefile.am): New variable
67611         test_avltree_oset_LDADD.
67612         * modules/avltreehash-list-tests (Makefile.am): New variable
67613         test_avltreehash_list_LDADD.
67614         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67615         test_canonicalize_lgpl_LDADD.
67616         * modules/carray-list-tests (Makefile.am): New variable
67617         test_carray_list_LDADD.
67618         * modules/dirname-tests (Makefile.am): New variable
67619         test_dirname_LDADD.
67620         * modules/linked-list-tests (Makefile.am): New variable
67621         test_linked_list_LDADD.
67622         * modules/linkedhash-list-tests (Makefile.am): New variable
67623         test_linkedhash_list_LDADD.
67624         * modules/rbtree-list-tests (Makefile.am): New variable
67625         test_rbtree_list_LDADD.
67626         * modules/rbtree-oset-tests (Makefile.am): New variable
67627         test_rbtree_oset_LDADD.
67628         * modules/rbtreehash-list-tests (Makefile.am): New variable
67629         test_rbtreehash_list_LDADD.
67630         * modules/xvasprintf-tests (Makefile.am): New variable
67631         test_xvasprintf_LDADD.
67632         Reported by Eric Blake.
67633
67634 2007-04-03  Eric Blake  <ebb9@byu.net>
67635
67636         * DEPENDENCIES: Weaken m4 requirements.
67637
67638 2007-04-03  Bruno Haible  <bruno@clisp.org>
67639
67640         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67641         * modules/isnanl-tests (configure.ac): Likewise.
67642
67643 2007-04-03  Ben Pfaff  <blp@gnu.org>
67644
67645         * modules/iconv_open: Add $(srcdir)/ to source directory
67646         references in Makefile fragments that call gperf, to fix VPATH
67647         builds.
67648
67649 2007-04-03  Bruno Haible  <bruno@clisp.org>
67650
67651         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67652         * lib/ldexpl.c: Undo last change.
67653
67654 2007-04-03  Bruno Haible  <bruno@clisp.org>
67655
67656         * modules/printf-frexpl (Depends-on): Undo last change.
67657         (Files): Add m4/ldexpl.m4.
67658
67659 2007-04-03  Bruno Haible  <bruno@clisp.org>
67660
67661         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67662         * modules/isnanl (Link): New section.
67663
67664         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67665         * modules/frexp (Link): New section.
67666
67667         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67668         * modules/frexpl (Link): New section.
67669
67670         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67671         * modules/ldexpl (Link): New section.
67672
67673 2007-04-03  Bruno Haible  <bruno@clisp.org>
67674
67675         * modules/TEMPLATE-EXTENDED: New file.
67676         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67677
67678 2007-04-03  Bruno Haible  <bruno@clisp.org>
67679
67680         * DEPENDENCIES: New file.
67681         Suggested by Simon Josefsson.
67682
67683 2007-04-03  Bruno Haible  <bruno@clisp.org>
67684
67685         * doc/gnulib.texi: Escape @.
67686
67687 2007-04-03  James Youngman  <jay@gnu.org>
67688         and Paul Eggert  <eggert@cs.ucla.edu>
67689
67690         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67691         birthtime on all systems that have birthtime, not just those which
67692         use st_birthtimensec rather than st_birthtim.  Putting zero in
67693         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67694         that the birth time is not available for files on an NFS mount.
67695
67696 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67697
67698         * modules/memxor: Move back from crypto/, suggested by Bruno.
67699         * modules/crypto/hmac-sha1: Fix memxor dependency.
67700
67701         * modules/crypto/gc: Moved from ../.
67702
67703 2007-04-02  Eric Blake  <ebb9@byu.net>
67704
67705         * lib/ldexpl.c (includes): Avoid libm.
67706
67707         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67708
67709 2007-04-02  Bruno Haible  <bruno@clisp.org>
67710
67711         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67712         on IRIX.
67713
67714 2007-04-02  Bruno Haible  <bruno@clisp.org>
67715
67716         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67717         x86 or x86_64 platforms running MacOS X.
67718         Reported by Ryan Schmidt <@ryandesign.com>.
67719
67720 2007-04-02  Bruno Haible  <bruno@clisp.org>
67721
67722         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67723         i386.
67724
67725 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67726
67727         * modules/crypto/arcfour: Moved from ../.
67728         * modules/crypto/arcfour-tests: Moved from ../.
67729         * modules/crypto/arctwo: Moved from ../.
67730         * modules/crypto/arctwo-tests: Moved from ../.
67731         * modules/crypto/des: Moved from ../.
67732         * modules/crypto/des-tests: Moved from ../.
67733         * modules/crypto/gc-arcfour: Moved from ../.
67734         * modules/crypto/gc-arcfour-tests: Moved from ../.
67735         * modules/crypto/gc-arctwo: Moved from ../.
67736         * modules/crypto/gc-arctwo-tests: Moved from ../.
67737         * modules/crypto/gc-des: Moved from ../.
67738         * modules/crypto/gc-des-tests: Moved from ../.
67739         * modules/crypto/gc-hmac-md5: Moved from ../.
67740         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67741         * modules/crypto/gc-hmac-sha1: Moved from ../.
67742         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67743         * modules/crypto/gc-md2: Moved from ../.
67744         * modules/crypto/gc-md2-tests: Moved from ../.
67745         * modules/crypto/gc-md4: Moved from ../.
67746         * modules/crypto/gc-md4-tests: Moved from ../.
67747         * modules/crypto/gc-md5: Moved from ../.
67748         * modules/crypto/gc-md5-tests: Moved from ../.
67749         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67750         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67751         * modules/crypto/gc-random: Moved from ../.
67752         * modules/crypto/gc-rijndael: Moved from ../.
67753         * modules/crypto/gc-rijndael-tests: Moved from ../.
67754         * modules/crypto/gc-sha1: Moved from ../.
67755         * modules/crypto/gc-sha1-tests: Moved from ../.
67756         * modules/crypto/gc-tests: Moved from ../.
67757         * modules/crypto/hmac-md5: Moved from ../.
67758         * modules/crypto/hmac-md5-tests: Moved from ../.
67759         * modules/crypto/hmac-sha1: Moved from ../.
67760         * modules/crypto/hmac-sha1-tests: Moved from ../.
67761         * modules/crypto/md2: Moved from ../.
67762         * modules/crypto/md2-tests: Moved from ../.
67763         * modules/crypto/md4: Moved from ../.
67764         * modules/crypto/md4-tests: Moved from ../.
67765         * modules/crypto/md5: Moved from ../.
67766         * modules/crypto/md5-tests: Moved from ../.
67767         * modules/crypto/memxor: Moved from ../.
67768         * modules/crypto/rijndael: Moved from ../.
67769         * modules/crypto/rijndael-tests: Moved from ../.
67770         * modules/crypto/sha1: Moved from ../.
67771
67772 2007-03-30  James Youngman  <jay@gnu.org>
67773
67774         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67775         rename() to change the ctime of a file (because ctime is unaffected
67776         by rename on jfs2 on AIX 5.1).
67777         (main): Start by doing cleanup, in case a previous run failed leaving
67778         test files behind.
67779
67780 2007-03-31  Bruno Haible  <bruno@clisp.org>
67781
67782         Support old proprietary implementations of iconv.
67783         * modules/iconv_open: New file.
67784         * lib/iconv_.h: New file.
67785         * m4/iconv_h.m4: New file.
67786         * lib/iconv_open.c: New file.
67787         * lib/iconv_open-aix.gperf: New file.
67788         * lib/iconv_open-hpux.gperf: New file.
67789         * lib/iconv_open-irix.gperf: New file.
67790         * lib/iconv_open-osf.gperf: New file.
67791         * m4/iconv_open.m4: New file.
67792         * modules/linebreak (Depends-on): Add iconv_open.
67793         * modules/striconv (Depends-on): Likewise.
67794         * modules/striconveh (Depends-on): Likewise.
67795         * modules/unicodeio (Depends-on): Likewise.
67796         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67797         (iconv_t)(-1).
67798         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67799         conversion if cd is (iconv_t)(-1).
67800         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67801         is not possible.
67802
67803 2007-03-31  Bruno Haible  <bruno@clisp.org>
67804
67805         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67806         work on Solaris either. Protect also second use of "autodetect_jp".
67807
67808 2007-03-31  Bruno Haible  <bruno@clisp.org>
67809
67810         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67811         the function is not present.
67812
67813 2007-03-31  Bruno Haible  <bruno@clisp.org>
67814
67815         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67816         the function is not present.
67817
67818 2007-03-31  Bruno Haible  <bruno@clisp.org>
67819
67820         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67821         a bug in HP-UX iconv_open().
67822
67823 2007-03-31  Bruno Haible  <bruno@clisp.org>
67824
67825         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67826         (Mathematics <math.h>): New section, add fpieee.
67827         (Input/output <stdio.h>): Add fseterr.
67828         (Mathematics <math.h>): New section, add printf-frexp.
67829         (Container data structures): Add sublist.
67830         (Core language properties): Add fpucw, inline.
67831         (Functions for greatest-width integer types <inttypes.h>): Add
67832         imaxabs, imaxdiv, inttypes.
67833         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67834         isnanl-nolibm, ldexp.
67835         (Mathematics <math.h>): New section, add printf-frexpl.
67836         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67837         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67838         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67839         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67840         (Unicode string functions): Add unistr/u*-mbtoucr.
67841         (Java): Add javacomp-script, javaexec-script.
67842         (C#): Add csharpcomp-script, csharpexec-script.
67843         (Support for building libraries and executables): Add havelib,
67844         relocatable-*.
67845         (Support for maintaining and releasing projects): Renamed from
67846         'Support for maintaining and release projects'. Add announce-gen.
67847
67848 2007-03-31  Bruno Haible  <bruno@clisp.org>
67849
67850         * README: Talk primarily about git.
67851         (git and CVS): Renamed from CVS.
67852         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67853         gnulib is available through git.
67854         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67855
67856 2007-03-30  Bruno Haible  <bruno@clisp.org>
67857
67858         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67859         * lib/poll_.h: Likewise.
67860         * lib/stat_.h: Likewise.
67861         * lib/sys_time_.h: Likewise.
67862         * lib/sysexit_.h: Likewise.
67863         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67864         * lib/stdbool_.h: Likewise.
67865         * lib/byteswap_.h: Add double-inclusion guard.
67866
67867 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67868
67869         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67870
67871 2007-03-30  Karl Berry  <karl@gnu.org>
67872
67873         * config/srclist-update: double space after USA in the license
67874         substitution, since that's how it's usually (?) written.
67875
67876 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67877
67878         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67879         reported by Bruno Haible.
67880
67881 2007-03-29  Bruno Haible  <bruno@clisp.org>
67882
67883         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67884         a bug in AIX iconv().
67885
67886 2007-03-29  Bruno Haible  <bruno@clisp.org>
67887
67888         * modules/ldexpl-tests: New file.
67889         * tests/test-ldexpl.c: New file.
67890
67891 2007-03-29  Bruno Haible  <bruno@clisp.org>
67892
67893         * lib/ldexpl.c: Include fpucw.h.
67894         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67895         multiplication.
67896         * modules/ldexpl (Depends-on): Add fpucw.
67897
67898 2007-03-29  Bruno Haible  <bruno@clisp.org>
67899
67900         * modules/ldexpl: New file.
67901         * m4/ldexpl.m4: New file.
67902         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67903         set.
67904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67905         REPLACE_LDEXPL.
67906         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67907         REPLACE_LDEXPL.
67908         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67909         gl_FUNC_LDEXPL_WORKS.
67910         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67911         * modules/mathl (Files): Remove lib/ldexpl.c.
67912         (Depends-on): Add ldexpl.
67913
67914 2007-03-29  Bruno Haible  <bruno@clisp.org>
67915
67916         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67917
67918 2007-03-29  Bruno Haible  <bruno@clisp.org>
67919
67920         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67921         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67922         and possibly also HP-UX.
67923         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67924         work on AIX, IRIX, HP-UX, OSF/1.
67925         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67926         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67927         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67928         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67929         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67930         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67931
67932 2007-03-29  Bruno Haible  <bruno@clisp.org>
67933
67934         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67935
67936 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67937
67938         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67939         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67940
67941 2007-03-29  Eric Blake  <ebb9@byu.net>
67942
67943         * lib/acl-internal.h: Remove redundant include.
67944         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67945         Cygwin when a file is locked.
67946
67947 2007-03-29  Bruno Haible  <bruno@clisp.org>
67948
67949         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67950         file.
67951         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67952
67953 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67954
67955         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67956         try to remove a parent directory if the child couldn't be removed
67957         (except for the first rmdir, which could fail because the child
67958         doesn't exist).  Problem reported by Jeff Blaine in
67959         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67960
67961 2007-03-28  Bruno Haible  <bruno@clisp.org>
67962
67963         * lib/striconveh.c (utf8conv_carefully): New function.
67964         (mem_cd_iconveh_internal): Invoke it.
67965
67966 2007-03-28  Bruno Haible  <bruno@clisp.org>
67967
67968         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67969         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67970         input.
67971         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67972         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67973         unistr/u8-uctomb.
67974
67975 2007-03-28  Bruno Haible  <bruno@clisp.org>
67976
67977         * modules/unistr/u8-mbtoucr: New file.
67978         * lib/unistr/u8-mbtoucr.c: New file.
67979         * modules/unistr/u16-mbtoucr: New file.
67980         * lib/unistr/u16-mbtoucr.c: New file.
67981         * modules/unistr/u16-mbtoucr: New file.
67982         * lib/unistr/u16-mbtoucr.c: New file.
67983         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67984
67985 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67986             Bruno Haible  <bruno@clisp.org>
67987
67988         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67989         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67990         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67991
67992         * m4/stdio_h.m4: Add stubs for vasprintf too.
67993
67994         * modules/stdio: Support vasprintf in sed command.
67995
67996         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67997         vasprintf.h.  Add stdio module indicator.
67998
67999         * lib/stdio_.h: Declare asprintf and vasprintf, based on
68000         vasprintf.h.
68001
68002         * lib/vasprintf.h: File removed.
68003
68004         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
68005         * lib/vasprintf.c: Ditto.
68006         * lib/xvasprintf.c: Ditto.
68007         * tests/test-vasprintf-posix.c: Ditto.
68008         * tests/test-vasprintf.c: Ditto.
68009
68010 2007-03-27  Bruno Haible  <bruno@clisp.org>
68011
68012         Make vasnprintf multithread-safe.
68013         * lib/vasnprintf.c (decimal_point_char): New function.
68014         (VASNPRINTF): Use it.
68015         Suggested by Simon Josefsson.
68016
68017 2007-03-27  Eric Blake  <ebb9@byu.net>
68018
68019         Support sub-second birthtime on cygwin.
68020         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
68021         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
68022         (get_stat_birthtime): Also work with st_birthtim.
68023
68024 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
68025
68026         * lib/stat-time.h (USE_BIRTHTIME): Remove.
68027         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
68028         (get_stat_birthtime_ns): Do not try to use "spare" fields.
68029         (get_stat_birthtime_ns): Simplify compile-time tests.
68030         (get_stat_birthtime): Change the API to look like
68031         get_stat_mtime etc., except return a negative tv_nsec on error.
68032         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
68033         Don't check for "spare" fields.
68034         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
68035         or for struct stat.st_birthtime, as these tests aren't used.
68036         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
68037
68038 2007-03-27  Bruno Haible  <bruno@clisp.org>
68039
68040         * lib/stat-time.h: Include <sys/stat.h>.
68041
68042 2007-03-27  James Youngman  <jay@gnu.org>
68043
68044         * lib/stat-time.h (get_stat_birthtime): New function for
68045           retrieving st_birthtime as provided by UFS2 (hence *BSD).
68046         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
68047           and its variants.
68048         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
68049         * modules/stat-time-test: New file.
68050         * tests/test-stat-time.c: New test, devised by Bruno Haible.
68051
68052 2007-03-26  Bruno Haible  <bruno@clisp.org>
68053
68054         Better support of signalling NaNs.
68055         * lib/atanl.c: Include isnanl.h.
68056         (atanl): Perform test for NaN at the beginning of the function and
68057         through a call to isnanl.
68058         * lib/cosl.c: Include isnanl.h.
68059         (cosl): Perform test for NaN at the beginning of the function and
68060         through a call to isnanl.
68061         * lib/ldexpl.c: Include isnanl.h.
68062         (ldexpl): Perform test for NaN through a call to isnanl.
68063         * lib/logl.c: Include isnanl.h.
68064         (logl): Perform test for NaN at the beginning of the function and
68065         through a call to isnanl.
68066         * lib/sinl.c: Include isnanl.h.
68067         (sinl): Perform test for NaN at the beginning of the function and
68068         through a call to isnanl.
68069         * lib/sqrtl.c: Include isnanl.h.
68070         (sqrtl): Perform test for NaN at the beginning of the function and
68071         through a call to isnanl.
68072         * lib/tanl.c: Include isnanl.h.
68073         (tanl): Perform test for NaN at the beginning of the function and
68074         through a call to isnanl.
68075         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
68076         * modules/mathl (Depends-on): Add isnanl.
68077
68078 2007-03-26  Eric Blake  <ebb9@byu.net>
68079
68080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
68081         regression in logic sense of previous patch.
68082
68083 2007-03-26  Bruno Haible  <bruno@clisp.org>
68084
68085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
68086         unportable shell command "if ! ...".
68087         Reported by Ralf Wildenhues.
68088
68089 2007-03-25  Bruno Haible  <bruno@clisp.org>
68090
68091         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
68092         <sysexits.h> file, and only add EX_CONFIG.
68093         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
68094         absolute file name and whether it is sufficient. Substitute also
68095         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
68096         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
68097         ABSOLUTE_SYSEXITS_H into sysexits.h.
68098
68099 2007-03-25  Bruno Haible  <bruno@clisp.org>
68100
68101         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
68102         hints is NULL.
68103
68104 2007-03-25  Bruno Haible  <bruno@clisp.org>
68105
68106         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
68107         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
68108
68109 2007-03-25  Bruno Haible  <bruno@clisp.org>
68110
68111         * lib/vasnprintf.c: Include langinfo.h.
68112         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
68113         multithread-safe.
68114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
68115         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
68116         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68117         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68118         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68119         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68120         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68121         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
68122         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68123         Reported by Simon Josefsson.
68124
68125 2007-03-25  Bruno Haible  <bruno@clisp.org>
68126
68127         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
68128         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
68129         * modules/vasnprintf (Depends-on): Add stdint.
68130
68131 2007-03-25  Bruno Haible  <bruno@clisp.org>
68132
68133         * modules/fpieee: New file.
68134         * m4/fpieee.m4: New file.
68135         * modules/isnan-nolibm (Depends-on): Add fpieee.
68136         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68137         * modules/isnanl (Depends-on): Add fpieee.
68138
68139 2007-03-25  Bruno Haible  <bruno@clisp.org>
68140
68141         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68142
68143 2007-03-25  Bruno Haible  <bruno@clisp.org>
68144
68145         Avoid test failures on IRIX 6.5.
68146         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68147         (main): Use it.
68148         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68149         macros.
68150         (main): Use them.
68151
68152 2007-03-25  Bruno Haible  <bruno@clisp.org>
68153
68154         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68155         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68156         exists but doesn't work.
68157         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68158         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68160         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68161         math.h.
68162
68163 2007-03-25  Bruno Haible  <bruno@clisp.org>
68164
68165         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68166         returns inf. Needed on IRIX 6.5.
68167
68168 2007-03-25  Bruno Haible  <bruno@clisp.org>
68169
68170         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68171         (main): Use isnanl instead of x != x idiom.
68172         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68173
68174         * tests/test-frexp.c: Include isnan.h.
68175         (main): Use isnan instead of x != x idiom.
68176         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68177
68178 2007-03-25  Bruno Haible  <bruno@clisp.org>
68179
68180         * tests/test-frexp.c (NaN): New function/macro.
68181         (main): Use it instead of 0.0 / 0.0.
68182         * tests/test-isnan.c (NaN): New function/macro.
68183         (main): Use it instead of 0.0 / 0.0.
68184         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68185         (test_function): Use it instead of 0.0 / 0.0.
68186         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68187         (test_function): Use it instead of 0.0 / 0.0.
68188         * tests/test-snprintf-posix.h (NaN): New function/macro.
68189         (test_function): Use it instead of 0.0 / 0.0.
68190         * tests/test-sprintf-posix.h (NaN): New function/macro.
68191         (test_function): Use it instead of 0.0 / 0.0.
68192         * tests/test-fprintf-posix.h (NaN): New function/macro.
68193         (test_function): Use it instead of 0.0 / 0.0.
68194         * tests/test-printf-posix.h (NaN): New function/macro.
68195         (test_function): Use it instead of 0.0 / 0.0.
68196
68197         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68198
68199 2007-03-25  Bruno Haible  <bruno@clisp.org>
68200
68201         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68202
68203 2007-03-25  Bruno Haible  <bruno@clisp.org>
68204
68205         * lib/regexec.c (merge_state_with_log): Make static.
68206
68207 2007-03-25  Bruno Haible  <bruno@clisp.org>
68208
68209         * lib/trigl.c (kernel_rem_pio2): Make static.
68210
68211 2007-03-25  Bruno Haible  <bruno@clisp.org>
68212
68213         * lib/sincosl.c (sincosl_table): Make static.
68214
68215 2007-03-25  Bruno Haible  <bruno@clisp.org>
68216
68217         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68218         if the compiler does not support C99.
68219
68220 2007-03-25  Bruno Haible  <bruno@clisp.org>
68221
68222         * modules/time (Makefile.am): Ensure all rule action lines start with a
68223         tab.
68224
68225 2007-03-24  Bruno Haible  <bruno@clisp.org>
68226
68227         * modules/tsearch-tests: New file.
68228         * tests/test-tsearch.sh: New file.
68229         * tests/test-tsearch.c: New file, mostly copied from glibc.
68230
68231         * modules/search-tests: New file.
68232         * tests/test-search.c: New file.
68233
68234         * modules/search: New file.
68235         * lib/search_.h: New file, incorporating lib/tsearch.h.
68236         * m4/search_h.m4: New file.
68237         * lib/tsearch.h: Remove file.
68238         * lib/tsearch.c: Include search.h instead of tsearch.h.
68239         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68240         HAVE_TSEARCH.
68241         * modules/tsearch (Files): Remove lib/tsearch.h.
68242         (Depends-on): Add search.
68243         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68244         (Include): Change tsearch.h into search.h.
68245
68246 2007-03-24  Bruno Haible  <bruno@clisp.org>
68247
68248         * modules/fpucw: New file.
68249         * lib/fpucw.h: New file.
68250         * lib/frexp.c: Include fpucw.h.
68251         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68252         (FUNC): Use them.
68253         * lib/printf-frexp.c: Include fpucw.h.
68254         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68255         (FUNC): Use them.
68256         * lib/vasnprintf.c: Include fpucw.h.
68257         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68258         'long double' calculations.
68259         * tests/test-frexpl.c: Include fpucw.h.
68260         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68261         * tests/test-printf-frexpl.c: Include fpucw.h.
68262         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68263         * modules/frexpl (Depends-on): Add fpucw.
68264         * modules/printf-frexpl (Depends-on): Likewise.
68265         * modules/fprintf-posix (Depends-on): Likewise.
68266         * modules/snprintf-posix (Depends-on): Likewise.
68267         * modules/sprintf-posix (Depends-on): Likewise.
68268         * modules/vasnprintf-posix (Depends-on): Likewise.
68269         * modules/vasprintf-posix (Depends-on): Likewise.
68270         * modules/vfprintf-posix (Depends-on): Likewise.
68271         * modules/vsnprintf-posix (Depends-on): Likewise.
68272         * modules/vsprintf-posix (Depends-on): Likewise.
68273         * modules/frexpl-tests (Depends-on): Likewise.
68274         * modules/printf-frexpl-tests (Depends-on): Likewise.
68275
68276 2007-03-24  Bruno Haible  <bruno@clisp.org>
68277
68278         * lib/float+.h: New file.
68279         * lib/isnan.c: Include float+.h.
68280         (SIZE): New macro.
68281         (FUNC): Compare only SIZE bytes of the value.
68282         * lib/vasnprintf.c: Include float+.h.
68283         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68284         SIZEOF_LDBL or SIZEOF_DBL bytes.
68285         * modules/isnan-nolibm (Files): Add lib/float+.h.
68286         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68287         * modules/isnanl (Files): Add lib/float+.h.
68288         * modules/vasnprintf (Files): Add lib/float+.h.
68289
68290 2007-03-24  Bruno Haible  <bruno@clisp.org>
68291
68292         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68293         include isnanl-nolibm.h.
68294
68295 2007-03-24  Bruno Haible  <bruno@clisp.org>
68296
68297         * tests/test-read-file.c (main): Don't produce spurious output for
68298         expected situations. Make the test fail if it encountered unexpected
68299         results.
68300
68301 2007-03-24  Bruno Haible  <bruno@clisp.org>
68302
68303         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68304         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68305
68306 2007-03-24  Bruno Haible  <bruno@clisp.org>
68307
68308         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68309
68310 2007-03-24  Bruno Haible  <bruno@clisp.org>
68311
68312         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68313         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68314
68315         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68316         * modules/utf8-ucs4: Turn into a symbolic link to module
68317         unistr/u8-mbtouc.
68318
68319         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68320         utf8-ucs4-unsafe.
68321         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68322         unistr/u8-mbtouc-unsafe.
68323
68324         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68325         * modules/utf16-ucs4: Turn into a symbolic link to module
68326         unistr/u16-mbtouc.
68327
68328         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68329         utf16-ucs4-unsafe.
68330         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68331         unistr/u16-mbtouc-unsafe.
68332
68333         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68334         * modules/ucs4-utf8: Turn into a symbolic link to module
68335         unistr/u8-ubtomb.
68336
68337         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68338         * modules/ucs4-utf16: Turn into a symbolic link to module
68339         unistr/u16-ubtomb.
68340
68341 2007-03-24  Bruno Haible  <bruno@clisp.org>
68342
68343         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68344         Enable the function only if HAVE_INLINE.
68345         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68346         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68347         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68348         Enable the function only if HAVE_INLINE.
68349         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68350         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68351         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68352         Enable the function only if HAVE_INLINE.
68353         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68354         Enable the function only if HAVE_INLINE.
68355         * modules/utf8-ucs4: Update.
68356         * modules/utf8-ucs4-unsafe: Update.
68357         * modules/utf16-ucs4: Update.
68358         * modules/utf16-ucs4-unsafe: Update.
68359         * modules/ucs4-utf8: Update.
68360         * modules/ucs4-utf16: Update.
68361
68362 2007-03-24  Bruno Haible  <bruno@clisp.org>
68363
68364         * lib/utf8-ucs4.h: Remove file.
68365         * lib/utf8-ucs4-unsafe.h: Remove file.
68366         * lib/utf16-ucs4.h: Remove file.
68367         * lib/utf16-ucs4-unsafe.h: Remove file.
68368         * lib/ucs4-utf8.h: Remove file.
68369         * lib/ucs4-utf16.h: Remove file.
68370         * lib/unistr.h: Include their previous contents.
68371         * m4/utf-ucs4.m4: Remove file.
68372         * m4/ucs4-utf.m4: Remove file.
68373         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68374         (Depends-on): Add unistr/base.
68375         (configure.ac): Remove gl_UTF_UCS4.
68376         (Makefile.am): Update.
68377         (Include): Change to unistr.h.
68378         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68379         (Depends-on): Add unistr/base.
68380         (configure.ac): Remove gl_UTF_UCS4.
68381         (Makefile.am): Update.
68382         (Include): Change to unistr.h.
68383         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68384         (Depends-on): Add unistr/base.
68385         (configure.ac): Remove gl_UTF_UCS4.
68386         (Makefile.am): Update.
68387         (Include): Change to unistr.h.
68388         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68389         (Depends-on): Add unistr/base.
68390         (configure.ac): Remove gl_UTF_UCS4.
68391         (Makefile.am): Update.
68392         (Include): Change to unistr.h.
68393         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68394         (Depends-on): Add unistr/base.
68395         (configure.ac): Remove gl_UCS4_UTF.
68396         (Makefile.am): Update.
68397         (Include): Change to unistr.h.
68398         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68399         (Depends-on): Add unistr/base.
68400         (configure.ac): Remove gl_UCS4_UTF.
68401         (Makefile.am): Update.
68402         (Include): Change to unistr.h.
68403         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68404         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68405         utf8-ucs4-unsafe.h.
68406         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68407         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68408         utf16-ucs4-unsafe.h.
68409         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68410         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68411         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68412         * lib/unistr/u8-strchr.c: Likewise.
68413         * lib/unistr/u8-strrchr.c: Likewise.
68414         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68415         * lib/unistr/u16-strchr.c: Likewise.
68416         * lib/unistr/u16-strrchr.c: Likewise.
68417         * lib/striconveh.c: Update.
68418         * lib/linebreak.c: Update.
68419
68420 2007-03-24  Bruno Haible  <bruno@clisp.org>
68421
68422         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68423         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68424
68425 2007-03-22  Bruno Haible  <bruno@clisp.org>
68426
68427         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68428
68429 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68430
68431         * MODULES.html.sh (File system functions): New module write-any-file.
68432         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68433         * m4/write-any-file.m4: New files.
68434
68435 2007-03-23  Eric Blake  <ebb9@byu.net>
68436
68437         * gnulib-tool: Rearrange space-tab sequences, since some editors
68438         like to eat them.
68439
68440 2007-03-23  Eric Blake  <ebb9@byu.net>
68441
68442         * lib/version-etc.c (version_etc_va): Update license wording to
68443         be more concise.  Recommended by Richard Stallman.
68444
68445 2007-03-22  Bruno Haible  <bruno@clisp.org>
68446
68447         * lib/poll.c (MSG_PEEK): New fallback definition.
68448
68449 2007-03-22  Bruno Haible  <bruno@clisp.org>
68450
68451         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68452         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68453         (main): Update.
68454         Fixes a compilation error on BeOS.
68455
68456 2007-03-22  Bruno Haible  <bruno@clisp.org>
68457
68458         * modules/frexpl-tests: New file.
68459         * tests/test-frexpl.c: New file.
68460
68461         * modules/frexpl: New file.
68462         * m4/frexpl.m4: New file.
68463         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68464         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68466         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68467         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68468         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68469
68470 2007-03-22  Bruno Haible  <bruno@clisp.org>
68471
68472         * lib/frexpl.c: Share code with lib/frexp.c.
68473         * modules/mathl (Files): Add lib/frexp.c.
68474         (Depends-on): Add isnanl-nolibm.
68475
68476 2007-03-22  Bruno Haible  <bruno@clisp.org>
68477
68478         * modules/printf-frexp (Files): Add m4/frexp.m4.
68479         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68480         only if the found frexp function actually works.
68481
68482 2007-03-22  Bruno Haible  <bruno@clisp.org>
68483
68484         * lib/frexp.c: Remove older implementation that uses divisions.
68485
68486 2007-03-21  Bruno Haible  <bruno@clisp.org>
68487
68488         * modules/frexp-tests: New file.
68489         * tests/test-frexp.c: New file.
68490
68491         * modules/frexp: New file.
68492         * lib/frexp.c: New file.
68493         * m4/frexp.m4: New file.
68494         * lib/math_.h (frexp): New declaration.
68495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68496         REPLACE_FREXP.
68497         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68498
68499 2007-03-21  Bruno Haible  <bruno@clisp.org>
68500
68501         * modules/isnanl-tests: New file.
68502         * tests/test-isnanl.c: New file.
68503
68504         * modules/isnanl: New file.
68505         * lib/isnanl.h: New file.
68506         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68507         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68508         gl_FUNC_ISNANL_WORKS.
68509         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68510         New macros.
68511
68512 2007-03-21  Bruno Haible  <bruno@clisp.org>
68513
68514         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68515         lib/isnanl.h.
68516         (Include): Update.
68517         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68518         * lib/vasnprintf.c: Update.
68519         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68520         tests/test-isnanl.h, remove tests/test-isnanl.c.
68521         (Makefile.am): Update.
68522         * tests/test-isnanl-nolibm.c: New file.
68523         * tests/test-isnanl.h: New file.
68524         * tests/test-isnanl.c: Remove file.
68525
68526 2007-03-21  Jim Meyering  <jim@meyering.net>
68527
68528         When trying to open ".", treat ESTALE like EACCES.
68529         * lib/savewd.c (savewd_save): Resort to forking not just upon
68530         failure with EACCES, but also when errno is ESTALE.
68531
68532 2007-03-20  Bruno Haible  <bruno@clisp.org>
68533
68534         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68535         Needed on AIX 5.1. Reported by Matthew Woehlke.
68536
68537 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         Suggestions by Bruno Haible:
68540         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68541         our own.
68542         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68543         * modules/acl (Depends-on): Add gettext.
68544
68545 2007-03-19  Bruno Haible  <bruno@clisp.org>
68546
68547         * modules/iconvme: Remove file.
68548         * lib/iconvme.h: Remove file.
68549         * lib/iconvme.c: Remove file.
68550         * m4/iconvme.m4: Remove file.
68551
68552 2007-03-19  Bruno Haible  <bruno@clisp.org>
68553
68554         * doc/relocatable-maint.texi: Break long shell script line.
68555         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68556
68557 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68558
68559         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68560         handle file_has_acl.
68561         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68562         * lib/acl.c: Move header inclusions and related macro defns into
68563         lib/acl-internal.h.
68564         (S_ISLNK): Remove defn, since that's now done for us.
68565         (file_has_acl): Move to lib/file-has-acl.c.
68566         Call acl_trivial if available.  This is the crucial part of the fix.
68567         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68568         shared within the library.  Rewrite a bit, partly to make it compatible
68569         with the GNU coding style.
68570         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68571         Remove unnecessary double-quotes.
68572         Don't test for acl_to_text; the build will catch that.
68573         Replace acl_entries if it doesn't exist and it is needed.
68574         Check for -lsec and acl_trivial (as used on Solaris 10).
68575         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68576         lib/file-has-acl.c.
68577         (Depends-on): Add sys_stat, for S_ISLNK.
68578
68579 2007-03-19  Ben Pfaff  <blp@gnu.org>
68580
68581         * doc/gnulib.texi: Fix typos.
68582         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68583
68584 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68585
68586         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68587         If size is zero here, buf must be zero.
68588
68589 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68590
68591         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68592         <bruno@clisp.org>.
68593
68594 2007-03-18  Bruno Haible  <bruno@clisp.org>
68595
68596         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68597         Suggested by Eric Blake.
68598
68599 2007-03-18  Ben Pfaff  <blp@gnu.org>
68600
68601         * doc/relocatable.texi: Recommend using as prefix a directory
68602         that does not exist and will never be created.  Based on
68603         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68604         and others.
68605
68606 2007-03-17  Bruno Haible  <bruno@clisp.org>
68607
68608         * lib/fchownat.c: Include lchown.h.
68609
68610 2007-03-17  Bruno Haible  <bruno@clisp.org>
68611
68612         Fix endless loop when the given allocated size was > INT_MAX.
68613         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68614         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68615         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68616         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68617         * lib/sprintf.c (sprintf): Likewise.
68618
68619 2007-03-17  Bruno Haible  <bruno@clisp.org>
68620
68621         * tests/test-argp-2.sh (func_compare): Output a context diff.
68622
68623 2007-03-17  Bruno Haible  <bruno@clisp.org>
68624
68625         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68626         locale's decimal-point character.
68627
68628 2007-03-17  Bruno Haible  <bruno@clisp.org>
68629
68630         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68631         before comparing it. Needed because on some platforms (e.g. x86) a
68632         'long double' occupies less bytes than sizeof (long double).
68633
68634 2007-03-17  Bruno Haible  <bruno@clisp.org>
68635
68636         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68637         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68638         * tests/test-getaddrinfo.c (simple): Likewise.
68639         * tests/test-read-file.c (main): Likewise.
68640
68641 2007-03-17  Bruno Haible  <bruno@clisp.org>
68642
68643         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68644
68645 2007-03-17  Bruno Haible  <bruno@clisp.org>
68646
68647         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68648         unused variable.
68649
68650 2007-03-17  Bruno Haible  <bruno@clisp.org>
68651
68652         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68653         * tests/test-c-strncasecmp.c: Likewise.
68654
68655 2007-03-17  Bruno Haible  <bruno@clisp.org>
68656
68657         * modules/stdlib (Depends-on): Add unistd.
68658         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68659         Needed for MacOS X 10.3.
68660
68661 2007-03-17  Bruno Haible  <bruno@clisp.org>
68662
68663         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68664
68665 2007-03-17  Bruno Haible  <bruno@clisp.org>
68666
68667         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68668
68669 2007-03-17  Bruno Haible  <bruno@clisp.org>
68670
68671         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68672         to reflect files copied from gnulib (with or without modifications).
68673         Suggested by Jim Meyering.
68674
68675 2007-03-17  Eric Blake  <ebb9@byu.net>
68676
68677         * NEWS: Document stdlib change from 2007-02-18.
68678
68679 2007-03-17  Jim Meyering  <jim@meyering.net>
68680
68681         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68682         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68683         someone uses a name containing shell meta-characters.
68684         Reported by Alfred M. Szmidt.
68685
68686         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68687
68688 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68689
68690         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68691         and copy gettext configuration files only if configure.ac contains
68692         a use of AM_GNU_GETTEXT_VERSION.
68693
68694 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68695
68696         * build-aux/bootstrap (gnulib_name): New variable.
68697         (gnulib_tool_options): Use it.
68698
68699 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68700
68701         * tests/test-des.c: Use new namespace.
68702
68703 2007-03-15  Bruno Haible  <bruno@clisp.org>
68704
68705         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68706         Reported by James Youngman <jay@gnu.org>.
68707
68708 2007-03-15  Bruno Haible  <bruno@clisp.org>
68709
68710         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68711         declared prototype. Needed with cc on OSF/1 5.1.
68712
68713 2007-03-15  Bruno Haible  <bruno@clisp.org>
68714
68715         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68716         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68717         (struct gl_list_implementation): Add dispose_fn argument to the
68718         'create_empty', 'create' methods.
68719         (struct gl_list_impl_base): Add field 'dispose_fn'.
68720         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68721         argument.
68722         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68723         dispose_fn argument.
68724         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68725         dispose_fn on the dropped values.
68726         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68727         dispose_fn argument.
68728         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68729         dropped values.
68730         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68731         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68732         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68733         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68734         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68735         argument.
68736         (gl_tree_list_free): Call dispose_fn on the dropped values.
68737         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68738         the dropped values.
68739         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68740         Add dispose_fn argument.
68741         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68742         Call dispose_fn on the dropped values.
68743         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68744         Add dispose_fn argument.
68745         (gl_sublist_create): Initialize the 'dispose_fn' field.
68746         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68747         * tests/test-array_list.c (main): Update.
68748         * tests/test-carray_list.c (main): Update.
68749         * tests/test-avltree_list.c (main): Update.
68750         * tests/test-rbtree_list.c (main): Update.
68751         * tests/test-avltreehash_list.c (main): Update.
68752         * tests/test-rbtreehash_list.c (main): Update.
68753         * tests/test-linked_list.c (main): Update.
68754         * tests/test-linkedhash_list.c (main): Update.
68755         * tests/test-array_oset.c (main): Update.
68756
68757 2007-03-15  Bruno Haible  <bruno@clisp.org>
68758
68759         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68760         (gl_oset_create_empty): Add dispose_fn argument.
68761         (struct gl_oset_implementation): Add dispose_fn argument to
68762         'create_empty' method.
68763         (struct gl_oset_impl_base): Add dispose_fn field.
68764         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68765         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68766         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68767         values.
68768         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68769         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68770         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68771         dropped value.
68772         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68773         dropped value.
68774         * tests/test-array_oset.c (main): Update.
68775         * tests/test-avltree_oset.c (main): Update.
68776         * tests/test-rbtree_oset.c (main): Update.
68777         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68778
68779 2007-03-13  Bruno Haible  <bruno@clisp.org>
68780
68781         * tests/test-stdbool.c (i): Update after last patch.
68782
68783 2007-03-12  Bruno Haible  <bruno@clisp.org>
68784
68785         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68786         the iswprint macro. Needed on Solaris 2.5.1.
68787
68788 2007-03-12  Bruno Haible  <bruno@clisp.org>
68789
68790         * tests/test-printf-frexp.c (main): Declare x as volatile.
68791
68792 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68793
68794         * doc/gnulib.texi (Build robot for gnulib): New section.
68795
68796 2007-03-12  Jim Meyering  <jim@meyering.net>
68797
68798         * build-aux/bootstrap: New file.
68799         * build-aux/bootstrap.conf: New file, from coreutils.
68800
68801 2007-03-11  Bruno Haible  <bruno@clisp.org>
68802
68803         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68804
68805 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68806
68807         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68808         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68809         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68810
68811 2007-03-11  Bruno Haible  <bruno@clisp.org>
68812
68813         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68814         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68815
68816 2007-03-11  Bruno Haible  <bruno@clisp.org>
68817
68818         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68819         formula. Needed for SunPRO C 5.0.
68820
68821 2007-03-11  Bruno Haible  <bruno@clisp.org>
68822
68823         * modules/long-options (Depends-on): Add getopt.
68824
68825 2007-03-11  Bruno Haible  <bruno@clisp.org>
68826
68827         * modules/modechange (Depends-on): Add stdbool.
68828
68829 2007-03-11  Bruno Haible  <bruno@clisp.org>
68830
68831         * modules/i-ring (Depends-on): Add stdbool.
68832
68833 2007-03-11  Bruno Haible  <bruno@clisp.org>
68834
68835         * modules/gc-des (Depends-on): Add stdbool.
68836
68837 2007-03-11  Bruno Haible  <bruno@clisp.org>
68838
68839         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68840
68841 2007-03-11  Bruno Haible  <bruno@clisp.org>
68842
68843         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68844
68845 2007-03-11  Bruno Haible  <bruno@clisp.org>
68846
68847         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68848
68849 2007-03-11  Bruno Haible  <bruno@clisp.org>
68850
68851         * lib/vasnprintf.c (sprintf): Undefine.
68852
68853 2007-03-11  Bruno Haible  <bruno@clisp.org>
68854
68855         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68856         initializers in SunPRO C and Compaq C compilers.
68857
68858 2007-03-11  Bruno Haible  <bruno@clisp.org>
68859
68860         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68861         decrementing code ANSI C compliant.
68862
68863 2007-03-11  Bruno Haible  <bruno@clisp.org>
68864
68865         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68866         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68867
68868 2007-03-11  Bruno Haible  <bruno@clisp.org>
68869
68870         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68871         <stdbool.h> substitute doesn't pass.
68872
68873 2007-03-11  Bruno Haible  <bruno@clisp.org>
68874
68875         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68876
68877 2007-03-11  Bruno Haible  <bruno@clisp.org>
68878
68879         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68880         script, for submission to autobuild.josefsson.org.
68881
68882 2007-03-10  Bruno Haible  <bruno@clisp.org>
68883
68884         * modules/canonicalize-lgpl-tests: New file.
68885         * tests/test-canonicalize-lgpl.sh: New file.
68886         * tests/test-canonicalize-lgpl.c: New file.
68887
68888         * modules/c-strcase-tests: New file.
68889         * tests/test-c-strcase.sh: New file.
68890         * tests/test-c-strcasecmp.c: New file.
68891         * tests/test-c-strncasecmp.c: New file.
68892
68893         * modules/atexit-tests: New file.
68894         * tests/test-atexit.sh: New file.
68895         * tests/test-atexit.c: New file.
68896
68897 2007-03-10  Bruno Haible  <bruno@clisp.org>
68898
68899         * tests/test-binary-io.sh: Use temporary filenames that are not so
68900         likely to clash with those of other tests (in a parallel make).
68901         * tests/test-binary-io.c: Likewise.
68902
68903 2007-03-10  Bruno Haible  <bruno@clisp.org>
68904
68905         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68906         fallback; use #error instead.
68907         Suggested by Simon Josefsson.
68908
68909 2007-03-10  Bruno Haible  <bruno@clisp.org>
68910
68911         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68912         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68913         first and the last.
68914
68915 2007-03-10  Bruno Haible  <bruno@clisp.org>
68916
68917         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68918
68919 2007-03-10  Bruno Haible  <bruno@clisp.org>
68920
68921         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68922         "make distcheck".
68923         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68924         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68925         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68926
68927 2007-03-10  Bruno Haible  <bruno@clisp.org>
68928
68929         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68930         variable.
68931         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68932         variable.
68933
68934 2007-03-09  Eric Blake  <ebb9@byu.net>
68935         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68936
68937         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68938         types are not being provided by gnulib.
68939         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68940         types are supported.
68941
68942 2007-03-10  Bruno Haible  <bruno@clisp.org>
68943
68944         * lib/stdio_.h (__attribute__): New macro.
68945         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68946         vsprintf): Specify __attribute__ __format__ for GCC.
68947         Suggested by Eric Blake.
68948
68949 2007-03-09  Bruno Haible  <bruno@clisp.org>
68950
68951         * modules/printf-posix-tests: New file.
68952         * tests/test-printf-posix.sh: New file.
68953         * tests/test-printf-posix.c: New file.
68954
68955         * modules/printf-posix: New file.
68956         * lib/printf.c: New file.
68957         * m4/printf-posix-rpl.m4: New file.
68958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68959         REPLACE_PRINTF.
68960         * lib/stdio_.h (printf): New declaration.
68961         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68962         ____strfmon____): New macros.
68963         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68964         REPLACE_PRINTF.
68965
68966 2007-03-09  Bruno Haible  <bruno@clisp.org>
68967
68968         * tests/test-vasnprintf-posix2.sh: New file.
68969         * tests/test-vasnprintf-posix2.c: New file.
68970         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68971         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68972         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68973
68974         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68975         a locale dependent decimal point, rather than always '.'.
68976
68977 2007-03-09  Eric Blake  <ebb9@byu.net>
68978
68979         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68980         spite of platforms like Tandem/NSK that define it to -1.
68981
68982 2007-03-08  Bruno Haible  <bruno@clisp.org>
68983
68984         * modules/vprintf-posix-tests: New file.
68985         * tests/test-vprintf-posix.sh: New file.
68986         * tests/test-vprintf-posix.c: New file.
68987         * tests/test-printf-posix.h: New file.
68988
68989         * modules/vprintf-posix: New file.
68990         * lib/vprintf.c: New file.
68991         * m4/vprintf-posix.m4: New file.
68992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68993         REPLACE_VPRINTF.
68994         * lib/stdio_.h (vprintf): New declaration.
68995         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68996         REPLACE_VPRINTF.
68997
68998 2007-03-08  Bruno Haible  <bruno@clisp.org>
68999
69000         * modules/fprintf-posix-tests: New file.
69001         * tests/test-fprintf-posix.sh: New file.
69002         * tests/test-fprintf-posix.c: New file.
69003
69004         * modules/fprintf-posix: New file.
69005         * lib/fprintf.c: New file.
69006         * m4/fprintf-posix.m4: New file.
69007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
69008         REPLACE_FPRINTF.
69009         * lib/stdio_.h (fprintf): New declaration.
69010         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
69011         REPLACE_FPRINTF.
69012
69013 2007-03-08  Bruno Haible  <bruno@clisp.org>
69014
69015         * modules/vfprintf-posix-tests: New file.
69016         * tests/test-vfprintf-posix.sh: New file.
69017         * tests/test-vfprintf-posix.c: New file.
69018         * tests/test-fprintf-posix.h: New file.
69019         * tests/test-fprintf-posix.out: New file.
69020
69021         * modules/vfprintf-posix: New file.
69022         * lib/vfprintf.c: New file.
69023         * m4/vfprintf-posix.m4: New file.
69024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
69025         REPLACE_VFPRINTF.
69026         * lib/stdio_.h (vfprintf): New declaration.
69027         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
69028         REPLACE_VFPRINTF.
69029
69030 2007-03-08  Bruno Haible  <bruno@clisp.org>
69031
69032         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
69033
69034 2007-03-08  Bruno Haible  <bruno@clisp.org>
69035
69036         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
69037         instead of 'expr' invocations.
69038         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69039         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69040         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69041         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69042         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69043         Suggested by Paul Eggert.
69044
69045 2007-03-08  Bruno Haible  <bruno@clisp.org>
69046
69047         * modules/fseterr-tests: New file.
69048         * tests/test-fseterr.c: New file.
69049
69050         * modules/fseterr: New file.
69051         * lib/fseterr.h: New file.
69052         * lib/fseterr.c: New file.
69053
69054 2007-03-08  Bruno Haible  <bruno@clisp.org>
69055
69056         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
69057         * lib/getopt_.h: Likewise.
69058         * lib/mbswidth.h: Likewise.
69059         * lib/setenv.h: Likewise.
69060         * lib/vasnprintf.h: Likewise.
69061         * lib/vasprintf.h: Likewise.
69062         * lib/verror.h: Likewise.
69063         * lib/xsetenv.h: Likewise.
69064         * lib/xvasprintf.h: Likewise.
69065
69066 2007-03-08  Jim Meyering  <jim@meyering.net>
69067
69068         * users.txt: Add parted.
69069
69070         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
69071
69072 2007-03-07  Bruno Haible  <bruno@clisp.org>
69073
69074         * m4/printf.m4: Make the shell script snippets copy&pastable.
69075
69076 2007-03-02  Bruno Haible  <bruno@clisp.org>
69077
69078         * lib/netinet_in_.h: New file.
69079         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
69080         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69081         * modules/netinet_in (Files): Add lib/netinet_in_.h.
69082         (Depends-on): Add absolute-header.
69083         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
69084         into netinet/in.h.
69085
69086 2007-03-03  Bruno Haible  <bruno@clisp.org>
69087
69088         * lib/sys_select_.h: New file.
69089         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
69090         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
69091         * modules/sys_select (Files): Add lib/sys_select_.h.
69092         (Depends-on): Add absolute-header.
69093         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
69094         into sys/select.h.
69095
69096 2007-03-02  Bruno Haible  <bruno@clisp.org>
69097
69098         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
69099         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
69100         values.
69101         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
69102         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
69103         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
69104         * modules/sys_socket (Depends-on): Add absolute-header.
69105         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
69106         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
69107         (Include): Remove requirement of inclusion of <sys/types.h>.
69108
69109 2007-03-02  Bruno Haible  <bruno@clisp.org>
69110
69111         * lib/byteswap_.h (bswap_32): Fix formula.
69112
69113 2007-03-06  Bruno Haible  <bruno@clisp.org>
69114
69115         * modules/sprintf-posix-tests: New file.
69116         * tests/test-sprintf-posix.c: New file.
69117
69118         * modules/sprintf-posix: New file.
69119         * lib/sprintf.c: New file.
69120         * m4/sprintf-posix.m4: New file.
69121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
69122         REPLACE_SPRINTF.
69123         * lib/stdio_.h (sprintf): New declaration.
69124         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
69125         REPLACE_SPRINTF.
69126
69127 2007-03-06  Bruno Haible  <bruno@clisp.org>
69128
69129         * modules/vsprintf-posix-tests: New file.
69130         * tests/test-vsprintf-posix.c: New file.
69131         * tests/test-sprintf-posix.h: New file.
69132
69133         * modules/vsprintf-posix: New file.
69134         * lib/vsprintf.c: New file.
69135         * m4/vsprintf-posix.m4: New file.
69136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69137         REPLACE_VSPRINTF.
69138         * lib/stdio_.h (vsprintf): New declaration.
69139         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69140         REPLACE_VSPRINTF.
69141
69142 2007-03-06  Bruno Haible  <bruno@clisp.org>
69143
69144         * modules/vsnprintf (Depend-on): Remove minmax.
69145
69146 2007-03-06  Bruno Haible  <bruno@clisp.org>
69147
69148         * modules/snprintf-posix-tests: New file.
69149         * tests/test-snprintf-posix.c: New file.
69150
69151         * modules/snprintf-posix: New file.
69152         * m4/snprintf-posix.m4: New file.
69153         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69154         gl_FUNC_SNPRINTF.
69155         (gl_FUNC_SNPRINTF): Invoke it.
69156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69157         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69158         is set.
69159         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69160
69161 2007-03-06  Bruno Haible  <bruno@clisp.org>
69162
69163         * modules/vsnprintf-posix-tests: New file.
69164         * tests/test-vsnprintf-posix.c: New file.
69165         * tests/test-snprintf-posix.h: New file.
69166
69167         * modules/vsnprintf-posix: New file.
69168         * m4/vsnprintf-posix.m4: New file.
69169         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69170         gl_FUNC_VSNPRINTF.
69171         (gl_FUNC_VSNPRINTF): Invoke it.
69172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69173         * lib/stdio_.h (vsnprintf): Define as a replacement if
69174         REPLACE_VSNPRINTF is set.
69175         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69176
69177 2007-03-06  Bruno Haible  <bruno@clisp.org>
69178
69179         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69181
69182 2007-03-06  Bruno Haible  <bruno@clisp.org>
69183
69184         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69185         (asinl): Declare also if HAVE_DECL_ASINL is set.
69186         (atanl): Declare also if HAVE_DECL_ATANL is set.
69187         (ceill): Declare also if HAVE_DECL_CEILL is set.
69188         (cosl): Declare also if HAVE_DECL_COSL is set.
69189         (expl): Declare also if HAVE_DECL_EXPL is set.
69190         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69191         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69192         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69193         (logl): Declare also if HAVE_DECL_LOGL is set.
69194         (sinl): Declare also if HAVE_DECL_SINL is set.
69195         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69196         (tanl): Declare also if HAVE_DECL_TANL is set.
69197         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69199         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69200         declaration of frexpl, ldexpl.
69201         * modules/printf-frexpl (Depends-on): Add math.
69202         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69203
69204 2007-03-05  Bruno Haible  <bruno@clisp.org>
69205
69206         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69207         frexpl and ldexpl are declared.
69208         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69209
69210 2007-03-05  Bruno Haible  <bruno@clisp.org>
69211
69212         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69213         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69214
69215 2007-03-05  Bruno Haible  <bruno@clisp.org>
69216
69217         * lib/stdio_.h: Include <stddef.h>.
69218
69219 2007-03-05  Bruno Haible  <bruno@clisp.org>
69220
69221         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69222
69223 2007-03-05  Bruno Haible  <bruno@clisp.org>
69224
69225         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69226         NetBSD 4, from Ralf Wildenhues.
69227
69228 2007-03-04  Bruno Haible  <bruno@clisp.org>
69229
69230         * lib/vasprintf.h: Update #if logic for the case when the functions
69231         exist but are overridden.
69232
69233 2007-03-04  Bruno Haible  <bruno@clisp.org>
69234
69235         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69236         implementations: glibc-2.4 and MacOS X 10.3.
69237         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69238         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69239         * tests/test-vasprintf-posix.c (test_function): Likewise.
69240
69241 2007-03-04  Bruno Haible  <bruno@clisp.org>
69242
69243         * modules/vasprintf-posix-tests: New file.
69244         * tests/test-vasprintf-posix.c: New file.
69245
69246         * modules/vasprintf-posix: New file.
69247         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69248         defined.
69249         * m4/vasprintf-posix.m4: New file.
69250         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69251         gl_FUNC_VASPRINTF.
69252         (gl_FUNC_VASPRINTF): Invoke it.
69253         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69254         here.
69255         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69256
69257 2007-03-04  Bruno Haible  <bruno@clisp.org>
69258
69259         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69260         REPLACE_GETTIMEOFDAY.
69261         * modules/sys_time (Makefile.am): Likewise.
69262         * m4/sys_time_h.m4: Likewise.
69263         * m4/gettimeofday.m4: Likewise.
69264
69265 2007-03-04  Bruno Haible  <bruno@clisp.org>
69266
69267         * modules/vasnprintf-posix-tests: New file.
69268         * tests/test-vasnprintf-posix.c: New file.
69269
69270         * modules/vasnprintf-posix: New file.
69271         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69272         printf-frexpl.h.
69273         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69274         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69275         REPLACE_VASNPRINTF is defined.
69276         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69277         gl_FUNC_VASNPRINTF.
69278         (gl_FUNC_VASNPRINTF): Invoke it.
69279         * m4/vasnprintf-posix.m4: New file.
69280         * m4/printf.m4: New file.
69281
69282 2007-03-04  Bruno Haible  <bruno@clisp.org>
69283
69284         Compile progreloc.c only if --enable-relocatable is specified.
69285         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69286         if --enable-relocatable was specified.
69287         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69288         lib_SOURCES.
69289
69290 2007-03-04  Jim Meyering  <jim@meyering.net>
69291
69292         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69293         Use it consistently, rather than enumerating errno constants.
69294
69295 2007-03-04  Bruno Haible  <bruno@clisp.org>
69296
69297         * modules/xvasprintf-tests: New file.
69298         * tests/test-xvasprintf.c: New file.
69299
69300         * modules/vasprintf-tests: New file.
69301         * tests/test-vasprintf.c: New file.
69302
69303         * modules/vasnprintf-tests: New file.
69304         * tests/test-vasnprintf.c: New file.
69305
69306         * modules/vsnprintf-tests: New file.
69307         * tests/test-vsnprintf.c: New file.
69308
69309         * modules/snprintf-tests: New file.
69310         * tests/test-snprintf.c: New file.
69311
69312 2007-03-04  Bruno Haible  <bruno@clisp.org>
69313
69314         Compile relocatable.c only if --enable-relocatable is specified.
69315         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69316         gl_RELOCATABLE_LIBRARY.
69317         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69318         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69319         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69320         gl_RELOCATABLE_LIBRARY.
69321         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69322         (Makefile.am): Remove lib_SOURCES.
69323         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69324         gl_RELOCATABLE_LIBRARY.
69325         (Makefile.am): Remove lib_SOURCES.
69326         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69327         always.
69328         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69329         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69330
69331 2007-03-04  Bruno Haible  <bruno@clisp.org>
69332
69333         * modules/argmatch-tests: New file.
69334         * tests/test-argmatch.c: New file.
69335
69336         * tests/test-allocsa.c (main): Halve the number of loop runs.
69337
69338         * modules/alloca-opt-tests: New file.
69339         * tests/test-alloca-opt.c: New file.
69340
69341 2007-03-04  Jim Meyering  <jim@meyering.net>
69342
69343         Work around difference between Linux ACLs and Solaris 10 ZFS.
69344         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69345         for EINVAL.
69346
69347 2007-03-03  Bruno Haible  <bruno@clisp.org>
69348
69349         * modules/relocatable-prog (Depends-on): Add back progreloc's
69350         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69351
69352 2007-03-03  Bruno Haible  <bruno@clisp.org>
69353
69354         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69355         * modules/relocatable-lib: New file.
69356
69357 2007-03-03  Bruno Haible  <bruno@clisp.org>
69358
69359         * modules/relocatable-prog: Renamed from modules/relocatable.
69360         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69361
69362 2007-03-03  Bruno Haible  <bruno@clisp.org>
69363
69364         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69365         m4/relocatable-lib.m4.
69366         (Depends-on): Remove 'relocatable'.
69367         (configure.ac): Add gl_RELOCATABLE_NOP.
69368
69369 2007-03-03  Bruno Haible  <bruno@clisp.org>
69370
69371         * modules/relocatable-prog-wrapper: New file.
69372         * modules/relocatable (Depends-on): Add it. Remove all other
69373         dependencies except progname.
69374         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69375
69376         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69377         (gl_FUNC_STRERROR): Nop.
69378         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69379
69380         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69381         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69382
69383         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69384         (gl_FUNC_READLINK): Update.
69385
69386         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69387
69388 2007-03-03  Bruno Haible  <bruno@clisp.org>
69389
69390         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69391         * modules/xreadlink (Depends-on): Add unistd.
69392         * modules/xreadlink-with-size (Depends-on): Likewise.
69393
69394 2007-03-03  Bruno Haible  <bruno@clisp.org>
69395
69396         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69397         extracted from gt_FUNC_SETENV.
69398         (gt_FUNC_SETENV): Remove macro.
69399         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69400         remove gt_FUNC_SETENV.
69401
69402 2007-03-03  Bruno Haible  <bruno@clisp.org>
69403
69404         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69405         ENABLE_RELOCATABLE here.
69406         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69407
69408 2007-03-03  Bruno Haible  <bruno@clisp.org>
69409
69410         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69411         * tests/test-rbtreehash_list.c: Include progname.h.
69412         (main): Call set_program_name.
69413
69414         * modules/rbtree-oset-tests (Depends-on): Add progname.
69415         * tests/test-rbtree_oset.c: Include progname.h.
69416         (main): Call set_program_name.
69417
69418         * modules/rbtree-list-tests (Depends-on): Add progname.
69419         * tests/test-rbtree_list.c: Include progname.h.
69420         (main): Call set_program_name.
69421
69422         * modules/linked-list-tests (Depends-on): Add progname.
69423         * tests/test-linked_list.c: Include progname.h.
69424         (main): Call set_program_name.
69425
69426 2007-03-03  Bruno Haible  <bruno@clisp.org>
69427
69428         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69429         All uses of __restrict changed to _Restrict_.
69430         * lib/glob_.h (__restrict): Remove macro.
69431
69432 2007-03-02  Bruno Haible  <bruno@clisp.org>
69433
69434         * modules/gettext (configure.ac): Require gettext infrastructure
69435         from version 0.16.1.
69436
69437 2007-03-02  Bruno Haible  <bruno@clisp.org>
69438
69439         * modules/linkedhash-list-tests (Depends-on): Add progname.
69440         * tests/test-linkedhash_list.c: Include progname.h.
69441         (main): Call set_program_name.
69442
69443         * modules/carray-list-tests (Depends-on): Add progname.
69444         * tests/test-carray_list.c: Include progname.h.
69445         (main): Call set_program_name.
69446
69447         * modules/avltreehash-list-tests (Depends-on): Add progname.
69448         * tests/test-avltreehash_list.c: Include progname.h.
69449         (main): Call set_program_name.
69450
69451         * modules/avltree-oset-tests (Depends-on): Add progname.
69452         * tests/test-avltree_oset.c: Include progname.h.
69453         (main): Call set_program_name.
69454
69455         * modules/avltree-list-tests (Depends-on): Add progname.
69456         * tests/test-avltree_list.c: Include progname.h.
69457         (main): Call set_program_name.
69458
69459         * modules/array-oset-tests (Depends-on): Add progname.
69460         * tests/test-array_oset.c: Include progname.h.
69461         (main): Call set_program_name.
69462
69463         * modules/array-list-tests (Depends-on): Add progname.
69464         * tests/test-array_list.c: Include progname.h.
69465         (main): Call set_program_name.
69466
69467         * modules/argp-tests (Depends-on): Add progname.
69468         * tests/test-argp.c: Include argp.h first. Include progname.h.
69469         (main): Call set_program_name.
69470
69471 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69472
69473         * doc/gnulib-tool.texi (Initial import): Reword description of
69474         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69475         limited effect even if defined after the first system include.
69476
69477 2007-03-01  Bruno Haible  <bruno@clisp.org>
69478
69479         * build-aux/config.libpath: Update to libtool-1.5.22.
69480         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69481
69482 2007-03-01  Bruno Haible  <bruno@clisp.org>
69483
69484         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69485         foo_CFLAGS.
69486         Reported by Ralf Wildenhues.
69487
69488 2007-03-01  Bruno Haible  <bruno@clisp.org>
69489
69490         * build-aux/install-reloc: Remove object files left over by some
69491         compilers.
69492         Reported by Ralf Wildenhues.
69493
69494 2007-03-01  Bruno Haible  <bruno@clisp.org>
69495
69496         * build-aux/install-reloc: Break long lines.
69497
69498 2007-03-01  Bruno Haible  <bruno@clisp.org>
69499
69500         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69501         Reported by Ralf Wildenhues.
69502
69503 2007-03-01  Bruno Haible  <bruno@clisp.org>
69504
69505         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69506         include ordering constraints.
69507
69508 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69509
69510         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69511         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69512         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69513         as another example.
69514         * lib/time_.h: Fix misspelling.
69515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69516         Require gl_HEADER_TIME_H_DEFAULTS.
69517         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69518         * m4/time_r.m4 (gl_TIME_R): Likewise.
69519         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69520
69521 2007-03-01  Bruno Haible  <bruno@clisp.org>
69522
69523         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69524         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69525
69526 2007-03-01  Jim Meyering  <jim@meyering.net>
69527
69528         * modules/xreadlink (Maintainer): Add my name.
69529         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69530
69531 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69532             Bruno Haible  <bruno@clisp.org>
69533
69534         * build-aux/install-reloc: Compile also c-ctype.c.
69535         * build-aux/relocatable.sh.in: New file.
69536         * doc/relocatable.texi: New file.
69537         * doc/relocatable-maint.texi: New file.
69538         * doc/gnulib.texi: Include relocatable-maint.texi.
69539         * lib/progreloc.c: Include unistd.h unconditionally.
69540         * lib/relocwrapper.c: Include unistd.h unconditionally.
69541         Include c-ctype.h.
69542         (add_dotbin): Use c_tolower.
69543         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69544         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69545         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69546         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69547         to m4/relocatable-lib.m4.
69548         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69549         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69550         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69551         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69552         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69553         * modules/relocatable: New file.
69554         * modules/relocatable-lib: New file.
69555         * modules/relocatable-script: New file.
69556
69557 2007-02-28  Bruno Haible  <bruno@clisp.org>
69558
69559         Import --enable-relocatable infrastructure.
69560         * build-aux/config.libpath: New file, from GNU gettext.
69561         * build-aux/install-reloc: New file, from GNU gettext.
69562         * build-aux/reloc-ldflags: New file, from GNU gettext.
69563         * lib/relocatable.h: New file, from GNU gettext.
69564         * lib/relocatable.c: New file, from GNU gettext.
69565         * lib/relocwrapper.c: New file, from GNU gettext.
69566         * m4/relocatable.m4: New file, from GNU gettext.
69567
69568 2007-02-28  Bruno Haible  <bruno@clisp.org>
69569
69570         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69571
69572         * modules/xreadlink: New file, from GNU gettext with modifications.
69573         * lib/xreadlink.c: New file, from GNU gettext.
69574         * lib/xreadlink.h: Add comments.
69575         (xreadlink): New declaration.
69576
69577         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69578         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69579         lib/xreadlink-with-size.c.
69580         (configure.ac): Remove gl_XREADLINK invocation.
69581         (Makefile.am): Augment lib_SOURCES.
69582         * m4/xreadlink.m4: Remove file.
69583         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69584         (xreadlink_with_size): Renamed from xreadink.
69585         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69586         * modules/canonicalize (Depends-on): Replace xreadlink with
69587         xreadlink-with-size.
69588         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69589
69590 2007-02-25  Jim Meyering  <jim@meyering.net>
69591
69592         * build-aux/announce-gen: When complaining about excess arguments,
69593         list them.
69594
69595 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69596
69597         * README: Document signed integer overflow situation more
69598         accurately.
69599
69600 2007-02-25  Bruno Haible  <bruno@clisp.org>
69601
69602         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69603         'a' or 'A' conversion.
69604
69605 2007-02-25  Bruno Haible  <bruno@clisp.org>
69606
69607         * modules/filename: Renamed from modules/pathname.
69608         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69609         lib/concatpath.c with lib/concat-filename.c.
69610         (Makefile.am): Update.
69611         (Include): Replace pathname.h with filename.h.
69612         * lib/filename.h: Renamed from lib/pathname.h.
69613         (concatenated_filename): Renamed from concatenated_pathname.
69614         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69615         (concatenated_filename): Renamed from concatenated_pathname.
69616         * lib/findprog.c: Include filename.h instead of pathname.h.
69617         (find_in_path): Update.
69618         * lib/javacomp.c: Include filename.h instead of pathname.h.
69619         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69620         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69621         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69622         is_oldgcj_14_13_usable, is_javac_usable): Update.
69623         * lib/javaexec.c: Include filename.h instead of pathname.h.
69624         (execute_java_class): Update.
69625         * modules/findprog: Update.
69626         * modules/javacomp: Update.
69627         * modules/javaexec: Update.
69628         * MODULES.html.sh (File system functions): Add 'filename', remove
69629         'pathname'.
69630
69631 2007-02-25  Bruno Haible  <bruno@clisp.org>
69632
69633         * modules/printf-frexpl-tests: New file.
69634         * tests/test-printf-frexpl.c: New file.
69635
69636         * modules/printf-frexpl: New file.
69637         * lib/printf-frexpl.h: New file.
69638         * lib/printf-frexpl.c: New file.
69639         * m4/printf-frexpl.m4: New file.
69640
69641 2007-02-25  Bruno Haible  <bruno@clisp.org>
69642
69643         * modules/printf-frexp-tests: New file.
69644         * tests/test-printf-frexp.c: New file.
69645
69646         * modules/printf-frexp: New file.
69647         * lib/printf-frexp.h: New file.
69648         * lib/printf-frexp.c: New file.
69649         * m4/printf-frexp.m4: New file.
69650
69651 2007-02-25  Bruno Haible  <bruno@clisp.org>
69652
69653         Assume automake >= 1.10 for the tests.
69654         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69655         * modules/arctwo-tests: Likewise.
69656         * modules/argp-tests: Likewise.
69657         * modules/avltree-list-tests: Likewise.
69658         * modules/avltree-oset-tests: Likewise.
69659         * modules/avltreehash-list-tests: Likewise.
69660         * modules/carray-list-tests: Likewise.
69661         * modules/crc-tests: Likewise.
69662         * modules/des-tests: Likewise.
69663         * modules/gc-arcfour-tests: Likewise.
69664         * modules/gc-arctwo-tests: Likewise.
69665         * modules/gc-des-tests: Likewise.
69666         * modules/gc-hmac-md5-tests: Likewise.
69667         * modules/gc-hmac-sha1-tests: Likewise.
69668         * modules/gc-md2-tests: Likewise.
69669         * modules/gc-md4-tests: Likewise.
69670         * modules/gc-md5-tests: Likewise.
69671         * modules/gc-pbkdf2-sha1-tests: Likewise.
69672         * modules/gc-rijndael-tests: Likewise.
69673         * modules/gc-sha1-tests: Likewise.
69674         * modules/gc-tests: Likewise.
69675         * modules/getaddrinfo-tests: Likewise.
69676         * modules/hmac-md5-tests: Likewise.
69677         * modules/hmac-sha1-tests: Likewise.
69678         * modules/linked-list-tests: Likewise.
69679         * modules/linkedhash-list-tests: Likewise.
69680         * modules/lock-tests: Likewise.
69681         * modules/md2-tests: Likewise.
69682         * modules/md4-tests: Likewise.
69683         * modules/md5-tests: Likewise.
69684         * modules/rbtree-list-tests: Likewise.
69685         * modules/rbtree-oset-tests: Likewise.
69686         * modules/rbtreehash-list-tests: Likewise.
69687         * modules/read-file-tests: Likewise.
69688         * modules/rijndael-tests: Likewise.
69689         * modules/stdint-tests: Likewise.
69690         * modules/tls-tests: Likewise.
69691
69692 2007-02-24  Bruno Haible  <bruno@clisp.org>
69693
69694         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69695         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69696         function; instead check whether isnan with a double argument links.
69697         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69698         function; instead check whether isnan with a 'long double' argument
69699         links.
69700         Reported by Eric Blake <ebb9@byu.net>.
69701
69702 2007-02-24  Bruno Haible  <bruno@clisp.org>
69703
69704         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69705         defined.
69706         * lib/isnanl.c: Remove all code. Just include isnan.c.
69707         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69708
69709 2007-02-25  Jim Meyering  <jim@meyering.net>
69710
69711         Avoid conflicting types for 'unsetenv' on FreeBSD.
69712         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69713         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69714         in stdlib.h.
69715
69716 2007-02-24  Bruno Haible  <bruno@clisp.org>
69717
69718         * modules/isnanl-nolibm-tests: New file.
69719         * tests/test-isnanl.c: New file.
69720
69721         * modules/isnanl-nolibm: New file.
69722         * lib/isnanl.h: New file.
69723         * lib/isnanl.c: New file.
69724         * m4/isnanl.m4: New file.
69725
69726 2007-02-24  Bruno Haible  <bruno@clisp.org>
69727
69728         * modules/isnan-nolibm-tests: New file.
69729         * tests/test-isnan.c: New file.
69730
69731         * modules/isnan-nolibm: New file.
69732         * lib/isnan.h: New file.
69733         * lib/isnan.c: New file.
69734         * m4/isnan.m4: New file.
69735
69736 2007-02-24  Bruno Haible  <bruno@clisp.org>
69737
69738         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69739         assume that an exponent fits in 20 bits.
69740
69741 2007-02-24  Jim Meyering  <jim@meyering.net>
69742
69743         * m4/regex.m4: Update the description of the configure-time option,
69744         --without-included-regex, to state accurately what the defaults are,
69745         and perhaps to give people an idea why using this option is risky.
69746
69747 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69748
69749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69750         loops on small arguments.  This attempts to avoid the problem
69751         Bruno Haible reported for AIX 4.3.2 in
69752         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69753
69754 2007-02-23  Bruno Haible  <bruno@clisp.org>
69755
69756         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69757         Needed for help2man.
69758
69759 2007-02-23  Karl Berry  <karl@gnu.org>
69760
69761         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69762         exists, foo.h should be cvs-ignored, not committed.
69763
69764 2007-02-23  Eric Blake  <ebb9@byu.net>
69765
69766         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69767         * lib/stat-time.h (includes): Likewise.
69768         * lib/utimecmp.c (includes): Likewise.
69769         * lib/utimens.h (includes): Likewise.
69770         * lib/getdate.y (includes): Also include "timespec.h" for use
69771         internal to the module.
69772         * modules/utimens (Depends-on): Revert yesterday's patch.
69773         * modules/nanosleep (Depends-on): Add missing dependency.
69774
69775 2007-02-22  Bruno Haible  <bruno@clisp.org>
69776
69777         * lib/glob.c: Don't include getlogin_r.h.
69778
69779 2007-02-22  Jim Meyering  <jim@meyering.net>
69780
69781         * modules/utimens (Depends-on): Add timespec, required for
69782         utimens.h's inclusion of timespec.h.
69783
69784 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69785
69786         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69787         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69788         Schwab in
69789         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69790         I'll try to think of a better way to fix the Solaris problem.
69791
69792         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69793         like glibc; on Solaris 10, it fails with errno == EINVAL.
69794         POSIX says the behavior is unspecified if the first argument is NULL,
69795         so play it safe and never pass NULL to the system getcwd.
69796
69797 2007-02-21  Jim Meyering  <jim@meyering.net>
69798
69799         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69800         of gettimeofday.  It would conflict with the one now always
69801         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69802         an IRIX 6.5 build failure.
69803
69804 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69805
69806         Minor fixups to port to Solaris 10 with Sun C 5.8.
69807         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69808         * modules/getcwd (Depends-on): Add dirfd.
69809         * lib/putenv.c (putenv): #undef it.
69810         (rpl_putenv): New decl.
69811         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69812
69813 2007-02-20  Bruno Haible  <bruno@clisp.org>
69814
69815         * modules/stdio-tests: New file.
69816         * tests/test-stdio.c: New file.
69817
69818         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69819         (Depends-on): Add stdio.
69820         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69821         (Include): Use <stdio.h> instead of vsnprintf.h.
69822         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69823         HAVE_DECL_VSNPRINTF.
69824         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69825
69826         * modules/snprintf (Files): Remove lib/snprintf.h.
69827         (Depends-on): Add stdio.
69828         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69829         (Include): Use <stdio.h> instead of snprintf.h.
69830         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69831         HAVE_DECL_SNPRINTF.
69832         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69833         * lib/getaddrinfo.c: Likewise.
69834
69835         * modules/stdio: New file.
69836         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69837         * lib/snprintf.h: Remove file.
69838         * lib/vsnprintf.h: Remove file.
69839         * lib/.cppi-disable: Remove snprintf.h.
69840         * m4/stdio_h.m4: New file.
69841         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69842
69843 2007-02-20  Jim Meyering  <jim@meyering.net>
69844
69845         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69846         used by e.g., mingw.  From Bruno Haible.
69847
69848 2007-02-19  Bruno Haible  <bruno@clisp.org>
69849
69850         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69851         warnings.
69852         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69853
69854 2007-02-19  Bruno Haible  <bruno@clisp.org>
69855
69856         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69857         from mingw users.
69858
69859 2007-02-19  Bruno Haible  <bruno@clisp.org>
69860
69861         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69862         warnings.
69863         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69864
69865 2007-02-19  Jim Meyering  <jim@meyering.net>
69866
69867         Don't use FD after a successful "fdopendir (fd)".
69868         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69869         Reset it by calling dirfd on the just-obtained DIR*.
69870
69871         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69872         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69873
69874 2007-02-18  Bruno Haible  <bruno@clisp.org>
69875
69876         * lib/readlink.c: Include <unistd.h>.
69877         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69878         HAVE_READLINK.
69879         * modules/readlink (Depends-on): Add unistd.
69880         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69881         (Include): Add <unistd.h>.
69882
69883         * lib/getlogin_r.h: Remove file.
69884         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69885         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69886         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69887         HAVE_DECL_GETLOGIN_R.
69888         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69889         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69890         (Include): Use <unistd.h> instead of getlogin_r.h.
69891
69892         * lib/getcwd.h: Remove file.
69893         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69894         * lib/xgetcwd.c: Likewise.
69895         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69896         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69897         * modules/getcwd (Files): Remove lib/getcwd.h.
69898         (Depends-on): Add unistd.
69899         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69900         (Include): Use <unistd.h> instad of getcwd.h.
69901
69902         * lib/ftruncate.c: Include <unistd.h> first.
69903         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69904         Set HAVE_FTRUNCATE.
69905         * modules/ftruncate (Depends-on): Add unistd.
69906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69907
69908         * lib/fchdir.c: Include <unistd.h> first.
69909         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69910         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69911         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69912         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69913         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69914
69915         * lib/dup2.c: Include <unistd.h> first.
69916         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69917         HAVE_DUP2.
69918         * modules/dup2 (Depends-on): Add unistd.
69919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69920
69921         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69922         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69923         REPLACE_CHOWN. Don't define chown as a macro here.
69924         * modules/chown (Depends-on): Add unistd.
69925         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69926
69927         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69928         Add definition for GL_LINK_WARNING.
69929         (chown, dup2): New declarations.
69930         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69931         link warning.
69932         (ftruncate): New declaration.
69933         (getcwd): New declaration, taken from old getcwd.h.
69934         (getlogin_r): New declaration, taken from old getlogin_r.h.
69935         (readlink): New declaration.
69936         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69937         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69938         (gl_PREREQ_UNISTD): Remove macro.
69939         (gl_UNISTD_MODULE_INDICATOR): New macro.
69940         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69941         many new variables. Don't set UNISTD_H.
69942         * modules/unistd (Description): Change.
69943         (Depends-on): Add link-warning.
69944         (configure.ac): Update.
69945         (Makefile.am): Create unistd.h always. Substitute many new variables
69946         into it.
69947
69948 2007-02-18  Bruno Haible  <bruno@clisp.org>
69949
69950         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69951         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69952         HAVE_GETSUBOPT.
69953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69954         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69955         * lib/getsubopt.h: Remove file.
69956         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69957         (Depends-on): Add stdlib.
69958         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69959         (Includes): Use <stdlib.h> instead of getsubopt.h.
69960         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69961         Set HAVE_GETSUBOPT.
69962         * lib/getsubopt.c: Don't include getsubopt.h.
69963
69964 2007-02-18  Bruno Haible  <bruno@clisp.org>
69965
69966         * modules/fchdir (Depends-on): Add dup2.
69967
69968 2007-02-18  Bruno Haible  <bruno@clisp.org>
69969
69970         * lib/stdlib_.h: Handle glibc's special invocation convention
69971         specially.
69972
69973 2007-02-18  Bruno Haible  <bruno@clisp.org>
69974
69975         * modules/stdlib-tests: New file.
69976         * tests/test-stdlib.c: New file.
69977
69978         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69979         (Depends-on): Add stdlib.
69980         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69981         (Includes): Use <stdlib.h> instead of mkstemp.h.
69982         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69983         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69984         * lib/mkstemp.c: Don't include mkstemp.h.
69985         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69986         * lib/stdlib--.h: Don't include mkstemp.h.
69987
69988         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69989         (Depends-on): Add stdlib.
69990         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69991         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69992         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69993         HAVE_MKDTEMP.
69994         * lib/mkdtemp.c: Don't include mkdtemp.h.
69995         * lib/clean-temp.c: Don't include mkdtemp.h.
69996
69997         * modules/exit (Files): Remove lib/exit.h.
69998         (Depends-on): Add stdlib.
69999         (Makefile.am): Remove lib_SOURCES.
70000         (Include): Use <stdlib.h> instead of exit.h.
70001         * lib/argmatch.c: Don't include exit.h.
70002         * lib/execute.c: Likewise.
70003         * lib/pagealign_alloc.c: Likewise.
70004         * lib/pipe.c: Likewise.
70005         * lib/wait-process.c: Likewise.
70006         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
70007         * lib/exitfail.c: Likewise.
70008         * lib/savewd.c: Likewise.
70009         * lib/xsetenv.c: Likewise.
70010
70011         * modules/stdlib: New file.
70012         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
70013         and extra comments about mkstemp().
70014         * lib/exit.h: Remove file.
70015         * lib/mkdtemp.h: Remove file.
70016         * lib/mkstemp.h: Remove file.
70017         * m4/stdlib_h.m4: New file.
70018         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
70019
70020 2007-02-18  Bruno Haible  <bruno@clisp.org>
70021
70022         * modules/math-tests: New file.
70023         * tests/test-math.c: New file.
70024
70025         * modules/math: New file.
70026         * modules/mathl (Files): Remove lib/mathl.h.
70027         (Depends-on): Add math.
70028         (Makefile.am): Don't mention mathl.h.
70029         (Include): Use <math.h> instead of mathl.h.
70030         * lib/math_.h: New file.
70031         * lib/mathl.h: Remove file.
70032         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
70033         mathl.h.
70034         * lib/asinl.c: Likewise.
70035         * lib/atanl.c: Likewise.
70036         * lib/ceill.c: Likewise.
70037         * lib/cosl.c: Likewise.
70038         * lib/expl.c: Likewise.
70039         * lib/floorl.c: Likewise.
70040         * lib/frexpl.c: Likewise.
70041         * lib/ldexpl.c: Likewise.
70042         * lib/logl.c: Likewise.
70043         * lib/sincosl.c: Likewise.
70044         * lib/sinl.c: Likewise.
70045         * lib/sqrtl.c: Likewise.
70046         * lib/tanl.c: Likewise.
70047         * lib/trigl.c: Likewise.
70048         * m4/math_h.m4: New file.
70049         * MODULES.html.sh (Mathematics): Add math.
70050
70051 2007-02-17  Bruno Haible  <bruno@clisp.org>
70052
70053         * modules/wctype-tests: New file.
70054         * tests/test-wctype.c: New file.
70055
70056         * modules/wchar-tests: New file.
70057         * tests/test-wchar.c: New file.
70058
70059         * modules/unistd-tests: New file.
70060         * tests/test-unistd.c: New file.
70061
70062         * modules/time-tests: New file.
70063         * tests/test-time.c: New file.
70064
70065         * modules/sysexits-tests: New file.
70066         * tests/test-sysexits.c: New file.
70067
70068         * modules/sys_time-tests: New file.
70069         * tests/test-sys_time.c: New file.
70070
70071         * modules/sys_stat-tests: New file.
70072         * tests/test-sys_stat.c: New file.
70073
70074         * modules/sys_socket-tests: New file.
70075         * tests/test-sys_socket.c: New file.
70076
70077         * modules/sys_select-tests: New file.
70078         * tests/test-sys_select.c: New file.
70079
70080         * modules/string-tests: New file.
70081         * tests/test-string.c: New file.
70082
70083         * modules/stdbool-tests: New file.
70084         * tests/test-stdbool.c: New file.
70085
70086         * modules/netinet_in-tests: New file.
70087         * tests/test-netinet_in.c: New file.
70088
70089         * modules/inttypes-tests: New file.
70090         * tests/test-inttypes.c: New file.
70091
70092         * modules/fcntl-tests: New file.
70093         * tests/test-fcntl.c: New file.
70094
70095         * modules/byteswap-tests: New file.
70096         * tests/test-byteswap.c: New file.
70097
70098         * modules/arpa_inet-tests: New file.
70099         * tests/test-arpa_inet.c: New file.
70100
70101 2007-02-17  Bruno Haible  <bruno@clisp.org>
70102
70103         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
70104         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
70105         if the corresponding module is not enabled. Emit link warnings if
70106         the function is used nevertheless.
70107         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
70108         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
70109         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
70110         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
70111         * modules/inttypes (Depends-on): Add link-warning.
70112         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70113         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
70114         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
70115         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
70116         * modules/imaxdiv (configure.ac): Likewise.
70117         * modules/strtoimax (configure.ac): Likewise.
70118         * modules/strtoumax (configure.ac): Likewise.
70119
70120 2007-02-17  Bruno Haible  <bruno@clisp.org>
70121
70122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
70123         gl_STRING_MODULE_INDICATOR_DEFAULTS.
70124         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
70125         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
70126
70127 2007-02-17  Bruno Haible  <bruno@clisp.org>
70128
70129         * modules/link-warning: New file.
70130         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
70131         * lib/string_.h (GL_LINK_WARNING): Remove definition.
70132         * modules/string (Depends-on): Add link-warning.
70133         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70134         string.h.
70135         * MODULES.html.sh (Support for building libraries and executables): Add
70136         link-warning.
70137
70138 2007-02-17  Bruno Haible  <bruno@clisp.org>
70139
70140         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70141         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70142         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70143         long lines.
70144
70145 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70146             Bruno Haible  <bruno@clisp.org>
70147
70148         * modules/tmpfile: New file.
70149         * lib/tmpfile.c: New file.
70150         * m4/tmpfile.m4: New file.
70151         * MODULES.html.sh (func_all_modules): New section "Input/output".
70152
70153 2007-02-15  Bruno Haible  <bruno@clisp.org>
70154
70155         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70156         (supports_delete_on_close): New function.
70157         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70158
70159 2007-02-14  Bruno Haible  <bruno@clisp.org>
70160
70161         * modules/mbspcasecmp-tests: New file.
70162         * tests/test-mbspcasecmp.sh: New file.
70163         * tests/test-mbspcasecmp.c: New file.
70164
70165         New module mbspcasecmp.
70166         * modules/mbspcasecmp: New file.
70167         * lib/mbspcasecmp.c: New file.
70168         * lib/string_.h (strncasecmp): Change warning message.
70169         (mbspcasecmp): New declaration.
70170         * m4/mbspcasecmp.m4: New file.
70171         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70172         GNULIB_MBSPCASECMP.
70173         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70174         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70175
70176 2007-02-14  Bruno Haible  <bruno@clisp.org>
70177
70178         * modules/mbsncasecmp-tests: New file.
70179         * tests/test-mbsncasecmp.sh: New file.
70180         * tests/test-mbsncasecmp.c: New file.
70181
70182         New module mbsncasecmp.
70183         * modules/mbsncasecmp: New file.
70184         * lib/mbsncasecmp.c: New file.
70185         * lib/string_.h (mbsncasecmp): New declaration.
70186         * m4/mbsncasecmp.m4: New file.
70187         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70188         GNULIB_MBSNCASECMP.
70189         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70190         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70191
70192 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70195         Verify that it doesn't overlap with our flags.
70196         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70197         do not have the desired effect in multibyte locales; instead, use
70198         mbscasecmp.
70199         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70200         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70201         we don't require GNU fnmatch ourselves (if our users require it, they
70202         should do so explicitly).
70203
70204         Fix regex code so it doesn't rely on strcasecmp.
70205         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70206         Otherwise, include gnulib's langinfo.h.
70207         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70208         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70209         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70210         * modules/regex (FILES): Remove m4/codeset.m4.
70211         (Depends-on): Add localcharset.  Remove strcase.
70212
70213 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70214
70215         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70216         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70217
70218 2007-02-13  Bruno Haible  <bruno@clisp.org>
70219
70220         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70221         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70222
70223 2007-02-12  Bruno Haible  <bruno@clisp.org>
70224
70225         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70226         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70227         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70228         time warning rather than a link error.
70229
70230 2007-02-12  Bruno Haible  <bruno@clisp.org>
70231
70232         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70233         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70234         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70235
70236 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70237
70238         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70239         args, not 2.
70240
70241 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70242
70243         New module 'time', so that apps can include <time.h> as per
70244         POSIX and GNU instead of separate include files like time_r.h
70245         and timegm.h.  This implementation tries out a simpler approach
70246         for replacing decls in standard include files (as compared to
70247         the string module), somewhat as an experiment.
70248
70249         * config/srclist.txt: Comment out mktime.c for now.
70250         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70251         since it doesn't apply any more.  Use generic wording instead.
70252         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70253         'time'.
70254         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70255         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70256         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70257         Don't include <sys/types.h>; no longer needed since we assume C89.
70258         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70259         * lib/strftime.c: Likewise.
70260         * lib/time_r.c: Likewise.
70261         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70262         * lib/nanosleep.c: Include <time.h> first, to check interface.
70263         * lib/strptime.c: Likewise.
70264         * lib/time_r.c: Likewise.
70265         * lib/timegm.c: Likewise.
70266         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70267         needed.
70268         * lib/timegm.c: Don't include timegm.h; no longer needed.
70269         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70270         time.h now handles any problems in that area.
70271         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70272         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70273         that time.h defines struct timespec.
70274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70275         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70276         handles that.
70277         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70278         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70279         needed.  Set REPLACE_LOCALTIME.
70280         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70281         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70282         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70283         nanosleep; time_h.m4 now does that.  Don't require
70284         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70285         module handles this now.
70286         * modules/getdate (Depends-on): Remove timespec.  Add time.
70287         * modules/nanosleep (Depends-on): Likewise.
70288         * modules/stat-time (Depends-on): Likewise.
70289         * modules/nanosleep (Include): Include time.h, not timespec.h.
70290         * modules/strptime (Files): Remove lib/strptime.h.
70291         (Depends-on): Add extensions, time.
70292         (Include): Include time.h, not strptime.h.
70293         * modules/time_r (Files): Remove lib/time_r.h.
70294         (Depends-on): Add time.
70295         (Include): Include time.h, not time_r.h.
70296         * modules/timegm: Likewise.
70297         * modules/timespec (Description): Now does timespec-related decls
70298         of our own, instead of struct timespec itself.
70299         (Depends-on): Add time; remove extensions.
70300         (Maintainer): Add self.
70301         * modules/utimecmp (Depends-on): Add time; remove timespec.
70302         * modules/utimens (Depends-on): Likewise.
70303         * modules/xnanosleep (Depends-on): Likewise.
70304
70305 2007-02-11  Bruno Haible  <bruno@clisp.org>
70306
70307         * lib/c-strstr.c: Include allocsa.h.
70308         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70309         * lib/c-strcasestr.c: Include allocsa.h.
70310         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70311         * lib/strcasestr.c: Include allocsa.h.
70312         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70313         * lib/mbsstr.c: Include allocsa.h.
70314         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70315         allocsa/freesa instead of malloc/free.
70316         * lib/mbscasestr.c: Include allocsa.h.
70317         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70318         allocsa/freesa instead of malloc/free.
70319         * modules/c-strstr (Depends-on): Add allocsa.
70320         * modules/c-strcasestr (Depends-on): Likewise.
70321         * modules/strcasestr (Depends-on): Likewise.
70322         * modules/mbsstr (Depends-on): Likewise.
70323         * modules/mbscasestr (Depends-on): Likewise.
70324
70325 2007-02-11  Bruno Haible  <bruno@clisp.org>
70326
70327         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70328
70329         * modules/mbsspn-tests: New file.
70330         * tests/test-mbsspn.sh: New file.
70331         * tests/test-mbsspn.c: New file.
70332
70333 2007-02-11  Bruno Haible  <bruno@clisp.org>
70334
70335         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70336
70337         * modules/mbspbrk-tests: New file.
70338         * tests/test-mbspbrk.sh: New file.
70339         * tests/test-mbspbrk.c: New file.
70340
70341 2007-02-11  Bruno Haible  <bruno@clisp.org>
70342
70343         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70344         unneeded cast.
70345
70346         * modules/mbscspn-tests: New file.
70347         * tests/test-mbscspn.sh: New file.
70348         * tests/test-mbscspn.c: New file.
70349
70350 2007-02-11  Bruno Haible  <bruno@clisp.org>
70351
70352         * modules/mbscasecmp-tests: New file.
70353         * tests/test-mbscasecmp.sh: New file.
70354         * tests/test-mbscasecmp.c: New file.
70355
70356 2007-02-11  Bruno Haible  <bruno@clisp.org>
70357
70358         Ensure O(n) worst-case complexity of mbscasestr.
70359         * lib/mbscasestr.c: Include stdbool.h.
70360         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70361         functions.
70362         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70363         the bookkeeping indicates that it's worth it.
70364         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70365
70366         * modules/mbscasestr-tests: New file.
70367         * tests/test-mbscasestr1.c: New file.
70368         * tests/test-mbscasestr2.sh: New file.
70369         * tests/test-mbscasestr2.c: New file.
70370         * tests/test-mbscasestr3.sh: New file.
70371         * tests/test-mbscasestr3.c: New file.
70372         * tests/test-mbscasestr4.sh: New file.
70373         * tests/test-mbscasestr4.c: New file.
70374         * m4/locale-tr.m4: New file.
70375
70376 2007-02-11  Bruno Haible  <bruno@clisp.org>
70377
70378         Ensure O(n) worst-case complexity of mbsstr.
70379         * lib/mbsstr.c: Include stdbool.h.
70380         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70381         functions.
70382         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70383         bookkeeping indicates that it's worth it.
70384         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70385
70386         * modules/mbsstr-tests: New file.
70387         * tests/test-mbsstr1.c: New file.
70388         * tests/test-mbsstr2.sh: New file.
70389         * tests/test-mbsstr2.c: New file.
70390         * tests/test-mbsstr3.sh: New file.
70391         * tests/test-mbsstr3.c: New file.
70392         * m4/locale-fr.m4: New file.
70393
70394 2007-02-11  Bruno Haible  <bruno@clisp.org>
70395
70396         * lib/mbsrchr.c (mbsrchr): Fix bug.
70397
70398         * modules/mbsrchr-tests: New file.
70399         * tests/test-mbsrchr.sh: New file.
70400         * tests/test-mbsrchr.c: New file.
70401
70402 2007-02-11  Bruno Haible  <bruno@clisp.org>
70403
70404         * lib/mbschr.c (mbschr): Fix bug.
70405
70406         * modules/mbschr-tests: New file.
70407         * tests/test-mbschr.sh: New file.
70408         * tests/test-mbschr.c: New file.
70409         * m4/locale-zh.m4: New file.
70410
70411 2007-02-11  Bruno Haible  <bruno@clisp.org>
70412
70413         Support for copying multibyte string iterators.
70414         * lib/mbiter.h: Include <string.h>.
70415         (mbiter_multi_copy): New function.
70416         (mbi_copy): New macro.
70417         * lib/mbuiter.h: Include <string.h>.
70418         (mbuiter_multi_copy): New function.
70419         (mbui_copy): New macro.
70420
70421 2007-02-11  Bruno Haible  <bruno@clisp.org>
70422
70423         New module mbslen.
70424         * modules/mbslen: New file.
70425         * lib/mbslen.c: New file.
70426         * lib/string_.h (mbslen): New declaration.
70427         * m4/mbslen.m4: New file.
70428         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70429         GNULIB_MBSLEN.
70430         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70431         * MODULES.html.sh (Internationalization functions): Add mbslen.
70432
70433 2007-02-11  Bruno Haible  <bruno@clisp.org>
70434
70435         Ensure O(n) worst-case complexity of strcasestr substitute.
70436         * lib/strcasestr.c: Include stdbool.h.
70437         (knuth_morris_pratt): New function.
70438         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70439         bookkeeping indicates that it's worth it.
70440         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70441
70442         * modules/strcasestr-tests: New file.
70443         * tests/test-strcasestr.c: New file.
70444
70445 2007-02-11  Bruno Haible  <bruno@clisp.org>
70446
70447         Ensure O(n) worst-case complexity of c_strcasestr.
70448         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70449         (knuth_morris_pratt): New function.
70450         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70451         the bookkeeping indicates that it's worth it.
70452         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70453
70454         * modules/c-strcasestr-tests: New file.
70455         * tests/test-c-strcasestr.c: New file.
70456
70457 2007-02-11  Bruno Haible  <bruno@clisp.org>
70458
70459         Ensure O(n) worst-case complexity of c_strstr.
70460         * lib/c-strstr.c: Include stdbool.h, string.h.
70461         (knuth_morris_pratt): New function.
70462         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70463         bookkeeping indicates that it's worth it.
70464         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70465
70466         * lib/c-strstr.c: Complete rewrite for maintainability.
70467
70468         * modules/c-strstr-tests: New file.
70469         * tests/test-c-strstr.c: New file.
70470
70471 2007-02-11  Bruno Haible  <bruno@clisp.org>
70472
70473         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70474         5.2.1 and earlier, whereby \055 was treated just like the range
70475         delimiter '-'.
70476         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70477
70478 2007-02-08  Bruno Haible  <bruno@clisp.org>
70479
70480         * modules/regex (Depends-on): Add stdbool.
70481         Reported by Dalibor Topic <robilad@kaffe.org>.
70482
70483 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70484
70485         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70486         Prefer returning from main to exiting from it.
70487         Remove unnecessary parens after sizeof.
70488
70489 2007-02-05  Bruno Haible  <bruno@clisp.org>
70490
70491         New module mbssep.
70492         * modules/mbssep: New file.
70493         * lib/mbssep.c: New file.
70494         * lib/string_.h (strsep): Add a conditional link warning.
70495         (mbssep): New declaration.
70496         * m4/mbssep.m4: New file.
70497         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70498         GNULIB_MBSSEP.
70499         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70500         * MODULES.html.sh (Internationalization functions): Add mbssep.
70501
70502 2007-02-05  Bruno Haible  <bruno@clisp.org>
70503
70504         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70505         Optimize search in case of 1 delimiter.
70506
70507 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70508
70509         * lib/acl.h: Include sys/types.h before sys/acl.h.
70510
70511 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70512
70513         Merge upstream fix for glibc bugzilla #3957:
70514
70515         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70516
70517         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70518         bit for RE_HAT_LISTS_NOT_NEWLINE.
70519         (build_charclass_op): Remove bogus comment.
70520
70521 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70522
70523         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70524
70525 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70526
70527         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70528         * lib/memmem.c [!defined _LIBC]: Include config.h.
70529
70530 2007-02-04  Bruno Haible  <bruno@clisp.org>
70531
70532         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70533         warning message.
70534
70535 2007-02-04  Bruno Haible  <bruno@clisp.org>
70536
70537         New module mbstok_r.
70538         * modules/mbstok_r: New file.
70539         * lib/mbstok_r.c: New file.
70540         * lib/string_.h (strtok_r): Change argument names to match the
70541         comments. Add a conditional link warning.
70542         (mbstok_r): New declaration.
70543         * m4/mbstok_r.m4: New file.
70544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70545         GNULIB_MBSTOK_R.
70546         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70547         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70548
70549 2007-02-04  Bruno Haible  <bruno@clisp.org>
70550
70551         New module mbsspn.
70552         * modules/mbsspn: New file.
70553         * lib/mbsspn.c: New file.
70554         * lib/string_.h (strspn): Add a conditional link warning.
70555         (mbsspn): New declaration.
70556         * m4/mbsspn.m4: New file.
70557         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70558         GNULIB_MBSSPN.
70559         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70560         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70561
70562 2007-02-04  Bruno Haible  <bruno@clisp.org>
70563
70564         New module mbspbrk.
70565         * modules/mbspbrk: New file.
70566         * lib/mbspbrk.c: New file.
70567         * lib/string_.h (strpbrk): Add a conditional link warning.
70568         (mbspbrk): New declaration.
70569         * m4/mbspbrk.m4: New file.
70570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70571         GNULIB_MBSPBRK.
70572         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70573         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70574
70575 2007-02-04  Bruno Haible  <bruno@clisp.org>
70576
70577         New module mbscspn.
70578         * modules/mbscspn: New file.
70579         * lib/mbscspn.c: New file.
70580         * lib/string_.h (strcspn): Add a conditional link warning.
70581         (mbscspn): New declaration.
70582         * m4/mbscspn.m4: New file.
70583         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70584         GNULIB_MBSCSPN.
70585         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70586         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70587
70588 2007-02-04  Bruno Haible  <bruno@clisp.org>
70589
70590         New module mbscasestr, reduced goal of strcasestr.
70591         * modules/mbscasestr: New file.
70592         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70593         (mbscasestr): Renamed from strcasestr.
70594         * lib/strcasestr.c: Don't include mbuiter.h.
70595         (strcasestr): Remove support for multibyte locales.
70596         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70597         Change the conditional link warning.
70598         (mbscasestr): New declaration.
70599         * m4/mbscasestr.m4: New file.
70600         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70601         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70602         REPLACE_STRCASESTR.
70603         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70605         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70606         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70607         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70608         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70609         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70610         (Depends-on): Remove mbuiter.
70611         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70612
70613 2007-02-04  Bruno Haible  <bruno@clisp.org>
70614
70615         Simplify handling of strncasecmp.
70616         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70617         the conditional link warning.
70618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70619         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70620         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70621         * modules/strcase (configure.ac): Don't invoke
70622         gl_STRING_MODULE_INDICATOR.
70623         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70624
70625 2007-02-04  Bruno Haible  <bruno@clisp.org>
70626
70627         New module mbscasecmp, reduced goal of strcasecmp.
70628         * modules/mbscasecmp: New file.
70629         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70630         (mbscasecmp): Renamed from strcasecmp.
70631         * lib/strcasecmp.c: Don't include mbuiter.h.
70632         (strcasecmp): Remove support for multibyte locales.
70633         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70634         Change the conditional link warning.
70635         (mbscasecmp): New declaration.
70636         * m4/mbscasecmp.m4: New file.
70637         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70638         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70639         REPLACE_STRCASECMP.
70640         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70642         GNULIB_MBSCASECMP.
70643         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70644         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70645         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70646         (Depends-on): Remove mbuiter.
70647         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70648
70649 2007-02-04  Bruno Haible  <bruno@clisp.org>
70650
70651         New module mbsstr. Remove module strstr.
70652         * modules/mbsstr: New file.
70653         * modules/strstr: Remove file.
70654         * lib/mbsstr.c: Renamed from lib/strstr.c.
70655         (mbsstr): Renamed from strstr.
70656         * lib/string_.h (strstr): Remove declaration. Change the conditional
70657         link warning.
70658         (mbsstr): New declaration.
70659         * m4/mbsstr.m4: New file.
70660         * m4/strstr.m4: Remove file.
70661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70662         REPLACE_STRSTR.
70663         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70664         Don't initialize GNULIB_STRSTR.
70665         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70666         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70667         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70668         (Support for systems lacking ANSI C 89): Remove strstr.
70669
70670 2007-02-04  Bruno Haible  <bruno@clisp.org>
70671
70672         New module mbsrchr.
70673         * modules/mbsrchr: New file.
70674         * lib/mbsrchr.c: New file.
70675         * lib/string_.h (strrchr): Add a conditional link warning.
70676         (mbsrchr): New declaration.
70677         * m4/mbsrchr.m4: New file.
70678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70679         GNULIB_MBSRCHR.
70680         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70681         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70682
70683 2007-02-04  Bruno Haible  <bruno@clisp.org>
70684
70685         New module mbschr.
70686         * modules/mbschr: New file.
70687         * lib/mbschr.c: New file.
70688         * lib/string_.h (strchr): Add a conditional link warning.
70689         (mbschr): New declaration.
70690         * m4/mbschr.m4: New file.
70691         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70692         GNULIB_MBSCHR.
70693         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70694         * MODULES.html.sh (Internationalization functions): Add mbschr.
70695
70696 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70697
70698         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70699
70700         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70701
70702 2007-02-04  Bruno Haible  <bruno@clisp.org>
70703
70704         New module description section 'configure.ac-early'.
70705         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70706         (func_get_autoconf_early_snippet): New function.
70707         (func_import, func_create_testdir): Use it. Remove special cases for
70708         modules 'extensions' and 'lock'.
70709         * modules/extensions (configure.ac-early): Require
70710         gl_USE_SYSTEM_EXTENSIONS.
70711         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70712
70713 2007-02-04  Bruno Haible  <bruno@clisp.org>
70714
70715         Make use of gcj-4.3's -fsource and -ftarget option.
70716         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70717         and if so try the options -fsource and -ftarget.
70718         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70719         source_version, ftarget_option, target_version arguments.
70720         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70721         (is_envjavac_oldgcj_14_14_usable): Renamed from
70722         is_envjavac_gcj_14_14_usable.
70723         (is_envjavac_oldgcj_14_13_usable): Renamed from
70724         is_envjavac_gcj_14_13_usable.
70725         (is_gcj_present): Update.
70726         (is_gcj_43, is_gcj43_usable): New functions.
70727         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70728         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70729         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70730         try the options -fsource and -ftarget.
70731
70732 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70733
70734         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70735         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70736         larger value.
70737
70738 2007-02-03  Jim Meyering  <jim@meyering.net>
70739
70740         Give tools a better chance to allocate space for very large buffers.
70741         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70742
70743         Make pwd and readlink work also when run with an unreadable parent dir
70744         on systems with openat support.
70745         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70746         provided getcwd function, even when we have openat support.
70747         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70748
70749 2007-02-02  Bruno Haible  <bruno@clisp.org>
70750
70751         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70752         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70753         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70754         portability problems if one of these functions is only used on specific
70755         platforms.
70756         Reported by Paul Eggert.
70757
70758 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70761         is causing more trouble than it's curing.
70762         * lib/regex_internal.h (__mempcpy): Remove.
70763         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70764         (and make the code a tad smaller to boot).
70765         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70766
70767 2007-02-02  Jim Meyering  <jim@meyering.net>
70768
70769         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70770         section, not in the Makefile.am: one.
70771
70772 2007-02-02  Eric Blake  <ebb9@byu.net>
70773
70774         * lib/strchrnul.c: Always include config.h first.
70775
70776         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70777         gnulib strstr is not necessary here.
70778
70779 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70780
70781         * m4/socklen.m4: Fix typo.
70782
70783 2007-02-02  Eric Blake  <ebb9@byu.net>
70784
70785         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70786         * modules/netinet_in (Makefile.am): Likewise.
70787
70788 2007-02-01  Bruno Haible  <bruno@clisp.org>
70789
70790         * lib/string_.h (GL_LINK_WARNING): New macro.
70791         (strcasecmp, strstr, strcasestr): If provided by the system,
70792         conditionally define as a macro that leads to a warning instead of to
70793         an error.
70794         (strncasecmp): Conditionally define as a macro that leads to a warning.
70795
70796 2007-02-01  Karl Berry  <karl@gnu.org>
70797
70798         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70799
70800 2007-02-01  Bruno Haible  <bruno@clisp.org>
70801
70802         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70803         renamings.
70804
70805 2007-02-01  Eric Blake  <ebb9@byu.net>
70806
70807         * modules/regex (Depends-on): Revert dependence on mempcpy.
70808         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70809         module's definition of mempcpy.
70810         Reported by Paul Eggert.
70811
70812 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70813
70814         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70815         the symbol XYZ before redefining it.  This fixes a problem with
70816         programs that don't use XYZ, when compiled on systems that define
70817         XYZ to something else.
70818
70819 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70820
70821         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70822         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70823         writeable to group or other and (2) is intended to have a special
70824         mode bit that is set or cleared.  In such a case, the directory
70825         should be neither group- nor other-writeable until the special
70826         mode bits are right.
70827
70828 2007-01-31  Eric Blake  <ebb9@byu.net>
70829
70830         * modules/mountlist (Depends-on): Add strstr.
70831
70832         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70833         bug.
70834         * modules/string (Makefile.am): Remove redundant replacement.
70835         * modules/regex (Depends-on): Add mempcpy.
70836
70837 2007-01-31  Bruno Haible  <bruno@clisp.org>
70838
70839         New module description field 'Link'.
70840         * gnulib-tool (func_usage): Document --extract-link-directive.
70841         (sed_extract_prog): Recognize 'Link' directive.
70842         (func_get_link_directive): New function.
70843         (func_import): Show summary of link directives.
70844         Handle --extract-link-directive option.
70845         * modules/acl (Link): New section.
70846         * modules/clock-time (Link): New section.
70847         * modules/euidaccess (Link): New section.
70848         * modules/gettext (Link): New section.
70849         * modules/iconv (Link): New section.
70850         * modules/lock (Link): New section.
70851         * modules/nanosleep (Link): New section.
70852         * modules/readline (Link): New section.
70853
70854 2007-01-27  Bruno Haible  <bruno@clisp.org>
70855
70856         Enforce the use of gnulib modules for unportable <string.h> functions.
70857         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70858         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70859         (gl_HEADER_STRING_H_BODY): Require it.
70860         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70861         the symbol XYZ to one that gives a link error.
70862         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70863         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70864         * modules/mempcpy (configure.ac): Likewise.
70865         * modules/memrchr (configure.ac): Likewise.
70866         * modules/stpcpy (configure.ac): Likewise.
70867         * modules/stpncpy (configure.ac): Likewise.
70868         * modules/strcase (configure.ac): Likewise.
70869         * modules/strcasestr (configure.ac): Likewise.
70870         * modules/strchrnul (configure.ac): Likewise.
70871         * modules/strdup (configure.ac): Likewise.
70872         * modules/strndup (configure.ac): Likewise.
70873         * modules/strnlen (configure.ac): Likewise.
70874         * modules/strpbrk (configure.ac): Likewise.
70875         * modules/strsep (configure.ac): Likewise.
70876         * modules/strstr (configure.ac): Likewise.
70877         * modules/strtok_r (configure.ac): Likewise.
70878
70879 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70880
70881         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70882
70883 2007-01-30  Jim Meyering  <jim@meyering.net>
70884
70885         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70886
70887 2007-01-29  Bruno Haible  <bruno@clisp.org>
70888
70889         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70890         * lib/execute.c: Likewise.
70891         * lib/pipe.c: Likewise.
70892         * lib/printf-args.h: Likewise.
70893         * lib/printf-args.c: Likewise.
70894         * lib/printf-parse.c: Likewise.
70895         * lib/vasnprintf.c: Likewise.
70896
70897 2007-01-29  Eric Blake  <ebb9@byu.net>
70898
70899         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70900         declaration.
70901
70902 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70903
70904         * lib/strptime.h (strptime): Use 'restrict' for args where
70905         POSIX requires this.
70906         * lib/strptime.c (strptime): Likewise.
70907         Change license notice from LGPL to GPL, since gnulib-tool will
70908         change this as needed.
70909         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70910         defined.
70911         Include "strptime.h" first, to check interface.
70912         Do not #undef _LIBC and _NL_CURRENT.
70913         Do not include <stdlib.h>; no longer needed.
70914         Include "time_r.h" and declare ptime_locale_status
70915         only if _LIBC is not defined.
70916         (__P): Remove unused macro.
70917         (match_string): Bring back glibc version, but use it only if _LIBC
70918         is defined.
70919         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70920         Remove unnecessary assertion and abort() call.
70921         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70922         * m4/strptime.m4: Fix serial number comment.
70923         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70924         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70925         (Depends-on): Add time_r.
70926
70927 2007-01-29  Bruno Haible  <bruno@clisp.org>
70928
70929         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70930         strptime.
70931         * modules/strptime (Depends-on): Add stdbool.
70932         * lib/strptime.h: Include <time.h> always. Add comments.
70933
70934 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70935
70936         * modules/strptime: New file.
70937         * lib/strptime.h: New file.
70938         * lib/strptime.c: New file.
70939         * m4/strptime.m4: New file.
70940
70941 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70942
70943         * MODULES.html.sh: New module mpsort.
70944         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70945
70946         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70947         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70948         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70949         All uses changed.
70950         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70951         All uses changed.
70952         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70953         to _Restrict_.
70954         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70955         the parameter matches the prototype.
70956
70957 2007-01-28  Jim Meyering  <jim@meyering.net>
70958
70959         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70960         sys/time.h here, reverting that part of the previous patch:
70961         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70962
70963 2007-01-28  Bruno Haible  <bruno@clisp.org>
70964
70965         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70966         value of $(SYS_TIME_H).
70967         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70968         remove it conditionally, too. [added by Jim Meyering]
70969         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70970         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70971         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70972         GETTIMEOFDAY_REPLACEMENT to 1.
70973
70974 2007-01-28  Bruno Haible  <bruno@clisp.org>
70975
70976         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70977         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70979         Set UNISTD_H instead of UNISTD_H2.
70980         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70981
70982 2007-01-28  Bruno Haible  <bruno@clisp.org>
70983
70984         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70985         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70986
70987 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70988
70989         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70990         (func_create_testdir): Ensure C locale for `grep' and `tr'
70991         character ranges.
70992         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70993         ACLOCAL_AMFLAGS parsing state machine.
70994
70995 2007-01-27  Bruno Haible  <bruno@clisp.org>
70996
70997         * modules/unistr/base: Update.
70998
70999 2007-01-27  Bruno Haible  <bruno@clisp.org>
71000
71001         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
71002         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
71003         * modules/unistr/u32-mbtouc-unsafe: Renamed from
71004         modules/unistr/u32-mbtouc.
71005         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
71006         * lib/unistr.h: Update.
71007         * lib/linebreak.c: Update.
71008         * modules/unistr/u32-mbtouc: Renamed from
71009         modules/unistr/u32-mbtouc-safe.
71010         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
71011         * lib/unistr.h: Update.
71012         * lib/unistr/u32-to-u8.c: Update.
71013         * lib/unistr/u32-to-u16.c: Update.
71014
71015 2007-01-27  Bruno Haible  <bruno@clisp.org>
71016
71017         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
71018         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
71019         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
71020         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
71021         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
71022         * modules/unistr/u16-mbtouc-unsafe: Renamed from
71023         modules/unistr/u16-mbtouc.
71024         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
71025         * lib/unistr.h: Update.
71026         * lib/linebreak.c: Update.
71027         * modules/linebreak: Update.
71028         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
71029         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
71030         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
71031         * modules/unistr/u16-mbtouc: Renamed from
71032         modules/unistr/u16-mbtouc-safe.
71033         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
71034         * lib/unistr.h: Update.
71035         * lib/unistr/u16-to-u8.c: Update.
71036         * modules/unistr/u16-to-u8: Update.
71037         * lib/unistr/u16-to-u32.c: Update.
71038         * modules/unistr/u16-to-u32: Update.
71039
71040 2007-01-27  Bruno Haible  <bruno@clisp.org>
71041
71042         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
71043         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
71044         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
71045         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
71046         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
71047         * modules/unistr/u8-mbtouc-unsafe: Renamed from
71048         modules/unistr/u8-mbtouc.
71049         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
71050         * lib/unistr.h: Update.
71051         * lib/striconveh.c: Update.
71052         * modules/striconveh: Update.
71053         * lib/linebreak.c: Update.
71054         * modules/linebreak: Update.
71055         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
71056         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
71057         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
71058         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
71059         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
71060         * lib/unistr.h: Update.
71061         * lib/striconveh.c: Update.
71062         * modules/striconveh: Update.
71063         * lib/unistr/u8-to-u16.c: Update.
71064         * modules/unistr/u8-to-u16: Update.
71065         * lib/unistr/u8-to-u32.c: Update.
71066         * modules/unistr/u8-to-u32: Update.
71067
71068 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71069
71070         Sync from Libtool.
71071         * lib/argz.c: Do not include strings.h nor memory.h, include
71072         string.h unconditionally.  Patch by Simon Josefsson.
71073
71074 2007-01-27  Bruno Haible  <bruno@clisp.org>
71075
71076         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
71077         from gl_HEADER_STRING_H_BODY.
71078         (gl_HEADER_STRING_H_BODY): Require it.
71079         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
71080         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
71081         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
71082         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
71083         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
71084         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
71085         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71086         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
71087         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
71088         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71089         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
71090         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
71091         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
71092         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71093         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71094
71095 2007-01-27  Bruno Haible  <bruno@clisp.org>
71096
71097         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
71098         check_PROGRAMS into noinst_PROGRAMS.
71099         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
71100         check_PROGRAMS in this case.
71101         (func_import): Set for_test to false.
71102         (func_create_testdir): Set for_test to true.
71103
71104 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71105             Bruno Haible  <bruno@clisp.org>
71106
71107         * modules/strcasestr (Files): Remove lib/strcasestr.h.
71108         (Depends-on): Add string.
71109         (Includes): Use <string.h> instead of strcasestr.h.
71110         * modules/string (Makefile.am): Also substitute the value of
71111         REPLACE_STRCASESTR.
71112         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
71113         assume strcasestr is declared in <string.h> not <strings.h>. Also
71114         set REPLACE_STRCASESTR.
71115         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
71116         REPLACE_STRCASESTR.
71117         * lib/strcasestr.h: Remove file.
71118         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
71119         * lib/string_.h (strcasestr): New declaration.
71120
71121 2007-01-27  Bruno Haible  <bruno@clisp.org>
71122
71123         * lib/string_.h: Use 'extern'.
71124
71125 2007-01-27  Jim Meyering  <jim@meyering.net>
71126
71127         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
71128         of set-but-not-used local, "q".
71129
71130         * lib/mempcpy.c: Include <config.h> before <string.h>.
71131         This fixes a compilation error on HP-UX, due to the system's
71132         "restrict"-using mempcpy prototype.
71133
71134 2007-01-26  Bruno Haible  <bruno@clisp.org>
71135
71136         Small optimization.
71137         * lib/javacomp.c: Include c-strstr.h.
71138          (is_envjavac_gcj): Use c_strstr instead of strstr.
71139         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71140
71141 2007-01-26  Bruno Haible  <bruno@clisp.org>
71142
71143         * MODULES.html.sh (Unicode string functions): Add the new modules.
71144
71145         * modules/uniconv/u32-strconv-to-locale: New file.
71146         * lib/uniconv/u32-strconv-to-locale.c: New file.
71147
71148         * modules/uniconv/u16-strconv-to-locale: New file.
71149         * lib/uniconv/u16-strconv-to-locale.c: New file.
71150
71151         * modules/uniconv/u8-strconv-to-locale: New file.
71152         * lib/uniconv/u8-strconv-to-locale.c: New file.
71153
71154         * modules/uniconv/u32-strconv-from-locale: New file.
71155         * lib/uniconv/u32-strconv-from-locale.c: New file.
71156
71157         * modules/uniconv/u16-strconv-from-locale: New file.
71158         * lib/uniconv/u16-strconv-from-locale.c: New file.
71159
71160         * modules/uniconv/u8-strconv-from-locale: New file.
71161         * lib/uniconv/u8-strconv-from-locale.c: New file.
71162
71163         * modules/uniconv/u32-strconv-to-enc: New file.
71164         * lib/uniconv/u32-strconv-to-enc.c: New file.
71165         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71166         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71167
71168         * modules/uniconv/u16-strconv-to-enc: New file.
71169         * lib/uniconv/u16-strconv-to-enc.c: New file.
71170         * lib/uniconv/u-strconv-to-enc.h: New file.
71171         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71172         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71173
71174         * modules/uniconv/u8-strconv-to-enc: New file.
71175         * lib/uniconv/u8-strconv-to-enc.c: New file.
71176         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71177         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71178
71179         * modules/uniconv/u32-strconv-from-enc: New file.
71180         * lib/uniconv/u32-strconv-from-enc.c: New file.
71181         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71182         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71183
71184         * modules/uniconv/u16-strconv-from-enc: New file.
71185         * lib/uniconv/u16-strconv-from-enc.c: New file.
71186         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71187         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71188
71189         * modules/uniconv/u8-strconv-from-enc: New file.
71190         * lib/uniconv/u8-strconv-from-enc.c: New file.
71191         * lib/uniconv/u-strconv-from-enc.h: New file.
71192         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71193         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71194
71195         * modules/uniconv/u32-conv-from-enc: New file.
71196         * lib/uniconv/u32-conv-from-enc.c: New file.
71197         * modules/uniconv/u32-conv-from-enc-tests: New file.
71198         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71199
71200         * modules/uniconv/u16-conv-from-enc: New file.
71201         * lib/uniconv/u16-conv-from-enc.c: New file.
71202         * lib/uniconv/u-conv-from-enc.h: New file.
71203         * modules/uniconv/u16-conv-from-enc-tests: New file.
71204         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71205
71206         * modules/uniconv/u8-conv-from-enc: New file.
71207         * lib/uniconv/u8-conv-from-enc.c: New file.
71208         * modules/uniconv/u8-conv-from-enc-tests: New file.
71209         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71210
71211         * modules/uniconv/base: New file.
71212         * lib/uniconv.h: New file.
71213
71214 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71215
71216         * doc/gnulib-tool.texi (Initial import): Update to match current
71217         behavior with strdup module.
71218         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71219         * lib/memmem.h: Remove; all uses removed.  This is now done
71220         by <string.h>.
71221         * lib/mempcpy.h: Likewise.
71222         * lib/memrchr.h: Likewise.
71223         * lib/stpcpy.h: Likewise.
71224         * lib/stpncpy.h: Likewise.
71225         * lib/strcase.h: Likewise.
71226         * lib/strchrnul.h: Likewise.
71227         * lib/strdup.h: Likewise.
71228         * lib/strndup.h: Likewise.
71229         * lib/strnlen.h: Likewise.
71230         * lib/strpbrk.h: Likewise.
71231         * lib/strsep.h: Likewise.
71232         * lib/strstr.h: Likewise.
71233         * lib/strtok_r.h: Likewise.
71234         * lib/string_.h: New file.
71235         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71236         Rely on <string.h> instead.
71237         * lib/canon-host.c: Likewise.
71238         * lib/chdir-long.c: Likewise.
71239         * lib/concatpath.c: Likewise.
71240         * lib/exclude.c: Likewise.
71241         * lib/fchdir.c: Likewise.
71242         * lib/getaddrinfo.c: Likewise.
71243         * lib/getcwd.c: Likewise.
71244         * lib/getsubopt.c: Likewise.
71245         * lib/glob.c: Likewise.
71246         * lib/hard-locale.c: Likewise.
71247         * lib/iconvme.c: Likewise.
71248         * lib/javacomp.c: Likewise.
71249         * lib/mempcpy.c: Likewise.
71250         * lib/memrchr.c: Likewise.
71251         * lib/regex_internal.h: Likewise.
71252         * lib/stpncpy.c: Likewise.
71253         * lib/strcasecmp.c: Likewise.
71254         * lib/strchrnul.c: Likewise.
71255         * lib/strdup.c: Likewise.
71256         * lib/striconv.c: Likewise.
71257         * lib/striconveh.c: Likewise.
71258         * lib/striconveha.c: Likewise.
71259         * lib/strncasecmp.c: Likewise.
71260         * lib/strndup.c: Likewise.
71261         * lib/strnlen.c: Likewise.
71262         * lib/strsep.c: Likewise.
71263         * lib/strstr.c: Likewise.
71264         * lib/strtok_r.c: Likewise.
71265         * lib/userspec.c: Likewise.
71266         * lib/w32spawn.h: Likewise.
71267         * lib/xstrndup.c: Likewise.
71268         * lib/mountlist.c (strstr): Remove decl.
71269         * m4/string_h.m4: New file.
71270         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71271         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71272         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71273         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71274         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71275         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71276         Set REPLACE_STRCASECMP if necessary.
71277         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71278         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71279         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71280         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71281         HAVE_DECL_STRDUP if necessary.
71282         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71283         since gl_FUNC_STRNDUP does that now.
71284         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71285         Check for decl here...
71286         (gl_PREREQ_STRNLEN): ... not here.
71287         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71288         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71289         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71290         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71291         necessary.
71292         * modules/string: New file.
71293         * modules/memmem (Files): Remove special-purpose include file.
71294         (Depends-on): Add string.
71295         (Include): Include <string.h>, not the removed file.
71296         * modules/mempcpy: Likewise.
71297         * modules/memrchr: Likewise.
71298         * modules/stpcpy: Likewise.
71299         * modules/stpncpy: Likewise.
71300         * modules/strcase: Likewise.
71301         * modules/strchrnul: Likewise.
71302         * modules/strdup: Likewise.
71303         * modules/strndup: Likewise.
71304         * modules/strnlen: Likewise.
71305         * modules/strpbrk: Likewise.
71306         * modules/strsep: Likewise.
71307         * modules/strstr: Likewise.
71308         * modules/strtok_r: Likewise.
71309         * tests/test-dirname.c: Don't include "strdup.h", since
71310         <string.h> now suffices.
71311         * tests/test-memmem.c: Don't include "memmem.h", since
71312         <string.h> now suffices.
71313
71314 2007-01-25  Bruno Haible  <bruno@clisp.org>
71315
71316         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71317         *resultp is 0.
71318
71319         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71320         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71321         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71322         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71323
71324         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71325         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71326         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71327         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71328         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71329         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71330
71331 2007-01-24  Bruno Haible  <bruno@clisp.org>
71332
71333         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71334         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71335         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71336         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71337         gl_FUNC_FTS_CORE.
71338         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71339         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71340         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71341         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71342         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71343         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71344         gl_FUNC_FCHOWNAT.
71345         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71346         gl_FUNC_STRFTIME.
71347         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71348         Reported by Ralf Wildenhues.
71349
71350 2007-01-24  Bruno Haible  <bruno@clisp.org>
71351
71352         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71353         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71354         gl_GETADDRINFO.
71355         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71356         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71357         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71358
71359 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71360
71361         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71362         Don't use 'exit'; just return from 'main'.
71363         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71364
71365         * lib/fnmatch_.h: Readjust white space and comments to match
71366         glibc, to avoid spurious diffs.
71367
71368 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71369
71370         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71371         2004-12-01 change by Jakub Jelinek, since this code won't compile
71372         if !LIBC.  Problem reported by Bob Proulx.
71373
71374 2007-01-23  Bruno Haible  <bruno@clisp.org>
71375
71376         * lib/striconveh.c: Include c-strcaseeq.h.
71377         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71378         * modules/striconveh (Depends-on): Add c-strcaseeq.
71379
71380 2007-01-23  Bruno Haible  <bruno@clisp.org>
71381
71382         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71383
71384         * modules/c-strcaseeq: New file.
71385         * lib/c-strcaseeq.h: New file.
71386
71387         * modules/streq: New file.
71388         * lib/streq.h: New file.
71389
71390 2007-01-23  Bruno Haible  <bruno@clisp.org>
71391
71392         * modules/striconveha-tests: New file.
71393         * tests/test-striconveha.c: New file.
71394
71395         * lib/striconveha.h: Include <stdbool.h>.
71396         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71397         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71398         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71399         (mem_iconveha): New function.
71400         (str_iconveha_notranslit): Renamed from str_iconveha.
71401         (str_iconveha): New function.
71402         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71403         c-strcase.
71404
71405 2007-01-23  Bruno Haible  <bruno@clisp.org>
71406
71407         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71408         encodings without forgiving before trying any encoding with handler.
71409         (str_iconveha): Try all encodings without forgiving before trying any
71410         encoding with handler.
71411
71412 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71413
71414         Import the following changes from libc.
71415
71416         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71417
71418         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71419
71420         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71421
71422         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71423         normal_bracket label.
71424
71425         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71426
71427         [BZ #361]
71428         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71429         to normal_bracket after fetching the next character.
71430
71431 2007-01-22  Bruno Haible  <bruno@clisp.org>
71432
71433         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71434         argument.
71435         * lib/striconveh.c (iconv_carefully_1): New function.
71436         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71437         argument.
71438         (str_cd_iconveh): Update.
71439         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71440         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71441         * tests/test-striconveh.c (MAGIC): New macro.
71442         (new_offsets): New function.
71443         (main): Test call with and without offsets.
71444
71445 2007-01-22  Bruno Haible  <bruno@clisp.org>
71446
71447         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71448         * modules/sys_select (Makefile.am): Likewise.
71449         * modules/sys_socket (Makefile.am): Likewise.
71450         * modules/sys_time (Makefile.am): Likewise.
71451
71452 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71453
71454         * modules/gettimeofday (License): Change from GPL to LGPL, since
71455         gettimeofday is a library function.
71456
71457 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71458
71459         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71460
71461 2007-01-21  Bruno Haible  <bruno@clisp.org>
71462
71463         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71464
71465 2007-01-21  Bruno Haible  <bruno@clisp.org>
71466
71467         * modules/striconveha: New file.
71468         * lib/striconveha.h: New file.
71469         * lib/striconveha.c: New file.
71470         * MODULES.html.sh (Internationalization functions): Add striconveha.
71471         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71472         string.
71473         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71474
71475 2007-01-21  Bruno Haible  <bruno@clisp.org>
71476
71477         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71478         * lib/striconveh.c (str_iconveh): Likewise.
71479
71480 2007-01-21  Bruno Haible  <bruno@clisp.org>
71481
71482         * lib/striconveh.h (mem_iconveh): New declaration.
71483         * lib/striconveh.c (mem_iconveh): New function.
71484         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71485
71486 2007-01-21  Bruno Haible  <bruno@clisp.org>
71487
71488         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71489
71490         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71491         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71492         original result buffer.
71493         (str_cd_iconveh): Update.
71494         * tests/test-striconveh.c (main): Update.
71495
71496         * lib/striconv.h (mem_cd_iconv): Change specification.
71497         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71498         result buffer.
71499         (str_cd_iconv): Update.
71500         * tests/test-striconv.c (main): Update.
71501
71502 2007-01-21  Bruno Haible  <bruno@clisp.org>
71503
71504         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71505
71506 2007-01-20  Jim Meyering  <jim@meyering.net>
71507
71508         * lib/userspec.c (parse_with_separator): If a user or group string
71509         starts with "+", skip the corresponding name-to-ID look-up, since
71510         such a look-up must fail: user and group names may not include "+".
71511
71512 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71515         since we now assume the sys_time module.
71516         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71517         check for sys/time.h; no longer needed.
71518         * modules/poll (Depends-on): Depend on sys_time.
71519
71520 2007-01-18  Bruno Haible  <bruno@clisp.org>
71521
71522         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71523         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71524
71525         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71526         gettimeofday.
71527
71528         * tests/test-gettimeofday.c: Include <time.h>.
71529         (dummy): Remove variable.
71530
71531         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71532         gl_HEADER_SYS_TIME_H.
71533         (gl_HEADER_SYS_TIME_H): New macro.
71534
71535         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71536         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71537         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71538         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71539         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71540         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71541         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71542         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71543         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71544         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71545         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71546
71547         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71548         last change; it caused a compilation error when cross-compiling to
71549         Cygwin.
71550
71551 2007-01-18  Jim Meyering  <jim@meyering.net>
71552
71553         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71554         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71555         than the race-prone "test -d sys || mkdir sys".
71556         (configure.ac): Use AC_PROG_MKDIR_P.
71557         * modules/sys_select: Likewise.
71558         * modules/sys_socket: Likewise.
71559         * modules/sys_time: Likewise.
71560
71561 2007-01-18  Eric Blake  <ebb9@byu.net>
71562
71563         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71564         replace gettimeofday.
71565         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71566         name, to avoid infinite recursion.
71567
71568 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71571         module sys_time.
71572         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71573         assume timespec.h defines struct timeval.
71574         * lib/settime.c: Likewise.
71575         * lib/utimens.c: Likewise.
71576         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71577         since we now assume the gettimeofday module.
71578         * lib/tempname.c (__gen_tempname): Likewise.
71579         * lib/gettimeofday.h: Remove.
71580         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71581         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71582         Include <time.h>, for 'time()'.
71583         (localtime_buffer_addr): Also use this workaround if
71584         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71585         to simplify the uses.  All uses changed.
71586         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71587         that #undef is inside {}, and 'const' follows type name consistently.
71588         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71589         (gettimeofday): Do not use the maximum possible value for
71590         tv->tv_usec, since that might break usages other than ls.c.
71591         Instead, we'll leave ls.c alone.  This undoes today's patch
71592         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71593         we've never observed the problem but might as well keep the
71594         canary.
71595         * lib/nanosleep.c: Include timespec.h first, for interface check.
71596         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71597         now assume the sys_time module.
71598         * lib/tempname.c: Likewise.
71599         * lib/timespec.h: Likewise.
71600         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71601         needed.
71602         * lib/strftime.c: Likewise.
71603         * lib/timespec.h: Likewise.
71604         * lib/posixtm.c: Include posixtm.h first, for interface check.
71605         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71606         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71607         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71608         * lib/sys_time_.h: New file.
71609         * lib/timespec.h (struct timespec): Use long int, not long.
71610         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71611         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71612         Remove obsolescent call to AC_HEADER_TIME.
71613         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71615         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71616         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71617         Likewise.
71618         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71619         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71620         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71621         into the sys_time module.  Check for gettimeofday just once.
71622         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71623         for gettimeofday signature to just check the signature.  Merely
71624         compile it, since linking doesn't test signature.  Improve test for
71625         whether gettimeofday.o is actually needed.
71626         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71627         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71628         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71629         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71630         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71631         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71632         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71633         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71634         than worrying about sys/time.h.
71635         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71636         Don't bother worrying about TIME_WITH_SYS_TIME.
71637         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71638         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71639         * m4/sys_time_h.m4: New file.
71640         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71641         Don't include sys/time.h.  Return from main rather than exiting.
71642         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71643         all uses changed.
71644         * modules/gethrxtime (Depends-on): Add sys_time.
71645         * modules/gettime (Depends-on): Likewise.
71646         * modules/gettimeofday (Depends-on): Likewise.
71647         * modules/nanosleep (Depends-on): Likewise.
71648         * modules/settime (Depends-on): Likewise.
71649         * modules/tempname (Depends-on): Likewise.
71650         * modules/utimens (Depends-on): Likewise.
71651         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71652         (Include): Change back to <sys/time.h>.
71653         (Maintainer): Add self.
71654         * modules/sys_time: New file.
71655         * modules/tempname (Depends-on): Add gettimeofday.
71656         * tests/test-gettimeofday.c: Include <sys/time.h>
71657         rather than gettimeofday.h.
71658
71659 2007-01-17  Bruno Haible  <bruno@clisp.org>
71660
71661         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71662         the license default to GPL.
71663         (func_create_testdir): Don't complain if a module is LGPL and its
71664         tests module depends on GPLed modules.
71665
71666 2007-01-17  Bruno Haible  <bruno@clisp.org>
71667
71668         * lib/gettimeofday.c (gettimeofday): Add code for the case
71669         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71670         maximum possible value for tv->tv_usec, rather than the minimum one.
71671
71672 2005-10-08  Martin Lambers  <marlam@marlam.de>
71673 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71674 2007-01-16  Bruno Haible  <bruno@clisp.org>
71675
71676         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71677         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71678         gl_FUNC_GETTIMEOFDAY.
71679         (Include): Add gettimeofday.h.
71680         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71681         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71682         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71683         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71684         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71685         * lib/gettimeofday.h: New file.
71686         * lib/gettimeofday.c: Include <sys/timeb.h>.
71687         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71688         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71689         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71690         fall back on time().
71691
71692         * tests/test-gettimeofday.c: New file.
71693         * modules/gettimeofday-tests: New file.
71694
71695 2007-01-16  Eric Blake  <ebb9@byu.net>
71696
71697         * modules/fnmatch (Depends-on): Depend on wchar.
71698         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71699         * m4/fnmatch.m4: Likewise.
71700         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71701         * m4/mbchar.m4: Likewise.
71702         * modules/mbswidth (Depends-on): Depend on wchar.
71703         * lib/mbswidth.c: Assume <wchar.h>.
71704         * m4/mbswidth.m4: Likewise.
71705         * modules/quotearg (Depends-on): Depend on wchar.
71706         * lib/quotearg.c: Assume <wchar.h>.
71707         * m4/quotearg.m4: Likewise.
71708         * modules/regex (Depends-on): Depend on wchar.
71709         * lib/regex_internal.h: Assume <wchar.h>.
71710         * m4/regex.m4: Likewise.
71711         * modules/stdint (Depends-on): Depend on wchar.
71712         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71713         * m4/stdint.m4: Likewise.
71714         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71715         * modules/strftime (Depends-on): Depend on wchar.
71716         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71717         * modules/strtol (Depends-on): Depend on wchar.
71718         * lib/strtol.c: Assume <wchar.h>.
71719         * modules/wcwidth (Depends-on): Depend on wchar.
71720         * lib/wcwidth.h: Assume <wchar.h>.
71721         * m4/wcwidth.m4: Likewise.
71722
71723 2007-01-16  Bruno Haible  <bruno@clisp.org>
71724
71725         * modules/csharpexec-script: New, created from...
71726         * modules/csharpexec: ... this.
71727
71728 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71729
71730         * modules/javaexec-script: New, created from...
71731         * modules/javaexec: ... this.
71732
71733 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71734
71735         * modules/poll (Dependencies): Add sys_select.
71736
71737 2007-01-15  Jim Meyering  <jim@meyering.net>
71738
71739         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71740         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71741         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71742         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71743
71744 2007-01-15  Bruno Haible  <bruno@clisp.org>
71745
71746         * modules/striconveh: New file.
71747         * lib/striconveh.h: New file.
71748         * lib/striconveh.c: New file.
71749         * MODULES.html.sh (Internationalization functions): Add striconveh.
71750
71751         * modules/striconveh-tests: New file.
71752         * tests/test-striconveh.c: New file.
71753
71754 2007-01-15  Bruno Haible  <bruno@clisp.org>
71755
71756         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71757         not from GNU libiconv or GNU libc.
71758
71759 2007-01-15  Bruno Haible  <bruno@clisp.org>
71760
71761         * doc/gnulib-intro.texi (Copyright): Explain the different license
71762         terms for module descriptions, autoconf macros, tests, documentation.
71763
71764 2007-01-14  Bruno Haible  <bruno@clisp.org>
71765
71766         * modules/striconv-tests: New file.
71767         * tests/test-striconv.c: New file.
71768
71769 2007-01-14  Bruno Haible  <bruno@clisp.org>
71770
71771         * modules/iconv-tests: New file.
71772         * tests/test-iconv.c: New file.
71773
71774 2007-01-14  Bruno Haible  <bruno@clisp.org>
71775
71776         * gnulib-tool (func_get_license): For test modules, use the license of
71777         the main module.
71778
71779 2007-01-14  Bruno Haible  <bruno@clisp.org>
71780
71781         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71782         if iconv is found to exist.
71783
71784 2007-01-14  Bruno Haible  <bruno@clisp.org>
71785
71786         * modules/c-ctype-tests: New file.
71787         * tests/test-c-ctype.c: New file.
71788
71789 2007-01-14  Bruno Haible  <bruno@clisp.org>
71790
71791         * modules/binary-io-tests: New file.
71792         * tests/test-binary-io.sh: New file.
71793         * tests/test-binary-io.c: New file.
71794
71795 2007-01-14  Bruno Haible  <bruno@clisp.org>
71796
71797         * modules/array-oset-tests: New file.
71798         * tests/test-array_oset.c: New file.
71799
71800 2007-01-14  Bruno Haible  <bruno@clisp.org>
71801
71802         * modules/array-list-tests: New file.
71803         * tests/test-array_list.c: New file.
71804
71805 2007-01-14  Bruno Haible  <bruno@clisp.org>
71806
71807         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71808         and make.
71809         Reported by Simon Josefsson in
71810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71811
71812 2007-01-14  Bruno Haible  <bruno@clisp.org>
71813
71814         * modules/allocsa-tests: New file.
71815         * tests/test-allocsa.c: New file.
71816
71817 2007-01-14  Bruno Haible  <bruno@clisp.org>
71818
71819         * modules/fchdir (Depends-on): Add absolute-header.
71820         * modules/unistd (Depends-on): Likewise.
71821
71822 2006-12-30  Bruno Haible  <bruno@clisp.org>
71823
71824         * modules/fchdir: New file.
71825         * modules/unistd (Files): Add lib/unistd_.h.
71826         (Makefile.am): Generate unistd.h from unistd_.h.
71827         * lib/fchdir.c: New file.
71828         * lib/dirent_.h: New file.
71829         * lib/unistd_.h: New file.
71830         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71831         * m4/fchdir.m4: New file.
71832         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71833         (gl_HEADER_UNISTD): Invoke it.
71834         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71835         function.
71836         * lib/backupfile.c (opendir, closedir): Undefine.
71837         * lib/chown.c (open, close): Undefine.
71838         * lib/clean-temp.c (open, close): Undefine.
71839         * lib/copy-file.c (open, close): Undefine.
71840         * lib/execute.c (open, close): Undefine.
71841         * lib/fsusage.c (open, close): Undefine.
71842         * lib/gc-gnulib.c (open, close): Undefine.
71843         * lib/getcwd.c (opendir, closedir): Undefine.
71844         * lib/glob.c (opendir, closedir): Undefine.
71845         * lib/javacomp.c (open, close): Undefine.
71846         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71847         * lib/openat-proc.c (open, close): Undefine.
71848         * lib/pagealign_alloc.c (open, close): Undefine.
71849         * lib/pipe.c (open, close): Undefine.
71850         * lib/progreloc.c (open, close): Undefine.
71851         * lib/savedir.c (opendir, closedir): Undefine.
71852         * lib/utime.c (open, close): Undefine.
71853         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71854
71855 2007-01-10  Bruno Haible  <bruno@clisp.org>
71856
71857         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71858
71859 2007-01-12  Eric Blake  <ebb9@byu.net>
71860
71861         Provide a robust <wchar.h>.  Further simplifications are now
71862         possible in other modules, but not included here.
71863         * modules/wchar: New module.
71864         * m4/wchar.m4: New file.
71865         * lib/wchar_.h: Likewise.
71866         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71867         of the new module.
71868         * MODULES.html.sh (Extended multibyte and wide character utilities):
71869         New section.
71870
71871 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71872
71873         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71874         to a reasonable default for memory allocation.
71875         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71876         file system that reports garbage st_size values for symlinks.
71877         Problem reported by Liyang Hu.
71878
71879 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71880
71881         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71882         Emacs .#* auto-save files).
71883
71884 2007-01-11  Bruno Haible  <bruno@clisp.org>
71885
71886         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71887         directory.
71888
71889 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71890
71891         Use @...@ consistently in lib/wctype_.h.
71892         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71893         on it being set to 1 or 0.
71894         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71895         go back to AC_SUBSTing it.
71896         * modules/wctype (Makefile.am): Undo previous change.
71897
71898 2007-01-10  Eric Blake  <ebb9@byu.net>
71899
71900         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71901         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71902         * modules/wctype (Makefile.am): Likewise.
71903         Reported by Chris McGuire.
71904
71905 2007-01-10  Jim Meyering  <jim@meyering.net>
71906
71907         fts.c: a small readability/maintainability improvement
71908         * lib/fts.c (fts_read): Make this code slightly more readable and
71909         maintainable by hoisting the "sp->fts_cur = p" assignments to
71910         immediately follow the statements that set P.  Derived from
71911         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71912
71913 2007-01-10  Eric Blake  <ebb9@byu.net>
71914
71915         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71916         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71918         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71919         Reported by Chris McGuire.
71920
71921 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71922
71923         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71924         in sed script.
71925
71926 2007-01-09  Bruno Haible  <bruno@clisp.org>
71927
71928         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71929         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71930         variables.
71931         (func_module): Use them.
71932
71933 2007-01-09  Bruno Haible  <bruno@clisp.org>
71934
71935         * modules/unistr/base: New file.
71936         * lib/unistr.h: New file.
71937
71938         * modules/unistr/u8-to-u16: New file.
71939         * lib/unistr/u8-to-u16.c: New file.
71940
71941         * modules/unistr/u8-to-u32: New file.
71942         * lib/unistr/u8-to-u32.c: New file.
71943
71944         * modules/unistr/u16-to-u8: New file.
71945         * lib/unistr/u16-to-u8.c: New file.
71946
71947         * modules/unistr/u16-to-u32: New file.
71948         * lib/unistr/u16-to-u32.c: New file.
71949
71950         * modules/unistr/u32-to-u8: New file.
71951         * lib/unistr/u32-to-u8.c: New file.
71952
71953         * modules/unistr/u32-to-u16: New file.
71954         * lib/unistr/u32-to-u16.c: New file.
71955
71956         * modules/unistr/u8-check: New file.
71957         * modules/unistr/u16-check: New file.
71958         * modules/unistr/u32-check: New file.
71959         * lib/unistr/u8-check.c: New file.
71960         * lib/unistr/u16-check.c: New file.
71961         * lib/unistr/u32-check.c: New file.
71962
71963         * modules/unistr/u8-chr: New file.
71964         * modules/unistr/u16-chr: New file.
71965         * modules/unistr/u32-chr: New file.
71966         * lib/unistr/u8-chr.c: New file.
71967         * lib/unistr/u16-chr.c: New file.
71968         * lib/unistr/u32-chr.c: New file.
71969
71970         * modules/unistr/u8-cmp: New file.
71971         * modules/unistr/u16-cmp: New file.
71972         * modules/unistr/u32-cmp: New file.
71973         * lib/unistr/u8-cmp.c: New file.
71974         * lib/unistr/u16-cmp.c: New file.
71975         * lib/unistr/u32-cmp.c: New file.
71976
71977         * modules/unistr/u8-cpy: New file.
71978         * modules/unistr/u16-cpy: New file.
71979         * modules/unistr/u32-cpy: New file.
71980         * lib/unistr/u8-cpy.c: New file.
71981         * lib/unistr/u16-cpy.c: New file.
71982         * lib/unistr/u32-cpy.c: New file.
71983         * lib/unistr/u-cpy.h: New file.
71984
71985         * modules/unistr/u8-cpy-alloc: New file.
71986         * modules/unistr/u16-cpy-alloc: New file.
71987         * modules/unistr/u32-cpy-alloc: New file.
71988         * lib/unistr/u8-cpy-alloc.c: New file.
71989         * lib/unistr/u16-cpy-alloc.c: New file.
71990         * lib/unistr/u32-cpy-alloc.c: New file.
71991         * lib/unistr/u-cpy-alloc.h: New file.
71992
71993         * modules/unistr/u8-endswith: New file.
71994         * modules/unistr/u16-endswith: New file.
71995         * modules/unistr/u32-endswith: New file.
71996         * lib/unistr/u8-endswith.c: New file.
71997         * lib/unistr/u16-endswith.c: New file.
71998         * lib/unistr/u32-endswith.c: New file.
71999         * lib/unistr/u-endswith.h: New file.
72000
72001         * modules/unistr/u8-mblen: New file.
72002         * modules/unistr/u16-mblen: New file.
72003         * modules/unistr/u32-mblen: New file.
72004         * lib/unistr/u8-mblen.c: New file.
72005         * lib/unistr/u16-mblen.c: New file.
72006         * lib/unistr/u32-mblen.c: New file.
72007
72008         * modules/unistr/u8-mbtouc: New file.
72009         * modules/unistr/u16-mbtouc: New file.
72010         * modules/unistr/u32-mbtouc: New file.
72011         * lib/unistr/u8-mbtouc.c: New file.
72012         * lib/unistr/u16-mbtouc.c: New file.
72013         * lib/unistr/u32-mbtouc.c: New file.
72014
72015         * modules/unistr/u8-mbtouc-safe: New file.
72016         * modules/unistr/u16-mbtouc-safe: New file.
72017         * modules/unistr/u32-mbtouc-safe: New file.
72018         * lib/unistr/u8-mbtouc-safe.c: New file.
72019         * lib/unistr/u16-mbtouc-safe.c: New file.
72020         * lib/unistr/u32-mbtouc-safe.c: New file.
72021
72022         * modules/unistr/u8-move: New file.
72023         * modules/unistr/u16-move: New file.
72024         * modules/unistr/u32-move: New file.
72025         * lib/unistr/u8-move.c: New file.
72026         * lib/unistr/u16-move.c: New file.
72027         * lib/unistr/u32-move.c: New file.
72028         * lib/unistr/u-move.h: New file.
72029
72030         * modules/unistr/u8-next: New file.
72031         * modules/unistr/u16-next: New file.
72032         * modules/unistr/u32-next: New file.
72033         * lib/unistr/u8-next.c: New file.
72034         * lib/unistr/u16-next.c: New file.
72035         * lib/unistr/u32-next.c: New file.
72036
72037         * modules/unistr/u8-prev: New file.
72038         * modules/unistr/u16-prev: New file.
72039         * modules/unistr/u32-prev: New file.
72040         * lib/unistr/u8-prev.c: New file.
72041         * lib/unistr/u16-prev.c: New file.
72042         * lib/unistr/u32-prev.c: New file.
72043
72044         * modules/unistr/u8-set: New file.
72045         * modules/unistr/u16-set: New file.
72046         * modules/unistr/u32-set: New file.
72047         * lib/unistr/u8-set.c: New file.
72048         * lib/unistr/u16-set.c: New file.
72049         * lib/unistr/u32-set.c: New file.
72050         * lib/unistr/u-set.h: New file.
72051
72052         * modules/unistr/u8-startswith: New file.
72053         * modules/unistr/u16-startswith: New file.
72054         * modules/unistr/u32-startswith: New file.
72055         * lib/unistr/u8-startswith.c: New file.
72056         * lib/unistr/u16-startswith.c: New file.
72057         * lib/unistr/u32-startswith.c: New file.
72058         * lib/unistr/u-startswith.h: New file.
72059
72060         * modules/unistr/u8-stpcpy: New file.
72061         * modules/unistr/u16-stpcpy: New file.
72062         * modules/unistr/u32-stpcpy: New file.
72063         * lib/unistr/u8-stpcpy.c: New file.
72064         * lib/unistr/u16-stpcpy.c: New file.
72065         * lib/unistr/u32-stpcpy.c: New file.
72066         * lib/unistr/u-stpcpy.h: New file.
72067
72068         * modules/unistr/u8-stpncpy: New file.
72069         * modules/unistr/u16-stpncpy: New file.
72070         * modules/unistr/u32-stpncpy: New file.
72071         * lib/unistr/u8-stpncpy.c: New file.
72072         * lib/unistr/u16-stpncpy.c: New file.
72073         * lib/unistr/u32-stpncpy.c: New file.
72074         * lib/unistr/u-stpncpy.h: New file.
72075
72076         * modules/unistr/u8-strcat: New file.
72077         * modules/unistr/u16-strcat: New file.
72078         * modules/unistr/u32-strcat: New file.
72079         * lib/unistr/u8-strcat.c: New file.
72080         * lib/unistr/u16-strcat.c: New file.
72081         * lib/unistr/u32-strcat.c: New file.
72082         * lib/unistr/u-strcat.h: New file.
72083
72084         * modules/unistr/u8-strchr: New file.
72085         * modules/unistr/u16-strchr: New file.
72086         * modules/unistr/u32-strchr: New file.
72087         * lib/unistr/u8-strchr.c: New file.
72088         * lib/unistr/u16-strchr.c: New file.
72089         * lib/unistr/u32-strchr.c: New file.
72090
72091         * modules/unistr/u8-strcmp: New file.
72092         * modules/unistr/u16-strcmp: New file.
72093         * modules/unistr/u32-strcmp: New file.
72094         * lib/unistr/u8-strcmp.c: New file.
72095         * lib/unistr/u16-strcmp.c: New file.
72096         * lib/unistr/u32-strcmp.c: New file.
72097
72098         * modules/unistr/u8-strcpy: New file.
72099         * modules/unistr/u16-strcpy: New file.
72100         * modules/unistr/u32-strcpy: New file.
72101         * lib/unistr/u8-strcpy.c: New file.
72102         * lib/unistr/u16-strcpy.c: New file.
72103         * lib/unistr/u32-strcpy.c: New file.
72104         * lib/unistr/u-strcpy.h: New file.
72105
72106         * modules/unistr/u8-strcspn: New file.
72107         * modules/unistr/u16-strcspn: New file.
72108         * modules/unistr/u32-strcspn: New file.
72109         * lib/unistr/u8-strcspn.c: New file.
72110         * lib/unistr/u16-strcspn.c: New file.
72111         * lib/unistr/u32-strcspn.c: New file.
72112         * lib/unistr/u-strcspn.h: New file.
72113
72114         * modules/unistr/u8-strdup: New file.
72115         * modules/unistr/u16-strdup: New file.
72116         * modules/unistr/u32-strdup: New file.
72117         * lib/unistr/u8-strdup.c: New file.
72118         * lib/unistr/u16-strdup.c: New file.
72119         * lib/unistr/u32-strdup.c: New file.
72120         * lib/unistr/u-strdup.h: New file.
72121
72122         * modules/unistr/u8-strlen: New file.
72123         * modules/unistr/u16-strlen: New file.
72124         * modules/unistr/u32-strlen: New file.
72125         * lib/unistr/u8-strlen.c: New file.
72126         * lib/unistr/u16-strlen.c: New file.
72127         * lib/unistr/u32-strlen.c: New file.
72128         * lib/unistr/u-strlen.h: New file.
72129
72130         * modules/unistr/u8-strmblen: New file.
72131         * modules/unistr/u16-strmblen: New file.
72132         * modules/unistr/u32-strmblen: New file.
72133         * lib/unistr/u8-strmblen.c: New file.
72134         * lib/unistr/u16-strmblen.c: New file.
72135         * lib/unistr/u32-strmblen.c: New file.
72136
72137         * modules/unistr/u8-strmbtouc: New file.
72138         * modules/unistr/u16-strmbtouc: New file.
72139         * modules/unistr/u32-strmbtouc: New file.
72140         * lib/unistr/u8-strmbtouc.c: New file.
72141         * lib/unistr/u16-strmbtouc.c: New file.
72142         * lib/unistr/u32-strmbtouc.c: New file.
72143
72144         * modules/unistr/u8-strncat: New file.
72145         * modules/unistr/u16-strncat: New file.
72146         * modules/unistr/u32-strncat: New file.
72147         * lib/unistr/u8-strncat.c: New file.
72148         * lib/unistr/u16-strncat.c: New file.
72149         * lib/unistr/u32-strncat.c: New file.
72150         * lib/unistr/u-strncat.h: New file.
72151
72152         * modules/unistr/u8-strncmp: New file.
72153         * modules/unistr/u16-strncmp: New file.
72154         * modules/unistr/u32-strncmp: New file.
72155         * lib/unistr/u8-strncmp.c: New file.
72156         * lib/unistr/u16-strncmp.c: New file.
72157         * lib/unistr/u32-strncmp.c: New file.
72158
72159         * modules/unistr/u8-strncpy: New file.
72160         * modules/unistr/u16-strncpy: New file.
72161         * modules/unistr/u32-strncpy: New file.
72162         * lib/unistr/u8-strncpy.c: New file.
72163         * lib/unistr/u16-strncpy.c: New file.
72164         * lib/unistr/u32-strncpy.c: New file.
72165         * lib/unistr/u-strncpy.h: New file.
72166
72167         * modules/unistr/u8-strnlen: New file.
72168         * modules/unistr/u16-strnlen: New file.
72169         * modules/unistr/u32-strnlen: New file.
72170         * lib/unistr/u8-strnlen.c: New file.
72171         * lib/unistr/u16-strnlen.c: New file.
72172         * lib/unistr/u32-strnlen.c: New file.
72173         * lib/unistr/u-strnlen.h: New file.
72174
72175         * modules/unistr/u8-strpbrk: New file.
72176         * modules/unistr/u16-strpbrk: New file.
72177         * modules/unistr/u32-strpbrk: New file.
72178         * lib/unistr/u8-strpbrk.c: New file.
72179         * lib/unistr/u16-strpbrk.c: New file.
72180         * lib/unistr/u32-strpbrk.c: New file.
72181         * lib/unistr/u-strpbrk.h: New file.
72182
72183         * modules/unistr/u8-strrchr: New file.
72184         * modules/unistr/u16-strrchr: New file.
72185         * modules/unistr/u32-strrchr: New file.
72186         * lib/unistr/u8-strrchr.c: New file.
72187         * lib/unistr/u16-strrchr.c: New file.
72188         * lib/unistr/u32-strrchr.c: New file.
72189
72190         * modules/unistr/u8-strspn: New file.
72191         * modules/unistr/u16-strspn: New file.
72192         * modules/unistr/u32-strspn: New file.
72193         * lib/unistr/u8-strspn.c: New file.
72194         * lib/unistr/u16-strspn.c: New file.
72195         * lib/unistr/u32-strspn.c: New file.
72196         * lib/unistr/u-strspn.h: New file.
72197
72198         * modules/unistr/u8-strstr: New file.
72199         * modules/unistr/u16-strstr: New file.
72200         * modules/unistr/u32-strstr: New file.
72201         * lib/unistr/u8-strstr.c: New file.
72202         * lib/unistr/u16-strstr.c: New file.
72203         * lib/unistr/u32-strstr.c: New file.
72204         * lib/unistr/u-strstr.h: New file.
72205
72206         * modules/unistr/u8-strtok: New file.
72207         * modules/unistr/u16-strtok: New file.
72208         * modules/unistr/u32-strtok: New file.
72209         * lib/unistr/u8-strtok.c: New file.
72210         * lib/unistr/u16-strtok.c: New file.
72211         * lib/unistr/u32-strtok.c: New file.
72212         * lib/unistr/u-strtok.h: New file.
72213
72214         * modules/unistr/u8-uctomb: New file.
72215         * modules/unistr/u16-uctomb: New file.
72216         * modules/unistr/u32-uctomb: New file.
72217         * lib/unistr/u8-uctomb.c: New file.
72218         * lib/unistr/u16-uctomb.c: New file.
72219         * lib/unistr/u32-uctomb.c: New file.
72220
72221         * MODULES.html.sh (Unicode string functions): Add the new modules.
72222
72223 2007-01-08  Bruno Haible  <bruno@clisp.org>
72224
72225         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72226         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72227         subdirectories.
72228
72229 2007-01-08  Karl Berry  <karl@gnu.org>
72230
72231         * doc/error.texi: mention that main() fns must set program_name
72232         when progname is used.
72233
72234 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72235
72236         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72237         WCTYPE_H is empty, for the benefit of builds from non-distclean
72238         directories.  Problem reported by Eric Blake in
72239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72240
72241 2007-01-08  Bruno Haible  <bruno@clisp.org>
72242
72243         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72244         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72245         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72246         PROVIDE_CANONICALIZE_FILENAME_MODE.
72247         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72248
72249 2007-01-08  Bruno Haible  <bruno@clisp.org>
72250
72251         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72252         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72253         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72254         * lib/fts.c: Likewise.
72255         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72256
72257 2006-12-25  Bruno Haible  <bruno@clisp.org>
72258
72259         * modules/utf8-ucs4-safe: New file.
72260         * lib/utf8-ucs4-safe.h: New file.
72261         * lib/unistr/utf8-ucs4-safe.c: New file.
72262
72263         * modules/utf16-ucs4-safe: New file.
72264         * lib/utf16-ucs4-safe.h: New file.
72265         * lib/unistr/utf16-ucs4-safe.c: New file.
72266
72267         * MODULES.html.sh (Unicode string functions): Add the new modules.
72268
72269 2007-01-08  Bruno Haible  <bruno@clisp.org>
72270
72271         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72272         (Depends-on): Add unitypes.
72273         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72274         (u8_mbtouc_aux): Move out to separate file.
72275         (u8_mbtouc): Use ucs4_t, uint8_t types.
72276         * lib/unistr/utf8-ucs4.c: New file.
72277
72278         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72279         (Depends-on): Add unitypes.
72280         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72281         (u16_mbtouc_aux): Move out to separate file.
72282         (u16_mbtouc): Use ucs4_t, uint16_t types.
72283         * lib/unistr/utf16-ucs4.c: New file.
72284
72285         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72286         (Depends-on): Add unitypes.
72287         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72288         (u8_uctomb_aux): Move out to separate file.
72289         (u8_uctomb): Use ucs4_t, uint8_t types.
72290         * lib/unistr/ucs4-utf8.c: New file.
72291
72292         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72293         (Depends-on): Add unitypes.
72294         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72295         (u16_uctomb_aux): Move out to separate file.
72296         (u16_uctomb): Use ucs4_t, uint16_t types.
72297         * lib/unistr/ucs4-utf16.c: New file.
72298
72299 2006-12-25  Bruno Haible  <bruno@clisp.org>
72300
72301         * modules/unitypes: New file.
72302         * lib/unitypes.h: New file.
72303         * MODULES.html.sh (func_all_modules): New section "Unicode string
72304         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72305         this section. Add unitypes.
72306
72307 2007-01-08  Bruno Haible  <bruno@clisp.org>
72308
72309         Avoid variable names that conflict with those from libtool.
72310         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72311         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72312         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72313         library_names_spec to acl_library_names_spec, hardcode_* to
72314         acl_hardcode_*.
72315         Reported by Ralf Wildenhues.
72316
72317 2007-01-08  Bruno Haible  <bruno@clisp.org>
72318
72319         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72320         definition.
72321         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72322         definition.
72323         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72324         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72325         definition.
72326         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72327         definition.
72328         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72329         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72330         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72331         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72332         definition.
72333         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72334         definition.
72335         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72336         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72337         GC_USE_<algorithm>.
72338         * lib/gc-libgcrypt.c: Likewise.
72339         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72340         * modules/gc-arctwo (configure.ac): Likewise.
72341         * modules/gc-des (configure.ac): Likewise.
72342         * modules/gc-hmac-md5 (configure.ac): Likewise.
72343         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72344         * modules/gc-md2 (configure.ac): Likewise.
72345         * modules/gc-md4 (configure.ac): Likewise.
72346         * modules/gc-md5 (configure.ac): Likewise.
72347         * modules/gc-random (configure.ac): Likewise.
72348         * modules/gc-rijndael (configure.ac): Likewise.
72349         * modules/gc-sha1 (configure.ac): Likewise.
72350
72351 2007-01-08  Bruno Haible  <bruno@clisp.org>
72352
72353         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72354         macro definition.
72355         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72356         definition.
72357         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72358         definition.
72359         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72360         * modules/fcntl-safer (configure.ac): Likewise.
72361         * modules/fopen-safer (configure.ac): Likewise.
72362         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72363         GNULIB_FWRITEERROR macro definition.
72364
72365 2007-01-08  Bruno Haible  <bruno@clisp.org>
72366
72367         * m4/gnulib-common.m4: New file.
72368         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72369         (func_get_filelist): Add m4/gnulib-common.m4.
72370
72371 2007-01-08  Bruno Haible  <bruno@clisp.org>
72372
72373         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72374         command.
72375
72376 2007-01-08  Jim Meyering  <jim@meyering.net>
72377
72378         Use a more robust test for a "can't happen" condition.
72379         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72380         narrowed the st_size value.  Presuming the "can't happen" condition
72381         is true, that narrowing could conceivably convert an invalid st_size
72382         value into a valid one.  Instead, use a change based on Matthew
72383         Woehlke's original patch.
72384
72385         Slight readability improvement: use an assert-like macro
72386         in place of literal "abort ()" uses.
72387         * lib/fts.c (fts_assert): Define.
72388         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72389         Use this macro instead of a bare 'abort'.
72390
72391 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72392
72393         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72394         simply work around them.
72395         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72396         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72397         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72398         declaring.
72399         Don't bother to define as macros, since the standard doesn't require it.
72400         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72401         longer worry about IRIX 5.3.
72402         (HAVE_WCTYPE_CTMP_BUG): Remove.
72403
72404 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72405
72406         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72407         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72408         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72409         Problems reported by Georg Schwarz for IRIX 5.3.
72410
72411         * gnulib-tool (autoconf_minversion): Take the maximum version number
72412         found, not the minimum.  Problem reported by James Youngman.
72413
72414 2007-01-03  Karl Berry  <karl@gnu.org>
72415
72416         * doc/error.texi: new file, explaining interaction with progname.
72417         * doc/gnulib.texi: include it.  Update copyright.
72418
72419 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72420
72421         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72422         AC_CANONICAL_HOST, to improve autobuild outputs.
72423
72424 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72425             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72426
72427         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72428         sockets, server sockets, and other file descriptors.  Count errors
72429         to compute the return value.  Reorder the code a bit to be easier
72430         to follow.  Don't set event bits that were not requested (except
72431         POLLERR and POLLHUP).
72432
72433 2007-01-01  Bruno Haible  <bruno@clisp.org>
72434
72435         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72436
72437 2007-01-03  Jim Meyering  <jim@meyering.net>
72438
72439         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72440
72441 2007-01-02  Bruno Haible  <bruno@clisp.org>
72442
72443         * modules/settime (Include): Require timespec.h.
72444         * modules/nanosleep (Include): Likewise.
72445
72446 2007-01-01  Bruno Haible  <bruno@clisp.org>
72447
72448         * gnulib-tool (func_emit_copyright_notice): Bump year.
72449         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72450
72451 2007-01-01  Bruno Haible  <bruno@clisp.org>
72452
72453         Improve support for OpenBSD.
72454         * build-aux/config.rpath (libname_spec): Export.
72455         (library_names_spec): New variable. Export.
72456         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72457         library_names_spec from the config.rpath output. Locate shared library
72458         through the name pattern in library_names_spec.
72459
72460 2007-01-01  Eric Blake  <ebb9@byu.net>
72461
72462         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72463
72464 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72467         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72468         assume the C locale, and avoid an "eval" that could cause trouble.
72469         Problem with SORT reported by Bob Proulx.
72470
72471         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72472         Define.  Trivial patch from Henning Nielsen Lund, originally
72473         sent to bug-grep@gnu.org today.
72474
72475 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72476
72477         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72478         struct stat.  Problem reported by Henning Nielsen Lund.
72479         * lib/acl.c: Include acl.h first, to check interface.  Don't
72480         bother to include sys/types.h and sys/stat.h again.
72481
72482 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72483
72484         Import the following change from libc; problem reported by
72485         Sven Verdoolaege.
72486
72487         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72488
72489         [BZ #1373]
72490         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72491
72492 2006-12-28  Jim Meyering  <jim@meyering.net>
72493
72494         * build-aux/announce-gen: Do not assume that the package
72495         builds any of tar.gz, tar.bz2, and .xdelta files.
72496         Suggestion from Simon Josefsson.
72497
72498 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72499
72500         * modules/announce-gen: New file.
72501
72502 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72503
72504         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72505         handles its gotchas now.
72506         * lib/mbswidth.c: Likewise.
72507         * lib/wcwidth.h: Likewise.
72508         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72509         and iswcntrl; the wctype module does this stuff now.
72510         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72512         * modules/mbchar (Depends-on): Add wctype.
72513         * modules/mbswidth (Depends-on): Likewise.
72514         * modules/wcwidth (Depends-on): Likewise.
72515
72516 2006-12-27  Eric Blake  <ebb9@byu.net>
72517
72518         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72519         module uses more than what <wctype.h> is required to provide.
72520
72521 2006-12-26  Eric Blake  <ebb9@byu.net>
72522
72523         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72524
72525 2006-12-26  Eric Blake  <ebb9@byu.net>
72526
72527         * modules/absolute-header: New module.
72528         * modules/fcntl (Depends-on): Depend on it.
72529         * modules/inttypes (Depends-on): Likewise.
72530         * modules/stdint (Depends-on): Likewise.
72531         * modules/sys_stat (Depends-on): Likewise.
72532         * modules/wctype (Depends-on): Likewise.
72533         * MODULES.html.sh (Support for building libraries and
72534         executables): Document it.
72535
72536 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72537
72538         * gnulib-tool (SED): Remove, undoing previous change.
72539         The problem was that it broke coreutils on Solaris, because
72540         "sed --posix" leaked into a makefile.
72541         (sed): New alias, if 'alias' and GNU sed.
72542
72543 2006-12-24  Jim Meyering  <jim@meyering.net>
72544
72545         Work around an fchownat bug in glibc-2.4:
72546         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72547         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72548         in spite of the -P option.
72549         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72550         New macros.
72551         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72552         * modules/openat (Files): Add lib/fchownat.c.
72553         * lib/openat.c (fchownat): Don't define here.  Move to...
72554         * lib/fchownat.c: ...this new file.
72555
72556 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72557
72558         Fix bug reported by Bruno Haible in
72559         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72560         where quotearg.c didn't compile on Mac OS X 10.2 because it
72561         lacks <wchar.h> and wint_t.
72562         * lib/wctype_.h (__wctype_wint_t): New type.
72563         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72564         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72565         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72566         Arg is now of type __wctype_wint_t, not wint_t.
72567         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72568         substitute HAVE_WINT_T.
72569         * modules/wctype (Files): Add m4/wint_t.m4.
72570         (wctype.h): Substitute HAVE_WINT_T.
72571
72572 2006-12-23  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72575
72576 2006-12-23  Bruno Haible  <bruno@clisp.org>
72577
72578         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72579         S_ISLNK.
72580         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72581         mingw.
72582
72583 2006-12-22  Bruno Haible  <bruno@clisp.org>
72584
72585         * lib/copy-file.c: Include acl.h.
72586         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72587         Close the file descriptors only after being done with copy_acl.
72588         * modules/copy-file (Depends-on): Add acl.
72589
72590 2006-12-22  Bruno Haible  <bruno@clisp.org>
72591
72592         * gnulib-tool (SED): New variable.
72593         Use $SED instead of sed everywhere.
72594
72595 2006-12-22  Bruno Haible  <bruno@clisp.org>
72596
72597         * modules/no-c++: New file.
72598         * m4/no-c++.m4: New file.
72599         * MODULES.html.sh (Support for building libraries and executables):
72600         Add no-c++.
72601
72602 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72603
72604         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72605         Include <limits.h>, and use its INT_MAX to rewrite the
72606         j loop so that it does not overflow 'int'.  Problem reported by
72607         Ralf Wildenhues in
72608         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72609         Play it safe by shifting left by 1 rather than multiplying by 2,
72610         as GCC is less likely to optimize this away when the value
72611         is signed (when it assumes overflow leads to undefined behavior).
72612         Also, don't assume time_t uses two's complement.
72613
72614 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72615
72616         * MODULES.html.sh: New module wctype.
72617         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72618         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72619         <wctype.h>, since the new wctype module should fix this.
72620         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72621         the wctype module should arrange for it.
72622         * lib/regex_internal.h: Likewise.
72623         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72624         since the wctype module should handle this now.
72625         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72626         * modules/fnmatch (Depends-on): Add wctype.
72627         * modules/quotearg (Depends-on): Likewise.
72628         * modules/regex (Depends-on): Likewise.
72629
72630 2006-12-19  Bruno Haible  <bruno@clisp.org>
72631
72632         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72633         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72634
72635 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72636
72637         * modules/savewd (Depends-on): Fix dependency on fcntl.
72638
72639 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72640
72641         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72642         conforms to C99, rather than relying on the user's environment
72643         setting of STDINT_H.
72644
72645 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72646         and Eric Blake  <ebb9@byu.net>
72647
72648         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72649         This is more consistent with the other defines here.
72650         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72651         Port to z/OS.  Problem reported by Paul Gilmartin.
72652         Change local vars to use gl_ prefix rather than ac_.
72653         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72654         with other defines.
72655         * modules/double-slash-root: New module.
72656         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72657         (Depends-on): Add double-slash-root.
72658         * MODULES.html.sh (File system functions): Mention new module.
72659
72660 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72661
72662         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72663         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72664         This is for the benefit of gzip, which doesn't do i18n.
72665
72666 2006-12-12  Jim Meyering  <jim@meyering.net>
72667
72668         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72669         Reported by Andreas Schwab <schwab@suse.de>.
72670
72671 2006-12-12  Bruno Haible  <bruno@clisp.org>
72672
72673         Merge these changes.
72674         2006-09-05  Bruno Haible  <bruno@clisp.org>
72675         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72676         iconv_alloc succeeded.
72677         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72678         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72679         test for " && dest " at the end - dest is always != NULL there. Call
72680         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72681         with 2xNULL arguments, also to flush the state storage. Handle the
72682         IRIX iconv behaviour. Realloc the final result, to throw away unused
72683         memory.
72684
72685 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72688         and fchmodat unconditionally, since glibc 2.4 has them.
72689         Problem reported by Arkadiusz Miskiewicz.
72690
72691 2006-12-10  Bruno Haible  <bruno@clisp.org>
72692
72693         * gnulib-tool (func_import): Show the include files only for those
72694         modules that are copied and specified.
72695         Reported by Karl Berry.
72696
72697 2006-12-08  Jim Meyering  <jim@meyering.net>
72698
72699         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72700         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72701
72702         * build-aux/announce-gen: Add two new options, both optional:
72703         --bootstrap-tools=TOOL_LIST
72704               a comma-separated list of tools, e.g.,
72705               autoconf,automake,bison,gnulib
72706         --gnulib-snapshot-date=DATE
72707               if gnulib is in the bootstrap tool list,
72708               then report this as the snapshot date.
72709               If not specified, use the current date/time.
72710               If you specify a date here, be sure it's UTC.
72711
72712 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72713
72714         * tests/test-argp-2.sh: Fix test to match actual output.
72715         (func_compare): Fix sed script to be portable.
72716
72717 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72718
72719         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72720         workaround for this case.  It is not autoconfigured now; offhand
72721         it's hard to see how to autoconfigure it.
72722
72723 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72724
72725         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72726         a directory that is about to be chowned.  Such a directory's
72727         initial file permissions should permit the owner only and this
72728         should not be changed until after the chown, since the group and
72729         other bits would be incorrect if they granted permission before
72730         the chown.
72731
72732         Fix porting problem for iswctype reported by Georg Schwarz in:
72733         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72734         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72735         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72736         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72737         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72738
72739 2006-12-03  Jim Meyering  <jim@meyering.net>
72740
72741         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72742         p->fts_statp may not yet be defined.
72743         (fts_read): Instead, set it in the caller, once p->fts_statp is
72744         sure to be defined, and corresponds to a top-level directory.
72745         This bug made du -x fail.  Here's the coreutils test case:
72746         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72747         Reported by Mike Frysinger.
72748
72749 2006-12-01  Jim Meyering  <jim@meyering.net>
72750
72751         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72752         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72753         Reported by Simon Josefsson.
72754
72755 2006-11-30  Jim Meyering  <jim@meyering.net>
72756
72757         * m4/warning.m4: Use the all-permissive copyright notice
72758         recommended by RMS (rather than LGPL).
72759         * m4/vararrays.m4: Likewise.
72760         * m4/flexmember.m4: Likewise.
72761
72762 2006-11-29  Bruno Haible  <bruno@clisp.org>
72763
72764         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72765         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72766         using +=.
72767         Reported by Simon Josefsson <simon@josefsson.org>.
72768
72769 2006-11-28  James Youngman <jay@gnu.org>
72770
72771         * README: Advise users that they might find the bug-gnulib@gnu.org
72772         and autotools-announce@gnu.org mailing lists useful.
72773
72774 2006-11-28  Bruno Haible  <bruno@clisp.org>
72775
72776         * m4/ptrdiff_max.m4: Remove file.
72777
72778 2006-11-21  Bruno Haible  <bruno@clisp.org>
72779
72780         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72781         _AC_COMPUTE_INT.
72782         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72783         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72784         _AC_COMPUTE_INT.
72785         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72786         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72787         _AC_COMPUTE_INT.
72788         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72789
72790 2006-11-28  Jim Meyering  <jim@meyering.net>
72791
72792         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72793         warning from "gcc -Wshadow" about shadowing the builtin.
72794
72795 2006-11-27  Bruno Haible  <bruno@clisp.org>
72796
72797         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72798         _AC_COMPUTE_INT.
72799         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72800
72801 2006-11-27  Bruno Haible  <bruno@clisp.org>
72802             Paul Eggert  <eggert@cs.ucla.edu>
72803
72804         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72805
72806 2006-11-26  Bruno Haible  <bruno@clisp.org>
72807
72808         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72809         noinst_LTLIBRARIES.
72810
72811 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72812             Bruno Haible  <bruno@clisp.org>
72813
72814         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72815         if compiling with "gcc -ansi".
72816
72817 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72818
72819         Fix some incompatibilities with gcc -ansi -pedantic.
72820         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72821         if compiling pedantically with GCC, unless it's C99 or later.
72822         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72823         it mishandles gcc -ansi -pedantic as well.
72824         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72825         if gcc -pedantic.
72826         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72827         initializers for struct if -pedantic, unless it's C99 or later.
72828
72829 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72830
72831         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72832         Don't close an fd more than once. Identical atimes indicate
72833         success, not failure.
72834
72835 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72836
72837         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72838
72839 2006-11-23  Jim Meyering  <jim@meyering.net>
72840
72841         * build-aux/announce-gen: New file.  From coreutils.
72842
72843 2006-11-22  Jim Meyering  <jim@meyering.net>
72844
72845         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72846         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72847         (fts_read): Use a temporary to narrow the overused st_size member
72848         before using it in a switch statement.  Reported by Matthew Woehlke.
72849
72850         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72851         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72852
72853 2006-11-20  Bruno Haible  <bruno@clisp.org>
72854
72855         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72856         changequote instead of pairs of brackets.
72857         Reported by Andreas Schwab <schwab@suse.de>.
72858
72859 2006-11-21  Jim Meyering  <jim@meyering.net>
72860
72861         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72862         so as to remain compatible with older compilers.
72863         Patch from Michael Deutschmann.
72864
72865 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         * MODULES.html.sh (File system functions): Add openat.
72868
72869         * lib/openat.h (rpl_fstatat): New macro, if
72870         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72871         (fstatat): Define to rpl_fstatat under the same conditions,
72872         unless COMPILING_FSTATAT.
72873         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72874         seems to have the bug.
72875         * lib/fstatat.c: New file.
72876         * modules/openat (Files): Add it.
72877
72878 2006-11-20  Bruno Haible  <bruno@clisp.org>
72879
72880         * Makefile: New file.
72881
72882 2006-11-20  Jim Meyering  <jim@meyering.net>
72883
72884         The beginnings of syntax-related checks for gnulib.
72885         * lib/Makefile: New file.
72886         * lib/t-idcache: New script.  Ensure that the two halves of
72887         idcache.c stay in sync.
72888
72889         * lib/idcache.c: Adjust comments in user- and group- portions to
72890         be more accurate, and to be consistent with one another.
72891
72892 2006-11-20  Jim Meyering  <jim@meyering.net>
72893
72894         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72895         continue using the flexible array member (thus, this module performs
72896         half as many malloc calls), with the addition that...
72897         (getgroup, getuser): Consistently record a non-match via an empty
72898         "name" string, and map an empty string match to a NULL return value.
72899         * modules/idcache (Depends-on): Re-add flexmember.
72900
72901         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72902         (getuidbyname, getgroup, getgidbyname): Likewise.
72903
72904         Use cleaner syntax: NULL rather than 0.
72905         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72906
72907 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72908
72909         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72910         It mishandled the case where the group was missing.
72911         Problem reported by Greg Schafer.
72912         * modules/idcache: Likewise.
72913
72914 2006-11-18  Jim Meyering  <jim@meyering.net>
72915
72916         * check-module (%exempt_header): Add exception for some
72917         conditionally-included headers.
72918
72919         * modules/i-ring (Depends-on): Add verify.
72920         (License): Change to LGPL.
72921
72922 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72923
72924         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72925         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72926         and inttostr.h.  Use snprintf rather than uinttostr, so that
72927         LGPLed code doesn't depend on GPLed.
72928
72929 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72930
72931         * modules/inline (License): Change from GPL to LGPL.
72932
72933 2006-11-17  Jim Meyering  <jim@meyering.net>
72934
72935         * modules/d-type (License): Switch to LGPL.
72936
72937 2006-11-15  Bruno Haible  <bruno@clisp.org>
72938
72939         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72940
72941 2006-11-15  Eric Blake  <ebb9@byu.net>
72942
72943         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72944         the module dependency.
72945
72946 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72947             Bruno Haible  <bruno@clisp.org>
72948
72949         * gnulib-tool (func_create_testdir): Add license consistency check.
72950
72951 2006-11-15  Eric Blake  <ebb9@byu.net>
72952
72953         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72954         random "(cached)" in configure output.
72955
72956 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72957
72958         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72959         test for conforming inttypes.h is both announced and cached.
72960
72961         * MODULES.html.sh (seen_modules, seen_files): New variables.
72962         (func_module): Rewrite to use a few less gnulib-tool and sed
72963         invocations.  Avoid a couple of quadratic algorithms for ...
72964         (missed_modules, missed_files): ... these, with ...
72965         (func_append, func_tmpdir): ... these new functions, from
72966         gnulib-tool.  Analogously, install traps for cleanup.
72967
72968         * tests/test-gc.c (main): Remove unused variables.
72969         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72970
72971 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72972
72973         * modules/inttostr (License): Change to LGPL.
72974
72975 2006-11-14  Eric Blake  <ebb9@byu.net>
72976
72977         * modules/tempname (License): Change to LGPL.
72978
72979 2006-11-14  Eric Blake  <ebb9@byu.net>
72980
72981         * doc/functions.texi (Function Portability): *printf functions on
72982         Cygwin now understand all POSIX size specifiers.
72983
72984 2006-11-14  Bruno Haible  <bruno@clisp.org>
72985
72986         * modules/c-ctype (License): Change to LGPL.
72987
72988 2006-11-12  Bruno Haible  <bruno@clisp.org>
72989
72990         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72991         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72992         for GNOME libraries, for which the include files are installed in
72993         subdirectories of $prefix/include.
72994
72995 2006-11-12  Bruno Haible  <bruno@clisp.org>
72996
72997         * m4/lib-link.m4: Require at least autoconf-2.54.
72998         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72999         name to underscores for the --with option.
73000
73001 2006-11-13  Bruno Haible  <bruno@clisp.org>
73002
73003         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
73004         the tests directory.
73005         Reported by Ralf Wildenhues.
73006
73007 2006-11-13  Bruno Haible  <bruno@clisp.org>
73008
73009         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
73010         (func_emit_initmacro_end): Undo the override here.
73011         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
73012         Works around the famous automake error in coreutils.
73013
73014 2006-11-13  Eric Blake  <ebb9@byu.net>
73015
73016         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
73017         element, not its node.
73018
73019 2006-11-12  Bruno Haible  <bruno@clisp.org>
73020
73021         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
73022         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
73023
73024 2006-11-12  Bruno Haible  <bruno@clisp.org>
73025
73026         * gnulib-tool: New option --local-symlink.
73027         (func_usage): Document it.
73028         (lsymbolic): New variable.
73029         (func_import, func_create_testdir): If --symlink was not specified,
73030         test whether --local-symlink was specified and the file comes from
73031         the local_gnulib_dir.
73032
73033 2006-11-12  Bruno Haible  <bruno@clisp.org>
73034
73035         * gnulib-tool (func_ln): New function.
73036         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
73037
73038 2006-11-12  Bruno Haible  <bruno@clisp.org>
73039
73040         Finish support for source files in subdirectories.
73041         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
73042         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
73043         AUTOMAKE_OPTIONS.
73044         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
73045
73046 2006-11-12  Bruno Haible  <bruno@clisp.org>
73047
73048         * gnulib-tool (func_get_automake_snippet): Synthesize also an
73049         EXTRA_lib_SOURCES augmentation.
73050         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
73051
73052 2006-11-12  Jim Meyering  <jim@meyering.net>
73053
73054         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
73055         file descriptors.  This also averts a failure on systems with
73056         native openat support when a traversed directory lacks "x" access.
73057         * lib/fts_.h: Include "i-ring.h"
73058         (struct FTS) [fts_fd_ring]: New member.
73059         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
73060         (FCHDIR): Add parentheses.
73061         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
73062         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
73063         When descending, rather than simply closing the previous
73064         fts_cwd_fd value, push that file descriptor onto the ring.
73065         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
73066         (fts_open): Initialize the new fd_ring member.
73067         (fts_close): Clear the ring.
73068         (fts_safe_changedir): When possible, use our new fd_ring to skip
73069         the diropen and fstat and dev/ino comparison that would normally
73070         accompany a virtual `chdir ("..")'.
73071
73072         * modules/fts (Depends-on): Add i-ring.
73073         * modules/i-ring: New module.
73074         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
73075         * m4/i-ring.m4: New file.
73076
73077 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73078
73079         * gnulib-tool (func_create_testdir): Fix replacement of
73080         `build-aux' in configure.ac.  Run autotools in gltests
73081         subdirectory.
73082         (func_create_testdir, func_create_megatestdir, test): There is
73083         no need for '--force' in most autotool invocations in a new
73084         tree.  Actually fail the whole test if any of the tools, or the
73085         configure or make stages fail.
73086
73087         Sync from Automake.
73088         * build-aux/gnupload: Revert last change.  Add pointer to upload
73089         instructions of the GNU Maintenance Instructions.
73090         Suggestion by Karl Berry.
73091
73092 2006-11-10  Jim Meyering  <jim@meyering.net>
73093
73094         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
73095
73096 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73097
73098         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
73099         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
73100         (bind_textdomain_codeset) [! ENABLE_NLS]:
73101         Evaluate all the arguments.  That way, callers get compatible behavior
73102         if the arguments have side effects.  Also, it avoids some GCC
73103         diagnostics in some cases; Joel E. Denny reported problems when Bison
73104         was configured with --enable-gcc-warnigs.
73105
73106 2006-11-10  Jim Meyering  <jim@meyering.net>
73107
73108         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
73109         relevant options in CFLAGS (like -O, -fno-inline) are taken into
73110         account.
73111
73112 2006-11-10  Jim Meyering  <jim@meyering.net>
73113
73114         * modules/inline: New file/module.
73115         * modules/xalloc (Files): Remove m4/inline.m4.
73116         (Depends-on): Add inline, instead.
73117         * modules/oset: Likewise.
73118         * modules/list: Likewise.
73119
73120 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73121
73122         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
73123         Problem reported by Matthew Woehlke.
73124
73125 2006-11-09  Bruno Haible  <bruno@clisp.org>
73126
73127         * lib/tempname.c (gen_tempname): Remove variant that invokes
73128         __gen_tempname.
73129         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
73130         __gen_tempname.
73131
73132 2006-11-08  Bruno Haible  <bruno@clisp.org>
73133
73134         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73135         to 'yes' instead of 'cross-compiling'.
73136
73137 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73138
73139         * lib/quotearg.h (quotearg_free): New decl.
73140         * lib/quotearg.c (quotearg_free): New function.
73141         (slot0, nslots, slotvec0, slotvec):
73142         Now file-scope so that quotearg_free can get at them.
73143
73144 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73145
73146         Sync from Automake.
73147         * build-aux/gnupload: Add missing 'gnu' to example URL.
73148         Report by Karl Berry.
73149
73150 2006-11-08  Bruno Haible  <bruno@clisp.org>
73151
73152         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73153         Suggested by Paul Eggert.
73154
73155 2006-11-08  Jim Meyering  <jim@meyering.net>
73156
73157         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73158         It's already included if !_LIBC.
73159         (fts_safe_changedir): Add a comment.
73160
73161 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73162
73163         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73164         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73165         Matthew Woehlke.
73166
73167         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73168         definitions up, to avoid colliding with change below.
73169         (static_inline) [HAVE_INLINE]: New macro.
73170         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73171         Provide extern decls when !HAVE_INLINE.  Do not define unless
73172         static_inline is defined, either by us or by xmalloc.c.  Use
73173         static_inline rather than static inline.
73174         (XCALLOC): Optimize sizeof(T) = 1 case.
73175         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73176
73177 2006-11-07  Bruno Haible  <bruno@clisp.org>
73178
73179         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73180         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73181         AC_C_INLINE.
73182         * modules/xalloc (Files): Add m4/inline.m4.
73183
73184 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73185
73186         * README: Fix typo.
73187         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73188         (Miscellanous Notes): ...from this.
73189
73190 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73191
73192         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73193         Mention that offsetof should be used instead of sizeof.
73194         From Bruno Haible.
73195
73196 2006-11-07  Bruno Haible  <bruno@clisp.org>
73197
73198         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73199
73200 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73201
73202         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73203         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73204         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73205         (gl_tree_add_before, gl_tree_add_after):
73206         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73207         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73208         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73209         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73210         (gl_linked_add_after, gl_linked_add_at): Likewise.
73211         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73212         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73213         (gl_tree_add_before, gl_tree_add_after): Likewise.
73214         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73215         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73216         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73217
73218 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73219
73220         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73221
73222 2006-11-06  Bruno Haible  <bruno@clisp.org>
73223
73224         * m4/inline.m4: New file.
73225         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73226         * modules/list (Files): Add m4/inline.m4.
73227         * modules/oset (Files): Likewise.
73228
73229 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73230
73231         * lib/idcache.c: Include <stddef.h>, for offsetof.
73232         (struct userid.name): Change from char * to a flexible array member.
73233         All uses changed.
73234         * modules/idcache (Depends-on): Add flexmember.
73235
73236         * MODULES.html.sh (Core language properties): New module flexmember.
73237         * modules/flexmember, m4/flexmember.m4: New files.
73238
73239         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73240         inline functions that are identical with the old xnmalloc_inline,
73241         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73242         that we can avoid some unnecessary integer multiplications and
73243         divisions in the common case where the element size is known at
73244         compile time.
73245         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73246         needed.
73247         (xnboundedmalloc): Remove.
73248         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73249         arguments, for consistency with rest of this header.
73250         (xcharalloc): Rewrite using XNMALLOC.
73251         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73252         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73253         versions have been moved to lib/xalloc.h and renamed to be the
73254         non-*_inline versions.
73255         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73256         and xnrealloc functions, since those functions are now inline and
73257         now call us.
73258         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73259         renaming described above.
73260         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73261         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73262         captures the dependency in AC_C_INLINE.
73263
73264         New module canonicalize-lgpl, proposed by Charles Wilson in
73265         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73266         with a few small changes afterwards.
73267         * MODULES.html.sh (File system functions): New module
73268         canonicalize-lgpl.
73269         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73270         and canonicalize_file_name.
73271         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73272         * modules/canonicalize-lgpl: New files.
73273
73274 2006-11-05  Bruno Haible  <bruno@clisp.org>
73275
73276         * gnulib-tool (func_import, func_create_testdir): Create directories
73277         also for files in subdirectories of lib/.
73278
73279 2006-11-05  Bruno Haible  <bruno@clisp.org>
73280
73281         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73282         ANSI C compliant.
73283
73284 2006-11-03  Bruno Haible  <bruno@clisp.org>
73285
73286         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73287         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73288         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73289         (xnboundedmalloc): New inline function.
73290         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73291         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73292         xmalloc.
73293         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73294         xmalloc.
73295         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73296         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73297         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73298         xmalloc.
73299         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73300         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73301         xmalloc.
73302         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73303         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73304         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73305         xmalloc.
73306         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73307         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73308         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73309         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73310         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73311         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73312         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73313
73314 2006-11-03  Bruno Haible  <bruno@clisp.org>
73315
73316         * lib/c-ctype.h [C++]: Define functions without name mangling.
73317         * lib/fwriteerror.h [C++]: Likewise.
73318         * lib/gcd.h [C++]: Likewise.
73319         * lib/linebreak.h [C++]: Likewise.
73320
73321 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73322
73323         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73324         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73325         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73326         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73327         Check for functions and headers just once.
73328         Check for declaration of canonicalize_file_name.
73329         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73330
73331 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73332
73333         * gnulib-tool (func_import): Fix typo in actioncmd.
73334
73335 2006-11-02  Bruno Haible  <bruno@clisp.org>
73336
73337         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73338         newline sequence in the Makefile.am snippet as a space, like "make"
73339         does.
73340         Reported by Roger Persson <perrog@gmail.com>.
73341
73342 2006-11-01  Bruno Haible  <bruno@clisp.org>
73343
73344         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73345         already declared in <string.h>.
73346         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73347
73348 2006-11-01  Bruno Haible  <bruno@clisp.org>
73349
73350         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73351         * lib/strcase.h: Include <string.h>.
73352         (strcasecmp): Define to rpl_strcasecmp here.
73353
73354 2006-11-01  Bruno Haible  <bruno@clisp.org>
73355
73356         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73357
73358 2006-11-01  Eric Blake  <ebb9@byu.net>
73359
73360         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73361
73362         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73363
73364 2006-10-29  Bruno Haible  <bruno@clisp.org>
73365
73366         Make it compile in C++ mode.
73367         * lib/full-write.c (full_rw): Add a cast.
73368
73369 2006-11-01  Bruno Haible  <bruno@clisp.org>
73370
73371         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73372         be POSIX compliant.
73373         Reported by Roger Persson <perrog@gmail.com>.
73374
73375 2006-11-01  Eric Blake  <ebb9@byu.net>
73376
73377         * lib/getopt_.h: Fix comments.
73378
73379 2006-10-31  Eric Blake  <ebb9@byu.net>
73380
73381         * modules/tmpdir (Depends-on): Add sys_stat.
73382         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73383         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73384         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73385         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73386         tempname.
73387
73388 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         Avoid some C++ diagnostics reported by Bruno Haible.
73391         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73392         xmalloc.
73393         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73394         (struct slotvec): Move to top level.
73395         (quotearg_n_options): Rewrite to avoid xmalloc.
73396         * lib/xalloc.h (xcharalloc): New function.
73397         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73398         [defined __cplusplus]: Add function template that provides result
73399         type propagation.  This part of the change is from Bruno Haible.
73400
73401 2006-10-29  Bruno Haible  <bruno@clisp.org>
73402
73403         Make it compile in C++ mode.
73404         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73405         * lib/strnlen1.c (strnlen1): Cast memchr result.
73406         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73407         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73408         (create_temp_dir): Rename local variable 'template'.
73409         (compile_csharp_using_sscli): Add cast.
73410         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73411         * lib/findprog.c (find_in_path): Likewise.
73412         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73413         * lib/wait-process.c (register_slave_subprocess): Likewise.
73414
73415 2006-10-22  Bruno Haible  <bruno@clisp.org>
73416
73417         * modules/tsearch: New file.
73418         * lib/tsearch.h: New file.
73419         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73420         * m4/tsearch.m4: New file.
73421         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73422
73423 2006-10-29  Eric Blake  <ebb9@byu.net>
73424
73425         * lib/arcfour.c: Assume config.h.
73426         * lib/arctwo.c: Likewise.
73427         * lib/base64.c: Likewise.
73428         * lib/check-version.c: Likewise.
73429         * lib/crc.c: Likewise.
73430         * lib/des.c: Likewise.
73431         * lib/gc-gnulib.c: Likewise.
73432         * lib/gc-libgcrypt.c: Likewise.
73433         * lib/gc-pbkdf2-sha1.c: Likewise.
73434         * lib/getaddrinfo.c: Likewise.
73435         * lib/getdelim.c: Likewise.
73436         * lib/getline.c: Likewise.
73437         * lib/hmac-md5.c: Likewise.
73438         * lib/hmac-sha1.c: Likewise.
73439         * lib/iconvme.c: Likewise.
73440         * lib/md2.c: Likewise.
73441         * lib/md4.c: Likewise.
73442         * lib/memxor.c: Likewise.
73443         * lib/read-file.c: Likewise.
73444         * lib/readline.c: Likewise.
73445         * lib/rijndael-alg-fst.c: Likewise.
73446         * lib/rijndael-api-fst.c: Likewise.
73447         * lib/xgetdomainname.c: Likewise.
73448
73449 2006-10-28  Eric Blake  <ebb9@byu.net>
73450
73451         * lib/xstrndup.c: Assume config.h.
73452
73453 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73454
73455         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73456         stat-macros.h is now for our own macros, whereas stat_h is for
73457         macros in the <sys/stat.h> name space.
73458         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73459         (STAT_MACROS_H): Remove.
73460         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73461         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73462         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73463         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73464         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73465         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73466         Move these macros to ...
73467         * lib/stat_.h: here.  Don't include stat-macros.h.
73468         * lib/canonicalize.c: Don't include stat-macros.h.
73469         * lib/chown.c: Likewise.
73470         * lib/euidaccess.c: Likewise.
73471         * lib/file-type.c: Likewise.
73472         * lib/filemode.c: Likewise.
73473         * lib/glob.c: Likewise.
73474         * lib/isapipe.c: Likewise.
73475         * lib/lchown.c: Likewise.
73476         * lib/lstat.c: Likewise.
73477         * lib/mkdir-p.c: Likewise.
73478         * lib/rmdir.c: Likewise.
73479         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73481         unless mkdir isn't declared, to speed up 'configure'.
73482         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73483         would define all the S_* symbols.
73484         * modules/canonicalize (Depends-on):
73485         Depend on sys_stat, not stat-macros.
73486         * modules/chown: Likewise.
73487         * modules/euidaccess: Likewise.
73488         * modules/filemode: Likewise.
73489         * modules/file-type: Likewise.
73490         * modules/glob: Likewise.
73491         * modules/isapipe: Likewise.
73492         * modules/lchown: Likewise.
73493         * modules/lstat: Likewise.
73494         * modules/mkancesdirs: Likewise.
73495         * modules/rmdir: Likewise.
73496         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73497         * modules/modechange: Likewise.
73498         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73499         (configure.ac): Remove gl_STAT_MACROS.
73500         * modules/sys_stat (Depends-on): Remove stat-macros.
73501
73502 2006-10-27  Bruno Haible  <bruno@clisp.org>
73503
73504         * m4/signed.m4: Remove file.
73505         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73506         invocation.
73507         * modules/vasnprintf (Files): Remove m4/signed.m4.
73508
73509 2006-10-27  Bruno Haible  <bruno@clisp.org>
73510
73511         Update to GNU gettext 0.16.
73512         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73513         m4/inttypes-h.m4, m4/signed.m4.
73514         * m4/gettext.m4: Update to GNU gettext 0.16.
73515         * m4/intl.m4: New file, from GNU gettext.
73516         * m4/intldir.m4: New file, from GNU gettext.
73517         * config/srclist.txt: Update
73518
73519 2006-10-27  Eric Blake  <ebb9@byu.net>
73520
73521         * MODULES.html.sh: Document tempname.
73522         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73523         dependencies.
73524         (Files): Move lib/tempname.c...
73525         * modules/tempname: ...to this new module.
73526         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73527         (gl_PREREQ_TEMPNAME): Move...
73528         * m4/tempname.m4: ...to this new file.
73529         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73530         * modules/sys_stat (Depends-on): Add stat-macros.
73531         * lib/stat_.h (includes): Pick up stat macros.
73532         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73533         if stat macros are broken.
73534         * lib/tempname.c (includes): No need to include "stat-macros.h".
73535         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73536         (direxists, __path_search) [!_LIBC]: Don't compile these in
73537         gnulib; the tmpdir module covers that.
73538         * lib/tempname.h: New file.
73539
73540 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         * COPYING: Explain how gnulib-tool converts licence headers.
73543         Almost all wording by Eric Blake.
73544
73545 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73546
73547         * lib/mbchar.h (is_basic_table): Make read-only.
73548         * lib/mbchar.c (is_basic_table): Likewise.
73549         Reported by John Darrington.
73550
73551 2006-10-25  Bruno Haible  <bruno@clisp.org>
73552
73553         * lib/progname.h (set_program_name): Undefine before defining.
73554
73555 2006-10-25  Bruno Haible  <bruno@clisp.org>
73556
73557         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73558         false for non-gcc C++ compilers.
73559         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73560
73561 2006-10-24  Bruno Haible  <bruno@clisp.org>
73562
73563         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73564         iconv implementations like Irix iconv.
73565
73566 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73567
73568         * modules/vararrays: New file.
73569         * m4/vararrays.m4: New file, taken from diffutils.
73570         * MODULES.html.sh: New module vararrays.
73571
73572 2006-10-24  Karl Berry  <karl@gnu.org>
73573
73574         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73575         Don't call GNU Unix.
73576
73577 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73578
73579         * users.txt: Add Libtool.
73580
73581         Sync from Libtool:
73582
73583         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73584
73585         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73586         to gnulib's policy of including config.h unconditionally.
73587
73588 2006-10-24  Bruno Haible  <bruno@clisp.org>
73589
73590         * modules/wcwidth (Files): Add m4/wint_t.m4.
73591         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73592         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73593
73594 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73595
73596         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73597         to pacify GCC with some -W flags enabled.  Problem reported by
73598         Bruno Haible.
73599
73600 2006-10-24  Jim Meyering  <jim@meyering.net>
73601
73602         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73603         Reported by Karl Berry.
73604
73605 2006-10-23  Bruno Haible  <bruno@clisp.org>
73606
73607         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73608
73609 2006-10-24  Bruno Haible  <bruno@clisp.org>
73610
73611         * lib/gl_list.h: Use C comment style, not C++ comment style.
73612
73613 2006-10-23  Eric Blake  <ebb9@byu.net>
73614
73615         * lib/getaddrinfo.c (includes): Add missing include.
73616
73617 2006-10-23  Bruno Haible  <bruno@clisp.org>
73618             Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         Ability to rename obstack_free.
73621         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73622         obstack_free.
73623         (obstack_free): Invoke the __obstack_free macro.
73624         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73625
73626 2006-10-23  Bruno Haible  <bruno@clisp.org>
73627             Paul Eggert  <eggert@cs.ucla.edu>
73628
73629         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73630         __argc, __argv from the declaration. (They are defined as macros on
73631         mingw.)
73632
73633 2006-10-22  Bruno Haible  <bruno@clisp.org>
73634
73635         * doc/gnulib-intro.texi: New file.
73636         * doc/gnulib.texi: Include it.
73637
73638 2006-10-21  Bruno Haible  <bruno@clisp.org>
73639
73640         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73641         "Introduction", "Miscellanous Notes", "Particular Modules".
73642
73643 2006-10-21  Bruno Haible  <bruno@clisp.org>
73644
73645         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73646         Change mostlyclean-local rule to avoid sh syntax error from bash
73647         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73648
73649 2006-10-23  Jim Meyering  <jim@meyering.net>
73650
73651         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73652         in place of snprintf.
73653
73654         * modules/inttostr (Files): Add lib/uinttostr.c.
73655         * lib/uinttostr.c (inttostr): New file/function.
73656         * lib/inttostr.h (uinttostr): Declare.
73657         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73658         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73659         Add uinttostr.
73660         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73661
73662 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73663
73664         * lib/canonicalize.c (ELOOP): Define if not already defined.
73665         Problem reported by Bruno Haible in
73666         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73667
73668 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73669
73670         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73671         Problem reported by Perry Smith and Ville Laurikari.
73672
73673         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73674         uses.
73675
73676 2006-10-19  Bruno Haible  <bruno@clisp.org>
73677
73678         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73679         for mingw.
73680
73681 2006-10-19  Bruno Haible  <bruno@clisp.org>
73682
73683         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73684         Needed for mingw.
73685
73686 2006-10-19  Bruno Haible  <bruno@clisp.org>
73687
73688         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73689
73690 2006-10-19  Bruno Haible  <bruno@clisp.org>
73691
73692         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73693         it.
73694
73695 2006-10-19  Bruno Haible  <bruno@clisp.org>
73696
73697         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73698         invocation.
73699
73700 2006-10-19  Bruno Haible  <bruno@clisp.org>
73701
73702         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73703         mountlist by default.
73704
73705 2006-10-16  Bruno Haible  <bruno@clisp.org>
73706
73707         * lib/c-strstr.c: Include c-strstr.h.
73708
73709 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73710
73711         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73712         in a slash.
73713
73714 2006-10-18  Bruno Haible  <bruno@clisp.org>
73715
73716         * lib/lock.h [C++]: Wrap definitions in extern "C".
73717
73718 2006-10-18  Bruno Haible  <bruno@clisp.org>
73719
73720         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73721         gl_LIBOBJS list.
73722
73723 2006-10-18  Bruno Haible  <bruno@clisp.org>
73724
73725         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73726
73727 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73728
73729         * lib/xstrtol.h: Include gettext.h.
73730         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73731         Problem reported by Eric Blake.
73732         * modules/xstrtol (Depends-on): Add gettext-h.
73733
73734 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73735
73736         * lib/strftime.c (advance): New macro.
73737         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73738         incomplete type, so you can't add 0 to it.  Problem and patch
73739         reported by Eelco Dolstra for dietlibc.
73740
73741 2006-10-18  Jim Meyering  <jim@meyering.net>
73742
73743         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73744         type for a local, and rename it: s/up/user_proc/.
73745
73746 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73747
73748         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73749         READ_UTMP_USER_PROCESS.
73750         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73751
73752 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73753
73754         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73755         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73756
73757 2006-10-17  Eric Blake  <ebb9@byu.net>
73758
73759         * lib/sigprocmask.c (sigprocmask): Fix typo.
73760
73761         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73762
73763         * modules/clean-temp (Makefile.am): Don't add to make output...
73764         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73765         config.h.
73766
73767 2006-10-17  Bruno Haible  <bruno@clisp.org>
73768
73769         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73770         differently if DEFAULT_TEXT_DOMAIN is set.
73771
73772 2006-10-16  Bruno Haible  <bruno@clisp.org>
73773
73774         * lib/clean-temp.c: Include fwriteerror.h.
73775
73776 2006-10-16  Bruno Haible  <bruno@clisp.org>
73777
73778         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73779
73780 2006-10-16  Bruno Haible  <bruno@clisp.org>
73781
73782         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73783         * lib/sigprocmask.h: Include <sys/types.h>.
73784         (sigset_t): Use the system's definition if present.
73785
73786 2006-10-17  Eric Blake  <ebb9@byu.net>
73787
73788         * lib/xvasprintf.c (includes): Assume config.h.
73789         * lib/xasprintf.c (includes): Likewise.
73790
73791 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73794         at least as wide as intmax_t.
73795
73796 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73797
73798         (Imported from Automake.)
73799         * build-aux/gnupload: Update to version 1.1 of directive file.
73800
73801 2006-10-16  Eric Blake  <ebb9@byu.net>
73802
73803         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73804         match Automake 1.10a.
73805
73806 2006-10-14  Bruno Haible  <bruno@clisp.org>
73807
73808         * modules/sigprocmask: New file.
73809         * lib/sigprocmask.h: New file.
73810         * lib/sigprocmask.c: New file.
73811         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73812         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73813         request sigprocmask.o.
73814         (gl_PREREQ_SIGPROCMASK): New macro.
73815         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73816         (Depends-on): Add sigprocmask.
73817         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73818         gt_SIGNALBLOCKING. Test for 'raise' only once.
73819         * lib/fatal-signal.c: Include sigprocmask.h.
73820         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73821         unblock_fatal_signals): Define always.
73822         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73823         sigprocmask.
73824
73825 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         Sync from Automake.
73828         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73829         which incorrectly sets the mode of an existing destination
73830         directory.  In some cases the unpatched install-sh could do the
73831         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73832         system.  We hope this is rare in practice, but it's clearly worth
73833         fixing.  Problem reported by Alex Unleashed in
73834         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73835         Also, don't bother to check for -m bugs unless we're using -m;
73836         suggested by Stepan Kasal.
73837
73838 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73839
73840         Sync from Automake.
73841         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73842         `-c' flag, so they appear at the same position as in %FASTDEP%
73843         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73844         which ignores unknown options only after the first non-option.
73845         Bug report against M4 by Nelson H. F. Beebe.
73846
73847 2006-10-13  Jim Meyering  <jim@meyering.net>
73848
73849         Fix a bug in yesterday's change.
73850         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73851         p->fts_statp->st_dev would be used uninitialized.
73852         Ensures that we always call fts_stat on the very first entry.
73853         Miklos Szeredi reported that find -xdev stopped working.
73854
73855 2006-10-12  Bruno Haible  <bruno@clisp.org>
73856
73857         * gnulib-tool (func_get_automake_snippet): Append an automatically
73858         computed EXTRA_DIST augmentation.
73859         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73860         * modules/alloca-opt (Makefile.am): Likewise.
73861         * modules/allocsa (Makefile.am): Likewise.
73862         * modules/arcfour (Makefile.am): Likewise.
73863         * modules/arctwo (Makefile.am): Likewise.
73864         * modules/argmatch (Makefile.am): Likewise.
73865         * modules/argz (Makefile.am): Likewise.
73866         * modules/atexit (Makefile.am): Likewise.
73867         * modules/backupfile (Makefile.am): Likewise.
73868         * modules/byteswap (Makefile.am): Likewise.
73869         * modules/c-strtod (Makefile.am): Likewise.
73870         * modules/c-strtold (Makefile.am): Likewise.
73871         * modules/calloc (Makefile.am): Likewise.
73872         * modules/canon-host (Makefile.am): Likewise.
73873         * modules/canonicalize (Makefile.am): Likewise.
73874         * modules/chdir-long (Makefile.am): Likewise.
73875         * modules/chdir-safer (Makefile.am): Likewise.
73876         * modules/check-version (Makefile.am): Likewise.
73877         * modules/chown (Makefile.am): Likewise.
73878         * modules/cloexec (Makefile.am): Likewise.
73879         * modules/close-stream (Makefile.am): Likewise.
73880         * modules/closeout (Makefile.am): Likewise.
73881         * modules/crc (Makefile.am): Likewise.
73882         * modules/csharpexec (Makefile.am): Likewise.
73883         * modules/cycle-check (Makefile.am): Likewise.
73884         * modules/des (Makefile.am): Likewise.
73885         * modules/dev-ino (Makefile.am): Likewise.
73886         * modules/dirfd (Makefile.am): Likewise.
73887         * modules/dirname (Makefile.am): Likewise.
73888         * modules/dup2 (Makefile.am): Likewise.
73889         * modules/eealloc (Makefile.am): Likewise.
73890         * modules/error (Makefile.am): Likewise.
73891         * modules/euidaccess (Makefile.am): Likewise.
73892         * modules/exclude (Makefile.am): Likewise.
73893         * modules/exitfail (Makefile.am): Likewise.
73894         * modules/fcntl-safer (Makefile.am): Likewise.
73895         * modules/fcntl (Makefile.am): Likewise.
73896         * modules/file-type (Makefile.am): Likewise.
73897         * modules/fileblocks (Makefile.am): Likewise.
73898         * modules/filemode (Makefile.am): Likewise.
73899         * modules/filenamecat (Makefile.am): Likewise.
73900         * modules/fnmatch (Makefile.am): Likewise.
73901         * modules/fopen-safer (Makefile.am): Likewise.
73902         * modules/fpending (Makefile.am): Likewise.
73903         * modules/fprintftime (Makefile.am): Likewise.
73904         * modules/free (Makefile.am): Likewise.
73905         * modules/fsusage (Makefile.am): Likewise.
73906         * modules/ftruncate (Makefile.am): Likewise.
73907         * modules/fts (Makefile.am): Likewise.
73908         * modules/gc-arcfour (Makefile.am): Likewise.
73909         * modules/gc-des (Makefile.am): Likewise.
73910         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73911         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73912         * modules/gc-md4 (Makefile.am): Likewise.
73913         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73914         * modules/gc-sha1 (Makefile.am): Likewise.
73915         * modules/gc (Makefile.am): Likewise.
73916         * modules/getaddrinfo (Makefile.am): Likewise.
73917         * modules/getcwd (Makefile.am): Likewise.
73918         * modules/getdelim (Makefile.am): Likewise.
73919         * modules/getdomainname (Makefile.am): Likewise.
73920         * modules/getgroups (Makefile.am): Likewise.
73921         * modules/gethostname (Makefile.am): Likewise.
73922         * modules/gethrxtime (Makefile.am): Likewise.
73923         * modules/getline (Makefile.am): Likewise.
73924         * modules/getloadavg (Makefile.am): Likewise.
73925         * modules/getlogin_r (Makefile.am): Likewise.
73926         * modules/getndelim2 (Makefile.am): Likewise.
73927         * modules/getopt (Makefile.am): Likewise.
73928         * modules/getpagesize (Makefile.am): Likewise.
73929         * modules/getpass-gnu (Makefile.am): Likewise.
73930         * modules/getpass (Makefile.am): Likewise.
73931         * modules/getsubopt (Makefile.am): Likewise.
73932         * modules/gettime (Makefile.am): Likewise.
73933         * modules/gettimeofday (Makefile.am): Likewise.
73934         * modules/getugroups (Makefile.am): Likewise.
73935         * modules/getusershell (Makefile.am): Likewise.
73936         * modules/glob (Makefile.am): Likewise.
73937         * modules/group-member (Makefile.am): Likewise.
73938         * modules/hard-locale (Makefile.am): Likewise.
73939         * modules/hash (Makefile.am): Likewise.
73940         * modules/hmac-md5 (Makefile.am): Likewise.
73941         * modules/hmac-sha1 (Makefile.am): Likewise.
73942         * modules/human (Makefile.am): Likewise.
73943         * modules/idcache (Makefile.am): Likewise.
73944         * modules/imaxabs (Makefile.am): Likewise.
73945         * modules/imaxdiv (Makefile.am): Likewise.
73946         * modules/inet_ntop (Makefile.am): Likewise.
73947         * modules/inet_pton (Makefile.am): Likewise.
73948         * modules/intprops (Makefile.am): Likewise.
73949         * modules/inttostr (Makefile.am): Likewise.
73950         * modules/inttypes (Makefile.am): Likewise.
73951         * modules/isapipe (Makefile.am): Likewise.
73952         * modules/javaversion (Makefile.am): Likewise.
73953         * modules/lchmod (Makefile.am): Likewise.
73954         * modules/lchown (Makefile.am): Likewise.
73955         * modules/localcharset (Makefile.am): Likewise.
73956         * modules/long-options (Makefile.am): Likewise.
73957         * modules/lstat (Makefile.am): Likewise.
73958         * modules/malloc (Makefile.am): Likewise.
73959         * modules/mathl (Makefile.am): Likewise.
73960         * modules/mbchar (Makefile.am): Likewise.
73961         * modules/md2 (Makefile.am): Likewise.
73962         * modules/md4 (Makefile.am): Likewise.
73963         * modules/md5 (Makefile.am): Likewise.
73964         * modules/memcasecmp (Makefile.am): Likewise.
73965         * modules/memchr (Makefile.am): Likewise.
73966         * modules/memcmp (Makefile.am): Likewise.
73967         * modules/memcoll (Makefile.am): Likewise.
73968         * modules/memcpy (Makefile.am): Likewise.
73969         * modules/memmem (Makefile.am): Likewise.
73970         * modules/memmove (Makefile.am): Likewise.
73971         * modules/mempcpy (Makefile.am): Likewise.
73972         * modules/memrchr (Makefile.am): Likewise.
73973         * modules/memset (Makefile.am): Likewise.
73974         * modules/memxor (Makefile.am): Likewise.
73975         * modules/mkancesdirs (Makefile.am): Likewise.
73976         * modules/mkdir-p (Makefile.am): Likewise.
73977         * modules/mkdir (Makefile.am): Likewise.
73978         * modules/mkdtemp (Makefile.am): Likewise.
73979         * modules/mkstemp (Makefile.am): Likewise.
73980         * modules/mktime (Makefile.am): Likewise.
73981         * modules/modechange (Makefile.am): Likewise.
73982         * modules/mountlist (Makefile.am): Likewise.
73983         * modules/nanosleep (Makefile.am): Likewise.
73984         * modules/obstack (Makefile.am): Likewise.
73985         * modules/openat (Makefile.am): Likewise.
73986         * modules/pagealign_alloc (Makefile.am): Likewise.
73987         * modules/pathmax (Makefile.am): Likewise.
73988         * modules/physmem (Makefile.am): Likewise.
73989         * modules/poll (Makefile.am): Likewise.
73990         * modules/posixtm (Makefile.am): Likewise.
73991         * modules/posixver (Makefile.am): Likewise.
73992         * modules/putenv (Makefile.am): Likewise.
73993         * modules/quote (Makefile.am): Likewise.
73994         * modules/quotearg (Makefile.am): Likewise.
73995         * modules/raise (Makefile.am): Likewise.
73996         * modules/read-file (Makefile.am): Likewise.
73997         * modules/readline (Makefile.am): Likewise.
73998         * modules/readlink (Makefile.am): Likewise.
73999         * modules/readtokens (Makefile.am): Likewise.
74000         * modules/readutmp (Makefile.am): Likewise.
74001         * modules/realloc (Makefile.am): Likewise.
74002         * modules/regex (Makefile.am): Likewise.
74003         * modules/rename-dest-slash (Makefile.am): Likewise.
74004         * modules/rename (Makefile.am): Likewise.
74005         * modules/rijndael (Makefile.am): Likewise.
74006         * modules/rmdir (Makefile.am): Likewise.
74007         * modules/rpmatch (Makefile.am): Likewise.
74008         * modules/safe-read (Makefile.am): Likewise.
74009         * modules/safe-write (Makefile.am): Likewise.
74010         * modules/same-inode (Makefile.am): Likewise.
74011         * modules/same (Makefile.am): Likewise.
74012         * modules/save-cwd (Makefile.am): Likewise.
74013         * modules/savedir (Makefile.am): Likewise.
74014         * modules/setenv (Makefile.am): Likewise.
74015         * modules/settime (Makefile.am): Likewise.
74016         * modules/sha1 (Makefile.am): Likewise.
74017         * modules/sig2str (Makefile.am): Likewise.
74018         * modules/snprintf (Makefile.am): Likewise.
74019         * modules/stat-macros (Makefile.am): Likewise.
74020         * modules/stat-time (Makefile.am): Likewise.
74021         * modules/stdbool (Makefile.am): Likewise.
74022         * modules/stdint (Makefile.am): Likewise.
74023         * modules/stdlib-safer (Makefile.am): Likewise.
74024         * modules/stpcpy (Makefile.am): Likewise.
74025         * modules/stpncpy (Makefile.am): Likewise.
74026         * modules/strcase (Makefile.am): Likewise.
74027         * modules/strcasestr (Makefile.am): Likewise.
74028         * modules/strchrnul (Makefile.am): Likewise.
74029         * modules/strcspn (Makefile.am): Likewise.
74030         * modules/strdup (Makefile.am): Likewise.
74031         * modules/strerror (Makefile.am): Likewise.
74032         * modules/strftime (Makefile.am): Likewise.
74033         * modules/strndup (Makefile.am): Likewise.
74034         * modules/strnlen (Makefile.am): Likewise.
74035         * modules/strpbrk (Makefile.am): Likewise.
74036         * modules/strsep (Makefile.am): Likewise.
74037         * modules/strstr (Makefile.am): Likewise.
74038         * modules/strtod (Makefile.am): Likewise.
74039         * modules/strtoimax (Makefile.am): Likewise.
74040         * modules/strtok_r (Makefile.am): Likewise.
74041         * modules/strtol (Makefile.am): Likewise.
74042         * modules/strtoll (Makefile.am): Likewise.
74043         * modules/strtoul (Makefile.am): Likewise.
74044         * modules/strtoull (Makefile.am): Likewise.
74045         * modules/strtoumax (Makefile.am): Likewise.
74046         * modules/strverscmp (Makefile.am): Likewise.
74047         * modules/sys_socket (Makefile.am): Likewise.
74048         * modules/sys_stat (Makefile.am): Likewise.
74049         * modules/sysexits (Makefile.am): Likewise.
74050         * modules/time_r (Makefile.am): Likewise.
74051         * modules/timegm (Makefile.am): Likewise.
74052         * modules/timespec (Makefile.am): Likewise.
74053         * modules/tmpfile-safer (Makefile.am): Likewise.
74054         * modules/trim (Makefile.am): Likewise.
74055         * modules/unistd-safer (Makefile.am): Likewise.
74056         * modules/unlinkdir (Makefile.am): Likewise.
74057         * modules/unlocked-io (Makefile.am): Likewise.
74058         * modules/userspec (Makefile.am): Likewise.
74059         * modules/utime (Makefile.am): Likewise.
74060         * modules/utimecmp (Makefile.am): Likewise.
74061         * modules/utimens (Makefile.am): Likewise.
74062         * modules/vasnprintf (Makefile.am): Likewise.
74063         * modules/vasprintf (Makefile.am): Likewise.
74064         * modules/vsnprintf (Makefile.am): Likewise.
74065         * modules/xalloc (Makefile.am): Likewise.
74066         * modules/xgetcwd (Makefile.am): Likewise.
74067         * modules/xnanosleep (Makefile.am): Likewise.
74068         * modules/xreadlink (Makefile.am): Likewise.
74069         * modules/xstrtod (Makefile.am): Likewise.
74070         * modules/xstrtol (Makefile.am): Likewise.
74071         * modules/xstrtold (Makefile.am): Likewise.
74072         * modules/yesno (Makefile.am): Likewise.
74073         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
74074
74075 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74076
74077         * modules/error (Makefile.am): Distribute files through
74078         EXTRA_DIST, not lib_SOURCES.
74079
74080 2006-10-12  Eric Blake  <ebb9@byu.net>
74081
74082         * modules/error (Makefile.am): Distribute files in /lib.
74083         * modules/obstack (Makefile.am): Likewise.
74084
74085 2006-10-12  Bruno Haible  <bruno@clisp.org>
74086
74087         * modules/acl (Makefile.am): Distribute all files in lib/ through
74088         EXTRA_DIST.
74089         * modules/arcfour (Makefile.am): Likewise.
74090         * modules/arctwo (Makefile.am): Likewise.
74091         * modules/argmatch (Makefile.am): Likewise.
74092         * modules/argz (Makefile.am): Likewise.
74093         * modules/atexit (Makefile.am): Likewise.
74094         * modules/backupfile (Makefile.am): Likewise.
74095         * modules/c-strtod (Makefile.am): Likewise.
74096         * modules/c-strtold (Makefile.am): Likewise.
74097         * modules/calloc (Makefile.am): Likewise.
74098         * modules/canon-host (Makefile.am): Likewise.
74099         * modules/canonicalize (Makefile.am): Likewise.
74100         * modules/chdir-long (Makefile.am): Likewise.
74101         * modules/chdir-safer (Makefile.am): Likewise.
74102         * modules/check-version (Makefile.am): Likewise.
74103         * modules/chown (Makefile.am): Likewise.
74104         * modules/cloexec (Makefile.am): Likewise.
74105         * modules/close-stream (Makefile.am): Likewise.
74106         * modules/closeout (Makefile.am): Likewise.
74107         * modules/crc (Makefile.am): Likewise.
74108         * modules/cycle-check (Makefile.am): Likewise.
74109         * modules/des (Makefile.am): Likewise.
74110         * modules/dirfd (Makefile.am): Likewise.
74111         * modules/dirname (Makefile.am): Likewise.
74112         * modules/dup2 (Makefile.am): Likewise.
74113         * modules/euidaccess (Makefile.am): Likewise.
74114         * modules/exclude (Makefile.am): Likewise.
74115         * modules/exitfail (Makefile.am): Likewise.
74116         * modules/fcntl-safer (Makefile.am): Likewise.
74117         * modules/file-type (Makefile.am): Likewise.
74118         * modules/fileblocks (Makefile.am): Likewise.
74119         * modules/filemode (Makefile.am): Likewise.
74120         * modules/filenamecat (Makefile.am): Likewise.
74121         * modules/fnmatch (Makefile.am): Likewise.
74122         * modules/fopen-safer (Makefile.am): Likewise.
74123         * modules/fpending (Makefile.am): Likewise.
74124         * modules/fprintftime (Makefile.am): Likewise.
74125         * modules/free (Makefile.am): Likewise.
74126         * modules/fsusage (Makefile.am): Likewise.
74127         * modules/ftruncate (Makefile.am): Likewise.
74128         * modules/fts (Makefile.am): Likewise.
74129         * modules/gc (Makefile.am): Likewise.
74130         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74131         * modules/getaddrinfo (Makefile.am): Likewise.
74132         * modules/getcwd (Makefile.am): Likewise.
74133         * modules/getdelim (Makefile.am): Likewise.
74134         * modules/getdomainname (Makefile.am): Likewise.
74135         * modules/getgroups (Makefile.am): Likewise.
74136         * modules/gethostname (Makefile.am): Likewise.
74137         * modules/gethrxtime (Makefile.am): Likewise.
74138         * modules/getline (Makefile.am): Likewise.
74139         * modules/getloadavg (Makefile.am): Likewise.
74140         * modules/getlogin_r (Makefile.am): Likewise.
74141         * modules/getopt (Makefile.am): Likewise.
74142         * modules/getpass (Makefile.am): Likewise.
74143         * modules/getpass-gnu (Makefile.am): Likewise.
74144         * modules/getsubopt (Makefile.am): Likewise.
74145         * modules/gettime (Makefile.am): Likewise.
74146         * modules/gettimeofday (Makefile.am): Likewise.
74147         * modules/getugroups (Makefile.am): Likewise.
74148         * modules/getusershell (Makefile.am): Likewise.
74149         * modules/glob (Makefile.am): Likewise.
74150         * modules/group-member (Makefile.am): Likewise.
74151         * modules/hard-locale (Makefile.am): Likewise.
74152         * modules/hash (Makefile.am): Likewise.
74153         * modules/hmac-md5 (Makefile.am): Likewise.
74154         * modules/hmac-sha1 (Makefile.am): Likewise.
74155         * modules/human (Makefile.am): Likewise.
74156         * modules/idcache (Makefile.am): Likewise.
74157         * modules/imaxabs (Makefile.am): Likewise.
74158         * modules/imaxdiv (Makefile.am): Likewise.
74159         * modules/inet_ntop (Makefile.am): Likewise.
74160         * modules/inet_pton (Makefile.am): Likewise.
74161         * modules/inttostr (Makefile.am): Likewise.
74162         * modules/isapipe (Makefile.am): Likewise.
74163         * modules/lchown (Makefile.am): Likewise.
74164         * modules/long-options (Makefile.am): Likewise.
74165         * modules/lstat (Makefile.am): Likewise.
74166         * modules/malloc (Makefile.am): Likewise.
74167         * modules/mathl (Makefile.am): Likewise.
74168         * modules/mbchar (Makefile.am): Likewise.
74169         * modules/md2 (Makefile.am): Likewise.
74170         * modules/md4 (Makefile.am): Likewise.
74171         * modules/md5 (Makefile.am): Likewise.
74172         * modules/memcasecmp (Makefile.am): Likewise.
74173         * modules/memchr (Makefile.am): Likewise.
74174         * modules/memcmp (Makefile.am): Likewise.
74175         * modules/memcoll (Makefile.am): Likewise.
74176         * modules/memcpy (Makefile.am): Likewise.
74177         * modules/memmem (Makefile.am): Likewise.
74178         * modules/memmove (Makefile.am): Likewise.
74179         * modules/mempcpy (Makefile.am): Likewise.
74180         * modules/memrchr (Makefile.am): Likewise.
74181         * modules/memset (Makefile.am): Likewise.
74182         * modules/memxor (Makefile.am): Likewise.
74183         * modules/mkancesdirs (Makefile.am): Likewise.
74184         * modules/mkdir (Makefile.am): Likewise.
74185         * modules/mkdir-p (Makefile.am): Likewise.
74186         * modules/mkdtemp (Makefile.am): Likewise.
74187         * modules/mkstemp (Makefile.am): Likewise.
74188         * modules/mktime (Makefile.am): Likewise.
74189         * modules/modechange (Makefile.am): Likewise.
74190         * modules/mountlist (Makefile.am): Likewise.
74191         * modules/nanosleep (Makefile.am): Likewise.
74192         * modules/openat (Makefile.am): Likewise.
74193         * modules/pagealign_alloc (Makefile.am): Likewise.
74194         * modules/physmem (Makefile.am): Likewise.
74195         * modules/poll (Makefile.am): Likewise.
74196         * modules/posixtm (Makefile.am): Likewise.
74197         * modules/posixver (Makefile.am): Likewise.
74198         * modules/putenv (Makefile.am): Likewise.
74199         * modules/quote (Makefile.am): Likewise.
74200         * modules/quotearg (Makefile.am): Likewise.
74201         * modules/raise (Makefile.am): Likewise.
74202         * modules/read-file (Makefile.am): Likewise.
74203         * modules/readline (Makefile.am): Likewise.
74204         * modules/readlink (Makefile.am): Likewise.
74205         * modules/readtokens (Makefile.am): Likewise.
74206         * modules/readutmp (Makefile.am): Likewise.
74207         * modules/realloc (Makefile.am): Likewise.
74208         * modules/regex (Makefile.am): Likewise.
74209         * modules/rename (Makefile.am): Likewise.
74210         * modules/rename-dest-slash (Makefile.am): Likewise.
74211         * modules/rijndael (Makefile.am): Likewise.
74212         * modules/rmdir (Makefile.am): Likewise.
74213         * modules/rpmatch (Makefile.am): Likewise.
74214         * modules/safe-read (Makefile.am): Likewise.
74215         * modules/safe-write (Makefile.am): Likewise.
74216         * modules/same (Makefile.am): Likewise.
74217         * modules/save-cwd (Makefile.am): Likewise.
74218         * modules/savedir (Makefile.am): Likewise.
74219         * modules/setenv (Makefile.am): Likewise.
74220         * modules/settime (Makefile.am): Likewise.
74221         * modules/sha1 (Makefile.am): Likewise.
74222         * modules/sig2str (Makefile.am): Likewise.
74223         * modules/snprintf (Makefile.am): Likewise.
74224         * modules/stdlib-safer (Makefile.am): Likewise.
74225         * modules/stpcpy (Makefile.am): Likewise.
74226         * modules/stpncpy (Makefile.am): Likewise.
74227         * modules/strcase (Makefile.am): Likewise.
74228         * modules/strcasestr (Makefile.am): Likewise.
74229         * modules/strchrnul (Makefile.am): Likewise.
74230         * modules/strcspn (Makefile.am): Likewise.
74231         * modules/strdup (Makefile.am): Likewise.
74232         * modules/strerror (Makefile.am): Likewise.
74233         * modules/strftime (Makefile.am): Likewise.
74234         * modules/strndup (Makefile.am): Likewise.
74235         * modules/strnlen (Makefile.am): Likewise.
74236         * modules/strpbrk (Makefile.am): Likewise.
74237         * modules/strsep (Makefile.am): Likewise.
74238         * modules/strstr (Makefile.am): Likewise.
74239         * modules/strtod (Makefile.am): Likewise.
74240         * modules/strtoimax (Makefile.am): Likewise.
74241         * modules/strtok_r (Makefile.am): Likewise.
74242         * modules/strtol (Makefile.am): Likewise.
74243         * modules/strtoll (Makefile.am): Likewise.
74244         * modules/strtoul (Makefile.am): Likewise.
74245         * modules/strtoull (Makefile.am): Likewise.
74246         * modules/strtoumax (Makefile.am): Likewise.
74247         * modules/strverscmp (Makefile.am): Likewise.
74248         * modules/time_r (Makefile.am): Likewise.
74249         * modules/timegm (Makefile.am): Likewise.
74250         * modules/tmpfile-safer (Makefile.am): Likewise.
74251         * modules/unistd-safer (Makefile.am): Likewise.
74252         * modules/unlinkdir (Makefile.am): Likewise.
74253         * modules/userspec (Makefile.am): Likewise.
74254         * modules/utime (Makefile.am): Likewise.
74255         * modules/utimecmp (Makefile.am): Likewise.
74256         * modules/utimens (Makefile.am): Likewise.
74257         * modules/vasnprintf (Makefile.am): Likewise.
74258         * modules/vasprintf (Makefile.am): Likewise.
74259         * modules/vsnprintf (Makefile.am): Likewise.
74260         * modules/xalloc (Makefile.am): Likewise.
74261         * modules/xgetcwd (Makefile.am): Likewise.
74262         * modules/xnanosleep (Makefile.am): Likewise.
74263         * modules/xreadlink (Makefile.am): Likewise.
74264         * modules/xstrtod (Makefile.am): Likewise.
74265         * modules/xstrtol (Makefile.am): Likewise.
74266         * modules/xstrtold (Makefile.am): Likewise.
74267         * modules/yesno (Makefile.am): Likewise.
74268
74269 2006-10-12  Jim Meyering  <jim@meyering.net>
74270
74271         * m4/getloadavg.m4: Revert the change below.
74272
74273         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74274         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74275         fail with a symlink, which is what coreutils' ./bootstrap now
74276         creates by default.
74277
74278 2006-10-12  Bruno Haible  <bruno@clisp.org>
74279
74280         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74281         mingw.
74282         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74283         MSVC and mingw explicitly.
74284
74285 2006-10-11  Simon Josefsson  <jas@extundo.com>
74286             Bruno Haible  <bruno@clisp.org>
74287
74288         Add support for multiple gnulib-tool invocations in the scope of a
74289         single configure.ac file.
74290         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74291         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74292         with the same contents as the _LIBADD variable.
74293         (func_emit_initmacro_start, func_emit_initmacro_end,
74294         func_emit_initmacro_done): New functions.
74295         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74296         gl_LIBOBJS and gl_LTLIBOBJS.
74297
74298 2006-10-11  Bruno Haible  <bruno@clisp.org>
74299
74300         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74301         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74302         autoreconf. Instead, invoke autopoint explicitly but move back the
74303         *.m4 files from gnulib.
74304
74305 2006-10-11  Bruno Haible  <bruno@clisp.org>
74306
74307         * gnulib-tool (func_usage): Make module names after --create-testdir
74308         optional.
74309         (func_create_testdir): If no module was specified, use nearly all
74310         modules.
74311
74312 2006-10-12  Jim Meyering  <jim@meyering.net>
74313
74314         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74315         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74316         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74317         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74318         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74319         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74320         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74321         (fts_set_stat_required): New function.
74322         (fts_open): Defer the calls to fts_stat, if possible or requested.
74323         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74324         into fts_stat itself.
74325         (fts_read): Perform any required (deferred) fts_stat call.
74326         (fts_build): Likewise, for the directory we're about to open and read.
74327         In the readdir loop, carefully decide whether each entry will require
74328         an eventual call to fts_stat, using dirent.d_type info if available.
74329         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74330         a command line argument into this function.  Update all callers.
74331         Map a return value of FTS_DOT to FTS_D for a command line argument.
74332         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74333         Thanks to Miklos Szeredi for his tenacity and for the initial
74334         bug report about "find" failing on a FUSE-based file system.
74335
74336         * lib/fts.c (fts_open): Use consistent indentation.
74337
74338 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74339
74340         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74341         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74342         reported by Jim Meyering.  All uses of cache variables renamed
74343         to match Autoconf's.
74344         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74345         the other one.
74346
74347         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74348         Fix misspelling in diagnostic.
74349
74350 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74351
74352         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74353         defined.  Problem reported by Matthew Woehlke.
74354
74355         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74356         Add support for Tandem NonStop R series.
74357         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74358         Use new macro.
74359
74360         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74361         (has_trailing_slash): Omit size arg; all callers changed.
74362         Omit 'inline', since it doesn't help performance and we'd
74363         need to configure it.
74364         Don't count //, ///, etc. as having a trailing slash.
74365         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74366         (rpl_rename_dest_slash): On failure, use rename's errno rather
74367         than (in some cases) an incorrect or junk errno.
74368         Simplify code by removing need to compute length; this does
74369         cause it to make two passes instead of one over the file name,
74370         but it's worth it.
74371
74372         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74373         change, since Autoconf's version may no longer be appropriate now
74374         that we are using CVS Autoconf's version.  Add support for Tandem.
74375
74376 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74377             Bruno Haible  <bruno@clisp.org>
74378
74379         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74380         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74381         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74382         gl_AC_TYPE_LONG_LONG.
74383
74384         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74385         instead of HAVE_LONG_LONG.
74386         * lib/printf-args.c (printf_fetchargs): Likewise.
74387         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74388         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74389         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74390         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74391         gl_AC_TYPE_LONG_LONG.
74392
74393 2006-10-11  Bruno Haible  <bruno@clisp.org>
74394
74395         * m4/longlong.m4: Add comments.
74396         * m4/ulonglong.m4: Likewise.
74397
74398 2006-10-10  Bruno Haible  <bruno@clisp.org>
74399
74400         Make it possible to #define stpcpy, strdup to aliases.
74401         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74402         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74403
74404 2006-10-10  Bruno Haible  <bruno@clisp.org>
74405
74406         Make it possible to #define gcd to an alias.
74407         * lib/gcd.c: Include config.h.
74408
74409 2006-10-10  Bruno Haible  <bruno@clisp.org>
74410
74411         Make it possible to #define c_isascii to an alias.
74412         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74413         defined. Undefine the macros before defining them, to avoid gcc
74414         warnings.
74415         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74416         define NO_C_CTYPE_MACROS early.
74417
74418 2006-10-10  Bruno Haible  <bruno@clisp.org>
74419
74420         Make it possible to #define set_program_name to an alias.
74421         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74422         ENABLE_RELOCATABLE early.
74423
74424 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74425
74426         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74427         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74428         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74429         More generally, don't assume that 64-bit signed int is available
74430         if unsigned int is, and vice versa.
74431         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74432         unsigned symbols, not on their signed counterparts.
74433         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74434         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74435         (UINT64_C, UINTMAX_C):
74436         Likewise.
74437         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74438         unsigned counterparts.
74439         (Have_long_long, Unsigned): New macros.
74440         (Int): Renamed from INT.
74441         (strtoimax): Use the new macros.
74442         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74443         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74444         * modules/inttypes (inttypes.h): Substitute
74445         HAVE_UNSIGNED_LONG_LONG_INT.
74446         * modules/stdint (stdint.h): Likewise.
74447         (Files): Add m4/ulonglong.m4.
74448
74449 2006-10-10  Bruno Haible  <bruno@clisp.org>
74450
74451         Fix a gcc -Wshadow warning.
74452         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74453         to 'bucket'.
74454         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74455         gl_linked_indexof_from_to): Likewise.
74456         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74457         Likewise.
74458         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74459         Likewise.
74460         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74461         Reported by Eric Blake.
74462
74463 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74466         for NetBSD.  Problem reported by Bruno Haible.
74467
74468 2006-10-09  Jim Meyering  <jim@meyering.net>
74469
74470         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74471         Patch from Bruno Haible.
74472
74473 2006-10-09  Jim Meyering  <jim@meyering.net>
74474
74475         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74476         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74477         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74478
74479 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74480
74481         Don't include <config.h> twice; this doesn't work in some cases,
74482         e.g., when config.h has "#define intmax_t long long int" and
74483         we include <config.h>, <inttypes.h>, <config.h> in that order.
74484         Problem reported by Matthew Woehlke in:
74485         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74486         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74487         * lib/fts-cycle.c: Don't include config.h.
74488         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74489         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74490         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74491         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74492         inttypes.h.
74493         * lib/xstrtoumax.c: Likewise.
74494         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74495         __strtol and the like, so that this module is more like its siblings.
74496         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74497         Remove; no longer needed now that we assume gnulib inttypes.h.
74498
74499 2006-10-08  Bruno Haible  <bruno@clisp.org>
74500
74501         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74502         option.
74503
74504 2006-10-07  Jim Meyering  <jim@meyering.net>
74505
74506         * modules/inttypes (inttypes.h): Revert what seems to have been
74507         an inadvertent part of today's change: use "|", not "/" in the
74508         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74509
74510 2006-10-07  Bruno Haible  <bruno@clisp.org>
74511
74512         * modules/sublist: New file.
74513
74514 2006-10-07  Bruno Haible  <bruno@clisp.org>
74515
74516         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74517         * modules/argz (argz.h): Likewise.
74518         * modules/arpa_inet (arpa/inet.h): Likewise.
74519         * modules/byteswap (byteswap.h): Likewise.
74520         * modules/configmake (configmake.h): Likewise.
74521         * modules/fcntl (fcntl.h): Likewise.
74522         * modules/fnmatch (fnmatch.h): Likewise.
74523         * modules/getopt (getopt.h): Likewise.
74524         * modules/glob (glob.h): Likewise.
74525         * modules/inttypes (inttypes.h): Likewise.
74526         * modules/netinet_in (netinet/in.h): Likewise.
74527         * modules/poll (poll.h): Likewise.
74528         * modules/stdbool (stdbool.h): Likewise.
74529         * modules/stdint (stdint.h): Likewise.
74530         * modules/sys_select (sys/select.h): Likewise.
74531         * modules/sys_socket (sys/socket.h): Likewise.
74532         * modules/sys_stat (sys/stat.h): Likewise.
74533         * modules/sysexits (sysexits.h): Likewise.
74534         * modules/unistd (unistd.h): Likewise.
74535         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74536         Add a "DO NOT EDIT" comment to the generated file.
74537         (func_import): Likewise for gnulib-comp.m4.
74538
74539 2006-10-07  Bruno Haible  <bruno@clisp.org>
74540
74541         * lib/gl_sublist.h: New file.
74542         * lib/gl_sublist.c: New file.
74543
74544 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74545
74546         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74547         name (relative to the original working directory) and the file
74548         name component (relative to the temporary working directory).  All
74549         callers changed.
74550         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74551         * lib/mkdir-p.c (make_dir_parents): Likewise.
74552         * lib/mkdir-p.h (make_dir_parents): Likewise.
74553
74554 2006-10-06  Eric Blake  <ebb9@byu.net>
74555
74556         Define several macros for use by the clean-temp module.
74557         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74558         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74559         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74560
74561         * lib/clean-temp.h (close_stream_temp): New declaration.
74562         * lib/clean-temp.c (includes): Pull in headers according to what
74563         other modules are in use.
74564         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74565
74566 2006-10-06  Bruno Haible  <bruno@clisp.org>
74567
74568         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74569         instead of fopen, fwriteerror.
74570
74571 2006-10-06  Bruno Haible  <bruno@clisp.org>
74572
74573         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74574         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74575         int.
74576         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74577         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74578         Return an error indicator.
74579         Suggested by Eric Blake.
74580
74581 2006-10-06  Bruno Haible  <bruno@clisp.org>
74582
74583         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74584         Reported by Eric Blake.
74585
74586 2006-10-06  Bruno Haible  <bruno@clisp.org>
74587
74588         * modules/closeout (Description): Mention stderr too.
74589
74590 2006-10-06  Bruno Haible  <bruno@clisp.org>
74591         and Paul Eggert  <eggert@cs.ucla.edu>
74592
74593         * lib/closeout.c (close_stdout): Also close stderr.
74594         * lib/closeout.h: Update comment.
74595
74596 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74597
74598         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74599         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74600         * lib/dirchownmod.c: Include lchown.h.
74601         * lib/lchown.c: Don't include files that lchown.h now includes.
74602         Don't declare chown, since lchown.h now does that.
74603         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74604         (lchown): Define to rpl_chown if lchown is declared but
74605         does not exist.  Declare using a prototype if lchown is not
74606         declared.  Add a copyright notice.
74607         * lib/mkstemp.h: Include <unistd.h>.
74608         * lib/openat.c: Include lchown.h.
74609
74610         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74611         we now test for that separately.
74612         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74613         rather than O_NOFOLLOW, when testing whether it's possible to
74614         avoid a race condition reliably.
74615         * lib/savewd.c (savewd_chdir): Likewise.
74616
74617         Remove macros that are no longer needed now that stdint.h is
74618         reliable.
74619         * lib/fsusage.c (UINTMAX_MAX): Remove.
74620         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74621         * lib/utimecmp.c (SIZE_MAX): Remove.
74622
74623         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74624
74625         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74626         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74627         O_NOATIME works.
74628
74629 2006-10-05  Bruno Haible  <bruno@clisp.org>
74630
74631         * lib/gl_list.h (gl_sortedlist_search_from_to,
74632         gl_sortedlist_indexof_from_to): New declarations.
74633         (gl_list_implementation): New fields sortedlist_search_from_to,
74634         sortedlist_indexof_from_to.
74635         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74636         inline functions.
74637         * lib/gl_list.c (gl_sortedlist_search_from_to,
74638         gl_sortedlist_indexof_from_to): New functions.
74639         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74640         function.
74641         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74642         (gl_array_sortedlist_search_from_to): New function.
74643         (gl_array_list_implementation): Update.
74644         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74645         function.
74646         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74647         (gl_carray_sortedlist_search_from_to): New function.
74648         (gl_carray_list_implementation): Update.
74649         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74650         gl_linked_sortedlist_indexof_from_to): New functions.
74651         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74652         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74653         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74654         gl_tree_sortedlist_indexof_from_to): New functions.
74655         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74656         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74657         Update.
74658         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74659         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74660         Update.
74661
74662 2006-10-05  Bruno Haible  <bruno@clisp.org>
74663
74664         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74665         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74666         (struct gl_list_implementation): Add fields search_from_to,
74667         indexof_from_to. Remove fields search, indexof.
74668         (gl_list_search): Use the search_from_to method.
74669         (gl_list_search_from, gl_list_search_from_to): New functions.
74670         (gl_list_indexof): Use the indexof_from_to method.
74671         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74672         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74673         (gl_list_search_from, gl_list_search_from_to): New functions.
74674         (gl_list_indexof): Use the indexof_from_to method.
74675         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74676         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74677         gl_array_indexof. Add start_index, end_index arguments.
74678         (gl_array_search_from_to): Renamed from gl_array_search. Add
74679         start_index, end_index arguments.
74680         (gl_array_remove, gl_array_list_implementation): Update.
74681         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74682         gl_carray_indexof. Add start_index, end_index arguments.
74683         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74684         start_index, end_index arguments.
74685         (gl_carray_remove, gl_carray_list_implementation): Update.
74686         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74687         gl_linked_search. Add start_index, end_index arguments.
74688         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74689         start_index, end_index arguments.
74690         (gl_linked_remove): Update.
74691         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74692         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74693         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74694         field to 'size_t'.
74695         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74696         gl_tree_search. Add start_index, end_index arguments.
74697         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74698         start_index, end_index arguments.
74699         (gl_tree_remove): Update.
74700         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74701         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74702         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74703         function.
74704         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74705         gl_tree_search. Add start_index, end_index arguments.
74706         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74707         start_index, end_index arguments.
74708         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74709         Update.
74710         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74711
74712 2006-10-05  Bruno Haible  <bruno@clisp.org>
74713
74714         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74715
74716         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74717         fwriteerror_temp): New declarations.
74718         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74719         (descriptors): New variable.
74720         (cleanup): First, close the descriptors.
74721         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74722         fclose_temp, fwriteerror_temp): New functions.
74723
74724 2006-10-04  Jim Meyering  <jim@meyering.net>
74725
74726         * lib/fts.c (fts_open): Tiny comment change.
74727
74728 2006-10-04  Bruno Haible  <bruno@clisp.org>
74729
74730         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74731         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74732         gl_LOCK_BODY.
74733         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74734         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74735         gl_LOCK_EARLY_BODY.
74736         (gl_LOCK): Require gl_LOCK_BODY.
74737
74738 2006-10-04  Bruno Haible  <bruno@clisp.org>
74739
74740         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74741         (gl_oset_search_atleast): New declaration.
74742         (struct gl_oset_implementation): Add field 'search_atleast'.
74743         (gl_oset_search_atleast): New inline function.
74744         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74745         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74746         (gl_array_oset_implementation): Update.
74747         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74748         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74749         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74750
74751 2006-10-04  Bruno Haible  <bruno@clisp.org>
74752
74753         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74754
74755 2006-10-03  Bruno Haible  <bruno@clisp.org>
74756
74757         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74758         from gl_avltreehash_list_implementation.
74759
74760 2006-10-03  Bruno Haible  <bruno@clisp.org>
74761
74762         * lib/gl_oset.c (gl_oset_add): Fix return type.
74763
74764 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74765
74766         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74767
74768 2006-10-02  Eric Blake  <ebb9@byu.net>
74769
74770         * modules/strnlen (Depends-on): Add extensions.
74771
74772 2006-10-02  Eric Blake  <ebb9@byu.net>
74773
74774         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74775         definition in 2.60+.
74776
74777 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74778
74779         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74780         checks.
74781
74782 2006-10-02  Bruno Haible  <bruno@clisp.org>
74783
74784         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74785         to the AUTOMAKE_OPTIONS.
74786         Reported by Jim Meyering.
74787
74788 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74789
74790         Work around bug in Solaris 10 /proc file system:
74791         /proc/self/fd/NNN/.. isn't the parent directory of
74792         the directory whose file descriptor is NNN.  This needs to
74793         be worked around at run time, not compile time, since a
74794         program might be built on Solaris 8, where things work, and
74795         run on Solaris 10.
74796         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74797         to use the following interface instead:
74798         (OPENAT_BUFFER_SIZE): New macro.
74799         (openat_proc_name): New function.
74800         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74801         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74802         Likewise.
74803         * lib/openat-proc.c: New file.
74804         * modules/openat (Files): Add lib/openat-proc.c.
74805         (Depends-on): Add same-inode, stdbool.
74806         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74807
74808 2006-09-29  Bruno Haible  <bruno@clisp.org>
74809
74810         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74811         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74812         argument. Set stdout_closed before testing for ferror, not after.
74813         (fwriteerror, fwriteerror_no_ebadf): New functions.
74814
74815 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74816
74817         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74818
74819 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74820
74821         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74822         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74823
74824 2006-09-28  Jim Meyering  <jim@meyering.net>
74825
74826         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74827         Include <unistd.h>.
74828
74829 2006-09-28  Bruno Haible  <bruno@clisp.org>
74830
74831         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74832         * modules/linkedhash-list (Depends-on): Likewise.
74833         * modules/rbtreehash-list (Depends-on): Likewise.
74834
74835 2006-09-28  Bruno Haible  <bruno@clisp.org>
74836
74837         * lib/strndup.h: Simplify the redefinition of strndup.
74838         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74839         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74840
74841 2006-09-28  Bruno Haible  <bruno@clisp.org>
74842
74843         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74844         * lib/gl_linkedhash_list.c: Likewise.
74845         * lib/gl_rbtreehash_list.c: Likewise.
74846
74847 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74848
74849         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74850         getaddrinfo.
74851
74852         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74853         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74854         it causes <stdio_ext.h> to cause a compile-time error.
74855         Problem reported by Nelson H. F. Beebe.
74856         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74857         of HAVE_DECL___PENDING.
74858
74859         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74860         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74861         declaration.
74862
74863 2006-09-27  Jim Meyering  <jim@meyering.net>
74864
74865         This file could end up with a definition for a function
74866         named __strndup, rather than rpl_strndup on a system with
74867         incomplete weak_alias support.
74868         * lib/strndup.c (strndup): Rename from __strndup.
74869         Remove #defines that used to map __strndup to strndup.
74870         Don't use K&R prototypes.
74871         Remove LIBC-related code, since this file is not sync'd with glibc.
74872         * lib/strndup.h: Revamp, accordingly.
74873         * m4/strndup.m4: Modernize.
74874
74875 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74876
74877         * modules/savewd (Depends-on): Add 'raise'.
74878         * lib/savewd.c: Include <signal.h>, for 'raise'.
74879
74880 2006-09-26  Jim Meyering  <jim@meyering.net>
74881
74882         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74883         when we detect Darwin 8.7.0's acl_get_file bug.
74884         Rearrange to perform the new (below) run-test while $LIBS
74885         contains any acl-related library.  Set USE_ACL at the end.
74886         (gl_ACL_GET_FILE): New function.
74887
74888 2006-09-26  Eric Blake  <ebb9@byu.net>
74889
74890         * lib/verror.c: Include <config.h> unconditionally.
74891
74892 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74893
74894         * modules/clock-time (Maintainer): Add self.
74895         * modules/getlogin_r (Depends-on): Add extensions.
74896
74897 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74898
74899         * modules/clock-time: New module.
74900         * modules/nanosleep (Depends-on): Add clock-time.
74901         * modules/gethrxtime (Depends-on): Likewise.
74902         * modules/gettime (Depends-on): Likewise.
74903         * modules/settime (Depends-on): Likewise.
74904
74905         * modules/fts-lgpl: Depend on openat.
74906         * modules/mkancesdirs: Depend on savewd.
74907         * modules/mkdir-p: Likewise.
74908
74909 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74910
74911         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74912
74913         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74914         `gl_have_arbitrary_file_name_length_limit' to
74915         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74916         actually works between configure runs.
74917
74918 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74919             Bruno Haible  <bruno@clisp.org>
74920
74921         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74922
74923 2006-09-25  Jim Meyering  <jim@meyering.net>
74924
74925         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74926         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74927
74928 2006-09-25  Eric Blake  <ebb9@byu.net>
74929
74930         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74931         exec's in 2006-09-18 patch when shuffling fds.
74932
74933 2006-09-25  Bruno Haible  <bruno@clisp.org>
74934
74935         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74936         Reported by Jim Meyering.
74937
74938 2006-09-24  Jim Meyering  <jim@meyering.net>
74939
74940         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74941         compare a pointer against a literal "0".  That caused failures with
74942         at least HP-UX's hpcc.
74943
74944 2006-09-22  Simon Josefsson  <jas@extundo.com>
74945
74946         * modules/gc-sha1:
74947         * modules/gc-md4:
74948         * modules/gc-hmac-sha1:
74949         * modules/gc-hmac-md5:
74950         * modules/gc-des:
74951         * modules/gc-arcfour: Distribute more files.
74952
74953 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74954
74955         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74956         (gl_linked_iterator_from_to): Initialize struct completely.
74957         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74958         (gl_tree_iterator_from_to): Likewise
74959         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74960         * lib/gl_array_list.c [lint] (gl_array_iterator)
74961         (gl_array_iterator_from_to): Likewise.
74962         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74963         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74964         (gl_carray_iterator_from_to): Likewise.
74965
74966         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74967         * lib/md4.c (md4_process_block): Remove unused variable.
74968         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74969         parentheses for clarity.
74970
74971 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74972
74973         * modules/bison-i18n (Depends-on): Add gettext.
74974
74975 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74976
74977         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74978         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74979         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74980         also add missing comma that caused broken test.
74981         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74982         stdlib.h, for `abort'.
74983         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74984         variables.
74985         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74986         include unistd.h if present, for `rmdir'.
74987         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74988         variables.
74989         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74990         in the process include standard headers for prototypes.
74991         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74992         gets declared on GNU/Linux.
74993         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74994         unistd.h, for `rmdir'.
74995         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74996
74997         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74998         always true.
74999         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
75000
75001         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
75002
75003 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75004
75005         * gnulib-tool (func_version): Create output all at once.  This
75006         may help avoid triggering unnecessary SIGPIPEs, and at any
75007         rate it doesn't hurt.
75008
75009 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75010             Bruno Haible  <bruno@clisp.org>
75011
75012         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
75013         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75014         * m4/signed.m4 (bh_C_SIGNED): Likewise.
75015
75016         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
75017         (gl_FUNC_VASPRINTF): Invoke it.
75018
75019 2006-09-22  Bruno Haible  <bruno@clisp.org>
75020
75021         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
75022         getloadavg.c as first argument.
75023
75024 2006-09-22  Bruno Haible  <bruno@clisp.org>
75025
75026         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
75027         at the beginning of the gl_INIT macro.
75028         * modules/getloadavg (configure.ac): Pass $gl_source_base to
75029         gl_GETLOADAVG.
75030
75031 2006-09-22  Bruno Haible  <bruno@clisp.org>
75032
75033         * gnulib-tool (func_create_megatestdir): Don't include the config-h
75034         module.
75035         Suggested by Ralf Wildenhues.
75036
75037 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75038
75039         Import this patch from libc:
75040
75041         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
75042
75043         * lib/regex_internal.c (re_string_reconstruct): Handle
75044         offset < pstr->valid_raw_len && pstr->offsets_needed case.
75045         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
75046         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
75047         re_string_context_at.
75048
75049         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
75050         now requires it.
75051         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
75052         gl_REGEX now does it for us.
75053         (gl_REGEX): Add test taken from
75054         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
75055
75056         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
75057         Check that large offsets work.  Modernize Autoconf usages.
75058         Prefer "yes" to mean a good thing rather than a bad.
75059         Don't put "#define mkstemp" in config.h, as this might interfere
75060         with standard system headers that "#define mkstemp mkstemp64".
75061
75062         * modules/mkstemp (Depends-on): Add extensions, so that
75063         mkstemp is visible on some platforms.
75064         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
75065         (Include): Change to "mkstemp.h" from <stdlib.h>.
75066         (Files): Add mkstemp.h.
75067
75068         * lib/mkstemp.h: New file, since some standard headers
75069         #define mkstemp.
75070         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
75071         Include "mkstemp.h".
75072         Make the _LIBC code resemble glibc original more,
75073         e.g., use K&R style.
75074         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
75075         (mkstemp): Remove, since mkstemp.h does this for us.
75076         * lib/stdlib--.h: Include mkstemp.h.
75077
75078         Import this patch from libc:
75079
75080         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75081
75082         * lib/tempname.c (__gen_tempname): Change attempts_min
75083         into a macro.  Use preprocessor to decide how to initialize
75084         attempts [Coverity CID 67].
75085
75086 2006-09-20  Bruno Haible  <bruno@clisp.org>
75087
75088         * lib/mkdtemp.c: Import from libc.
75089         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75090                 * sysdeps/posix/tempname.c (__gen_tempname): Change
75091                 attempts_min into a macro.  Use preprocessor to decide how to
75092                 initialize attempts [Coverity CID 67].
75093         2001-11-27  Paul Eggert  <eggert@twinsun.com>
75094                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
75095                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
75096
75097 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75098
75099         * gnulib-tool (func_exit): New function, to allow to pass the
75100         exit status portably through the trap.  Use everywhere.
75101         (--help, --version): Signal a write error.
75102         (trap): catch SIGPIPE, for write errors.
75103         Exit at the end of the trap, with the correct exit status.
75104
75105 2006-09-19  Karl Berry  <karl@gnu.org>
75106
75107         * doc/gnulib.texi: note about the license texinfo files.
75108
75109 2006-09-19  Eric Blake  <ebb9@byu.net>
75110
75111         * gnulib-tool: Avoid space-tab.
75112
75113 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75114
75115         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
75116         that prevented coreutils 6.1 from building.  Problem reported
75117         by Petter Reinholdtsen.
75118
75119 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75120
75121         * gnulib-tool (avoidlist): Fix typo that broke options like
75122         --avoid=lock that are used by coreutils bootstrap.
75123
75124 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
75125
75126         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
75127         more systematically.
75128
75129 2006-09-18  Jim Meyering  <jim@meyering.net>
75130
75131         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
75132
75133 2006-09-18  Bruno Haible  <bruno@clisp.org>
75134
75135         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75136
75137 2006-09-18  Bruno Haible  <bruno@clisp.org>
75138
75139         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75140         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75141         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75142         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75143         * m4/gettext.m4: Require autoconf >= 2.52.
75144         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75145         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75146         of gl_cv_header_inttypes_h.
75147
75148 2006-09-18  Bruno Haible  <bruno@clisp.org>
75149
75150         * lib/javaversion.c: Include configmake.h.
75151
75152 2006-09-18  Bruno Haible  <bruno@clisp.org>
75153
75154         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75155         avoid that the while loops be executed in a subshell.
75156
75157 2006-09-18  Bruno Haible  <bruno@clisp.org>
75158
75159         * MODULES.html.sh (func_module): Break long lines.
75160         Suggested by Bruce Korb <bkorb@gnu.org>.
75161
75162 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75163
75164         Speed up by a factor of 1.12.
75165         * gnulib-tool (nl): New variable.
75166         (func_import): Rewrite include directive extraction to only read each
75167         directive once.
75168
75169 2006-09-17  Bruno Haible  <bruno@clisp.org>
75170
75171         * modules/javaversion (Makefile.am): Remove DEFS setting.
75172         (Depends-on): Add configmake, for PKGDATADIR definition.
75173
75174 2006-09-17  Bruno Haible  <bruno@clisp.org>
75175
75176         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75177
75178 2006-09-17  Bruno Haible  <bruno@clisp.org>
75179
75180         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75181         (func_modules_transitive_closure, func_modules_add_dummy,
75182         func_modules_to_filelist, func_import, func_create_testdir,
75183         func_create_megatestdir, ...): Use it wherever possible.
75184         Suggested by Ralf Wildenhues.
75185
75186 2006-09-16  Karl Berry  <karl@gnu.org>
75187
75188         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75189         to avoid sectioning errors.
75190         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75191         [ifinfo]: blank line after @center-ed titles.
75192         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75193         Spell FSF address consistently with others.
75194         (These changes approved by rms.)
75195
75196 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75197
75198         Speed up by a factor of 1.61.
75199         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75200         already checked module names again.
75201
75202 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75203
75204         Speed up by a factor of 1.13.
75205         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75206         for new_files, and the input to func_add_or_update.
75207
75208 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75209
75210         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75211         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75212
75213 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75214
75215         * modules/mkancesdirs (Depends-on): Add fcntl.
75216         * modules/savewd: New file.
75217         * MODULES.html.sh (File system functions): Add savewd.
75218
75219         * modules/configmake (Makefile.am): Add support for the
75220         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75221
75222 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75223
75224         * m4/savewd.m4: New file.
75225
75226 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75227
75228         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75229         (dirchownmod): New arg FD.  All callers changed.
75230         Use FD rather than opening the directory ourself, as opening is
75231         now the caller's responsibility.
75232         * lib/dirchownmod.h: Likewise.
75233         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75234         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75235         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75236         (test_dir): Remove.
75237         (mkancesdirs): Return length of prefix of FILE that has already
75238         been made, or -2 if there is a child doing the work.  Redo
75239         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75240         ".", and treat ".." specially since it might stray back into
75241         already-created areas.  Use a subprocess if necessary.  New arg
75242         WD; all users changed.  MAKE_DIR function should now return 1
75243         if it creates a directory that is not readable.  Return -2 if
75244         a child process is spun off.
75245         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75246         Adjust signature to match code.
75247         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75248         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75249         all users changed.
75250         * lib/savewd.c, lib/savewd.h: New files.
75251
75252 2006-09-15  Jim Meyering  <jim@meyering.net>
75253
75254         * modules/rename-dest-slash: New module.
75255         * MODULES.html.sh (posix_compat): Add it here.
75256
75257         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75258
75259 2006-09-15  Jim Meyering  <jim@meyering.net>
75260
75261         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75262         file.
75263
75264         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75265
75266 2006-09-15  Jim Meyering  <jim@meyering.net>
75267
75268         * lib/rename-dest-slash.c (has_trailing_slash): Use
75269         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75270         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75271         test before testing whether SRC is a directory.
75272         Suggestions from Bruno Haible.
75273
75274         Avoid a warning about an unused variable.
75275         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75276         into the #ifdef block where it's used.
75277
75278         * lib/rename-dest-slash.c: New file.
75279
75280 2006-09-14  Bruno Haible  <bruno@clisp.org>
75281
75282         * lib/allocsa.c: Include <config.h> unconditionally.
75283         * lib/asnprintf.c: Likewise.
75284         * lib/asprintf.c: Likewise.
75285         * lib/c-strcasecmp.c: Likewise.
75286         * lib/c-strcasestr.c: Likewise.
75287         * lib/c-strncasecmp.c: Likewise.
75288         * lib/c-strstr.c: Likewise.
75289         * lib/classpath.c: Likewise.
75290         * lib/clean-temp.c: Likewise.
75291         * lib/concatpath.c: Likewise.
75292         * lib/copy-file.c: Likewise.
75293         * lib/csharpcomp.c: Likewise.
75294         * lib/csharpexec.c: Likewise.
75295         * lib/execute.c: Likewise.
75296         * lib/fatal-signal.c: Likewise.
75297         * lib/findprog.c: Likewise.
75298         * lib/fwriteerror.c: Likewise.
75299         * lib/gl_array_list.c: Likewise.
75300         * lib/gl_array_oset.c: Likewise.
75301         * lib/gl_avltree_list.c: Likewise.
75302         * lib/gl_avltree_oset.c: Likewise.
75303         * lib/gl_avltreehash_list.c: Likewise.
75304         * lib/gl_carray_list.c: Likewise.
75305         * lib/gl_linked_list.c: Likewise.
75306         * lib/gl_linkedhash_list.c: Likewise.
75307         * lib/gl_list.c: Likewise.
75308         * lib/gl_oset.c: Likewise.
75309         * lib/gl_rbtree_list.c: Likewise.
75310         * lib/gl_rbtree_oset.c: Likewise.
75311         * lib/gl_rbtreehash_list.c: Likewise.
75312         * lib/imaxabs.c: Likewise.
75313         * lib/imaxdiv.c: Likewise.
75314         * lib/javacomp.c: Likewise.
75315         * lib/javaexec.c: Likewise.
75316         * lib/javaversion.c: Likewise.
75317         * lib/linebreak.c: Likewise.
75318         * lib/localcharset.c: Likewise.
75319         * lib/lock.c: Likewise.
75320         * lib/mbchar.c: Likewise.
75321         * lib/mbswidth.c: Likewise.
75322         * lib/mkdtemp.c: Likewise.
75323         * lib/pipe.c: Likewise.
75324         * lib/printf-args.c: Likewise.
75325         * lib/printf-parse.c: Likewise.
75326         * lib/progname.c: Likewise.
75327         * lib/progreloc.c: Likewise.
75328         * lib/readlink.c: Likewise.
75329         * lib/sh-quote.c: Likewise.
75330         * lib/stpcpy.c: Likewise.
75331         * lib/stpncpy.c: Likewise.
75332         * lib/strcasecmp.c: Likewise.
75333         * lib/strcasestr.c: Likewise.
75334         * lib/strcspn.c: Likewise.
75335         * lib/striconv.c: Likewise.
75336         * lib/strncasecmp.c: Likewise.
75337         * lib/strnlen1.c: Likewise.
75338         * lib/strstr.c: Likewise.
75339         * lib/strtok_r.c: Likewise.
75340         * lib/tls.c: Likewise.
75341         * lib/tmpdir.c: Likewise.
75342         * lib/unicodeio.c: Likewise.
75343         * lib/unsetenv.c: Likewise.
75344         * lib/vasnprintf.c: Likewise.
75345         * lib/vasprintf.c: Likewise.
75346         * lib/wait-process.c: Likewise.
75347         * lib/xallocsa.c: Likewise.
75348         * lib/xsetenv.c: Likewise.
75349         * lib/xstriconv.c: Likewise.
75350
75351 2006-09-13  Simon Josefsson  <jas@extundo.com>
75352
75353         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75354         that internally, suggested by Ralf Wildenhues
75355         <Ralf.Wildenhues@gmx.de>.
75356
75357 2006-09-13  Simon Josefsson  <jas@extundo.com>
75358
75359         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75360         @LIBOBJS@.
75361         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75362
75363 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75366         longer worry about uses that don't define HAVE_CONFIG_H.
75367         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75368         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75369         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75370         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75371         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75372         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75373         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75374         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75375         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75376         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75377         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75378         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75379         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75380         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75381         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75382         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75383         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75384         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75385         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75386         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75387         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75388         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75389         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75390         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75391         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75392         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75393         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75394         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75395         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75396         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75397         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75398         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75399         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75400         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75401         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75402         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75403         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75404         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75405         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75406         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75407         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75408         Likewise.
75409
75410 2006-09-13  Eric Blake  <ebb9@byu.net>
75411
75412         * lib/getopt.c: Fix typo in last commit.
75413
75414 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75415
75416         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75417         dgettext.
75418
75419 2006-09-12  Jim Meyering  <jim@meyering.net>
75420
75421         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75422         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75423         Reported by Nelson H. F. Beebe.
75424
75425 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75426
75427         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75428         program_invocation_name and program_invocation_short_name are
75429         initialized.
75430         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75431         and program_invocation_short_name to argp.h, so they are visible
75432         to user programs.
75433         * lib/argp.h: Likewise
75434
75435 2006-09-10  Bruno Haible  <bruno@clisp.org>
75436
75437         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75438         m4/inttypes_h.m4, m4/uintmax_t.m4.
75439
75440 2006-09-10  Bruno Haible  <bruno@clisp.org>
75441
75442         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75443         gl_AC_TYPE_UINTMAX_T.
75444
75445 2006-09-10  Bruno Haible  <bruno@clisp.org>
75446
75447         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75448
75449 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75450
75451         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75452         convention.  Text proposed by Bruno Haible.
75453         (struct argp_option): Document the use of N_() wrappers.
75454
75455         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75456         '\v', and translate the two parts separately, instead of feeding
75457         the whole string to gettext.  This allows to exclude
75458         '\v' from the strings visible to the translator by writing doc
75459         strings as N_("..") "\v" N_("..").
75460
75461 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75462
75463         * config/srclist.txt: Undo latest change; the bug was fixed.
75464
75465 2006-09-09  Bruno Haible  <bruno@clisp.org>
75466
75467         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75468         assignments if building a library without libtool.
75469         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75470         in func_emit_lib_Makefile_am.
75471         (func_import): When building a static library libfoo.a, arrange to
75472         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75473         (func_create_testdir): Likewise.
75474         * modules/gc (configure.ac, Makefile.am): If building statically,
75475         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75476         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75477         * modules/striconv (configure.ac, Makefile.am): Likewise.
75478         Based on a suggestion by Ralf Wildenhues.
75479
75480 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75481
75482         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75483         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75484         Also:
75485
75486         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75487         Add year_2050_test to catch glibc bug 2821
75488         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75489
75490         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75491         Prefer #ifdef to #if.
75492
75493         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75494         Return from 'main' instead of calling 'exit'.
75495
75496 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75497
75498         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75499         returned the maximum time_t value rather than (time_t) -1.
75500         Problem originally reported by William Bardwell
75501         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75502
75503         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75504         Moved to here ...
75505         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75506         ... from here.
75507
75508 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75509
75510         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75511         2821 is fixed.
75512
75513 2006-09-08  Jim Meyering  <jim@meyering.net>
75514
75515         Don't make generated files read-only.  That would bother too many
75516         people.  However, do retain the ability to work when targets are
75517         read-only: remove the destination and temporary files before writing
75518         them (when generated via sed or echo), or by using the -f option for
75519         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75520         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75521         * modules/byteswap, modules/configmake, modules/fcntl:
75522         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75523         * modules/localcharset, modules/netinet_in, modules/poll:
75524         * modules/stdbool, modules/stdint, modules/sys_select:
75525         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75526
75527 2006-09-08  Jim Meyering  <jim@meyering.net>
75528
75529         Avoid new build failure on FreeBSD 6.0.
75530         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75531         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75532         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75533
75534 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75535
75536         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75537
75538 2006-09-07  Jim Meyering  <jim@meyering.net>
75539
75540         Fix global typo in last change: use chmod u-w, not chmod u-x.
75541         Spotted by Paul Eggert and Bruce Korb.
75542         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75543         * modules/byteswap, modules/configmake, modules/fcntl:
75544         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75545         * modules/localcharset, modules/netinet_in, modules/poll:
75546         * modules/stdbool, modules/stdint, modules/sys_select:
75547         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75548
75549 2006-09-06  Jim Meyering  <jim@meyering.net>
75550
75551         Make generated files be read-only.
75552         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75553         Ensure that each generated file is now read-only.
75554         * modules/argz: Likewise.
75555         * modules/arpa_inet: Likewise.
75556         * modules/byteswap: Likewise.
75557         * modules/configmake: Likewise.
75558         * modules/fcntl: Likewise.
75559         * modules/fnmatch: Likewise.
75560         * modules/getopt: Likewise.
75561         * modules/glob: Likewise.
75562         * modules/inttypes: Likewise.
75563         * modules/netinet_in: Likewise.
75564         * modules/poll: Likewise.
75565         * modules/stdbool: Likewise.
75566         * modules/stdint: Likewise.
75567         * modules/sys_select: Likewise.
75568         * modules/sys_socket: Likewise.
75569         * modules/sys_stat: Likewise.
75570         * modules/sysexits: Likewise.
75571         * modules/localcharset: Same as above, but continue using temporary
75572         file named "t-$@" (why different?) rather than the "$@-t" used
75573         everywhere else.
75574
75575         * modules/sysexits (Makefile.am): Replace literal occurrences
75576         of "sysexit.h" more readable, and more consistent, "$@".
75577
75578 2006-09-06  Bruno Haible  <bruno@clisp.org>
75579
75580         * modules/striconv: New file.
75581         * modules/xstriconv: New file.
75582         * MODULES.html.sh (Internationalization functions): Add striconv,
75583         xstriconv.
75584
75585 2006-09-06  Bruno Haible  <bruno@clisp.org>
75586
75587         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75588         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75589         not using libtool correctly.
75590
75591 2006-09-06  Bruno Haible  <bruno@clisp.org>
75592
75593         * lib/striconv.h: New file.
75594         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75595         iconvstring.c.
75596         * lib/xstriconv.h: New file.
75597         * lib/xstriconv.c: New file.
75598
75599 2006-09-06  Bruno Haible  <bruno@clisp.org>
75600
75601         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75602         lib_..._LDFLAGS.
75603
75604 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75605
75606         * lib/argz_.h: Sync from Libtool.
75607
75608         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75609                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75610
75611         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75612
75613 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75614
75615         * modules/trim: New file.
75616
75617 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75618
75619         * lib/trim.h: New file.
75620         * lib/trim.c: New file.
75621
75622 2006-09-05  Bruno Haible  <bruno@clisp.org>
75623
75624         * MODULES.html.sh (String handling): Add trim.
75625
75626 2006-09-04  Karl Berry  <karl@gnu.org>
75627
75628         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75629         until next release.
75630
75631 2006-09-03  Bruno Haible  <bruno@clisp.org>
75632
75633         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75634         correctly.
75635
75636 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75637
75638         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75639         not gl_GETLOADAVG.  Omit unneeded semicolons.
75640         Problems reported by Ralf Wildenhues in
75641         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75642         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75643         at the end, which is the usual gnulib style.
75644
75645         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75646         of doing all the work ourselves.
75647         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75648         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75649
75650 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75651
75652         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75653         Problem reported by Ralf Wildenhues in
75654         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75655
75656         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75657         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75658
75659 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75660
75661         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75662         yesterday's patch by changing test -n to test -z.
75663
75664 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75665
75666         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75667         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75668         the former is now obsolescent.
75669
75670         * modules/chdir-long (Depends-on): Add fcntl.
75671
75672 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75673
75674         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75675         obsolescent, and programs should use gnulib instead.
75676         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75677         but with prefixes changed.
75678
75679 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75680
75681         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75682         or stdbool.h, because they might not exist while configuring.
75683
75684         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75685         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75686         does that for us.
75687         (O_DIRECTORY): Remove.
75688
75689 2006-08-31  Eric Blake  <ebb9@byu.net>
75690
75691         * gnulib-tool: Don't let emacs change spaces to TAB.
75692
75693 2006-08-31  Bruno Haible  <bruno@clisp.org>
75694
75695         * gnulib-tool: When calling func_import more than once, do it in a
75696         subshell.
75697         Reported by Eric Blake <ebb9@byu.net>.
75698
75699 2006-08-31  Bruno Haible  <bruno@clisp.org>
75700
75701         * gnulib-tool (nl): Remove variable.
75702         (sed_transform_lib_file): Use more robust test for config-h module.
75703         (func_import): Fix typo in 2006-08-25 patch.
75704
75705 2006-08-31  Bruno Haible  <bruno@clisp.org>
75706
75707         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75708         specified, augment Makefile.am variables instead of assigning them.
75709
75710 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         Work around a bug in both the Linux and SunOS 64-bit kernels:
75713         nanosleep mishandles sleeps for longer than 2**31 seconds.
75714         Problem reported by Frank v Waveren in
75715         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75716         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75717         Check for nanosleep bug.
75718         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75719
75720 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75721
75722         Work around a bug in both the Linux and SunOS 64-bit kernels:
75723         nanosleep mishandles sleeps for longer than 2**31 seconds.
75724         Problem reported by Frank v Waveren in
75725         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75726         * lib/nanosleep.c (BILLION): New constant.
75727         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75728         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75729         implementation.
75730
75731 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75732
75733         * modules/nanosleep (Depends-on): Add gettime.
75734
75735 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75736         and Simon Josefsson  <jas@extundo.com>
75737         and Oskar Liljeblad  <oskar@osk.mine.nu>
75738
75739         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75740         * gnulib-tool (func_import): New license type 'unmodifiable license
75741         text'.
75742         * modules/fdl: Use it.  Longer description.
75743         * module/gpl, module/lgpl: New files.
75744
75745 2006-08-30  Jim Meyering  <jim@meyering.net>
75746
75747         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75748         shadowing the parameter.
75749
75750 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75751
75752         Sync from Libtool:
75753
75754         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75755
75756         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75757         sharing with gnulib.  Report by Eric Blake.
75758
75759 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75760
75761         * modules/isapipe: New file.
75762         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75763
75764 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75765
75766         * modules/configmake (Makefile.am): Add a comment, and omit
75767         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75768         by Bruno Haible.
75769
75770 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75771
75772         * m4/isapipe.m4: New file.
75773
75774 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75775
75776         * lib/isapipe.c, lib/isapipe.h: New files.
75777
75778 2006-08-29  Jim Meyering  <jim@meyering.net>
75779
75780         * modules/configmake (Makefile.am): Make configmake.h depend on
75781         Makefile.  Otherwise, a stale configmake.h could hang around.
75782
75783 2006-08-29  Eric Blake  <ebb9@byu.net>
75784
75785         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75786         resolution of upstream bug 3044.
75787
75788 2006-08-29  Bruno Haible  <bruno@clisp.org>
75789
75790         * modules/localcharset (Depends-on): Add configmake.
75791         (Makefile.am): Remove setting of LIBDIR through DEFS.
75792
75793 2006-08-29  Bruno Haible  <bruno@clisp.org>
75794
75795         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75796         defined.
75797
75798 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75799
75800         * modules/fcntl: New file.
75801         * modules/chdir-safer (Depends-on): Add fcntl.
75802         * modules/fts: Likewise.
75803         * modules/mkdir-p: Likewise.
75804
75805         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75806         This undoes the most recent change, since we're now addressing the
75807         problem in a different way.
75808
75809         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75810         into output, since the output might be called Makefile.am even
75811         if $makefile_name is something different.
75812         (func_import): Use $makefile_am rather than
75813         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75814         empty.
75815
75816         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75817
75818 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75819
75820         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75821         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75822         recent change to stdint.m4, since we're now addressing the problem in a
75823         different way.
75824
75825 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75826
75827         * m4/fcntl_h.m4: New file.
75828
75829 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75830
75831         * lib/fcntl_.h: New file.
75832         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75833         the fcntl module.
75834         * lib/dirchownmod.c: Likewise.
75835         * lib/fts.c: Likewise.
75836
75837         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75838         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75839         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75840         just before including <inttypes.h>, to avoid circular inclusion.
75841
75842 2006-08-28  Jim Meyering  <jim@meyering.net>
75843
75844         * doc/visibility.texi: Actually read and correct the grammar of the
75845         sentence affected by yesterday's change.
75846
75847 2006-08-28  Eric Blake  <ebb9@byu.net>
75848
75849         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75850         needs wrapper.
75851
75852 2006-08-28  Eric Blake  <ebb9@byu.net>
75853
75854         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75855
75856 2006-08-28  Eric Blake  <ebb9@byu.net>
75857
75858         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75859
75860 2006-08-28  Bruno Haible  <bruno@clisp.org>
75861
75862         * modules/c-strstr: New file, from GNU gettext.
75863         * MODULES.html.sh (String handling): Add c-strstr.
75864
75865 2006-08-28  Bruno Haible  <bruno@clisp.org>
75866
75867         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75868         macros.
75869         Reported by Eric Blake.
75870
75871 2006-08-28  Bruno Haible  <bruno@clisp.org>
75872
75873         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75874         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75875         * lib/vasprintf.c: Include errno.h, limits.h.
75876         (EOVERFLOW): New fallback definition.
75877         (vasprintf): Test here whether the string length is > INT_MAX.
75878         * lib/vsnprintf.c: Include errno.h, limits.h.
75879         (EOVERFLOW): New fallback definition.
75880         (vsnprintf): Fix bug when generated string was too long for the buffer.
75881         Test here whether the string length is > INT_MAX.
75882
75883 2006-08-28  Bruno Haible  <bruno@clisp.org>
75884
75885         * lib/inttypes_.h (SCNX*): Remove definitions.
75886         Reported by Eric Blake.
75887
75888 2006-08-28  Bruno Haible  <bruno@clisp.org>
75889
75890         * lib/c-strstr.h: New file, from GNU gettext.
75891         * lib/c-strstr.c: New file, from GNU gettext.
75892
75893 2006-08-28  Bruno Haible  <bruno@clisp.org>
75894
75895         * gnulib-tool: Reorder some statements.
75896
75897 2006-08-28  Bruno Haible  <bruno@clisp.org>
75898
75899         * gnulib-tool: New option --makefile-name.
75900         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75901         $makefile_name.
75902         (func_import): Write $makefile_name to the cache file, and read it from
75903         there unless explicitly specified. Use $makefile_name as file name
75904         instead of Makefile.am. Adjust the recommendations accordingly.
75905
75906 2006-08-28  Bruno Haible  <bruno@clisp.org>
75907
75908         * gnulib-tool (func_verify_module): Check against misapplying patch.
75909
75910 2006-08-28  Bruno Haible  <bruno@clisp.org>
75911
75912         * gnulib-tool (func_relativize, func_relconcat): New functions.
75913         Give an error if --local-dir is given with --update.
75914         Remove trailing slashes from $local_gnulib_dir.
75915         (func_import): Store the relativized $local_gnulib_dir in
75916         gnulib-cache.m4, and read it from there if not specified explicitly.
75917
75918 2006-08-28  Bruno Haible  <bruno@clisp.org>
75919
75920         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75921         is the current directory. Respect also $local_gnulib_dir.
75922
75923 2006-08-28  Bruno Haible  <bruno@clisp.org>
75924             Simon Josefsson  <jas@extundo.com>
75925
75926         BeOS portability.
75927         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75928
75929 2006-08-27  Jim Meyering  <jim@meyering.net>
75930
75931         * doc/visibility.texi: Remove duplicate word: "pointer".
75932
75933 2006-08-26  Bruno Haible  <bruno@clisp.org>
75934
75935         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75936         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75937         (Makefile.am): Create inttypes.h from inttypes_.h.
75938         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75939
75940         * modules/imaxabs: New file.
75941
75942         * modules/imaxdiv: New file.
75943
75944 2006-08-26  Bruno Haible  <bruno@clisp.org>
75945
75946         * m4/inttypes.m4: New file.
75947         * m4/_inttypes_h.m4: Remove file.
75948         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75949         PRI_MACROS_BROKEN.
75950         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75951
75952         * m4/imaxabs.m4: New file.
75953
75954         * m4/imaxdiv.m4: New file.
75955
75956 2006-08-26  Bruno Haible  <bruno@clisp.org>
75957
75958         * lib/inttypes_.h: New file.
75959         * lib/inttypes.h: Remove file.
75960         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75961
75962         * lib/imaxabs.c: New file.
75963
75964         * lib/imaxdiv.c: New file.
75965
75966 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75967
75968         New config-h module, so that "make" output needn't be cluttered
75969         by -DHAVE_CONFIG_H.
75970         * MODULES.html.sh (Support for building libraries and executables):
75971         Add config-h.
75972         * modules/config-h: New file.
75973         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75974         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75975         the config-h module is used.
75976
75977         New configmake module, so that "make" output needn't be cluttered
75978         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75979         * MODULES.html.sh (Support for building libraries and executables):
75980         Add configmake.
75981         * modules/configmake: New file.
75982
75983 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75984
75985         * m4/config-h.m4: New file.
75986
75987 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75988
75989         * config/srclist.txt: Add elisp-comp.
75990
75991 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         * MODULES.html.sh (Support for building libraries and executables):
75994         Add elisp-comp.
75995         * build-aux/elisp-comp: New file.
75996         * modules/elisp-comp: New file.
75997
75998 2006-08-24  Bruno Haible  <bruno@clisp.org>
75999
76000         * gnulib-tool (func_create_testdir): Use non-default values of
76001         sourcebase and m4base.
76002
76003 2006-08-24  Bruno Haible  <bruno@clisp.org>
76004
76005         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
76006         HTML structure.
76007
76008 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76009
76010         * modules/openat (Depends-on): Add lchown.
76011
76012 2006-08-23  Bruno Haible  <bruno@clisp.org>
76013
76014         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
76015         of gl_LOCK_EARLY instead of gl_LOCK.
76016
76017 2006-08-23  Bruno Haible  <bruno@clisp.org>
76018
76019         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
76020         on OSF/1 to no.
76021         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
76022
76023 2006-08-23  Bruno Haible  <bruno@clisp.org>
76024
76025         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
76026         as unusable.
76027
76028         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
76029         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
76030         (gl_LOCK): New macro.
76031
76032 2006-08-22  Simon Josefsson  <jas@extundo.com>
76033
76034         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
76035         to md5 module.
76036
76037 2006-08-22  Simon Josefsson  <jas@extundo.com>
76038
76039         * MODULES.html.sh: Add "Support for maintaining and release
76040         projects".
76041
76042         * build-aux/gnupload: New file, from coreutils.
76043
76044 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76045
76046         Avoid the need for AC_LIBSOURCES in m4 macros.
76047         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
76048         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
76049         * modules/check-version (EXTRA_DIST): Add check-version.h.
76050         * modules/crc (EXTRA_DIST): Add crc.h.
76051         * modules/des (EXTRA_DIST): Add des.h.
76052         * modules/gc (EXTRA_DIST): Add gc.h.
76053         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
76054         * modules/getline (EXTRA_DIST): Add getline.h.
76055         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
76056         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
76057         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
76058         * modules/md2 (EXTRA_DIST): Add md2.h.
76059         * modules/md4 (EXTRA_DIST): Add md4.h.
76060         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
76061         * modules/read-file (EXTRA_DIST): Add read-file.h.
76062         * modules/readline (EXTRA_DIST): Add readline.h.
76063         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
76064         rijndael-api-fst.h.
76065
76066 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76067
76068         * m4/rijndael.m4 (gl_ARCFOUR):
76069         * m4/arctwo.m4 (gl_ARCTWO):
76070         * m4/check-version.m4 (gl_CHECK_VERSION):
76071         * m4/crc.m4 (gl_CRC):
76072         * m4/des.m4 (gl_DES):
76073         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
76074         * m4/gc.m4 (gl_GC):
76075         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
76076         * m4/getline.m4 (gl_FUNC_GETLINE):
76077         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
76078         * m4/hmac-md5.m4 (gl_HMAC_MD5):
76079         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
76080         * m4/md2.m4 (gl_MD2):
76081         * m4/md4.m4 (gl_MD4):
76082         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
76083         * m4/read-file.m4 (gl_FUNC_READ_FILE):
76084         * m4/readline.m4 (gl_FUNC_READLINE):
76085         * m4/rijndael.m4 (gl_RIJNDAEL):
76086         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76087         to get the necessary .h files and whatnot.
76088
76089 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76090
76091         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
76092         gnulib rather than the other way around.
76093         * config/srclistvars.sh (COREUTILS): Remove.
76094
76095 2006-08-22  Jim Meyering  <jim@meyering.net>
76096
76097         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
76098
76099         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
76100
76101 2006-08-22  Eric Blake  <ebb9@byu.net>
76102
76103         * modules/regexprops-generic: New file.
76104         * MODULES.html.sh (Support for building documentation): List it.
76105
76106 2006-08-22  Eric Blake  <ebb9@byu.net>
76107
76108         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
76109         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76110         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
76111         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
76112
76113 2006-08-22  Bruno Haible  <bruno@clisp.org>
76114
76115         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
76116         and lib_LTLIBRARIES like the other lib_* variables.
76117
76118 2006-08-22  Bruno Haible  <bruno@clisp.org>
76119
76120         * build-aux/x-to-1.in: New file, from GNU gettext.
76121
76122 2006-08-22  Bruno Haible  <bruno@clisp.org>
76123
76124         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
76125         <utmpx.h> exists.
76126
76127 2006-08-22  Bruno Haible  <bruno@clisp.org>
76128
76129         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
76130         <utmpx.h> exists.
76131
76132 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76133
76134         BeOS portability.
76135         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76136         exist.
76137         Problem reported by Bruno Haible.
76138
76139 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76140
76141         Avoid the need for AC_LIBSOURCES in m4 macros.
76142         * modules/acl (EXTRA_DIST): Add acl.h.
76143         * modules/argmatch (Files): Add m4/argmatch.m4.
76144         (configure.ac): Add gl_ARGMATCH.
76145         (EXTRA_DIST): Renamed from lib_SOURCES, for
76146         consistency with the other modules.  Remove argmatch.c.
76147         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76148         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76149         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76150         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76151         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76152         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76153         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76154         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76155         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76156         * modules/closeout (EXTRA_DIST): Add closeout.h.
76157         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76158         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76159         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76160         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76161         dirname.h; remove basename.c and stripslash.c.
76162         * modules/exclude (EXTRA_DIST): Add exclude.h.
76163         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76164         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76165         * modules/file-type (EXTRA_DIST): Add file-type.h.
76166         * modules/filemode (EXTRA_DIST): Add filemode.h.
76167         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76168         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76169         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76170         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76171         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76172         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76173         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76174         * modules/getdate (EXTRA_DIST): Add getdate.c.
76175         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76176         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76177         * modules/getpass (EXTRA_DIST): Add getpass.h.
76178         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76179         * modules/group-member (EXTRA_DIST): Add group-member.h.
76180         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76181         * modules/hash (EXTRA_DIST): Add hash.h.
76182         * modules/human (EXTRA_DIST): Add human.h.
76183         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76184         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76185         * modules/lchown (EXTRA_DIST): Add lchown.h.
76186         * modules/long-options (EXTRA_DIST): Add long-options.h.
76187         * modules/lstat (EXTRA_DIST): Add lstat.h.
76188         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76189         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76190         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76191         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76192         * modules/memxor (EXTRA_DIST): Add memxor.h.
76193         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76194         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76195         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76196         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76197         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76198         * modules/physmem (EXTRA_DIST): Add physmem.h.
76199         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76200         * modules/posixver (EXTRA_DIST): Add posixver.h.
76201         * modules/quote (EXTRA_DIST): Add quote.h.
76202         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76203         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76204         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76205         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76206         regex_internal.h regexec.c.
76207         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76208         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76209         * modules/same (EXTRA_DIST): Add same.h.
76210         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76211         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76212         * modules/savedir (EXTRA_DIST): Add savedir.h.
76213         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76214         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76215         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76216         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76217         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76218         * modules/strdup (EXTRA_DIST): Add strdup.h.
76219         * modules/strftime (EXTRA_DIST): Add strftime.h.
76220         * modules/strndup (EXTRA_DIST): Add strndup.h.
76221         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76222         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76223         * modules/time_r (EXTRA_DIST): Add time_r.h.
76224         * modules/timespec (EXTRA_DIST): Add timespec.h.
76225         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76226         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76227         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76228         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76229         * modules/userspec (EXTRA_DIST): Add userspec.h.
76230         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76231         * modules/utimens (EXTRA_DIST): Add utimens.h.
76232         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76233         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76234         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76235         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76236         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76237         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76238         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76239         * modules/yesno (EXTRA_DIST): Add yesno.h.
76240
76241 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76242
76243         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76244
76245         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76246         * m4/dev-ino.m4, same-inode.m4: Remove.
76247
76248         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76249         * m4/acl.m4 (AC_FUNC_ACL):
76250         * m4/backupfile.m4 (gl_BACKUPFILE):
76251         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76252         * m4/canon-host.m4 (gl_CANON_HOST):
76253         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76254         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76255         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76256         * m4/cloexec.m4 (gl_CLOEXEC):
76257         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76258         * m4/closeout.m4 (gl_CLOSEOUT):
76259         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76260         * m4/dirname.m4 (gl_DIRNAME):
76261         * m4/exclude.m4 (gl_EXCLUDE):
76262         * m4/exitfail.m4 (gl_EXITFAIL):
76263         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76264         * m4/file-type.m4 (gl_FILE_TYPE):
76265         * m4/filemode.m4 (gl_FILEMODE):
76266         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76267         * m4/fpending.m4 (gl_FUNC_FPENDING):
76268         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76269         * m4/fts.m4 (gl_FUNC_FTS):
76270         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76271         * m4/getdate.m4 (gl_GETDATE):
76272         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76273         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76274         * m4/getpass.m4 (gl_FUNC_GETPASS):
76275         * m4/gettime.m4 (gl_GETTIME):
76276         * m4/getugroups.m4 (gl_GETUGROUPS):
76277         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76278         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76279         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76280         * m4/hash.m4 (gl_HASH):
76281         * m4/idcache.m4 (gl_IDCACHE):
76282         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76283         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76284         * m4/long-options.m4 (gl_LONG_OPTIONS):
76285         * m4/lstat.m4 (gl_FUNC_LSTAT):
76286         * m4/md5.m4 (gl_MD5):
76287         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76288         * m4/memcoll.m4 (gl_MEMCOLL):
76289         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76290         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76291         * m4/memxor.m4 (gl_MEMXOR):
76292         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76293         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76294         * m4/modechange.m4 (gl_MODECHANGE):
76295         * m4/mountlist.m4 (gl_MOUNTLIST):
76296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76297         * m4/openat.m4 (gl_FUNC_OPENAT):
76298         * m4/pathmax.m4 (gl_PATHMAX):
76299         * m4/physmem.m4 (gl_PHYSMEM):
76300         * m4/posixtm.m4 (gl_POSIXTM):
76301         * m4/posixver.m4 (gl_POSIXVER):
76302         * m4/quote.m4 (gl_QUOTE):
76303         * m4/quotearg.m4 (gl_QUOTEARG):
76304         * m4/readtokens.m4 (gl_READTOKENS):
76305         * m4/readutmp.m4 (gl_READUTMP):
76306         * m4/regex.m4 (gl_REGEX):
76307         * m4/safe-read.m4 (gl_SAFE_READ):
76308         * m4/safe-write.m4 (gl_SAFE_WRITE):
76309         * m4/same.m4 (gl_SAME):
76310         * m4/save-cwd.m4 (gl_SAVE_CWD):
76311         * m4/savedir.m4 (gl_SAVEDIR):
76312         * m4/settime.m4 (gl_SETTIME):
76313         * m4/sha1.m4 (gl_SHA1):
76314         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76315         * m4/stat-macros.m4 (gl_STAT_MACROS):
76316         * m4/stat-time.m4 (gl_STAT_TIME):
76317         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76318         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76319         * m4/strdup.m4 (gl_FUNC_STRDUP):
76320         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76321         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76322         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76323         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76324         * m4/time_r.m4 (gl_TIME_R):
76325         * m4/timespec.m4 (gl_TIMESPEC):
76326         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76327         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76328         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76329         * m4/userspec.m4 (gl_USERSPEC):
76330         * m4/utimecmp.m4 (gl_UTIMECMP):
76331         * m4/utimens.m4 (gl_UTIMENS):
76332         * m4/xalloc.m4 (gl_XALLOC):
76333         * m4/xgetcwd.m4 (gl_XGETCWD):
76334         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76335         * m4/xreadlink.m4 (gl_XREADLINK):
76336         * m4/xstrtod.m4 (gl_XSTRTOD):
76337         * m4/yesno.m4 (gl_YESNO):
76338         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76339         to get the necessary .h files and whatnot.
76340
76341 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76342             Bruno Haible  <bruno@clisp.org>
76343
76344         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76345         /bin/sh understanding of '!' conditional negation.
76346
76347 2006-08-21  Jim Meyering  <jim@meyering.net>
76348
76349         * modules/openat (Depends-on): Really alphabetize.
76350
76351         * modules/acl (Depends-on): Add error and quote.
76352
76353         * check-module (find_included_lib_files): Add at-func.c to the
76354         ok-to-include-more-than-once white list.
76355
76356         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76357
76358 2006-08-21  Bruno Haible  <bruno@clisp.org>
76359
76360         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76361         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76362         Reported by Martin Lambers <marlam@marlam.de>.
76363
76364 2006-08-21  Bruno Haible  <bruno@clisp.org>
76365
76366         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76367         specify an installation location, don't emit a noinst_LIBRARIES or
76368         noinst_LTLIBRARIES assignment.
76369
76370 2006-08-21  Bruno Haible  <bruno@clisp.org>
76371
76372         BeOS portability.
76373         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76374         BeOS has mbrtowc() but no <wctype.h>.
76375
76376 2006-08-21  Bruno Haible  <bruno@clisp.org>
76377
76378         BeOS portability.
76379         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76380         exist.
76381
76382 2006-08-21  Bruno Haible  <bruno@clisp.org>
76383
76384         BeOS portability.
76385         * lib/mbchar.h: Include <wctype.h> only if it exists.
76386
76387 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76388
76389         Remove files that are no longer needed by their respective modules.
76390         * m4/obstack.m4: Remove.
76391         * m4/strerror_r.m4: Remove.
76392         * m4/uint32_t.m4: Remove.
76393         * m4/uintptr_t.m4: Remove.
76394         * m4/ullong_max.m4: Remove.
76395         * m4/xstrtoimax.m4: Remove.
76396         * m4/xstrtoumax.m4: Remove.
76397
76398         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76399         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76400         dependencies now capture this.
76401
76402         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76403         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76404         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76405         * m4/human.m4 (gl_HUMAN): Likewise.
76406         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76407         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76408
76409         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76410
76411         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76412         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76413         stdint.
76414         * m4/human.m4 (gl_HUMAN): Likewise.
76415         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76416         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76417         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76418         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76419         * m4/xstrtol (gl_XSTRTOL): Likewise.
76420
76421         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76422         AC_TYPE_LONG_LONG_INT.
76423         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76424         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76425         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76426         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76427
76428         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76429         on stdbool.
76430
76431         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76432         (gl_PREREQ_XSTRTOUL): Remove.
76433
76434         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76435
76436         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76437         mode.
76438
76439 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76440
76441         Add and change modules to make it easier for coreutils to use
76442         gnulib-tool.
76443         * modules/backupfile (Files): Remove m4/d-ino.m4.
76444         (Depends-on): Add d-ino.
76445         * modules/cycle-check (Depends-on): Add stdint.
76446         (lib_SOURCES): Add cycle-check.h.
76447         * modules/d-ino: New module.
76448         * modules/d-type: New module.
76449         * modules/error (Files): Remove m4/strerror_r.m4.
76450         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76451         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76452         m4/inttypes_h.m4, m4/uintmax_t.m4.
76453         (Depends-on): Add stdint.
76454         (lib_SOURCES): Add fsusage.h.
76455         * modules/getcwd (Files): Remove d-ino.m4.
76456         (Depends-on): Add d-ino.
76457         * modules/getndelim2 (Depends-on): Add stdint.
76458         * modules/glob (Files): Remove m4/d-type.m4.
76459         (Depends-on): Add d-type.
76460         * modules/host-os: New module.
76461         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76462         m4/inttypes_h.m4, m4/uintmax_t.m4.
76463         * Depends-on: Add stdint.
76464         (lib_SOURCES): Add human.h.
76465         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76466         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76467         m4/uintmax_t.m4, m4/ulonglong.m4.
76468         (Depends-on): Add stdint.
76469         (EXTRA_DIST): Add inttostr.h.
76470         * modules/lchmod: New module.
76471         * modules/link-follow: New module.
76472         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76473         (Depends-on): Add lchmod.
76474         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76475         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76476         (Depends-on): Add stdint.
76477         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76478         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76479         (Depends-on): Add stdint.
76480         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76481         * modules/perl: New module.
76482         * modules/regex (Depends-on): Add stdint.
76483         * modules/rmdir-errno: New module.
76484         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76485         m4/intmax_t.m4.
76486         (Depends-on): Add stdint.
76487         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76488         m4/uintmax_t.m4.
76489         (Depends-on): Add stdint.
76490         * modules/unlink-busy: New module.
76491         * modules/utimecmp (Depends-on): Add stdint.
76492         * modules/uptime: New module.
76493         * modules/winsz-ioctl: New module.
76494         * modules/winsz-termios: New module.
76495         * modules/xnanosleep (Depends-on): Add nanosleep.
76496         * modules/ullong_max: Remove.
76497         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76498         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76499         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76500         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76501         (Depends-on): Add inttypes.
76502         (lib_SOURCES): Add xstrtol.h.
76503         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76504         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76505         * MODULES.html.sh: Move 'assert' into the assert section.
76506         Move 'dummy' into the linking section.
76507         Remove ullong_max.
76508         Add section for compatibility checks for POSIX:2001 functions,
76509         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76510         winsz-ioctl, and winsz-termios into it.
76511         Add lchmod.
76512         Add top-level Misc section and put host-os, perl, and uptime
76513         into it.
76514
76515 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76516
76517         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76518         now assume the stdint module.  Do not include inttypes.h.
76519         * lib/fsusage.h: Likewise.
76520         * lib/getndelim2.c: Likewise.
76521         * lib/human.h: Likewise.
76522         * lib/inttostr.h: Likewise.
76523         * lib/obstack.c: Likewise.
76524         * lib/regex_internal.h: Likewise.
76525         * lib/tempname.c: Likewise.
76526         * lib/utimecmp.c: Likewise.
76527         * lib/xstrtol.h: Likewise.
76528
76529         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76530
76531         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76532         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76533         * lib/xtime.h: Likewise.
76534
76535 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76536
76537         * modules/openat (Files): Add lib/fchmodat.c.
76538         Fixes problem reported by Jay Youngman.
76539
76540 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76541
76542         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76543         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76544
76545 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76546             Bruno Haible  <bruno@clisp.org>
76547
76548         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76549         and is a script that invokes bison. Tighten the code. Add comments.
76550
76551 2006-08-18  Jim Meyering  <jim@meyering.net>
76552
76553         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76554         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76555         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76556         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76557
76558 2006-08-18  Bruno Haible  <bruno@clisp.org>
76559
76560         * modules/bison-i18n: New file.
76561         * MODULES.html.sh (Internationalization functions): Add it.
76562
76563 2006-08-18  Bruno Haible  <bruno@clisp.org>
76564
76565         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76566         sys/statvfs.h. When getmntinfo was found, check its declaration and
76567         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76568
76569 2006-08-18  Bruno Haible  <bruno@clisp.org>
76570
76571         * m4/bison-i18n.m4: New file, from bison.
76572
76573 2006-08-18  Bruno Haible  <bruno@clisp.org>
76574
76575         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76576         (ME_DUMMY): Treat "kernfs" as a dummy.
76577         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76578
76579 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76580
76581         Update from coreutils.
76582
76583         2006-08-15  Jim Meyering  <jim@meyering.net>
76584
76585         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76586
76587         2006-01-17  Jim Meyering  <jim@meyering.net>
76588
76589         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76590
76591         2006-01-11  Jim Meyering  <jim@meyering.net>
76592
76593         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76594         Check for the lchmod function.
76595
76596 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76597
76598         Update from coreutils.
76599
76600         * lib/__fpending.h: Add copyright notice.
76601         * lib/fprintftime.h: Likewise.
76602         * lib/savedir.c: Use (C) in copyright notice.
76603         * lib/savedir.h: Likewise.
76604
76605         2006-08-15  Jim Meyering  <jim@meyering.net>
76606
76607         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76608         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76609         in support of the EXPECTED_ERRNO macro.
76610         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76611         definitions.  Instead, define the appropriate symbols and include
76612         "at-func.c".
76613         * lib/mkdirat.c (mkdirat): Likewise.
76614         * lib/fchmodat.c (fchmodat): Likewise.
76615         (ENOSYS): Remove definition.
76616         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76617         it.  Don't include "unistd--.h" -- it wasn't ever used.
76618
76619         2006-01-17  Jim Meyering  <jim@meyering.net>
76620
76621         Rewrite fts.c not to change the current working directory,
76622         by using openat, fstatat, fdopendir, etc..
76623
76624         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76625         (HAVE_OPENAT_SUPPORT): Define.
76626         [_LIBC] (fchdir): Don't undef or define; no longer used.
76627         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76628         Now, this `function' always succeeds, and consumes its file descriptor
76629         parameter -- so callers must not close such FDs.  Update callers.
76630         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76631         (diropen): Add parameter, SP.  Adjust all callers.
76632         Implement using diropen_fd, rather than open.
76633         (fts_open): Initialize new member, fts_cwd_fd.
76634         Remove fts_rft-setting code.
76635         (fts_close): Close fts_cwd_fd, if necessary.
76636         (__opendir2): Define in terms of opendir or opendirat,
76637         depending on whether the FST_NOCHDIR flag is set.
76638         (fts_build): Since fts_safe_changedir consumes its FD, and since
76639         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76640         and close the dup'd file descriptor upon failure.
76641         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76642         (fts_safe_changedir): Tweak semantics to reflect that this function
76643         now calls cwd_advance_fd and hence consumes its FD argument.
76644         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76645         [struct FTS] (fts_rft): Remove now-unused member.
76646         [struct FTS] (fts_cycle.state): Improve comment.
76647
76648         * lib/openat.c (openat_needs_fchdir): New function.
76649         * lib/openat.h (openat_needs_fchdir): Declare it.
76650
76651 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76652
76653         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76654         Problem and fix reported by Pádraig Brady in
76655         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76656
76657 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76658
76659         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76660
76661 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76662
76663         * lib/memcoll.c (memcoll): Optimize for the common case where the
76664         arguments are bytewise equal.
76665
76666 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76667
76668         * doc/regexprops-generic.texi: Add a copyright notice.
76669
76670 2006-08-15  Bruno Haible  <bruno@clisp.org>
76671
76672         * modules/tmpdir (License): Change to LGPL.
76673
76674 2006-08-15  Bruno Haible  <bruno@clisp.org>
76675
76676         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76677         module.
76678
76679 2006-08-14  Simon Josefsson  <jas@extundo.com>
76680
76681         * config/srclist.txt: Add gnupload.
76682
76683 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76684
76685         Change copyright notice from LGPL 2 to GPL 2, since that's the
76686         standard form used in the gnulib repository.
76687         * tests/test-lock.c: Likewise.
76688         * tests/test-stdint.c: Likewise.
76689         * tests/test-tls.c: Likewise.
76690
76691         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76692         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76693         Add copyright notice.
76694
76695         * check-module: Add copyright notice.  Output a copyright
76696         notice if "--version" is specified.
76697         * modules/COPYING: New file.
76698         * tests/test-getaddrinfo.c: Add copyright notice.
76699         * tests/test-verify.c: Likewise.
76700
76701 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76702
76703         Change copyright notice from LGPL 2 to GPL 2, since that's the
76704         standard form used in the gnulib repository.
76705         * lib/lock.c: LGPL -> GPL.
76706         * lib/lock.h: Likewise.
76707         * lib/strnlen1.c: Likewise.
76708         * lib/strnlen1.h: Likewise.
76709         * lib/tls.c: Likewise.
76710         * lib/tls.h: Likewise.
76711         * lib/tmpdir.c: Likewise.
76712
76713         * lib/TODO: Remove; this belongs only in coreutils.
76714
76715 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76716
76717         Add copyright notices to long-enough files that lack them, since
76718         otherwise the files aren't clearly free.  Use the same notice that
76719         getdate.texi already uses.
76720         * doc/alloca-opt.texi: Add copyright notice.
76721         * doc/alloca.texi: Likewise.
76722         * doc/ctime.texi: Likewise.
76723         * doc/functions.texi: Likewise.
76724         * doc/gcd.texi: Likewise.
76725         * doc/gnulib-tool.texi: Likewise.
76726         * doc/inet_ntoa.texi: Likewise.
76727         * doc/visibility.texi: Likewise.
76728
76729         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76730         * doc/quote.texi: Add copyright notice.
76731
76732         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76733         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76734         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76735         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76736         is now obsolete, and give a pointer to the Sun list.
76737         Add copyright notice.
76738
76739 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76740
76741         * config/srclistvars.sh: Add copyright notice.
76742
76743 2006-08-14  Eric Blake  <ebb9@byu.net>
76744
76745         Import the following change from libc:
76746
76747         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76748
76749         Upstream bug 2997.
76750         * lib/misc/error.c: Add space between program name and message if file
76751         name is missing.
76752
76753 2006-08-12  Karl Berry  <karl@gnu.org>
76754
76755         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76756         remove, these originate in gnulib now.
76757
76758 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76759
76760         * doc/Makefile (standards.info standards.html standards.dvi):
76761         Also depend on make-stds.texi.
76762
76763 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76764
76765         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76766         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76767
76768         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76769         in wchar_t.  Problem reported by Eric Blake.
76770
76771         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76772         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76773         Also, help the compiler to keep LEN in a register.
76774
76775 2006-08-11  Eric Blake  <ebb9@byu.net>
76776
76777         * users.txt: Sort.  Add tar.
76778
76779 2006-08-11  Bruno Haible  <bruno@clisp.org>
76780
76781         * users.txt: New file.
76782
76783 2006-08-11  Bruno Haible  <bruno@clisp.org>
76784
76785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76786         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76787
76788 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76789
76790         * modules/snprintf (Depends-on): Remove minmax.
76791         (Maintainer): Add self and Bruno.
76792
76793 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76794
76795         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76796         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76797         (EOVERFLOW): Define if the system does not.
76798         Do not include "minmax.h"; it wasn't used.
76799         (snprintf): Don't assume size_t promotes to an unsigned type.
76800         Fix bug when generated string was too long for the buffer: the
76801         buffer's contents are supposed to be the initial prefix of the
76802         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76803         exceeds INT_MAX; do the check ourselves.
76804
76805         Import the following changes from libc:
76806
76807         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76808
76809         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76810         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76811         set wc to the byte which couldn't be converted.
76812         (re_string_reconstruct): Don't clear valid_raw_len before calling
76813         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76814         tip_context using re_string_context_at.
76815
76816         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76817
76818         * lib/posix/regex.h: g++ still cannot handled [restrict].
76819
76820         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76821
76822         * lib/posix/regex.h: Remove special handling for VMS.
76823
76824 2006-08-10  Jim Meyering  <jim@meyering.net>
76825
76826         * modules/same-inode: New module.
76827         * modules/dev-ino: New module.
76828         * modules/cycle-check: Depend on these modules, rather than simply
76829         including their .h files.
76830         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76831         required via m4/cycle-check.m4.
76832         * modules/same: Depend on new same-inode module, rather than
76833         including same-inode.h.
76834         * modules/chdir-safer: New file.
76835
76836         * modules/chown (Depends-on): Add stat-macros.
76837
76838 2006-08-10  Jim Meyering  <jim@meyering.net>
76839
76840         * m4/cycle-check.m4: New file.
76841         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76842         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76843
76844 2006-08-10  Eric Blake  <ebb9@byu.net>
76845
76846         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76847         in from original proposal.
76848
76849 2006-08-10  Eric Blake  <ebb9@byu.net>
76850         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76851
76852         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76853         namespace.
76854
76855 2006-08-10  Bruno Haible  <bruno@clisp.org>
76856
76857         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76858         as well.
76859
76860 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76861
76862         Sync from coreutils.
76863
76864         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76865
76866         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76867         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76868
76869 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76870
76871         * modules/restrict: Remove; no longer needed now that we assume
76872         Autoconf 2.59 or later.
76873         * MODULES.html.sh: Remove 'restrict'.
76874         * modules/argp (Depends-on): Remove 'restrict'.
76875         * modules/base64 (Depends-on): Likewise.
76876         * modules/gc (Depends-on): Likewise.
76877         * modules/getaddrinfo (Depends-on): Likewise.
76878         * modules/glob (Depends-on): Likewise.
76879         * modules/inet_ntop (Depends-on): Likewise.
76880         * modules/inet_pton (Depends-on): Likewise.
76881         * modules/memxor (Depends-on): Likewise.
76882         * modules/regex (Depends-on): Likewise.
76883         * modules/strtok_r (Depends-on): Likewise.
76884         * modules/time_r (Depends-on): Likewise.
76885
76886 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76887
76888         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76889         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76890         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76891         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76892         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76893         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76894         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76895         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76896
76897         Merge from coreutils.
76898         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76899         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76900         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76901         * m4/time_r.m4 (gl_TIME_R): Likewise.
76902
76903 2006-08-09  Karl Berry  <karl@gnu.org>
76904
76905         * config/srclist.txt: no more gettext-tools, per Bruno.
76906
76907 2006-08-08  Eric Blake  <ebb9@byu.net>
76908
76909         * modules/verror: New module.
76910         * MODULES.html.sh: Document it.
76911
76912 2006-08-08  Eric Blake  <ebb9@byu.net>
76913
76914         * lib/verror.h, lib/verror.c: New files.
76915
76916 2006-08-08  Eric Blake  <ebb9@byu.net>
76917
76918         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76919         verror_at_line output complies with GNU Coding Standards even when
76920         file is NULL.
76921
76922 2006-08-07  Bruno Haible  <bruno@clisp.org>
76923
76924         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76925         versions of AIX.
76926         Reported by Ralf Wildenhues.
76927
76928 2006-08-07  Bruno Haible  <bruno@clisp.org>
76929
76930         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76931         in an AC_DEFUN. Needed so that the autoconf snippets can use
76932         AC_REQUIRE.
76933
76934 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76935
76936         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76937         Initialize pkgdata_DATA.
76938         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76939         overriding it.
76940
76941 2006-08-06  Eric Blake  <ebb9@byu.net>
76942
76943         * lib/error.h: Fold in some upstream changes from glibc.
76944         * lib/error.c: Likewise.
76945
76946 2006-08-04  Bruno Haible  <bruno@clisp.org>
76947
76948         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76949         Make the mostlyclean-local rule depend on mostlyclean-generic.
76950         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76951
76952 2006-07-31  Bruno Haible  <bruno@clisp.org>
76953
76954         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76955         <stdlib.h>, <string.h>.
76956
76957 2006-07-30  Bruno Haible  <bruno@clisp.org>
76958
76959         * modules/readlink (License): Change to LGPL.
76960
76961 2006-07-30  Bruno Haible  <bruno@clisp.org>
76962
76963         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76964         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76965         set PKGDATADIR to point to it.
76966
76967 2006-07-30  Bruno Haible  <bruno@clisp.org>
76968
76969         * modules/csharpexec (configure.ac): Comment out macro invocation.
76970         * modules/javaexec (configure.ac): Likewise.
76971         * modules/javacomp-script (configure.ac): Likewise.
76972
76973         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76974
76975 2006-07-30  Bruno Haible  <bruno@clisp.org>
76976
76977         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76978         linked-list.
76979
76980 2006-07-30  Bruno Haible  <bruno@clisp.org>
76981
76982         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76983
76984 2006-07-30  Bruno Haible  <bruno@clisp.org>
76985
76986         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76987         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76988         get removed.
76989
76990 2006-07-29  Bruno Haible  <bruno@clisp.org>
76991
76992         Make it possible for gnulib-tool to work with locally modified or
76993         augmented gnulib repositories.
76994         * gnulib-tool (func_usage): Document --local-dir option.
76995         (local_gnulib_dir): New variable.
76996         Handle --local-dir option.
76997         (func_lookup_file): New function.
76998         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76999         (func_get_description, func_get_filelist, func_get_description,
77000         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
77001         func_get_automake_snippet, func_get_include_directive,
77002         func_get_license, func_get_maintainer): Use func_lookup_file.
77003         (func_import, func_create_testdir): Use func_lookup_file.
77004
77005 2006-07-29  Bruno Haible  <bruno@clisp.org>
77006
77007         * modules/setenv (Depends-on): Add unistd.
77008
77009 2006-07-29  Bruno Haible  <bruno@clisp.org>
77010
77011         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
77012
77013 2006-07-29  Bruno Haible  <bruno@clisp.org>
77014
77015         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
77016
77017 2006-07-29  Bruno Haible  <bruno@clisp.org>
77018
77019         * gnulib-tool (import, update): If there is no Makefile.am, look at
77020         aclocal.m4, instead of bailing out.
77021
77022 2006-07-29  Bruno Haible  <bruno@clisp.org>
77023
77024         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
77025         Categorize the options by when they are useful.
77026
77027 2006-07-29  Bruno Haible  <bruno@clisp.org>
77028
77029         * gnulib-tool (func_usage): Document option --no-libtool.
77030         Handle option --no-libtool.
77031         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
77032         for changed semantics of $libtool variable.
77033         (func_import): Likewise. If libtool is not used, show this through
77034         an option --no-libtool.
77035         (func_create_testdir): Update.
77036
77037 2006-07-29  Bruno Haible  <bruno@clisp.org>
77038
77039         * gnulib-tool (func_import): Extend error message about missing
77040         --doc-base.
77041
77042 2006-07-29  Bruno Haible  <bruno@clisp.org>
77043
77044         * gnulib-tool (func_import): Don't create the $docbase directory if
77045         there is no file to store there.
77046
77047 2006-07-29  Bruno Haible  <bruno@clisp.org>
77048
77049         * gnulib-tool (autoconf_minversion): If a --dir option is given and
77050         relevant, look for configure.ac there, not in the current directory.
77051         Also use a simple search for AC_PREREQ, not "autoconf --trace".
77052
77053 2006-07-29  Bruno Haible  <bruno@clisp.org>
77054
77055         * gnulib-tool (SORT): New variable.
77056         (func_usage): Undocument --assume-autoconf option.
77057         Remove --assume-autoconf option handling.
77058         (autoconf_minversion): Determine from the contents of configure.ac.
77059         (func_import): Remove autoconf_minversion handling.
77060         Suggested by Eric Blake.
77061
77062 2006-07-29  Bruno Haible  <bruno@clisp.org>
77063
77064         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
77065
77066 2006-07-29  Bruno Haible  <bruno@clisp.org>
77067
77068         * config/srclist.txt (*setenv.[ch]): Remove rules.
77069
77070 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77071
77072         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
77073
77074 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77075
77076         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
77077         arpa/inet.h.
77078
77079 2006-07-28  Simon Josefsson  <jas@extundo.com>
77080
77081         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
77082         * modules/inet_pton (Depends-on): Likewise.
77083
77084 2006-07-28  Simon Josefsson  <jas@extundo.com>
77085
77086         * m4/netinet_in_h.m4: New file.
77087
77088 2006-07-28  Simon Josefsson  <jas@extundo.com>
77089
77090         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
77091         #include's.
77092
77093 2006-07-28  Simon Josefsson  <jas@extundo.com>
77094
77095         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
77096         #include's.
77097
77098 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
77099
77100         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
77101         setgid on directories only if they set these bits.
77102         * lib/modechange.h: Remove obsolete comment about masks.
77103
77104 2006-07-28  Eric Blake  <ebb9@byu.net>
77105
77106         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
77107         macro expansion.
77108
77109 2006-07-28  Bruno Haible  <bruno@clisp.org>
77110
77111         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
77112
77113 2006-07-28  Bruno Haible  <bruno@clisp.org>
77114
77115         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
77116
77117 2006-07-28  Bruno Haible  <bruno@clisp.org>
77118
77119         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77120         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77121         Define fallbacks.
77122         Avoids link error on FreeBSD 4.x.
77123         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77124
77125         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
77126         encoding.
77127         * lib/mbswidth.c (iswcntrl): Likewise.
77128
77129 2006-07-27  Bruno Haible  <bruno@clisp.org>
77130
77131         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
77132         test.
77133
77134 2006-07-27  Bruno Haible  <bruno@clisp.org>
77135
77136         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77137         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77138         defined.
77139
77140 2006-07-26  Eric Blake  <ebb9@byu.net>
77141
77142         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77143
77144 2006-07-26  Eric Blake  <ebb9@byu.net>
77145
77146         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77147         like mingw that lack mkstemp.
77148         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77149         avoid compilation warning on mingw.
77150
77151 2006-07-26  Bruno Haible  <bruno@clisp.org>
77152
77153         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77154         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77155         INT_FAST*_MIN, INTPTR_MIN.
77156
77157 2006-07-25  Bruno Haible  <bruno@clisp.org>
77158
77159         * modules/version-etc (Depends-on): Add stdarg.
77160
77161 2006-07-25  Bruno Haible  <bruno@clisp.org>
77162
77163         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77164         complex commands.
77165
77166 2006-07-25  Bruno Haible  <bruno@clisp.org>
77167
77168         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77169         defined in <stdarg.h> or config.h.
77170
77171 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77172
77173         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77174         (gl_STDIO_SAFER): Remove.
77175
77176 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77177
77178         * MODULES.html.sh (File stream based Input/Output):
77179         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77180         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77181         * modules/fopen-safer, modules/tmpfile-safer: New files.
77182         * modules/stdio-safer: Remove.
77183
77184 2006-07-24  Bruno Haible  <bruno@clisp.org>
77185
77186         * modules/tmpdir: New file.
77187         * MODULES.html.sh (File system functions): Add it.
77188
77189 2006-07-24  Bruno Haible  <bruno@clisp.org>
77190
77191         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77192         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77193
77194 2006-07-24  Bruno Haible  <bruno@clisp.org>
77195
77196         * modules/clean-temp: New file.
77197
77198 2006-07-24  Bruno Haible  <bruno@clisp.org>
77199
77200         * m4/tmpdir.m4: New file, from GNU gettext.
77201
77202 2006-07-24  Bruno Haible  <bruno@clisp.org>
77203
77204         * lib/tmpdir.h: New file, from GNU gettext.
77205         * lib/tmpdir.c: New file, from GNU gettext.
77206
77207 2006-07-24  Bruno Haible  <bruno@clisp.org>
77208
77209         * lib/clean-temp.h: New file, from GNU gettext.
77210         * lib/clean-temp.c: New file, from GNU gettext.
77211
77212 2006-07-23  Eric Blake  <ebb9@byu.net>
77213
77214         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77215         (Depends-on): Add binary-io.
77216
77217 2006-07-23  Eric Blake  <ebb9@byu.net>
77218
77219         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77220
77221 2006-07-23  Eric Blake  <ebb9@byu.net>
77222
77223         * lib/tmpfile-safer.c: New file.
77224         * lib/stdio-safer.h (fopen_safer): Add prototype.
77225         * lib/stdio--.h (tmpfile): Make safer.
77226
77227 2006-07-23  Bruno Haible  <bruno@clisp.org>
77228
77229         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77230         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77231         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77232         gl_linked_remove_at): Use it.
77233
77234 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77235         and Simon Josefsson <jas@extundo.com>
77236
77237         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77238
77239         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77240
77241 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77242
77243         * modules/close-stream: New file.
77244         * modules/closeout (Description): Make it clear that it exits
77245         with a diagnostic on error.
77246         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77247         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77248
77249 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77250
77251         * m4/close-stream.m4: New file.
77252
77253 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77254
77255         * lib/close-stream.c, lib/close-stream.h: New files.
77256
77257 2006-07-22  Bruno Haible  <bruno@clisp.org>
77258
77259         Merge from GNU gettext 0.15.
77260
77261         2006-05-01  Bruno Haible  <bruno@clisp.org>
77262
77263                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77264
77265         2006-07-22  Bruno Haible  <bruno@clisp.org>
77266
77267                 * modules/javaversion: New file.
77268                 * MODULES.html.sh (Java): Add javaversion.
77269
77270         2006-03-12  Bruno Haible  <bruno@clisp.org>
77271
77272                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77273
77274         2005-12-04  Bruno Haible  <bruno@clisp.org>
77275
77276                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77277                 (untested).
77278
77279         2006-06-21  Bruno Haible  <bruno@clisp.org>
77280
77281                 Avoid warnings from recent versions of mcs.
77282                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77283                 -o, -L, -r any more. Use options documented since mcs-1.0
77284                 instead. Similarly for -g.
77285
77286         2005-12-04  Bruno Haible  <bruno@clisp.org>
77287
77288                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77289                 .resources, not .resource.
77290
77291         2005-07-09  Bruno Haible  <bruno@clisp.org>
77292
77293                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77294                 add a .dll suffix.
77295                 Reported by Mark Junker <mjscod@gmx.de>.
77296
77297         2006-07-22  Bruno Haible  <bruno@clisp.org>
77298
77299                 * modules/gettext: Upgrade to gettext-0.15.
77300                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77301                 m4/visibility.m4.
77302                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77303
77304 2006-07-22  Bruno Haible  <bruno@clisp.org>
77305
77306         Merge from GNU gettext 0.15.
77307
77308         2006-03-25  Bruno Haible  <bruno@clisp.org>
77309
77310                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77311
77312         2006-07-21  Bruno Haible  <bruno@clisp.org>
77313
77314                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77315                 "1.1".
77316
77317         2006-05-09  Bruno Haible  <bruno@clisp.org>
77318
77319                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77320                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77321                 for the conftestver execution.
77322
77323         2006-05-01  Bruno Haible  <bruno@clisp.org>
77324
77325                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77326                 optional target-version argument. Verify that the compiler
77327                 groks source of the specified source-version, or add -source
77328                 option as necessary. Verify that the compiler produces
77329                 bytecode in the specified target-version, or add -target and
77330                 -source options as necessary. Make the result of the test
77331                 available as variable CONF_JAVAC. Also log error output in
77332                 config.log.
77333
77334         2006-03-11  Bruno Haible  <bruno@clisp.org>
77335
77336                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77337
77338         2006-05-09  Bruno Haible  <bruno@clisp.org>
77339
77340                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77341                 CLASSPATH_SEPARATOR to a semicolon.
77342
77343         2006-03-12  Bruno Haible  <bruno@clisp.org>
77344
77345                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77346                 available as variable CONF_JAVA, for subsequent autoconf
77347                 tests. Also log error output in config.log.
77348
77349         2006-07-19  Bruno Haible  <bruno@clisp.org>
77350
77351                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77352                 that getline works on glibc2 systems. Needed to avoid trouble
77353                 in relocatable.c.
77354                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77355
77356         2005-12-04  Bruno Haible  <bruno@clisp.org>
77357
77358                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77359                 launcher (untested).
77360
77361         2005-12-04  Bruno Haible  <bruno@clisp.org>
77362
77363                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77364
77365         2006-07-22  Bruno Haible  <bruno@clisp.org>
77366
77367                 * gettext.m4: Update from GNU gettext-0.15.
77368                 * nls.m4: Likewise.
77369                 * po.m4: Likewise.
77370                 * inttypes-pri.m4: Likewise.
77371                 * inttypes-h.m4: Renamed from inttypes.m4.
77372                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77373
77374 2006-07-22  Bruno Haible  <bruno@clisp.org>
77375
77376         Merge from GNU gettext 0.15.
77377
77378         2005-07-05  Bruno Haible  <bruno@clisp.org>
77379
77380                 * printf-args.c (printf_fetchargs): Work around broken
77381                 definition of wint_t on mingw.
77382
77383         2005-02-12  Bruno Haible  <bruno@clisp.org>
77384
77385                 * xallocsa.h: Add extern "C" for C++.
77386
77387         2006-05-17  Bruno Haible  <bruno@clisp.org>
77388
77389                 Cygwin portability.
77390                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77391
77392         2006-04-30  Bruno Haible  <bruno@clisp.org>
77393
77394                 * progreloc.c: Include <mach-o/dyld.h> if available.
77395                 (find_executable): Use _NSGetExecutablePath when possible.
77396
77397         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77398
77399                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77400                 function.
77401
77402         2005-12-29  Bruno Haible  <bruno@clisp.org>
77403
77404                 * progreloc.c (set_program_name_and_installdir): Fix
77405                 compilation error.
77406
77407         2005-12-04  Bruno Haible  <bruno@clisp.org>
77408
77409                 Cygwin portability.
77410                 * progreloc.c: Include <windows.h> also on Cygwin.
77411                 (find_executable): Add support for Cygwin.
77412                 (set_program_name_and_installdir): Handle also platforms with
77413                 nonempty EXEEXT.
77414
77415         2006-07-11  Bruno Haible  <bruno@clisp.org>
77416
77417                 * javacomp.c: Fix a comment.
77418                 Reported by Jim Meyering.
77419
77420         2006-04-30  Bruno Haible  <bruno@clisp.org>
77421
77422                 * javacomp.h (compile_java_class): Add source_version,
77423                 target_version arguments.
77424                 * javacomp.c: Rewritten to choose only a compiler that
77425                 respects the specified source_version and target_version.
77426
77427         2006-06-27  Bruno Haible  <bruno@clisp.org>
77428
77429                 Assume correct S_ISDIR macro.
77430                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77431
77432         2006-07-22  Bruno Haible  <bruno@clisp.org>
77433
77434                 * javaversion.h: New file, from GNU gettext.
77435                 * javaversion.c: New file, from GNU gettext.
77436                 * javaversion.java: New file, from GNU gettext.
77437                 * javaversion.class: New file, from GNU gettext.
77438
77439         2006-05-17  Bruno Haible  <bruno@clisp.org>
77440
77441                 Cygwin portability.
77442                 * javaexec.c (execute_java_class): Test for jview program
77443                 also on Cygwin.
77444
77445         2006-04-09  Bruno Haible  <bruno@clisp.org>
77446
77447                 * fatal-signal.c: Don't include string.h.
77448                 (at_fatal_signal): Use a copying loop instead of memcpy.
77449
77450         2005-12-04  Bruno Haible  <bruno@clisp.org>
77451
77452                 * csharpexec.c: Add support for 'clix' launcher (untested).
77453                 (execute_csharp_using_sscli): New function.
77454                 (execute_csharp_program): Call it.
77455
77456         2006-06-21  Bruno Haible  <bruno@clisp.org>
77457
77458                 Avoid warnings from recent versions of mcs.
77459                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77460                 -o, -L, -r any more. Use options documented since mcs-1.0
77461                 instead. Similarly for -g.
77462
77463         2005-07-09  Bruno Haible  <bruno@clisp.org>
77464
77465                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77466                 add a .dll suffix.
77467                 Reported by Mark Junker <mjscod@gmx.de>.
77468
77469         2006-06-17  Bruno Haible  <bruno@clisp.org>
77470
77471                 * config.charset: Update for NetBSD 3.0.
77472
77473         2006-05-17  Bruno Haible  <bruno@clisp.org>
77474
77475                 Cygwin portability.
77476                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77477
77478         2006-05-16  Bruno Haible  <bruno@clisp.org>
77479
77480                 * localcharset.c [CYGWIN]: Include <windows.h>.
77481                 (get_charset_aliases): For Cygwin, return the same CPxxx
77482                 aliases list as under WIN32.
77483                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77484                 the environment variables. Fall back to GetACP().
77485
77486         2006-04-05  Bruno Haible  <bruno@clisp.org>
77487
77488                 * config.charset: Update Juan Manuel Guerrero's address.
77489
77490         2005-02-12  Bruno Haible  <bruno@clisp.org>
77491
77492                 * allocsa.h: Add extern "C" for C++.
77493
77494         2005-02-10  Bruno Haible  <bruno@clisp.org>
77495
77496                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77497                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77498
77499         2006-07-22  Bruno Haible  <bruno@clisp.org>
77500
77501                 * gettext.h: Update to GNU gettext-0.15.
77502
77503 2006-07-22  Bruno Haible  <bruno@clisp.org>
77504
77505         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77506         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77507         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77508
77509 2006-07-21  Eric Blake  <ebb9@byu.net>
77510
77511         * modules/stdlib-safer: New file.
77512         * MODULES.html.sh (File stream based Input/Output): Add
77513         stdlib-safer.
77514
77515 2006-07-21  Eric Blake  <ebb9@byu.net>
77516
77517         * lib/stdlib-safer.h: New file from coreutils, required by
77518         stdlib--.h.
77519
77520 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77521
77522         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77523
77524 2006-07-20  Bruno Haible  <bruno@clisp.org>
77525
77526         * gnulib-tool: Recognize new option --assume-autoconf.
77527         (autoconf_minversion): New variable.
77528         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77529
77530 2006-07-20  Bruno Haible  <bruno@clisp.org>
77531
77532         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77533
77534 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77535
77536         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77537         Reindent and repaginate.
77538
77539 2006-07-19  Derek Price  <derek@ximbiot.com>
77540
77541         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77542         Correct grammar.
77543
77544 2006-07-17  Bruno Haible  <bruno@clisp.org>
77545
77546         * modules/list: New file.
77547         * modules/array-list: New file.
77548         * modules/carray-list, modules/carray-list-tests: New files.
77549         * modules/linked-list, modules/linked-list-tests: New files.
77550         * modules/avltree-list, modules/avltree-list-tests: New files.
77551         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77552         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77553         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77554         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77555         * modules/oset: New file.
77556         * modules/array-oset: New file.
77557         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77558         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77559         * tests/test-carray_list.c: New file.
77560         * tests/test-linked_list.c: New file.
77561         * tests/test-avltree_list.c: New file.
77562         * tests/test-rbtree_list.c: New file.
77563         * tests/test-linkedhash_list.c: New file.
77564         * tests/test-avltreehash_list.c: New file.
77565         * tests/test-rbtreehash_list.c: New file.
77566         * tests/test-avltree_oset.c: New file.
77567         * tests/test-rbtree_oset.c: New file.
77568         * MODULES.html.sh (Container data structures): New section.
77569
77570 2006-07-17  Bruno Haible  <bruno@clisp.org>
77571
77572         * m4/gl_list.m4: New file.
77573
77574 2006-07-17  Bruno Haible  <bruno@clisp.org>
77575
77576         * lib/gl_list.h: New file.
77577         * lib/gl_list.c: New file.
77578         * lib/gl_array_list.h: New file.
77579         * lib/gl_array_list.c: New file.
77580         * lib/gl_carray_list.h: New file.
77581         * lib/gl_carray_list.c: New file.
77582         * lib/gl_linked_list.h: New file.
77583         * lib/gl_linked_list.c: New file.
77584         * lib/gl_anylinked_list1.h: New file.
77585         * lib/gl_anylinked_list2.h: New file.
77586         * lib/gl_avltree_list.h: New file.
77587         * lib/gl_avltree_list.c: New file.
77588         * lib/gl_anyavltree_list1.h: New file.
77589         * lib/gl_anyavltree_list2.h: New file.
77590         * lib/gl_rbtree_list.h: New file.
77591         * lib/gl_rbtree_list.c: New file.
77592         * lib/gl_anyrbtree_list1.h: New file.
77593         * lib/gl_anyrbtree_list2.h: New file.
77594         * lib/gl_anytree_list1.h: New file.
77595         * lib/gl_anytree_list2.h: New file.
77596         * lib/gl_linkedhash_list.h: New file.
77597         * lib/gl_linkedhash_list.c: New file.
77598         * lib/gl_anyhash_list1.h: New file.
77599         * lib/gl_anyhash_list2.h: New file.
77600         * lib/gl_avltreehash_list.h: New file.
77601         * lib/gl_avltreehash_list.c: New file.
77602         * lib/gl_rbtreehash_list.h: New file.
77603         * lib/gl_rbtreehash_list.c: New file.
77604         * lib/gl_anytreehash_list1.h: New file.
77605         * lib/gl_anytreehash_list2.h: New file.
77606
77607         * lib/gl_oset.h: New file.
77608         * lib/gl_oset.c: New file.
77609         * lib/gl_array_oset.h: New file.
77610         * lib/gl_array_oset.c: New file.
77611         * lib/gl_avltree_oset.h: New file.
77612         * lib/gl_avltree_oset.c: New file.
77613         * lib/gl_rbtree_oset.h: New file.
77614         * lib/gl_rbtree_oset.c: New file.
77615         * lib/gl_anytree_oset.h: New file.
77616
77617 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77618
77619         * m4/mkancesdirs.m4: New file.
77620         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77621         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77622         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77623         it.
77624
77625 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77626
77627         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77628         * lib/mkancesdirs.h: New files.
77629         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77630         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77631         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77632         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77633         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77634         callers changed.  Revamp internals significantly, by not
77635         attempting to create directories that are temporarily more
77636         permissive than the final results.  Do not attempt to use
77637         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77638         This removes some race conditions, fixes some bugs, and simplifies
77639         things.  Use new dirchownmod function to do owner and mode changes.
77640         * lib/mkdir-p.h: Likewise.
77641         * lib/modechange.c (octal_to_mode): New function.
77642         (struct mode_change): New member mentioned.
77643         (make_node_op_equals): New arg mentioned.  All callers changed.
77644         (mode_compile): Keep track of which mode bits the user has explicitly
77645         mentioned.
77646         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77647         New arg PMODE_BITS, to keep track of which mode bits the user
77648         mentioned; it treats S_ISUID and S_ISGID speciall.
77649         All callers changed.
77650         * lib/modechange.h: Likewise.
77651
77652 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77653
77654         * MODULES.html.sh: Add mkancestors.
77655         * modules/mkancesdirs: New module.
77656         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77657         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77658         The chdir-safer and afs files are now orphans; I'll remove them
77659         unless someone speaks up.
77660         Add lib/dirchownmod.c, lib/dirchownmod.h.
77661         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77662         Add lchown, mkancesdirs.
77663         (Maintainer): Add self.
77664
77665 2006-07-15  Karl Berry  <karl@gnu.org>
77666
77667         * gnulib-tool: help message wording/arrangement.
77668
77669 2006-07-14  Simon Josefsson  <jas@extundo.com>
77670
77671         * doc/gnulib.texi (Libtool and Windows): New section.
77672
77673 2006-07-12  Simon Josefsson  <jas@extundo.com>
77674
77675         * modules/gendocs (License): Fix license, approved by Karl.
77676
77677 2006-07-12  Eric Blake  <ebb9@byu.net>
77678
77679         * MODULES.html.sh: Add gendocs.
77680
77681 2006-07-11  Eric Blake  <ebb9@byu.net>
77682
77683         * modules/fdl: New module, to install doc/fdl.texi.
77684         * MODULES.html.sh: Add new section for documentation modules.
77685         * gnulib-tool: Avoid space-tab.
77686         (--doc-base): New option, to manage files from doc.
77687
77688 2006-07-11  Eric Blake  <ebb9@byu.net>
77689
77690         * m4/absolute-header.m4: Fix comments to match recent change.
77691
77692 2006-07-11  Eric Blake  <ebb9@byu.net>
77693
77694         * gnulib-tool: List --doc-base before --tests-base.
77695
77696 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77697
77698         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77699
77700 2006-07-11  Bruno Haible  <bruno@clisp.org>
77701
77702         * README: Mention where to put documentation.
77703
77704 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77705
77706         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77707
77708 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77709
77710         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77711         to stdint.m4.
77712
77713 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77714
77715         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77716         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77717         "no/such/file/stdint.h" when there is no such file, so that
77718         the resulting C code can be parsed by dodgy compilers.
77719         Problems reported by Bob Proulx.
77720
77721 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77722
77723         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77724         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77725         macros into the GNU _D_EXACT_NAMLEN.
77726         * lib/savedir.c:  Likewise.
77727         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77728
77729 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77730         and Paul Eggert  <eggert@cs.ucla.edu>
77731
77732         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77733         * m4/savedir.m4:
77734         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77735         macros into the GNU _D_EXACT_NAMLEN.
77736
77737 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77738
77739         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77740         around the absolute name, to work around a problem with the HP-UX
77741         11.23 native C compiler, reported by Bob Proulx.
77742
77743 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77744
77745         * doc/maintain.texi, make-stds.texi: Sync from
77746         <http://savannah.gnu.org/projects/gnustandards>.
77747
77748 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77749
77750         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77751
77752 2006-07-09  Jim Meyering  <jim@meyering.net>
77753
77754         * m4/glob.m4: Remove a doubled word in a comment.
77755
77756 2006-07-09  Jim Meyering  <jim@meyering.net>
77757
77758         * lib/argp-pv.c: Remove a doubled word in a comment.
77759         * lib/check-version.c (check_version): Likewise.
77760         * lib/javacomp.c (compile_java_class): Likewise.
77761
77762 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77763
77764         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77765         for the benefit of people using Autoconf 2.60.  If you want to
77766         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77767         (or m4/onceonly.m4, if pre-2.57) manually.
77768
77769 2006-07-08  Jim Meyering  <jim@meyering.net>
77770
77771         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77772         comment.
77773         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77774         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77775         comment.
77776
77777 2006-07-08  Jim Meyering  <jim@meyering.net>
77778
77779         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77780
77781 2006-07-07  Simon Josefsson  <jas@extundo.com>
77782
77783         * tests/test-crc.c: Change expected crc value, the test vector
77784         were probably computed using the old broken crc.c?
77785
77786 2006-07-06  Simon Josefsson  <jas@extundo.com>
77787
77788         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77789         now the canonical place for the M4 file).
77790
77791         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77792         from the sys_socket dependency now.
77793
77794         * modules/inet_pton (Files): Ditto.
77795
77796         * modules/inet_ntop (Files): Ditto.
77797
77798 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77799
77800         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77801         not gl_PREREQ_GETUSERSHELL.
77802
77803 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77804
77805         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77806         with only one argument, for Autoconf 2.60.
77807         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77808         expand to nothing, so add a shell command to avoid syntax error.
77809         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77810
77811 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77812
77813         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77814
77815 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77816
77817         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77818         no longer needed.  Check for isblank decl.
77819         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77820         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77821         of existence.
77822
77823 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77824
77825         * lib/getloadavg.c: Use __VMS, not VMS.
77826         * lib/getopt.c: Likewise.
77827         * lib/getpagesize.h: Likewise.
77828         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77829         and probably does not work.
77830
77831 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77832
77833         * lib/.cppi-disable: Add wcwidth.
77834         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77835         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77836         (ISGRAPH): Remove.  All uses changed to isgraph.
77837         (FOLD) [!defined _LIBC]: Remove special case.
77838         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77839         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77840         HAVE_ISBLANK.
77841         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77842         case.
77843
77844 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77845
77846         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77847         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77848         brackets.  Other minor changes to suppress some compiler
77849         warnings.
77850
77851 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77852         and Paul Eggert  <eggert@cs.ucla.edu>
77853
77854         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77855         of invoking obsolescent AC_HEADER_DIRENT macro.
77856         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77857         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77858         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77859         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77860         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77861         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77862         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77863         * m4/readdir.m4: Remove; no longer needed.
77864
77865 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77866         and Paul Eggert  <eggert@cs.ucla.edu>
77867
77868         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77869         Don't worry about this obsolete case any more.
77870         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77871         directories.
77872         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77873         worry about this obsolete case any more.
77874         * lib/fts.c: Likewise.
77875         * lib/getcwd.c: Likewise.
77876         * lib/glob.h: Likewise.
77877         * lib/savedir.c: Likewise.
77878
77879 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77880
77881         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77882         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77883         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77884         needed.
77885         All uses removed.
77886         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77887         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77888         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77889         needed.
77890         * m4/getdate.m4 (gl_GETDATE): Likewise.
77891         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77892         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77893         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77894         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77895         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77896         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77897         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77898         needed.
77899
77900 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77901
77902         * lib/memcasecmp.c: Include <limits.h>.
77903         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77904         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77905         Don't assume isdigit succeeds only on '0' through '9'.
77906
77907 2006-07-05  Eric Blake  <ebb9@byu.net>
77908
77909         * modules/getaddrinfo (Depends-on): Add snprintf.
77910
77911 2006-07-05  Eric Blake  <ebb9@byu.net>
77912
77913         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77914         to avoid 'header present but could not be compiled' on cygwin.
77915
77916 2006-07-05  Eric Blake  <ebb9@byu.net>
77917
77918         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77919         missing from netdb.h.
77920         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77921
77922 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77923
77924         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77925         no longer needed.
77926         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77927         * m4/getdate.m4 (gl_GETDATE): Likewise.
77928         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77929         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77930         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77931         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77932         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77933
77934 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77935
77936         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77937         All uses of is_space replaced by isspace.
77938         * lib/exit.h: Don't talk about STDC_HEADERS.
77939         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77940         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77941         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77942         replaced by isprint etc.
77943         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77944         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77945         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77946         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77947         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77948         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77949
77950 2006-07-05  Bruno Haible  <bruno@clisp.org>
77951
77952         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77953         the function exists, before testing against AIX.
77954         Reported by Martin Lambers <marlam@marlam.de>.
77955
77956 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77957
77958         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77959         From Mark D. Baushke.
77960
77961 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77962
77963         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77964         to the absolute name, not just one, to bypass Sun C 5.8's
77965         "warning: #include of /usr/include/... may be non-portable".
77966
77967 2006-07-04  Eric Blake  <ebb9@byu.net>
77968
77969         * modules/dirname-tests: New test module.
77970         * tests/test-dirname.c: New file, replacing dirname.c
77971         TEST_DIRNAME section that was recently deleted.
77972
77973 2006-07-04  Bruno Haible  <bruno@clisp.org>
77974
77975         Assume ANSI C header files and <ctype.h> functions.
77976         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77977         (mbsnwidth): Use isprint, iscntrl instead.
77978
77979 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77980
77981         Merge from coreutils.
77982         * MODULES.html.sh: Add xstrtold.
77983         * modules/xstrtold: New file.
77984         * modules/cycle-check (Files): Add lib/same-inode.h.
77985         * modules/dirname (Files): Add m4/double-slash-root.m4.
77986         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77987         * modules/mkdir-p (Files): Add lib/same-inode.h.
77988         * modules/same (Files): Add lib/same-inode.h.
77989
77990 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77991
77992         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77993         This is to keep the terminology clean; POSIX talks about
77994         "absolute pathnames", not "full pathnames", but the GNU
77995         Coding Standards say to use "path" for something else;
77996         so use "absolute" to keep both sides happy.
77997         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77998         Set gl_absolute_header, not gl_full_header_path.
77999         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
78000         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
78001         All uses changed.
78002
78003         Merge from coreutils.
78004
78005         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78006
78007         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
78008         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
78009         want to require the building of c-strtod.o.
78010         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
78011         needs -lm directly.
78012         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
78013
78014         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78015
78016         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
78017         --as-needed option if available.  Problem reported by Albert Chin in
78018         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
78019         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
78020         cc merely issues a bunch of annoying warnings for --as-needed
78021         (this problem was reported by Bob Proulx).  Also, try linking with
78022         -lm to detect a bug in binutils 2.16 (this problem was reported
78023         by Ralf Wildenhues).
78024
78025         2006-06-18  Jim Meyering  <jim@meyering.net>
78026
78027         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
78028         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
78029         macro.
78030         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
78031         also check for glibc-2.4's abort-inducing bug.
78032
78033         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
78034         Low-probability clean-up should be to use rmdir to get rid of
78035         the just-created directory, not unlink.
78036
78037         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
78038         configure fail, and request a bug report to inform us about it.
78039         Add a comment that, barring reports to the contrary, in 2007 we'll
78040         assume ftruncate is universally available.
78041
78042         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78043
78044         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
78045
78046         2006-03-12  Jim Meyering  <jim@meyering.net>
78047
78048         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
78049         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
78050         * m4/same.m4 (gl_SAME): Likewise.
78051         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
78052
78053         2006-03-11  Eric Blake  <ebb9@byu.net>
78054
78055         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
78056         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
78057         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
78058         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
78059
78060 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78061
78062         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
78063         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
78064         reported by Mark D. Baushke, one in
78065         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
78066
78067         Merge from coreutils.
78068
78069         * lib/.cppi-disable: Add stdint_.h.
78070         * lib/.cvsignore: Add stdint.h.
78071
78072         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78073
78074         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
78075         both double and long double versions.
78076         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
78077         * lib/xstrtold.c: New file.
78078         * lib/xstrtod.h (xstrtold): New decl.
78079
78080         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78081
78082         * lib/filemode.c (setst): Remove.
78083         (strmode): Rewrite to avoid setst.  This makes the code shorter,
78084         (arguably) clearer, and the generated code is a bit smaller on my
78085         Debian GNU/Linux stable x86 host.
78086
78087         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78088
78089         * lib/filemode.c: Include "filemode.h" first, to test the interface.
78090         Assume that filemode.h includes sys/types.h and sys/stat.h.
78091         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
78092         (ftypelet): Reorder to put common cases first, for efficiency.
78093         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
78094         to do 'M'.
78095         (strmode): Renamed from mode_string, and now stores 12 bytes instead
78096         of 10, for compatibility with FreeBSD.  All callers changed.
78097         (filemodestring): Now stores 12 bytes instead of 10, and sets file
78098         types that can't be deduced solely from st_mode.  First arg is now a
78099         const pointer.
78100         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
78101         (strmode): Renamed from mode_string.
78102         (filemodestring): New decl.
78103         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
78104         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
78105         needed.
78106         (S_ISPORT, S_ISWHT): New macros, if not already defined.
78107
78108         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78109
78110         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
78111         fsusage.h now does that.  Include fsusage.h first, to test interface.
78112         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
78113         at most one method (the old code could have generated decls that
78114         didn't conform to C89, not that this was ever exercised).
78115         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
78116
78117         2006-03-19  Jim Meyering  <jim@meyering.net>
78118
78119         Work even in a chroot where d_ino values for entries in "/"
78120         don't match the stat.st_ino values for the same names.
78121         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
78122         number, iterate through all entries again, using lstat instead.
78123         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
78124         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
78125
78126         * lib/getcwd.c (__getcwd): Clarify a comment.
78127         Use memcpy in place of a call to strcpy.
78128
78129         2006-03-12  Jim Meyering  <jim@meyering.net>
78130
78131         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
78132         matches that of the current directory (which we're about to chdir ".."
78133         out of), then save the dev-ino of the parent, instead.
78134
78135         * lib/same-inode.h (SAME_INODE): New file/macro.
78136         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78137         Include "same-inode.h", instead.
78138         * lib/same.c: Likewise.
78139         * lib/cycle-check.h: Include "same-inode.h".
78140         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78141         * lib/cycle-check.c (SAME_INODE): Remove definition.
78142         * lib/root-dev-ino.h: Include "same-inode.h".
78143
78144         2006-03-11  Eric Blake  <ebb9@byu.net>
78145
78146         * lib/same.c (same_name): s/base_name/last_component/
78147         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78148         * lib/filenamecat.c (file_name_concat): Likewise.
78149
78150         2006-03-11  Eric Blake  <ebb9@byu.net>,
78151                     Paul Eggert  <eggert@cs.ucla.edu>
78152
78153         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78154         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78155         drive prefix.
78156         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78157         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78158         (last_component): New method.
78159         * lib/dirname.c (dir_len): Determine when drive letters need a
78160         subsequent slash.  Preserve // when it is special.
78161         (dir_name): Don't append dot when drive letter is absolute.
78162         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78163         * lib/basename.c (base_name): New semantics - malloc the result.
78164         Preserve // when it is special.  Preserve relative files that look
78165         like drive letters.
78166         (base_len): Preserve // when it is special.
78167         (last_component): New method, similar to old base_name semantics.
78168         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78169         base_name.  Strip redundant slashes from ///.
78170
78171 2006-07-03  Jim Meyering  <jim@meyering.net>
78172
78173         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78174         macro is used before the first cycle_check call.
78175
78176 2006-07-03  Eric Blake  <ebb9@byu.net>
78177
78178         * modules/dirname (Depends-on): Add xstrndup.
78179
78180 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78181
78182         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78183         test cases, so that config.log is a bit easier to follow.
78184
78185 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78186
78187         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78188         both are 64 bits, since this seems to be the tradition, and this
78189         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78190         we ever run into a host that prefers long long to long in this
78191         case, we'll need another configure-time test.  Problem reported by
78192         Jim Meyering.
78193
78194 2006-07-02  Eric Blake  <ebb9@byu.net>
78195
78196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78197
78198 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78199
78200         * modules/inttypes (Depends-on): No longer depends on stdint.
78201         * modules/stdint (Description): Say more about assumptions.
78202         Say that the fast types might differ.  Say macros are used.
78203         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78204         (Makefile.am): Revise list of substituted symbols to match
78205         new stdint.m4.
78206         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78207         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78208         * tests/test-stdint.c (verify_same_types)
78209         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78210         the code conforms to C99/C89.
78211         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78212         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78213
78214 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78215
78216         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78217         but fix a bug, by requiring at least 64 bits.
78218         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78219         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78220         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78221         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78222
78223         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78224         changes.  Make 2.59 a prerequisite.  Check and substitute for
78225         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78226         inttypes.h.  Do not use special include files; just use the
78227         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78228         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78229         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78230         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78231         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78232         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78233         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78234         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78235         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78236         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78237         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78238         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78239         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78240         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78241         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78242         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78243         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78244         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78245         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78246         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78247         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78248         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78249         not check for things that C99 does not require, e.g., int8_t.  If
78250         a test isn't needed unless <stdint.h> isn't working, and is
78251         unlikely to be needed for any other reason, then don't do it
78252         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78253         size_t, since we assume C89 freestanding at least.  Do not check
78254         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78255         the right thing even if the types are not defined.  Instead use:
78256         (gl_STDINT_TYPE_PROPERTIES): New macro.
78257         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78258         testing whether <sys/types.h> clashes, as Autoconf does this for
78259         us now.  All uses removed.
78260         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78261         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78262         (gl_CHECK_TYPE_SAME):
78263         Remove; no longer needed.
78264         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78265         exists, since we'll return 0 anyway in that case.
78266         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78267
78268 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78269
78270         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78271         possible collision with system files.
78272         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78273         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78274         WCHAR_MIN and WCHAR_MAX in this case.
78275         (<stddef.h>): Do not include; no longer needed.
78276         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78277         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78278         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78279         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78280         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78281         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78282         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78283         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78284         !defined(__c99))]: Include in this case too, since it's harmless
78285         now.
78286         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78287         dangerous to do so.
78288         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78289         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78290         (_STDINT_MIN, _STDINT_MAX): New macros.
78291         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78292         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78293         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78294         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78295         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78296         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78297         macros, not typedefs; this simplifies things quite a bit.
78298         Use long int for all types narrower than int64_t.
78299         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78300         Define in terms of long long int or int64_t or long int,
78301         not int64_t or int32_t.  This saves some compile-time testing.
78302         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78303         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78304         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78305         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78306         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78307         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78308         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78309         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78310         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78311         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78312         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78313         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78314         undef any previous version and define our own version, for
78315         simplicity and consistency with the new macros for types.
78316         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78317         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78318         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78319         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78320         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78321         @WINT_T_SUFFIX@ to keep things simple here.
78322         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78323         Simplify by assuming typical 8/16/32/64 host, since we're
78324         already doing that elsewhere anyway.
78325         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78326         and assume long long int is 64 bits if available.  This
78327         speeds up 'configure'.
78328
78329 2006-07-01  Eric Blake  <ebb9@byu.net>
78330
78331         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78332         Reported by Andreas Buening.
78333
78334 2006-07-01  Eric Blake  <ebb9@byu.net>
78335
78336         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78337
78338 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78339
78340         * lib/getaddrinfo.c: fixed typo
78341
78342 2006-06-29  Jim Meyering  <jim@meyering.net>
78343
78344         * modules/strftime (Maintainer): Add my name, since with the
78345         FPRINTFTIME changes strftime.c has forked from glibc.
78346
78347 2006-06-29  Eric Blake  <ebb9@byu.net>
78348
78349         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78350
78351 2006-06-29  Eric Blake  <ebb9@byu.net>
78352
78353         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78354
78355 2006-06-29  Eric Blake  <ebb9@byu.net>
78356
78357         * lib/stat_.h: New file.
78358
78359 2006-06-29  Eric Blake  <ebb9@byu.net>
78360
78361         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78362         unused static function.
78363
78364 2006-06-29  Eric Blake  <ebb9@byu.net>
78365
78366         * doc/functions.texi (Function Portability): Document missing lstat
78367         on mingw.
78368
78369 2006-06-29  Eric Blake  <ebb9@byu.net>
78370
78371         * MODULES.html.sh: Add sys_stat.
78372         * modules/sys_stat: New module.
78373         * modules/mkstemp (Depends-on): Add sys_stat.
78374
78375 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78376
78377         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78378
78379 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78380
78381         * m4/c-bs-a.m4: Removed.
78382
78383 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78384
78385         * lib/strftime.c: Assume strftime() exists.
78386
78387 2006-06-29  Derek Price  <derek@ximbiot.com>
78388
78389         * modules/c-bs-a: Removed - \a is C89.
78390         * MODULES.html.sh: Remove c-bs-a.
78391
78392 2006-06-29  Bruno Haible  <bruno@clisp.org>
78393
78394         * modules/wcwidth (License): Change to LGPL.
78395
78396 2006-06-28  Simon Josefsson  <jas@extundo.com>
78397
78398         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78399         on _WIN32.
78400
78401         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78402         getnameinfo.
78403
78404 2006-06-28  Simon Josefsson  <jas@extundo.com>
78405
78406         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78407
78408 2006-06-28  Simon Josefsson  <jas@extundo.com>
78409
78410         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78411         functions there.  It will succeed on Windows XP, but on Windows
78412         2000 and (presumably) earlier, it will fail, and use the internal
78413         re-implementation.
78414         (use_win32_p): New function.
78415         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78416         Support AI_NUMERICSERV to disable getservbyname.
78417         (getnameinfo): New function, only supports
78418         NI_NUMERICHOST|NI_NUMERICSERV for now.
78419
78420         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78421         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78422         getnameinfo.
78423
78424 2006-06-28  Eric Blake  <ebb9@byu.net>
78425
78426         * modules/wcwidth: New file.
78427         * modules/mbchar (Depends-on): Add wcwidth.
78428         * modules/mbswidth (Depends-on): Add wcwidth.
78429         * MODULES.html.sh: Add wcwidth.
78430
78431 2006-06-28  Eric Blake  <ebb9@byu.net>
78432
78433         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78434         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78435
78436 2006-06-28  Eric Blake  <ebb9@byu.net>
78437
78438         * lib/xvasprintf.h: Fix comments.
78439
78440 2006-06-28  Eric Blake  <ebb9@byu.net>
78441
78442         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78443         * lib/mbswidth.c (wcwidth): Move from here...
78444         * lib/wcwidth.h: ...to this new file.
78445
78446 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78447
78448         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78449
78450         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78451         it's obsolete.
78452         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78453
78454 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78455
78456         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78457         Autoconf 2.60 says this stuff was obsolete.
78458
78459 2006-06-28  Bruno Haible  <bruno@clisp.org>
78460
78461         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78462
78463 2006-06-28  Bruno Haible  <bruno@clisp.org>
78464
78465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78466         gt_TYPE_WCHAR_T.
78467
78468 2006-06-28  Bruno Haible  <bruno@clisp.org>
78469
78470         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78471         declaration for wcwidth.
78472         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78473
78474 2006-06-28  Bruno Haible  <bruno@clisp.org>
78475
78476         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78477         (mkdir): Define using _mkdir.
78478
78479 2006-06-28  Bruno Haible  <bruno@clisp.org>
78480
78481         * lib/getaddrinfo.h: Fix POSIX URL.
78482         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78483         _WIN32.
78484         (use_win32_p): Make static.
78485         (getaddrinfo): Reject service name if it is empty or does not consist
78486         solely of decimal digits, or if its value is > 65535.
78487         (getnameinfo): Remove useless casts.
78488
78489 2006-06-27  Simon Josefsson  <jas@extundo.com>
78490
78491         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78492         Eggert and Martin Lambers.
78493
78494 2006-06-27  Simon Josefsson  <jas@extundo.com>
78495
78496         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78497         Eggert and Martin Lambers.
78498
78499 2006-06-27  Bruno Haible  <bruno@clisp.org>
78500
78501         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78502         result to 0, not to empty.
78503         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78504
78505 2006-06-27  Bruno Haible  <bruno@clisp.org>
78506
78507         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78508
78509 2006-06-26  Simon Josefsson  <jas@extundo.com>
78510
78511         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78512         present.
78513
78514 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78515
78516         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78517         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78518         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78519
78520 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78521
78522         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78523
78524 2006-06-26  Bruno Haible  <bruno@clisp.org>
78525
78526         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78527
78528 2006-06-26  Bruno Haible  <bruno@clisp.org>
78529
78530         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78531
78532 2006-06-26  Bruno Haible  <bruno@clisp.org>
78533
78534         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78535         SGI C compiler in pre-C99 mode.
78536         Suggested by Mark D. Baushke and Larry Jones.
78537
78538 2006-06-26  Bruno Haible  <bruno@clisp.org>
78539
78540         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78541         WCHAR_MAX.
78542         Reported by Mark D. Baushke and Larry Jones.
78543
78544 2006-06-26  Bruno Haible  <bruno@clisp.org>
78545
78546         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78547         in pre-C99 mode.
78548         Suggested by Mark D. Baushke and Larry Jones.
78549
78550 2006-06-23  Simon Josefsson  <jas@extundo.com>
78551             Bruno Haible  <bruno@clisp.org>
78552
78553         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78554         Emit mostlyclean-local rule.
78555         (func_emit_tests_Makefile_am): Likewise.
78556         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78557
78558 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78559
78560         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78561
78562 2006-06-23  Bruno Haible  <bruno@clisp.org>
78563
78564         * tests/test-stdint.c: Update to match ISO C 99 Technical
78565         Corrigendum 1.
78566
78567 2006-06-23  Bruno Haible  <bruno@clisp.org>
78568
78569         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78570
78571 2006-06-23  Bruno Haible  <bruno@clisp.org>
78572
78573         * lib/stdint_.h: Treat IRIX like OpenBSD.
78574
78575 2006-06-23  Bruno Haible  <bruno@clisp.org>
78576
78577         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78578         ISO C 99 Technical Corrigendum 1.
78579
78580 2006-06-22  Simon Josefsson  <jas@extundo.com>
78581
78582         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78583         MinGW.
78584
78585 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78586
78587         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78588         needed.  Some compiler complained about some of them.  Problem reported
78589         by Larry Jones in
78590         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78591
78592 2006-06-21  Simon Josefsson  <jas@extundo.com>
78593
78594         * tests/test-getaddrinfo.c: New file.
78595
78596         * modules/getaddrinfo-tests: New file.
78597
78598         * MODULES.html.sh: Add inet_pton.
78599
78600         * modules/inet_pton: New file.
78601
78602 2006-06-21  Simon Josefsson  <jas@extundo.com>
78603
78604         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78605         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78606         of using the (limited) gnulib implementation on Windows XP.
78607
78608         * m4/inet_pton.m4: New file.
78609
78610 2006-06-21  Simon Josefsson  <jas@extundo.com>
78611
78612         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78613         variable.
78614
78615         * lib/socket_.h: Don't define WINVER.
78616
78617         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78618         slightly modified to work in gnulib.
78619
78620 2006-06-21  Simon Josefsson  <jas@extundo.com>
78621
78622         * doc/gnulib.texi (Windows sockets): Add.
78623
78624 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78625
78626         * lib/read-file.c (fread_file): Start with buffer allocation of
78627         0 bytes rather than 1 byte; this simplifies the code.
78628         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78629         code to free buffer and save/restore errno.
78630         (internal_read_file): Remove unused local.
78631
78632 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78635         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78636         Problem reported by Denis Excoffier in
78637         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78638
78639 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78640
78641         * modules/sys_socket, modules/socklen: Include sys/types since
78642         FreeBSD 4.x's sys/socket.h needs it.
78643
78644 2006-06-19  Simon Josefsson  <jas@extundo.com>
78645
78646         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78647
78648 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78649
78650         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78651
78652 2006-06-19  Bruno Haible  <bruno@clisp.org>
78653
78654         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78655         and FULL_PATH_INTTYPES_H in angle brackets.
78656         Reported by Mark D. Baushke <mdb@gnu.org>.
78657
78658 2006-06-17  Eric Blake  <ebb9@byu.net>
78659
78660         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78661         errno.
78662
78663 2006-06-17  Bruno Haible  <bruno@clisp.org>
78664
78665         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78666         <sys/inttypes.h>.
78667
78668 2006-06-17  Bruno Haible  <bruno@clisp.org>
78669
78670         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78671         whether errno is declared. Assume <errno.h> declares errno.
78672
78673 2006-06-17  Bruno Haible  <bruno@clisp.org>
78674
78675         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78676
78677 2006-06-17  Bruno Haible  <bruno@clisp.org>
78678
78679         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78680         problem on Solaris 2.5.1.
78681
78682 2006-06-16  Eric Blake  <ebb9@byu.net>
78683
78684         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78685         * lib/unicodeio.c [!defined errno]: Likewise.
78686         * lib/strtol.c [!defined errno]: Likewise.
78687         * lib/strtod.c [!defined errno]: Likewise.
78688
78689 2006-06-15  Eric Blake  <ebb9@byu.net>
78690
78691         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78692
78693 2006-06-15  Eric Blake  <ebb9@byu.net>
78694
78695         * config/srclist.txt (ssize_t.m4): Lose sync.
78696
78697 2006-06-15  Bruno Haible  <bruno@clisp.org>
78698
78699         * modules/stdint (Files): Include m4/full-header-path.m4,
78700         m4/size_max.m4, m4/wchar_t.m4.
78701         (Makefile.am): Many more substitutions.
78702         * modules/stdint-tests: New file.
78703         * tests/test-stdint.c: New file.
78704
78705 2006-06-15  Bruno Haible  <bruno@clisp.org>
78706
78707         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78708         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78709         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78710         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78711         gl_CHECK_TYPE_SAME): New macros.
78712
78713 2006-06-15  Bruno Haible  <bruno@clisp.org>
78714
78715         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78716
78717 2006-06-15  Bruno Haible  <bruno@clisp.org>
78718
78719         * lib/stdint_.h: Rewritten to be fully auto-configured.
78720         Fixes bug on HP-UX/IA64.
78721
78722 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78723
78724         * lib/getdate.y (__attribute__): Don't define if already defined.
78725         Problem reported by Larry Jones.
78726         * lib/utimens.c (__attribute__): Likewise.
78727
78728 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78729
78730         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78731         reported by Andreas Schwab.
78732
78733 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78734             Bruno Haible  <bruno@clisp.org>
78735
78736         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78737         check for the declaration of strnlen and a run test that exposes the
78738         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78739         rpl_strndup.
78740
78741 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78742             Bruno Haible  <bruno@clisp.org>
78743
78744         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78745
78746 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78747
78748         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78749         compile test, for Tru64 4.0D.
78750
78751 2006-05-28  Karl Berry  <karl@gnu.org>
78752
78753         * config/srclist.txt (printf-args.c): lose sync.
78754
78755 2006-05-26  Martin Lambers  <marlam@marlam.de>
78756
78757         * lib/getpass.c: Updates the test for the native W32 API, and adds
78758         missing includes, thus fixing compilation warnings.
78759
78760 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78761
78762         * lib/exclude.c (exclude_fnmatch): New function.
78763         (excluded_file_name): Call exclude_fnmatch.
78764         * lib/exclude.h (excluded_file_name): New prototype
78765
78766 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         * lib/tempname.c (small_open, large_open): New macros.
78769         (__open, __open64) [!_LIBC]: Remove.
78770         (__gen_tempname): Use small_open and large_open instead of __open
78771         and __open64.  This fixes a portability bug on HP-UX 11.11i
78772         reported by Simon Wing-Tang in
78773         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78774
78775 2006-05-24  Bruno Haible  <bruno@clisp.org>
78776
78777         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78778         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78779         Reported by Thorsten Maerz <torte@netztorte.de> via
78780         Aaron Stone <aaron@serendipity.cx>.
78781
78782 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78783
78784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78785         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78786         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78787         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78788         not really conditional on the cache.
78789         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78790
78791 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78792
78793         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78794         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78795         (my_usleep): Don't mishandle maximum value.
78796
78797 2006-05-19  Jim Meyering  <jim@meyering.net>
78798
78799         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78800
78801 2006-05-17  Bruno Haible  <bruno@clisp.org>
78802
78803         Cygwin portability.
78804         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78805
78806 2006-05-17  Bruno Haible  <bruno@clisp.org>
78807
78808         * lib/stdint_.h: Fix recognition of Cygwin.
78809
78810 2006-05-15  Bruno Haible  <bruno@clisp.org>
78811
78812         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78813         on libtool patch by Ralf Wildenhues.
78814
78815 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78816
78817         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78818         test for C99 conformance; (bool) 0.5 is an integer constant
78819         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78820         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78821
78822 2006-05-11  Simon Josefsson  <jas@extundo.com>
78823
78824         * m4/xvasprintf.m4: Fix obvious typo.
78825
78826 2006-05-11  Jim Meyering  <jim@meyering.net>
78827
78828         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78829         James Lemley.
78830
78831 2006-05-10  Simon Josefsson  <jas@extundo.com>
78832
78833         * lib/md4.c: Typo fix, update copyright years.
78834         (K1, K2): Don't use L because it turn computations into 64-bit on
78835         64-bit platforms.
78836
78837 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78838
78839         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78840         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78841         unwanted sign propagation, e.g., on hosts with 64-bit int.
78842         There still are some problems with reeelly weird theoretical hosts
78843         (e.g., 33-bit int) but it's not worth worrying about now.
78844         * lib/sha1.c (rol): Likewise.
78845         (K1, K2, K3, K4): Remove unnecessary L suffix.
78846
78847 2006-05-10  Bruno Haible  <bruno@clisp.org>
78848
78849         * lib/des.c: Cast to avoid warnings.
78850
78851 2006-05-09  Bruno Haible  <bruno@clisp.org>
78852
78853         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78854         (Depends-on): Depend also on xsize, stdarg.
78855         (configure.ac): Add gl_XVASPRINTF.
78856
78857 2006-05-09  Bruno Haible  <bruno@clisp.org>
78858
78859         * m4/xvasprintf.m4: New file.
78860
78861 2006-05-09  Bruno Haible  <bruno@clisp.org>
78862
78863         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78864         (EOVERFLOW): Define fallback value.
78865         (xstrcat): New function.
78866         (xvasprintf): Recognize the special case of a string concatenation.
78867
78868 2006-05-08  Eric Blake  <ebb9@byu.net>
78869
78870         * gnulib-tool (func_version): Base copyright year on CVS date.
78871         (func_emit_copyright_notice): New function.
78872         (func_emit_lib_Makefile_am): Use it.
78873         (func_emit_tests_Makefile_am): Likewise.
78874         (func_import): Likewise.
78875
78876 2006-05-08  Bruno Haible  <bruno@clisp.org>
78877
78878         * modules/stdarg: New file.
78879         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78880
78881 2006-05-08  Bruno Haible  <bruno@clisp.org>
78882
78883         * m4/stdarg.m4: New file, from GNU gettext.
78884
78885 2006-05-08  Bruno Haible  <bruno@clisp.org>
78886
78887         * config/srclist.txt (build-aux/config.rpath): different from latest
78888         release.
78889
78890 2006-05-08  Bruno Haible  <bruno@clisp.org>
78891
78892         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78893
78894 2006-05-05  Jim Meyering  <jim@meyering.net>
78895
78896         * m4/warning.m4: New file, derived from bison's file by the same name.
78897
78898 2006-05-03  Bruno Haible  <bruno@clisp.org>
78899
78900         * lib/stdint_.h: Shorter URL.
78901         * lib/inttypes.h: Likewise.
78902
78903 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78904
78905         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78906
78907 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78908
78909         * lib/verify.h: Document the internals better.  Most of this change
78910         was written by Bruno Haible.
78911
78912 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78913
78914         * doc/verify.texi: New file, partly based on a proposal by
78915         Bruno Haible.
78916
78917 2006-05-02  Bruno Haible  <bruno@clisp.org>
78918
78919         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78920         test from here...
78921         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78922
78923 2006-04-29  Bruno Haible  <bruno@clisp.org>
78924
78925         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78926         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78927
78928 2006-04-29  Bruno Haible  <bruno@clisp.org>
78929
78930         * gnulib-tool: Make --update option actually work.
78931
78932 2006-04-29  Bruno Haible  <bruno@clisp.org>
78933
78934         * doc/gcd.texi: New file.
78935         * doc/gnulib.texi: Include it.
78936
78937 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78938
78939         * lib/getdate.y (get_date): When adding relative date, start with the
78940         initial time, not with the result of the first mktime call.
78941
78942 2006-04-25  Bruno Haible  <bruno@clisp.org>
78943
78944         * gnulib-tool (func_import): Output the include directives in three
78945         blocks, sorted separately.
78946         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78947
78948 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78949
78950         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78951         to define main with arguments, for C++.  Reported by Eric Blake.
78952         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78953         Prefer 'int main ()' to 'int main (void)', for C++.
78954         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78955         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78956         for 'main', for C99 and C++.
78957
78958 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78959
78960         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78961         Don't assume that exit status -1 is valid.
78962         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78963         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78964         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78965         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78966         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78967         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78968         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78969         functions can be used without declaring them, or that you can
78970         exit with status -1.
78971         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78972
78973 2006-04-24  Karl Berry  <karl@gnu.org>
78974
78975         * config/srclist.txt (longdouble.m4): sync lost.
78976
78977 2006-04-24  Eric Blake  <ebb9@byu.net>
78978
78979         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78980
78981 2006-04-24  Bruno Haible  <bruno@clisp.org>
78982
78983         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78984         poll() implementation in AIX.
78985         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78986
78987 2006-04-24  Bruno Haible  <bruno@clisp.org>
78988
78989         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78990         assigned exactly once.
78991
78992 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78993             Bruno Haible  <bruno@clisp.org>
78994
78995         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78996         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78997         for AM_CPPFLAGS.
78998
78999 2006-04-23  Bruno Haible  <bruno@clisp.org>
79000
79001         * modules/copy-file: Depend on unistd.
79002         * modules/execute: Likewise.
79003         * modules/fatal-signal: Likewise.
79004         * modules/findprog: Likewise.
79005         * modules/mkdtemp : Likewise.
79006         * modules/pipe: Likewise.
79007         * modules/wait-process: Likewise.
79008
79009 2006-04-23  Bruno Haible  <bruno@clisp.org>
79010
79011         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
79012         condition was already detected.
79013         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79014
79015 2006-04-23  Bruno Haible  <bruno@clisp.org>
79016
79017         * lib/copy-file.c: Include <unistd.h> unconditionally.
79018         * lib/execute.c: Likewise.
79019         * lib/fatal-signal.c: Likewise.
79020         * lib/findprog.c: Likewise.
79021         * lib/mkdtemp.c: Likewise.
79022         * lib/pipe.h: Likewise.
79023         * lib/pipe.c: Likewise.
79024         * lib/wait-process.h: Likewise.
79025
79026 2006-04-23  Bruno Haible  <bruno@clisp.org>
79027
79028         * gnulib-tool (func_usage): Fix --import description. Document
79029         --update.
79030         (func_import): Create temporary file in a temporary directory, if
79031         --dry-run is specified. Silence errors from 'grep' when there are no
79032         m4 files in $m4dir.
79033         (func_create_testdir): Silence errors from 'grep' when there are no
79034         m4 files in $m4dir.
79035         Reported by Karl Berry <karl@freefriends.org>.
79036
79037 2006-04-20  Bruno Haible  <bruno@clisp.org>
79038
79039         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
79040         one argument, so that the code will be portable to Autoconf 2.60.
79041         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
79042         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79043         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
79044
79045 2006-04-19  Derek Price  <derek@ximbiot.com>
79046             Eric Blake  <ebb9@byu.net>
79047
79048         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
79049         rather than "/full/path.h".  Update comment to match.  Shorten &
79050         generalize m4_translit call via AS_TR_CPP.
79051
79052 2006-04-19  Derek Price  <derek@ximbiot.com>
79053             Eric Blake  <ebb9@byu.net>
79054
79055         * lib/inttypes.h: Correct grammar in comment.
79056
79057 2006-04-18  Derek Price  <derek@ximbiot.com>
79058             Paul Eggert  <eggert@cs.ucla.edu>
79059
79060         * modules/inttypes: New file.
79061         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
79062
79063 2006-04-18  Derek Price  <derek@ximbiot.com>
79064             Paul Eggert  <eggert@cs.ucla.edu>
79065
79066         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
79067         New files.
79068
79069 2006-04-18  Derek Price  <derek@ximbiot.com>
79070             Paul Eggert  <eggert@cs.ucla.edu>
79071
79072         * lib/inttypes.h: New file.
79073         * lib/strtoimax.c: Assume <inttypes.h>.
79074
79075 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
79078         isn't mounted.  Problem reported by Kir Kolyshkin.
79079
79080 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
79083         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
79084         Derek R. Price.
79085         * lib/regex.h (RE_DUP_MAX): Update comment to match current
79086         implementation.
79087
79088 2006-04-12  Eric Blake  <ebb9@byu.net>
79089
79090         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
79091         is now done automatically by the corresponding Autoconf macro.
79092
79093 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
79094
79095         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
79096         time_r.h.
79097
79098 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79099
79100         Merge regex changes from libc, removing some of our
79101         POSIX-conformance changes that were rejected and redoing them in a
79102         less-intrusive way.
79103
79104         * lib/regcomp.c (re_compile_internal, init_dfa):
79105         Length arg is now size_t, not Idx.  All uses changed.
79106         (peek_token): Forward decl now says internal_function.
79107         (__re_error_msgid, __re_error_msgid_idx):
79108         Now static rather than extern with attribute_hidden.
79109         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
79110         For some reason libc prefers K&R style defns for external functions.
79111         (regerror) [!defined _LIBC]: Likewise.
79112         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
79113         (seek_collating_symbol_entry, lookup_collation_sequence_value):
79114         (build_range_exp, build_collating_symbol):
79115         Use K&R-style defn.
79116         (re_compile_fastmap): Use '\0' to memset, not 0.
79117         (utf8_sb_map): Make the calculations more obvious.
79118         (init_dfa, parse_bracket_exp, build_charclass_op):
79119         Call calloc and cast result, as glibc does.
79120         (init_word_char, fetch_token, peek_token, peek_token_bracket):
79121         (build_range_exp, build_collating_symbol):
79122         Now internal functions.
79123
79124         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
79125
79126         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
79127         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
79128         Don't depend on VMS; depend on __VMS instead, for POSIX
79129         namespace cleanness.
79130         (regoff_t): Define to ssize_t, not long int.
79131
79132         Remove the REG_ macros named below.  Instead, make the old names
79133         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79134         __USE_GNU_REGEX.
79135         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79136         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79137         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79138         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79139         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79140         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79141         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79142         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79143         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79144         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79145         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79146         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79147         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79148         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79149         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79150         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79151         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79152         (REG_NREGS):
79153         Remove.  All uses replaced by the old RE_* names.
79154         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79155         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79156         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79157         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79158         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79159         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79160         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79161         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79162         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79163         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79164         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79165         Don't bother having these macros be independent of each others'
79166         values, since they no longer exist in the POSIX name space.
79167
79168         Rename the following member names back to their old names,
79169         unless !__USE_GNU_REGEX.  All uses changed back.
79170         (buffer): Renamed from re_buffer.
79171         (allocated): Renamed from re_allocated.
79172         (used): Renamed from re_used.
79173         (syntax): Renamed from re_syntax.
79174         (fastmap): Renamed from re_fastmap.
79175         (translate): Renamed from re_translate.
79176         (can_be_null): Renamed from re_can_be_null.
79177         (regs_allocated): Renamed from re_regs_allocated.
79178         (fastmap_accurate): Renamed from re_fastmap_accurate.
79179         (no_sub): Renamed from re_no_sub.
79180         (not_bol): Renamed from re_not_bol.
79181         (not_eol): Renamed from re_not_eol.
79182         (newline_anchor): Renamed from re_newline_anchor.
79183         (num_regs): Renamed from rm_num_regs.
79184         (start): Renamed from rm_start.
79185         (end): Renamed from rm_end.
79186
79187         (free_state): Move up a bit.
79188
79189         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79190         #define to be empty.
79191         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79192         when that is what is intended.
79193         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79194         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79195         (MAX): New macro.
79196         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79197         All uses changed back to re_malloc, etc.  It's now the caller's
79198         responsibility to check for overflow; all callers changed.
79199         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79200         (re_x2nrealloc): Remove.
79201         (free_state): Remove decl.
79202
79203         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79204         (re_set_registers, re_exec):
79205         Use K&R-style defn.
79206
79207         2006-01-31  Roland McGrath  <roland@redhat.com>
79208
79209         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79210         Reported by Mike Frysinger <vapier@gentoo.org>.
79211
79212         2006-01-15  Andreas Jaeger  <aj@suse.de>
79213
79214         [BZ #1950]
79215         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79216         build_wcs_upper_buffer change.
79217         (build_wcs_upper_buffer): Change return type.
79218
79219         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79220
79221         * lib/regex_internal.h: Include <stdint.h> if available.
79222
79223         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79224
79225         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79226
79227         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79228
79229         * lib/regcomp.c: Adjust for changed secondary hash function.
79230
79231         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79232
79233         * lib/regex.h: Pretty printing.
79234         Clean up namespace a bit.
79235
79236         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79237
79238         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79239         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79240
79241         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79242                     Ulrich Drepper  <drepper@redhat.com>
79243
79244         [BZ #1302]
79245         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79246         changed.
79247         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79248
79249         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79250
79251         [BZ #281]
79252         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79253         * lib/regcomp.c: Remove unnecessary uses of
79254         unsigned RE_TRANSLATE_TYPE.
79255         * lib/regex_internal.h: Likewise.
79256         * lib/regex_internal.c: Likewise.
79257         * lib/regexec.c: Likewise.
79258         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79259
79260         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79261
79262         * lib/regexec.c (find_recover_state): Remove unnecessary
79263         initialization.
79264         (transit_state_bkref): Make DFA a const pointer.
79265         (get_subexp): Likewise.
79266         (check_arrival): Likewise.
79267         (update_cur_sifted_state): Likewise.
79268         (re_search_internal): Likewise.
79269         (prune_impossible_nodes): Likewise.
79270         (acquire_init_state_context): Likewise.
79271         (proceed_next_node): Likewise.
79272         (set_regs): Likewise.
79273         (free_fail_stack_return): Likewise.
79274         (check_arrival_expand_ecl): Mark DFA parameter as const.
79275         (check_arrival_expand_ecl_sub): Likewise.
79276         (check_subexp_limits): Likewise.
79277         (sub_epsilon_src_nodes):  Likewise.
79278         (add_epsilon_src_nodes):  Likewise.
79279         (merge_state_array): Likewise.
79280         (update_regs): Likewise.
79281         (build_trtable): Likewise.
79282         (sift_states_backward): Mark MCTX parameter as const.
79283         (build_sifted_states): Likewise.
79284         (update_cur_sifted_state): Likewise.
79285         (sift_states_mkref): Likewise.
79286         (check_arrival_expand_ecl): Mark eclosure as const.
79287         (check_dst_limits_calc_pos_1): Likewise.
79288         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79289         pointer.
79290
79291         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79292
79293         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79294         (transit_state_sb): Likewise.
79295         (transit_state_mb): Likewise.
79296         (sift_states_iter_mb): Likewise.
79297         (check_arrival_add_next_nodes): Likewise.
79298         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79299         [_LIBC] (re_search_2_stub): Use mempcpy.
79300
79301         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79302         mbrtowc for very simple UTF-8 case.
79303
79304         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79305         a pointer-to-const.
79306         (re_acquire_state_context): Likewise.
79307         * lib/regex_internal.h: Adjust prototypes.
79308
79309         * lib/regex.c: Prevent using C++ compilers.
79310
79311         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79312         (re_acquire_state_context): Likewise.
79313
79314 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79315
79316         * modules/regex (Depends-on): Add ssize_t.
79317
79318 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79319
79320         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79321         translation table.
79322
79323 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79324
79325         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79326
79327 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79328             Bruno Haible  <bruno@clisp.org>
79329
79330         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79331         <sys/types.h> and <inttypes.h>.
79332
79333 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79334
79335         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79336         `__error_t_defined', so argp.h will not typedef the former.
79337
79338 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79339
79340         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79341         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79342         glibc names.  Even if glibc is changed to conform to POSIX, the
79343         traditional names will be available anyway, since regex depends on
79344         the extensions module.  Also, fix a longstanding typo in the
79345         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79346         reported by Emanuele Giaquinta.  Also, change sense of cached
79347         variable, so that the message makes sense.
79348
79349 2006-03-24  Simon Josefsson  <jas@extundo.com>
79350
79351         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79352         including some doc fixes.
79353         (base64_encode_alloc): Fix +1 bug on allocation failures.
79354
79355 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79356
79357         * lib/base64.c (base64_encode): Do not read past end of array with
79358         unsanitized input on systems with CHAR_BIT > 8.
79359
79360 2006-03-24  Eric Blake  <ebb9@byu.net>
79361
79362         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79363
79364 2006-03-22  Karl Berry  <karl@gnu.org>
79365
79366         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79367         * config/srclistvars.sh (COREUTILS): new var.
79368
79369 2006-03-17  Jim Meyering  <jim@meyering.net>
79370
79371         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79372         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79373
79374 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79375
79376         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79377         no longer needs it.  Instead, check that regoff_t is as least
79378         as wide as ptrdiff_t.
79379
79380         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79381         so that our regex.h stays compatible with the installed regex.
79382         This is helpful for installers who configure --without-included-regex.
79383         Problem reported by Emanuele Giaquinta.
79384
79385 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79386
79387         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79388         Typedef to long int, not to off_, as POSIX will likely change
79389         in that direction.
79390
79391 2006-03-15  Eric Blake  <ebb9@byu.net>
79392
79393         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79394
79395 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79396
79397         * lib/argp-help.c (validate_uparams): Fix typo
79398         * lib/argp-parse.c (argp_default_options): Consistently begin help
79399         messages with a lowercase letter.
79400
79401 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79402
79403         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79404         overrun buffers and shouldn't be used (much as gets shouldn't be
79405         used).
79406         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79407
79408 2006-03-08  Simon Josefsson  <jas@extundo.com>
79409
79410         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79411         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79412
79413 2006-03-08  Simon Josefsson  <jas@extundo.com>
79414
79415         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79416         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79417
79418 2006-03-08  Simon Josefsson  <jas@extundo.com>
79419
79420         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79421         signal that configure disabled the device.
79422
79423 2006-03-08  Simon Josefsson  <jas@extundo.com>
79424
79425         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79426         languages.
79427
79428 2006-03-07  Simon Josefsson  <jas@extundo.com>
79429
79430         * modules/getopt (Depends-on): Add unistd.
79431
79432         * modules/unistd: New file.
79433
79434 2006-03-07  Simon Josefsson  <jas@extundo.com>
79435
79436         * modules/gc-random: New file.
79437
79438 2006-03-07  Simon Josefsson  <jas@extundo.com>
79439
79440         * m4/unistd_h.m4: New file.
79441
79442 2006-03-07  Simon Josefsson  <jas@extundo.com>
79443
79444         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79445         test to be side-effect free by storing the result in the cache
79446         variable gl_cv_lib_readline, and moving the assignment of
79447         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79448         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79449
79450 2006-03-07  Simon Josefsson  <jas@extundo.com>
79451
79452         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79453         error on missing devices (the functions will return an error).
79454
79455         * m4/gc.m4: Move random stuff to gc-random.m4
79456
79457 2006-03-07  Simon Josefsson  <jas@extundo.com>
79458
79459         * lib/unistd_.h: New file.
79460
79461 2006-03-07  Simon Josefsson  <jas@extundo.com>
79462
79463         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79464
79465 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79466
79467         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79468         Problem reported by Juan Manuel Guerrero.
79469
79470 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79471
79472         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79473         the unistd module.
79474         * lib/getlogin_r.c: Likewise.
79475         * lib/getlogin_r.h: Likewise.
79476         * lib/glob.c: Likewise.
79477         * lib/pagealign_alloc.c: Likewise.
79478         * lib/unistd_.h: Remove; no longer needed.
79479
79480 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79481
79482         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79483         Add unistd.
79484         * modules/c-stack (Depends-on): Add unistd.
79485         * modules/getlogin_r: Likewise.
79486         * modules/glob: Likewise.
79487         * modules/pagealign_alloc: Likewise.
79488         * modules/unistd (Files): Remove lib/unistd_.h.
79489         (EXTRA_DIST): Remove.
79490         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79491         need unistd_.h.
79492         (MOSTLYCLEANFILES): Remove unistd.h-t.
79493
79494 2006-03-03  Simon Josefsson  <jas@extundo.com>
79495
79496         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79497
79498 2006-03-03  Simon Josefsson  <jas@extundo.com>
79499
79500         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79501         libidn and bison.
79502
79503 2006-03-03  Simon Josefsson  <jas@extundo.com>
79504
79505         * build-aux/maint.mk: Add indent target.
79506
79507 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79508
79509         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79510         our replacement poll.h in any case, to avoid a differing
79511         declaration from a system header.  Seen on AIX.
79512
79513 2006-03-01  Simon Josefsson  <jas@extundo.com>
79514
79515         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79516         <kasal@ucw.cz>.
79517
79518 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79519
79520         * modules/gettime (Depends-on): Add extensions module.
79521         * modules/nanosleep (Depends-on): Likewise.
79522         * modules/settime (Depends-on): Likewise.
79523
79524 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79525
79526         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79527         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79528         pedantically.
79529         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79530         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79531
79532         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79533         not "==".  Reported by Ralf Wildenhues.
79534
79535 2006-03-01  Karl Berry  <karl@gnu.org>
79536
79537         * doc/Copyright/request-*: new files, synced from gnuorg.
79538
79539 2006-03-01  Karl Berry  <karl@gnu.org>
79540
79541         * config/srclist.txt (Copyright/*): new entries.
79542
79543 2006-02-28  Simon Josefsson  <jas@extundo.com>
79544
79545         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79546
79547 2006-02-27  Simon Josefsson  <jas@extundo.com>
79548
79549         * lib/base64.h: Indent #define's.  From Jim Meyering
79550         <jim@meyering.net>.
79551
79552 2006-02-27  Jim Meyering  <jim@meyering.net>
79553
79554         Revert the change of 2006-02-24, so these files can continue
79555         to be sync'd from gettext.
79556         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79557         of `config.h'.
79558
79559 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79560
79561         * modules/intprops: New file.
79562         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79563         Add intprops.
79564         * modules/getloadavg (Files): Remove lib/intprops.h.
79565         (Depends-on): Add intprops.
79566         * modules/human: Likewise.
79567         * modules/inttostr: Likewise.
79568         * modules/openat: Likewise.
79569         * modules/sig2str: Likewise.
79570         * modules/userspec: Likewise.
79571         * modules/utimecmp: Likewise.
79572         * modules/xnanosleep: Likewise.
79573         * modules/xstrtol: Likewise.
79574
79575 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79576
79577         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79578         * modules/lock-tests (TESTS): Use $(EXEEXT).
79579         * modules/tls-tests: Likewise.
79580         * modules/argp-tests: Likewise.
79581         (check_PROGRAMS): New var, replacing...
79582         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79583
79584 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79585
79586         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79587         `config.h'.
79588
79589 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79590
79591         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79592
79593 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79594
79595         Sync from coreutils.
79596         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79597         gl_CHDIR_SAFER.
79598
79599 2006-02-22  Jim Meyering  <jim@meyering.net>
79600
79601         Sync from coreutils.
79602         * m4/chdir-safer.m4: New file.
79603
79604 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79605
79606         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79607         AT_FDCWD exceeds INT_MAX.
79608         * lib/openat.h (AT_FDCWD): Likewise.
79609
79610 2006-02-17  Eric Blake  <address@hidden>
79611
79612         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79613
79614 2006-02-16  Simon Josefsson  <jas@extundo.com>
79615
79616         * modules/getaddrinfo (Depends-on): Add sys_socket.
79617
79618 2006-02-15  Simon Josefsson  <jas@extundo.com>
79619
79620         * build-aux/maint.mk: Add dsyntax-check rule.
79621
79622 2006-02-15  Eric Blake  <ebb9@byu.net>
79623
79624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79625         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79626         'present but cannot compile' warnings on cygwin.
79627         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79628         use ws2tcpip.h if sys/socket.h works.
79629         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79630         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79631
79632 2006-02-14  Simon Josefsson  <jas@extundo.com>
79633
79634         * modules/maintainer-makefile (Files): Rename.
79635
79636         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79637         and (the local) Makefile.cfg to maint-cfg.mk.
79638
79639         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79640         to the latter.
79641
79642         * modules/maintainer-makefile: New module.
79643
79644         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79645         severaly stripped to make it possible to build it up from scratch
79646         with reliable tests.
79647
79648         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79649         fixes to permit overriding the default actions when configure and
79650         makefile are not available.
79651
79652 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79653
79654         Sync from coreutils.
79655         * modules/lstat (Depends-on): Don't depend on xalloc.
79656         (License): Change from GPL to LGPL, since this is now simply a
79657         replacement for a libc function.
79658
79659 2006-02-14  Jim Meyering  <jim@meyering.net>
79660
79661         Sync from coreutils.
79662
79663         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79664         failure on deficient systems, and simplify gnulib lgpl dependencies.
79665         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79666         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79667
79668         * lib/xalloc-die.c: Remove unused definition of N_.
79669
79670 2006-02-14  Jim Meyering  <jim@meyering.net>
79671
79672         Sync from coreutils.
79673         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79674         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79675         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79676         double-quote uses of that variable, to accommodate the rare case in
79677         which getmntent is available in none of the libraries checked.  This
79678         happens at least on FreeBSD 5.0.
79679
79680 2006-02-13  Simon Josefsson  <jas@extundo.com>
79681
79682         * gnulib-tool (Usage): Fix --import, from
79683         karl@freefriends.org (Karl Berry).
79684
79685 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79686
79687         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79688
79689 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79690
79691         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79692         "autoupdate" on 2005-12-12.
79693
79694 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * modules/closeout (Depends-on): Remove atexit.
79697
79698 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79699
79700         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79701         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79702
79703 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79704
79705         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79706         __EXTENSIONS__ if this causes compilation to fail.  Problem
79707         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79708         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79709
79710 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79711
79712         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79713         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79714         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79715         All uses changed.
79716
79717 2006-01-26  Simon Josefsson  <jas@extundo.com>
79718
79719         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79720         prototype is visible on mingw32.
79721
79722         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79723         for mingw32.
79724
79725         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79726         mingw32).
79727
79728 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79729
79730         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79731         attempt to open for write; this always fails, at least on POSIX
79732         hosts.  This reinstates the 2006-01-09 change, which was
79733         inadvertently removed.
79734
79735 2006-01-26  Bruno Haible  <bruno@clisp.org>
79736
79737         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79738         Reported by Paul Eggert.
79739
79740 2006-01-26  Bruno Haible  <bruno@clisp.org>
79741             Paul Eggert  <eggert@cs.ucla.edu>
79742
79743         * lib/stdbool_.h (_Bool)
79744         [(! (defined __cplusplus || defined __BEOS__)
79745           && !defined __GNUC__
79746           && !(defined __HP_cc || defined __xlc__
79747                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79748                || defined __sgi))]:
79749         #define to signed char in these cases too; this simplifies
79750         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79751         etc., separately) and makes it more conservative.
79752
79753 2006-01-25  Simon Josefsson  <jas@extundo.com>
79754
79755         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79756         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79757         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79758
79759 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79760
79761         * lib/argp-namefrob.h: Bugfix. Remove stray #
79762
79763 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79764
79765         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79766         so that we test the test.
79767         Check for yet another HP-UX cc bug involving *bool |= bool.
79768
79769 2006-01-25  Karl Berry  <karl@gnu.org>
79770
79771         * config/srclist.txt (vasnprintf.c): sync lost.
79772
79773 2006-01-25  Jim Meyering  <jim@meyering.net>
79774
79775         Sync from the stable (b5) branch of coreutils:
79776
79777         * lib/fts.c (fts_children): Don't let close() clobber errno from
79778         failed fchdir().
79779
79780         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79781         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79782         a dangling symlink.  That can also happen at least for ELOOP.
79783         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79784         FYI, this bug predates the inclusion of fts.c in coreutils.
79785
79786         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79787         in their own block, so pre-c99 compilers don't object.
79788
79789         Avoid the double-free (first in fts_read, second in fts_close) that
79790         would occur when an `active' directory is made inaccessible (e.g.,
79791         via chmod a-x) during a traversal.
79792         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79793         before returning.  Reproduce this failure by
79794         mkdir -p a/b; cd a; chmod a-x . b
79795         Reported by Stavros Passas.
79796
79797 2006-01-25  Jim Meyering  <jim@meyering.net>
79798
79799         * lib/fileblocks.c: Remove more useless parentheses.
79800         * lib/readutmp.h: Likewise.
79801
79802 2006-01-25  Bruno Haible  <bruno@clisp.org>
79803
79804         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79805         warnings.
79806         Reported by Paul Eggert.
79807
79808 2006-01-25  Bruno Haible  <bruno@clisp.org>
79809
79810         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79811         rid of a trap command. For Solaris sh.
79812         Reported by Mark D. Baushke <mdb@gnu.org>.
79813
79814 2006-01-24  Simon Josefsson  <jas@extundo.com>
79815
79816         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79817         Bruno.
79818
79819 2006-01-24  Karl Berry  <karl@gnu.org>
79820
79821         * config/srclist.txt (argp-namefrob.h): sync lost.
79822
79823 2006-01-24  Jim Meyering  <jim@meyering.net>
79824
79825         * modules/openat (Files): Add lib/intprops.h.
79826         From Mark D. Baushke.
79827
79828 2006-01-24  Jim Meyering  <jim@meyering.net>
79829
79830         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79831         Reported by Mark D. Baushke.
79832
79833 2006-01-24  Jim Meyering  <jim@meyering.net>
79834
79835         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79836
79837 2006-01-24  Bruno Haible  <bruno@clisp.org>
79838
79839         * modules/strnlen (Maintainer): Change from glibc to all.
79840
79841 2006-01-24  Bruno Haible  <bruno@clisp.org>
79842
79843         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79844         Patch by Paul Eggert.
79845
79846 2006-01-24  Bruno Haible  <bruno@clisp.org>
79847
79848         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79849         already has it.
79850         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79851         2005-11-26.
79852
79853         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79854         'signed char' to avoid problems with the built-in _Bool type.
79855         Reported by Paul Eggert on 2005-11-26.
79856
79857 2006-01-24  Bruno Haible  <bruno@clisp.org>
79858
79859         * gnulib-tool (func_import): Avoid constructing complicated sed
79860         expressions inside backquote.
79861         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79862
79863 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79864
79865         These changes imported from libc.
79866         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79867         test and two separate function calls.
79868         * lib/strndup.c (__strndup): Add libc_hidden_def.
79869
79870 2006-01-23  Simon Josefsson  <jas@extundo.com>
79871
79872         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79873         Remove the test_*_SOURCES variable: automake infers it by default.
79874         * modules/tls-tests: Likewise.
79875
79876 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79877
79878         Work around porting bugs reported by Dieter in
79879         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79880         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79881         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79882         Include "getopt.h" first, to check interface.
79883         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79884         !HAVE_DECL_GETENV.
79885         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79886         (__strndup): Revert to K&R-style function dfns, the glibc style.
79887         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79888         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79889         Include strnlen.h first, to get prototype properly.
79890         (strnlen): Renamed from __strnlen.
79891         Remove weak alias.
79892
79893 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79894
79895         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79896
79897 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         * config/srclist.txt: Adjust to reflect glibc reorganization.
79900         This affects only comments.
79901
79902 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79903
79904          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79905          Reported by Bruce Korb <bkorb@gnu.org>.
79906
79907 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79908
79909         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79910         to pacify gcc -Wswitch-default.
79911
79912 2006-01-22  Bruno Haible  <bruno@clisp.org>
79913
79914         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79915         temporary buffer for sprintf, take into account the precision also
79916         for 'd', 'i', 'u', 'o', 'x', 'X'.
79917
79918 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79919
79920         * modules/argp-tests: New module
79921         * tests/test-argp.c: New file
79922         * tests/test-argp-2.sh: New file
79923
79924 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79925
79926         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79927         (__argp_base_name): Removed
79928         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79929         typo.
79930         (__argp_base_name): Provide macro definition or extern declaration
79931         depending on the configuration
79932
79933 2006-01-20  Simon Josefsson  <jas@extundo.com>
79934
79935         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79936
79937 2006-01-20  Simon Josefsson  <jas@extundo.com>
79938
79939         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79940
79941 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79942
79943         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79944         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79945         Suggested by Bruno Haible.
79946
79947 2006-01-20  Karl Berry  <karl@gnu.org>
79948
79949         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79950         until changes propagate, I guess.
79951
79952 2006-01-19  Simon Josefsson  <jas@extundo.com>
79953
79954         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79955
79956 2006-01-19  Simon Josefsson  <jas@extundo.com>
79957
79958         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79959
79960 2006-01-19  Simon Josefsson  <jas@extundo.com>
79961
79962         * gnulib-tool: Set check_PROGRAMS.
79963
79964         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79965         modules/des-tests, modules/gc-arcfour-tests,
79966         modules/gc-arctwo-tests, modules/gc-des-tests,
79967         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79968         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79969         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79970         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79971         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79972         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79973         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79974         test_*_SOURCES.
79975
79976 2006-01-18  Simon Josefsson  <jas@extundo.com>
79977
79978         * modules/socklen (Depends-on): Depend on sys_socket.
79979
79980 2006-01-18  Simon Josefsson  <jas@extundo.com>
79981
79982         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79983         modules/des-tests, modules/gc-arcfour-tests,
79984         modules/gc-arctwo-tests, modules/gc-des-tests,
79985         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79986         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79987         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79988         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79989         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79990         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79991         $(EXEEXT) to automake TESTS variable, for mingw32.
79992
79993 2006-01-17  Simon Josefsson  <jas@extundo.com>
79994
79995         * modules/socklen (Include): Need sys/socket.h.
79996
79997 2006-01-17  Bruno Haible  <bruno@clisp.org>
79998
79999         * modules/ssize_t (Include): Add <sys/types.h>.
80000
80001 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
80002
80003         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
80004         it's not portable and it doesn't work with cross-compiles.
80005         Problem reported by Bruno Haible.  Fix missing-$ typo in
80006         'test "gl_cv_ignore_unused_libraries" ...' that prevented
80007         -zignore from being used with Sun's C compiler.
80008
80009 2006-01-12  Simon Josefsson  <jas@extundo.com>
80010
80011         * lib/base64.c: Fix warning, reported by Bruno Haible
80012         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
80013
80014 2006-01-12  Bruno Haible  <bruno@clisp.org>
80015
80016         * modules/ldd: New file.
80017         * build-aux/ldd.sh.in: New file.
80018         * MODULES.html.sh (Support for building libraries and executables): Add
80019         ldd.
80020
80021 2006-01-12  Bruno Haible  <bruno@clisp.org>
80022
80023         * m4/ldd.m4: New file.
80024
80025 2006-01-12  Bruno Haible  <bruno@clisp.org>
80026
80027         * gnulib-tool (func_import, func_create_testdir): Don't go into an
80028         endless loop while replacing $auxdir with build-aux.
80029
80030 2006-01-11  Simon Josefsson  <jas@extundo.com>
80031
80032         * lib/stdint_.h (SIZE_MAX): Add missing (.
80033
80034 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
80035
80036         Sync from coreutils.
80037         * lib/md5.c: Fix commentary typos.
80038         (alignof, UNALIGNED_P): No need for a GCC-specific version.
80039         * lib/md5.h (__attribute__): Remove; unused.
80040         * lib/sha1.c: Fix commentary to match md5 better.
80041         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
80042         so that we don't need to worry about alignment.  All uses changed.
80043         This merges the 2005-10-28 md5 change into sha1.
80044
80045 2006-01-11  Jim Meyering  <jim@meyering.net>
80046
80047         Sync from coreutils.
80048         * lib/md5.c (OP): Fix spacing.
80049
80050 2006-01-11  Bruno Haible  <bruno@clisp.org>
80051
80052         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80053         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
80054         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
80055
80056 2006-01-11  Bruno Haible  <bruno@clisp.org>
80057
80058         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80059         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
80060         the "early" section as well.
80061
80062 2006-01-11  Bruno Haible  <bruno@clisp.org>
80063
80064         Avoid "ar: no archive members specified" error on MacOS X.
80065         * gnulib-tool (func_modules_add_dummy): New function.
80066         (func_import, func_create_testdir): Invoke it.
80067
80068 2006-01-11  Bruno Haible  <bruno@clisp.org>
80069
80070         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
80071         with $auxdir in AC_CONFIG_FILES statements.
80072
80073 2006-01-11  Bruno Haible  <bruno@clisp.org>
80074
80075         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80076         Initialize also noinst_HEADERS to empty.
80077
80078 2006-01-11  Bruno Haible  <bruno@clisp.org>
80079
80080         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
80081         variables.
80082         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
80083         autoreconf.
80084
80085 2006-01-11  Bruno Haible  <bruno@clisp.org>
80086
80087         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
80088         overridable by the user.
80089         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80090
80091 2006-01-10  Simon Josefsson  <jas@extundo.com>
80092
80093         * modules/sys_socket: New file.
80094
80095 2006-01-10  Simon Josefsson  <jas@extundo.com>
80096
80097         * m4/sys_socket_h.m4: New file.
80098
80099 2006-01-10  Simon Josefsson  <jas@extundo.com>
80100
80101         * lib/socket_.h: New file.
80102
80103 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80104
80105         * modules/readutmp (Maintainer): Add myself.
80106
80107 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80108
80109         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
80110         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
80111         People who are still concerned with buggy memcmp implementations
80112         can invoke gl_FUNC_MEMCMP themselves.
80113
80114 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80115
80116         * lib/regex_internal.h (BITSET_WORD_BITS):
80117         Work around a bug in 64-bit PGC (before version 6.1-2), where the
80118         preprocessor mishandles large unsigned values as if they were signed.
80119         Problem reported by Claudio Fontana in
80120         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
80121
80122 2006-01-10  Jim Meyering  <jim@meyering.net>
80123
80124         Avoid the double-free (first in fts_read, second in fts_close) that
80125         would occur when an `active' directory is made inaccessible (e.g.,
80126         via chmod a-x) during a traversal.
80127         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80128         before returning.  Reproduce this failure by
80129         mkdir -p a/b; cd a; chmod a-x . b
80130         Reported by Stavros Passas.
80131
80132         Sync from coreutils.
80133         * lib/sha1.c: Tweak grammar in a comment.
80134
80135 2006-01-10  Jim Meyering  <jim@meyering.net>
80136
80137         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80138         Patch by Joerg Sonnenberger.
80139
80140 2006-01-10  Bruno Haible  <bruno@clisp.org>
80141
80142         * modules/readutmp: Depend on module free.
80143         * modules/strtok_r: Depend on module restrict.
80144
80145 2006-01-10  Bruno Haible  <bruno@clisp.org>
80146
80147         * modules/gettext (configure.ac): Add an invocation of
80148         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80149
80150 2006-01-10  Bruno Haible  <bruno@clisp.org>
80151
80152         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80153         Reported by Werner Lemberg <wl@gnu.org>.
80154
80155 2006-01-10  Bruno Haible  <bruno@clisp.org>
80156
80157         * lib/localcharset.c: Update from GNU gettext.
80158
80159 2006-01-10  Bruno Haible  <bruno@clisp.org>
80160
80161         * lib/argp.h (__const): Remove macro. Use const instead.
80162         * lib/argp-fmtstream.h (__const): Likewise.
80163         * lib/glob_.h (__const): Remove macro.
80164         * lib/glob-libc.h: Use const instead of __const.
80165
80166 2006-01-10  Bruno Haible  <bruno@clisp.org>
80167
80168         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80169         variable.
80170         Needed to avoid an automake error regarding the 'gettext' module.
80171
80172 2006-01-09  Simon Josefsson  <jas@extundo.com>
80173
80174         * modules/inet_ntop (Depends-on): Add restrict.
80175
80176 2006-01-09  Simon Josefsson  <jas@extundo.com>
80177
80178         * modules/gc-rijndael-tests (License): Put under LGPL.
80179
80180         * modules/gc-des-tests (License): Likewise.
80181
80182         * modules/gc-arcfour-tests (License): Likewise.
80183
80184         * modules/gc-arctwo-tests (License): Likewise.
80185
80186         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80187
80188         * modules/gc-hmac-sha1-tests (Files): Likewise.
80189
80190         * modules/gc-hmac-md5-tests (License): Likewise.
80191
80192         * modules/gc-sha1-tests (License): Likewise.
80193
80194         * modules/gc-md5-tests (License): Likewise.
80195
80196         * modules/gc-md4-tests (License): Likewise.
80197
80198         * modules/gc-md2-tests (License): Likewise.
80199
80200         * modules/gc-tests (License): Likewise.
80201
80202         * modules/des-tests (License): Likewise.
80203
80204         * modules/md4-tests (License): Likewise.
80205
80206         * modules/md2-tests (License): Likewise.
80207
80208 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80209
80210         Sync from coreutils:
80211
80212         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80213         * modules/lib-ignore: New file.
80214         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80215         chdir-safer.m4, lchmod.m4.
80216         * modules/openat: Add mkdirat.c, openat-priv.h.
80217
80218 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80219
80220         Sync from coreutils.
80221         * m4/lib-ignore.m4: New file.
80222         * m4/lchmod.m4: New file.
80223
80224 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80225
80226         Sync from coreutils.
80227         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80228         for write access: POSIX says that must fail.
80229         * lib/fts.c (diropen): Likewise.
80230         * lib/save-cwd.c (save_cwd): Likewise.
80231         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80232         well, for minor improvements on hosts that lack O_DIRECTORY.
80233         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80234         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80235         Fall back on chown if open failed with EACCES.
80236
80237         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80238         Report an error at compile-time if only a 1-second nominal clock
80239         resolution is found.
80240
80241         * lib/lchmod.h: New file.
80242         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80243         (make_dir_parents): Use lchown rather than chown, and
80244         lchmod rather than chmod.
80245
80246         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80247         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80248         "proc" reported by n0dalus.
80249
80250         * lib/mountlist.c: Include <limits.h>.
80251         (dev_from_mount_options)
80252         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80253         New function.  It no longer assumes "dev=" has the System V meaning
80254         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80255         (read_file_system_list)
80256         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80257         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80258         dev= in that case.
80259
80260         * lib/posixtm.h (PDS_PRE_2000): New macro.
80261         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80262         allow_century.  All usages changed.  Reject dates outside the range
80263         1969-1999 if PDS_PRE_2000 is used.
80264
80265 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80266
80267         Sync from coreutils.
80268         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80269         (Time of day items): Mention the possibility of leap seconds.
80270         Problem reported by Dr. David Alan Gilbert.
80271
80272 2006-01-09  Jim Meyering  <jim@meyering.net>
80273
80274         Sync from coreutils.
80275
80276         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80277
80278         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80279
80280         * lib/modechange.c (mode_compile): Reject an invalid mode string
80281         that starts with an octal digit.  From Andreas Gruenbacher.
80282
80283         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80284         and dup to open_safer and dup_safer, respectively.
80285         (openat_permissive): Fix typo in comment.
80286
80287         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80288         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80289         (_): Remove; no longer needed.
80290         (openat): Renamed from rpl_openat; no need for rpl_openat
80291         since openat.h renames openat for us.
80292         Replace most of the body with a call to openat_permissive,
80293         to avoid duplicate code.
80294         Port to (probably hypothetical) environments were mode_t is
80295         wider than int.
80296         (openat_permissive): Require mode arg, so that we can check
80297         types better.  Put it just after flags.  Change cwd failure
80298         indicator from pointer-to-bool to pointer-to-errno-value.
80299         All callers changed.
80300         Invoke openat_save_fail and/or openat_restore_fail if
80301         cwd_errno is null, so that openat can call us.
80302         (openat_permissive, fdopendir, fstatat, unlinkat):
80303         Simplify errno handling to avoid some duplicate code,
80304         as it's OK to set errno on success.
80305         * lib/openat.h: Revamp code so that function macros depend on
80306         __OPENAT_PREFIX only, not also on AT_FDCWD.
80307         (openat_ro): Remove.  Caller changed to use openat_permissive.
80308         (openat_permissive): Now a macro, if not a function.
80309         (openat_restore_fail, openat_save_fail): Now always functions,
80310         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80311
80312         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80313         and openat.c.
80314         * lib/mkdirat.c: Include openat-priv.h.
80315         Remove definitions of macros defined therein.
80316         * lib/openat.c: Likewise.
80317
80318         * lib/mkdirat.c (mkdirat): New file and function.
80319         * lib/openat.h (mkdirat): Declare.
80320
80321         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80322
80323         * lib/openat.h (openat_permissive): Declare.
80324         (openat_ro): Define.
80325
80326         * lib/openat.c (EXPECTED_ERRNO): New macro.
80327         (openat_permissive): New function -- used in remove.c rewrite.
80328         (all functions): Set errno just before returning, only if there
80329         was an actual failure.
80330         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80331
80332         Emulate openat-family functions using Linux's procfs, if possible.
80333         Idea and some code based on Ulrich Drepper's glibc changes.
80334
80335         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80336         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80337         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80338         before falling back on save_cwd and restore_cwd.
80339         (fdopendir, fstatat, unlinkat): Likewise.
80340
80341         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80342         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80343
80344         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80345         as second argument to va_arg.  Otherwise, some versions of gcc
80346         warn that `if this code is reached, the program will abort'.
80347
80348 2006-01-09  Jim Meyering  <jim@meyering.net>
80349
80350         Sync from coreutils.
80351         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80352         Require openat-priv.h.
80353
80354 2006-01-09  Bruno Haible  <bruno@clisp.org>
80355
80356         * modules/strnlen (Include): Use strnlen.h.
80357
80358 2006-01-09  Bruno Haible  <bruno@clisp.org>
80359
80360         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80361
80362 2006-01-09  Bruno Haible  <bruno@clisp.org>
80363
80364         * lib/sysexit_.h (EX_OK): New macro.
80365         Suggested by Martin Lambers <marlam@marlam.de>.
80366
80367 2006-01-09  Bruno Haible  <bruno@clisp.org>
80368
80369         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80370         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80371
80372 2006-01-09  Bruno Haible  <bruno@clisp.org>
80373
80374         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80375         numbers.
80376
80377 2006-01-09  Bruno Haible  <bruno@clisp.org>
80378
80379         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80380         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80381         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80382         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80383
80384 2006-01-09  Bruno Haible  <bruno@clisp.org>
80385
80386         * build-aux/javacomp.sh.in: New file, moved from lib/.
80387         * modules/javacomp-script (Files): Update.
80388         (configure.ac): Add AC_CONFIG_FILES invocation.
80389         (EXTRA_DIST): Remove variable.
80390
80391         * build-aux/javaexec.sh.in: New file, moved from lib/.
80392         * modules/javaexec (Files): Update.
80393         (configure.ac): Add AC_CONFIG_FILES invocation.
80394         (EXTRA_DIST): Remove javaexec.sh.in.
80395
80396         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80397         * modules/csharpcomp-script (Files): Update.
80398         (configure.ac): Add AC_CONFIG_FILES invocation.
80399         (EXTRA_DIST): Remove variable.
80400
80401         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80402         * modules/csharpexec (Files): Update.
80403         (configure.ac): Add AC_CONFIG_FILES invocation.
80404         (EXTRA_DIST): Remove csharpexec.sh.in.
80405
80406 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80407
80408         Sync from coreutils.
80409
80410         Add POSIX ACL support
80411         * lib/acl.h (copy_acl, set_acl): Add declarations.
80412         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80413         systems other than Linux.
80414         (chmod_or_fchmod): New function: use fchmod when possible,
80415         and chmod otherwise.
80416         (file_has_acl): Add a POSIX ACL implementation, with a
80417         Linux-specific subcase.
80418         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80419         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80420         acls are unsupported.
80421         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80422         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80423         are unsupported.
80424
80425 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80426
80427         Sync from coreutils.
80428         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80429
80430 2006-01-07  Bruno Haible  <bruno@clisp.org>
80431
80432         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80433         gl_EARLY.
80434
80435 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80436
80437         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80438         Problem reported for Mingw by Mark Junker.
80439
80440 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80441
80442         * README: Gnulib normally doesn't generate a tarball.
80443
80444 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80445
80446         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80447         long int, not int, for nanosecond counts, so that people who are
80448         used to POSIX struct timespec won't be surprised.  Reported by Jim
80449         Meyering.
80450
80451 2005-12-28  Bruno Haible  <bruno@clisp.org>
80452
80453         * build-aux/config.rpath: Update from GNU gettext.
80454
80455 2005-12-16  Jim Meyering  <jim@meyering.net>
80456
80457         * modules/fprintftime: New module.
80458         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80459
80460 2005-12-16  Jim Meyering  <jim@meyering.net>
80461
80462         * m4/fprintftime.m4: New file.
80463
80464 2005-12-16  Jim Meyering  <jim@meyering.net>
80465
80466         * lib/fprintftime.c, lib/fprintftime.h: New files.
80467
80468 2005-12-15  Simon Josefsson  <jas@extundo.com>
80469
80470         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80471         new m4/socklen.m4.
80472
80473 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80474
80475         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80476         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80477
80478 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80479
80480         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80481         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80482         struct uparams is valid. Fall back to the default values if it is
80483         not.
80484
80485 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80486
80487         * modules/argp (Files): Add argp-pin.c
80488         (Depends-on): dirname
80489         (lib_SOURCES): Add argp-pin.c
80490
80491 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80492
80493         * m4/argp.m4:  Check if program_invocation_name and
80494         program_invocation_short_name are declared and define appropriate
80495         macros if they are not.
80496
80497 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80498
80499         * lib/argp-help.c (__argp_base_name): New function
80500         (__argp_short_program_name): Rewrite using __argp_base_name
80501         * lib/argp-namefrob.h: Define program_invocation_name and
80502         program_invocation_short_name if requested
80503         (__argp_base_name): Add prototype
80504         * lib/argp-parse.c (argp_def): Use gettext wrappers
80505         (argp_default_parser): Use __argp_base_name
80506         * lib/argp-pin.c: New file. Defines program_invocation_name and
80507         program_invocation_short_name on systems that lack them.
80508
80509 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80510
80511         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80512         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80513         porting problem reported by Georg Schwarz in
80514         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80515
80516 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80517
80518         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80519         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80520         porting problem reported by Georg Schwarz in
80521         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80522
80523 2005-12-05  Bruno Haible  <bruno@clisp.org>
80524
80525         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80526         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80527         Reported by Mark Junker <mjscod@gmx.de>.
80528
80529 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80530
80531         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80532         Use implementation from Albert Chin, with some
80533         comments/corrections by Stepan Kasal and myself.
80534
80535 2005-12-02  Bruno Haible  <bruno@clisp.org>
80536
80537         * gnulib-tool (func_import): Accept GPLed build tool modules when
80538         --lgpl is given.
80539         * modules/csharpcomp-script: New file.
80540         * modules/csharpcomp: Depend on it.
80541         * modules/javacomp-script: New file.
80542         * modules/javacomp: Depend on it.
80543         Suggested by Simon Josefsson.
80544
80545 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80546
80547         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80548         statement, to work around an HP-UX 10.20 compiler bug reported by
80549         Peter O'Gorman.
80550
80551 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80552
80553         * modules/savedir (Depends-on): Add openat.
80554
80555 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80556
80557         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80558         (uintmax_t) [defined uintmax_t]: Do not declare.
80559         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80560         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80561         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80562         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80563         sake of portability to weird hosts that C allows (though we don't
80564         know of any practical examples).
80565
80566         * lib/savedir.h (fdsavedir): New decl.
80567         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80568         contains most of the former guts of savedir.
80569         (savedir): Use savedirstream.
80570         Include "openat.h".
80571
80572 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80573
80574         * modules/obstack (Files): Add m4/ulonglong.m4.
80575         Problem reported by Davide Angelocola.
80576
80577 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80578
80579         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80580         coreutils no longer futzes with rounding modes.
80581
80582 2005-11-14  Jim Meyering  <jim@meyering.net>
80583
80584         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80585         replacement of mkstemp.
80586
80587 2005-11-10  Simon Josefsson  <jas@extundo.com>
80588
80589         * lib/readline.c: Remove EOL.
80590
80591 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80592
80593         * modules/gethrxtime (Depends-on): Add gettime.
80594
80595 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80596
80597         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80598         or gettimeofday; no longer needed.
80599
80600 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80601
80602         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80603         time business.
80604         (gethrxtime) [! (HAVE_NANOUPTIME
80605         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80606         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80607         our own approximation.
80608
80609 2005-11-08  Eric Blake  <ebb9@byu.net>
80610
80611         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80612
80613 2005-11-08  Eric Blake  <ebb9@byu.net>
80614
80615         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80616
80617 2005-11-04  Bruno Haible  <bruno@clisp.org>
80618
80619         * gnulib-tool: Implement --update mode.
80620
80621 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80622
80623         Fix porting problem reported by Theodoros V. Kalamatianos.
80624         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80625         Don't assume that futimes failing means we must fail.
80626
80627 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80628
80629         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80630         variables to suggest the intended function of the PATH_MAX check.
80631
80632 2005-10-30  Kean Johnston  <jkj@sco.com>
80633
80634         Trivial changes to support SCO systems.
80635         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80636         as PATH_MAX.
80637         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80638         where __ptr is null when no I/O is pending.
80639
80640 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80641
80642         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80643         leave errno alone.  Problem reported by Dmitry V. Levin.
80644
80645 2005-10-28  Simon Josefsson  <jas@extundo.com>
80646
80647         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80648         Test more.
80649
80650         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80651
80652         * modules/md2, modules/md2-tests: New files.
80653
80654 2005-10-28  Simon Josefsson  <jas@extundo.com>
80655
80656         * m4/inet_ntop.m4: More tests.
80657
80658         * m4/gc-md2.m4, md2.m4: New file.
80659
80660 2005-10-28  Simon Josefsson  <jas@extundo.com>
80661
80662         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80663         "restrict" keywords, as per POSIX.  Protect the function
80664         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80665         Don't use K&R prototypes.  Check the sprintf return values.
80666         Re-define EAFNOSUPPORT if not present.  Indent.
80667
80668         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80669         suggested by Bruno Haible <bruno@clisp.org>.
80670
80671         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80672
80673         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80674
80675         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80676         libgcrypt).
80677
80678         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80679
80680         * lib/md2.h, lib/md2.c: New files.
80681
80682 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80683
80684         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80685         errno alone.  Problem reported by Frederic Jolliton.
80686
80687 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80688
80689         * modules/verify (License): Change from GPL to LGPL.  This is a
80690         tiny module and there are apparently near-equivalents that are
80691         under the BSD license.
80692
80693 2005-10-24  Simon Josefsson  <jas@extundo.com>
80694
80695         * modules/sha1: Relicense to LGPL.
80696
80697 2005-10-24  Simon Josefsson  <jas@extundo.com>
80698
80699         * lib/md4.h: Shrink buffer size, now that we changed the type.
80700
80701 2005-10-23  Simon Josefsson  <jas@extundo.com>
80702
80703         * gnulib-tool (func_import): Fix --tests-base.
80704
80705 2005-10-22  Simon Josefsson  <jas@extundo.com>
80706
80707         * modules/arcfour (Depends-on): Need stdint.
80708
80709 2005-10-22  Simon Josefsson  <jas@extundo.com>
80710
80711         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80712         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80713
80714 2005-10-22  Simon Josefsson  <jas@extundo.com>
80715
80716         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80717         suggested by Bruno Haible <bruno@clisp.org>.
80718
80719 2005-10-22  Simon Josefsson  <jas@extundo.com>
80720
80721         * lib/crc.h: Include stddef.h, for size_t.
80722
80723 2005-10-22  Simon Josefsson  <jas@extundo.com>
80724
80725         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80726         arcfour_context struct (simplify test vector testing in GNU
80727         Shishi).
80728
80729 2005-10-21  Simon Josefsson  <jas@extundo.com>
80730
80731         * modules/des, modules/des-tests: New files.
80732
80733         * modules/gc-des, modules/gc-des-tests: New files.
80734
80735         * tests/test-des.c, tests/test-gc-des.c: New file.
80736
80737 2005-10-21  Simon Josefsson  <jas@extundo.com>
80738
80739         * modules/arctwo, modules/arctwo-tests: New files.
80740
80741         * tests/test-arctwo.c: New file.
80742
80743         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80744
80745         * tests/test-gc-arctwo.c: New file.
80746
80747 2005-10-21  Simon Josefsson  <jas@extundo.com>
80748
80749         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80750         Bruno Haible <bruno@clisp.org>.
80751
80752         * m4/gc-des.m4: New file.
80753
80754 2005-10-21  Simon Josefsson  <jas@extundo.com>
80755
80756         * m4/arctwo.m4: New file.
80757
80758         * m4/gc-arctwo.m4: New file.
80759
80760 2005-10-21  Simon Josefsson  <jas@extundo.com>
80761
80762         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80763         block.
80764
80765 2005-10-21  Simon Josefsson  <jas@extundo.com>
80766
80767         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80768         <bruno@clisp.org>.
80769
80770         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80771
80772         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80773         Bruno Haible <bruno@clisp.org>.
80774
80775         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80776         <bruno@clisp.org>.
80777
80778 2005-10-21  Simon Josefsson  <jas@extundo.com>
80779
80780         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80781
80782 2005-10-21  Simon Josefsson  <jas@extundo.com>
80783
80784         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80785
80786 2005-10-21  Simon Josefsson  <jas@extundo.com>
80787
80788         * lib/des.h, lib/des.c: New files.
80789
80790         * lib/gc-gnulib.c: Support DES.c
80791
80792 2005-10-21  Simon Josefsson  <jas@extundo.com>
80793
80794         * lib/arctwo.h, lib/arctwo.c: New files.
80795
80796         * lib/gc-gnulib.c: Support ARCTWO.
80797
80798 2005-10-21  Simon Josefsson  <jas@extundo.com>
80799
80800         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80801         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80802
80803 2005-10-21  Simon Josefsson  <jas@extundo.com>
80804
80805         * gnulib-tool (func_import, func_create_testdir): Define automake
80806         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80807         Makefile.am snippet),
80808         suggested by Bruno Haible <bruno@clisp.org>.
80809
80810         * modules/gc (Makefile.am): Use it.
80811
80812 2005-10-21  Bruno Haible  <bruno@clisp.org>
80813
80814         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80815         patch.
80816
80817 2005-10-19  Simon Josefsson  <jas@extundo.com>
80818
80819         * tests/test-gc-rijndael.c: New file.
80820
80821         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80822
80823 2005-10-19  Simon Josefsson  <jas@extundo.com>
80824
80825         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80826         interface too.
80827
80828 2005-10-19  Simon Josefsson  <jas@extundo.com>
80829
80830         * tests/test-gc-arcfour.c: New file.
80831
80832         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80833
80834 2005-10-19  Simon Josefsson  <jas@extundo.com>
80835
80836         * modules/gc-md4, modules/gc-md4-tests: New file.
80837
80838         * tests/test-gc-md4.c: New file.
80839
80840 2005-10-19  Simon Josefsson  <jas@extundo.com>
80841
80842         * m4/gc-md4.m4: New file.
80843
80844 2005-10-19  Simon Josefsson  <jas@extundo.com>
80845
80846         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80847         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80848         <kasal@ucw.cz>.
80849
80850 2005-10-19  Simon Josefsson  <jas@extundo.com>
80851
80852         * m4/gc-arcfour.m4: New file.
80853
80854         * m4/gc-rijndael.m4: New file.
80855
80856 2005-10-19  Simon Josefsson  <jas@extundo.com>
80857
80858         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80859
80860 2005-10-19  Simon Josefsson  <jas@extundo.com>
80861
80862         * lib/gc-gnulib.c: Support ARCFOUR.
80863
80864 2005-10-19  Simon Josefsson  <jas@extundo.com>
80865
80866         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80867         support.
80868
80869         * lib/gc.h: Add ECB enum type.
80870
80871         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80872
80873 2005-10-18  Simon Josefsson  <jas@extundo.com>
80874
80875         * tests/test-md5.c: New file.
80876
80877         * modules/md5-tests: New file.
80878
80879 2005-10-18  Simon Josefsson  <jas@extundo.com>
80880
80881         * tests/test-md4.c: New file.
80882
80883         * modules/md4, modules/md4-tests: New files.
80884
80885 2005-10-18  Simon Josefsson  <jas@extundo.com>
80886
80887         * m4/md4.m4: New file.
80888
80889 2005-10-18  Simon Josefsson  <jas@extundo.com>
80890
80891         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80892
80893 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80894
80895         * gnulib-tool (func_create_testdir): Omit the second check whether
80896         BUILT_SOURCES in nonempty.
80897
80898 2005-10-17  Simon Josefsson  <jas@extundo.com>
80899
80900         * tests/test-rijndael.c: New file.
80901
80902 2005-10-17  Simon Josefsson  <jas@extundo.com>
80903
80904         * modules/sha1: Depend on stdint instead of md5.
80905
80906         * modules/md5: Depend on stdint, remove uint32_t.
80907
80908 2005-10-17  Simon Josefsson  <jas@extundo.com>
80909
80910         * modules/gc-sha1-tests: New file.
80911
80912         * tests/test-gc-sha1.c: New file.
80913
80914 2005-10-17  Simon Josefsson  <jas@extundo.com>
80915
80916         * m4/md5.m4: Remove call to uint32_t.m4.
80917
80918 2005-10-17  Simon Josefsson  <jas@extundo.com>
80919
80920         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80921
80922         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80923         md5.h.
80924
80925         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80926
80927         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80928
80929 2005-10-17  Simon Josefsson  <jas@extundo.com>
80930
80931         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80932
80933 2005-10-17  Simon Josefsson  <jas@extundo.com>
80934
80935         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80936
80937 2005-10-17  Simon Josefsson  <jas@extundo.com>
80938
80939         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80940
80941         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80942
80943 2005-10-17  Bruno Haible  <bruno@clisp.org>
80944
80945         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80946         that it can also be used in a test.
80947
80948 2005-10-16  Bruno Haible  <bruno@clisp.org>
80949
80950         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80951         TESTS_ENVIRONMENT, so that individual tests can augment it.
80952
80953         * gnulib-tool (func_create_testdir): Use an intermediate target for
80954         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80955         macros, like $(ALLOCA_H), which cannot be passed through the command
80956         line.
80957
80958 2005-10-15  Simon Josefsson  <jas@extundo.com>
80959
80960         * modules/rijndael-tests: New file.
80961
80962         * modules/rijndael: New file.
80963
80964 2005-10-15  Simon Josefsson  <jas@extundo.com>
80965
80966         * m4/rijndael.m4: New file.
80967
80968 2005-10-15  Simon Josefsson  <jas@extundo.com>
80969
80970         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80971
80972         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80973
80974 2005-10-14  Simon Josefsson  <jas@extundo.com>
80975
80976         * tests/test-arcfour.c: New file.
80977
80978         * modules/arcfour, modules/arcfour-tests: New files.
80979
80980 2005-10-14  Simon Josefsson  <jas@extundo.com>
80981
80982         * m4/arcfour.m4: New file.
80983
80984 2005-10-14  Simon Josefsson  <jas@extundo.com>
80985
80986         * lib/arcfour.h, lib/arcfour.c: New files.
80987
80988 2005-10-14  Roland McGrath  <roland@redhat.com>
80989
80990         Import from libc.  [BZ #1331]
80991         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80992         macro argument.
80993         Reported by Matej Vela <vela@debian.org>.
80994
80995 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80996
80997         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80998         include <wchar.h>; no longer needed.
80999
81000 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81001
81002         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
81003
81004 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
81005         and  Ulrich Drepper  <drepper@redhat.com>
81006
81007         Import from libc.
81008         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
81009         instead of inline stream orientation test and two separate
81010         function calls.  Pay no attention to USE_IN_LIBIO.
81011
81012 2005-10-13  Simon Josefsson  <jas@extundo.com>
81013
81014         * modules/gc-hmac-md5-tests: New file.
81015
81016         * tests/test-gc-hmac-sha1.c: New file.
81017
81018         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
81019
81020         * modules/gc-hmac-md5-tests: New file.
81021
81022         * tests/test-gc-md5.c: New file.
81023
81024         * modules/gc-md5-tests: New file.
81025
81026 2005-10-13  Simon Josefsson  <jas@extundo.com>
81027
81028         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
81029         Move memory allocation outside of loop.
81030
81031 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
81032
81033         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
81034         intermediate directory is in a read-only file system.  Problem
81035         reported by Eric Blake.
81036
81037 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
81038
81039         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
81040
81041 2005-10-12  Simon Josefsson  <jas@extundo.com>
81042
81043         * tests/test-hmac-sha1.c: New file.
81044
81045         * modules/hmac-sha1-tests: New file.
81046
81047         * modules/hmac-sha1: New file.
81048
81049 2005-10-12  Simon Josefsson  <jas@extundo.com>
81050
81051         * modules/gc-sha1: New file.
81052
81053 2005-10-12  Simon Josefsson  <jas@extundo.com>
81054
81055         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
81056
81057         * tests/test-gc-pbkdf2-sha1.c: New file.
81058
81059 2005-10-12  Simon Josefsson  <jas@extundo.com>
81060
81061         * modules/gc-md5, modules/gc-hmac-md5: New files.
81062
81063         * modules/gc (Files): Remove md5, memxor and hmac files.
81064
81065 2005-10-12  Simon Josefsson  <jas@extundo.com>
81066
81067         * m4/gc-pbkdf2-sha1.m4: New file.
81068
81069         * m4/gc-hmac-sha1.m4: New file.
81070
81071         * m4/gc-sha1: New file.
81072
81073         * m4/hmac-sha1.m4: New file.
81074
81075 2005-10-12  Simon Josefsson  <jas@extundo.com>
81076
81077         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
81078
81079         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
81080
81081 2005-10-12  Simon Josefsson  <jas@extundo.com>
81082
81083         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
81084         suggested by Bruno Haible <bruno@clisp.org>.
81085
81086 2005-10-12  Simon Josefsson  <jas@extundo.com>
81087
81088         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
81089
81090 2005-10-12  Simon Josefsson  <jas@extundo.com>
81091
81092         * lib/gc-pbkdf2-sha1.c: New file.
81093
81094         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
81095
81096 2005-10-12  Simon Josefsson  <jas@extundo.com>
81097
81098         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
81099
81100         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
81101
81102 2005-10-12  Simon Josefsson  <jas@extundo.com>
81103
81104         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
81105         GC_USE_HMAC_MD5, respectively.
81106
81107         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
81108         (gc_md5): Fix typo.
81109
81110         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
81111
81112         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
81113
81114         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
81115
81116 2005-10-12  Bruno Haible  <bruno@clisp.org>
81117
81118         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
81119         Reported by Stepan Kasal <kasal@ucw.cz>.
81120
81121 2005-10-11  Simon Josefsson  <jas@extundo.com>
81122
81123         * tests/test-crc.c: New file.
81124
81125         * modules/crc, modules/crc-tests: New files.
81126
81127 2005-10-11  Simon Josefsson  <jas@extundo.com>
81128
81129         * m4/crc.m4: New file.
81130
81131 2005-10-11  Simon Josefsson  <jas@extundo.com>
81132
81133         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81134
81135         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81136
81137         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81138
81139 2005-10-11  Simon Josefsson  <jas@extundo.com>
81140
81141         * lib/crc.h, lib/crc.c: New files.
81142
81143         * lib/gc.h (gc_hash_buffer): Add doc.
81144
81145 2005-10-11  Bruno Haible  <bruno@clisp.org>
81146
81147         * modules/c-strcasestr: New file.
81148         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81149
81150 2005-10-11  Bruno Haible  <bruno@clisp.org>
81151
81152         * modules/c-strcase: New file.
81153         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81154
81155 2005-10-11  Bruno Haible  <bruno@clisp.org>
81156
81157         * lib/strcasecmp.c: Include limits.h.
81158         (strcasecmp): Avoid integer overflow on exotic platforms.
81159         * lib/strncasecmp.c: Include limits.h.
81160         (strncasecmp): Avoid integer overflow on exotic platforms.
81161         Reported by Paul Eggert.
81162
81163 2005-10-11  Bruno Haible  <bruno@clisp.org>
81164
81165         * lib/c-strcasestr.h: New file, from GNU gettext.
81166         * lib/c-strcasestr.c: New file, from GNU gettext.
81167
81168 2005-10-11  Bruno Haible  <bruno@clisp.org>
81169
81170         * lib/c-strcase.h: New file, from GNU gettext.
81171         * lib/c-strcasecmp.c: New file, from GNU gettext.
81172         * lib/c-strncasecmp.c: New file, from GNU gettext.
81173
81174 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81175
81176         * modules/mempcpy (License): GPL -> LGPL.
81177         * modules/strchrnul (License): Likewise.
81178         * modules/sysexits (License): Likewise.
81179
81180 2005-10-08  Simon Josefsson  <jas@extundo.com>
81181
81182         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81183
81184 2005-10-07  Simon Josefsson  <jas@extundo.com>
81185
81186         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81187
81188 2005-10-06  Simon Josefsson  <jas@extundo.com>
81189
81190         * tests/test-hmac-md5.c: New file.
81191
81192         * modules/hmac-md5-tests: New file.
81193
81194         * modules/hmac-md5: New file.
81195
81196 2005-10-06  Simon Josefsson  <jas@extundo.com>
81197
81198         * m4/hmac-md5.m4: New file.
81199
81200         * m4/memxor.m4: Require gl_C_RESTRICT.
81201
81202 2005-10-06  Simon Josefsson  <jas@extundo.com>
81203
81204         * lib/memxor.c (memxor): Avoid casts and warnings.
81205
81206 2005-10-06  Simon Josefsson  <jas@extundo.com>
81207
81208         * lib/hmac-md5.c: New file.
81209
81210         * lib/hmac.h: New file.
81211
81212 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81213
81214         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81215         promotes to int, not unsigned int, to catch the AIX 5.3
81216         compiler bug.
81217
81218 2005-10-05  Simon Josefsson  <jas@extundo.com>
81219
81220         * modules/memxor: New file.
81221
81222         * modules/iconv (Files): Move config.rpath to havelib, it is used
81223         there.
81224
81225         * modules/havelib (Files): Add config.rpath.
81226
81227 2005-10-05  Simon Josefsson  <jas@extundo.com>
81228
81229         * m4/memxor.m4: New file.
81230
81231 2005-10-05  Simon Josefsson  <jas@extundo.com>
81232
81233         * lib/memxor.c (memxor): Fix compiler error.
81234
81235         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81236         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81237
81238         * lib/memxor.h, lib/memxor.c: New files.
81239
81240         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81241         we assume all systems have it, suggested by Jim Meyering
81242         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81243         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81244         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81245         same reasons.
81246
81247 2005-10-05  Simon Josefsson  <jas@extundo.com>
81248
81249         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81250
81251 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81252
81253         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81254         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81255         needed, since the source code now assumes these .h files.
81256
81257 2005-10-05  Derek Price  <derek@ximbiot.com>
81258
81259         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81260
81261 2005-10-05  Bruno Haible  <bruno@clisp.org>
81262
81263         * modules/stdint (License): Change to LGPL.
81264
81265 2005-10-04  Simon Josefsson  <jas@extundo.com>
81266
81267         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81268         D. Baushke" <mdb@gnu.org>.
81269
81270 2005-10-04  Bruno Haible  <bruno@clisp.org>
81271
81272         * lib/verify.h (verify_true): Provide alternative definition for C++.
81273
81274 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81275
81276         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81277         (SSIZE_MAX): New macro, if not already defined.
81278         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81279         than 2 GiB.
81280
81281 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81282
81283         Sync from coreutils.
81284         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81285         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81286         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81287         ULLONG_MAX doesn't work with 2.7.2.1.
81288
81289 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81290
81291         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81292         From Ben Pfaff.
81293
81294         * modules/exclude (Depends-on): Depend on verify.
81295         * modules/strtoimax (Depends-on): Likewise.
81296         * modules/utimecmp (Depends-on): Likewise.
81297
81298 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81299
81300         * lib/exclude.c: Include verify.h.
81301         (verify): Remove.  All callers changed to use verify.h's version.
81302         * lib/strtoimax.c: Likewise.
81303         * lib/utimecmp.c: Likewis.e
81304
81305         Sync from coreutils.
81306         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81307         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81308         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81309         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81310         bother returning ENOSYS if settimeofday or stime fails; just let
81311         them return whatever errno they want to return.
81312         * lib/utimens.c: Include unistd.h, for dup2.
81313         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81314         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81315
81316 2005-10-02  Jim Meyering  <jim@meyering.net>
81317
81318         Sync from coreutils.
81319         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81320         from glibc-2.2.5 that fails for read-only files.
81321
81322 2005-10-02  Jim Meyering  <jim@meyering.net>
81323
81324         Sync from coreutils.
81325         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81326         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81327         `#if HAVE_CONFIG_H'.
81328         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81329         Remove AT_FDCWD test.
81330         Do not consume the fd unless successful.
81331         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81332         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81333         block, so that we don't even try to compile it if settimeofday is
81334         available.  This works around a compilation failure on OSF1 V5.1,
81335         due to stime requiring a `long int*' while tv_sec is `int'.
81336
81337 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81338
81339         Sync from coreutils.
81340         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81341         against `yes', rather than just testing for nonempty.
81342
81343 2005-10-01  Simon Josefsson  <jas@extundo.com>
81344
81345         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81346         and Darwin.
81347
81348         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81349         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81350         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81351         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81352         Check if struct addrinfo is declared.
81353
81354 2005-10-01  Simon Josefsson  <jas@extundo.com>
81355
81356         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81357         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81358         AI_* and EAI_* definitions.  Protect function declarations.
81359
81360 2005-10-01  Jim Meyering  <jim@meyering.net>
81361
81362         Sync from coreutils.
81363
81364         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81365         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81366         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81367         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81368         in the inet and nsl libraries.  Required on Solaris 5.7.
81369
81370 2005-10-01  Jim Meyering  <jim@meyering.net>
81371
81372         Sync from coreutils.
81373         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81374         in the inet and nsl libraries.  Required on Solaris 5.7.
81375
81376 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81377
81378         * lib/getdelim.c (getdelim): Remove unused variables.
81379
81380 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81381
81382         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81383         so that the code works even with ancient cpp.  Portability problem
81384         with GCC 2.7.2.1 reported by Thomas M.Ott.
81385
81386 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81387
81388         * modules/regex (Depends-on): Add strcase.
81389
81390         * modules/gethostname (Licence): Change from GPL to LGPL, since
81391         gethostname.c is a trivial implementation of a standard library
81392         function.
81393         * modules/poll (License): Change from GPL to LGPL, since it's
81394         derived from LGPL code.
81395
81396 2005-09-27  Jim Meyering  <jim@meyering.net>
81397
81398         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81399         HAVE_CONFIG_H.
81400
81401         * lib/intprops.h (signed_type_or_expr__): Define.
81402         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81403         for unsigned types.
81404
81405 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81406
81407         * lib/verify.h (verify_expr): Remove, replacing with:
81408         (verify_true): New macro that returns true instead of void.
81409         (verify_type__): Remove.
81410         (verify): Use verify_true rather than verify_type__.
81411
81412 2005-09-26  Bruno Haible  <bruno@clisp.org>
81413
81414         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81415         is necessary.
81416         (lib_SOURCES): Remove mbchar.c.
81417         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81418         (Files): Add m4/mbrtowc.m4.
81419         * modules/mbiter: Likewise.
81420         * modules/mbuiter: Likewise.
81421
81422 2005-09-26  Bruno Haible  <bruno@clisp.org>
81423
81424         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81425         compile mbchar.c if they are not both present.
81426         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81427         * m4/mbiter.m4 (gl_MBITER): Likewise.
81428         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81429         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81430         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81431
81432 2005-09-25  Jim Meyering  <jim@meyering.net>
81433
81434         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81435         also uses socklen_t.
81436
81437 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81438
81439         * lib/utimens.c (ENOSYS): Define if not already defined.
81440         (futimens): Support having a null PATH if the file descriptor
81441         is nonnegative.
81442
81443         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81444         Remove.
81445         (__attribute): Define to empty unless GCC 3.1 or later.
81446         This works around a core dump on OpenBSD 3.4, which has GCC
81447         2.95.3, which dumps core when given __attribute__(()).  It also
81448         simplifies other tests, since we really don't want to bother with
81449         worrying about which ancient version of GCC supported what.
81450         Original problem reported by Yoann Vandoorselaere, with part of
81451         the fix suggested by Derek Price.
81452
81453 2005-09-24  Jim Meyering  <jim@meyering.net>
81454
81455         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81456         so we can once again use a positive bitfield width of 1 -- now we
81457         don't have to explain why we were using a bitfield width of 2.
81458
81459 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81460
81461         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81462         and similarly for the other external symbols.  Problem reported
81463         by James Gallager.
81464
81465         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81466         bug reported by Jim Meyering.
81467
81468         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81469         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81470         not needed, since socklen is a prerequisite module.
81471
81472 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81473
81474         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81475         Problem reported by Eric Blake.
81476         (getaddrinfo): Initialize se so that it's not garbage.
81477         Redo internal storage allocation so that it doesn't make unportable
81478         assumptions about alignment.
81479         Fix a memory leak.
81480
81481         * lib/utimens.c (futimens): Use futimesat if available.
81482         Prefer it to futimes since it doesn't have the futimes bug.
81483
81484         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81485         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81486         Instead, declare a function that returns a pointer to an array,
81487         and use verify_type__ to declare the size of the array.
81488         Problem and germ of a solution reported by Bruno Haible.
81489         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81490         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81491
81492 2005-09-23  Jim Meyering  <jim@meyering.net>
81493
81494         Sync from coreutils.
81495         Correct build failure (socklen_t not defined) on at least
81496         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81497         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81498
81499 2005-09-23  Jim Meyering  <jim@meyering.net>
81500
81501         * modules/getaddrinfo (Depends-on): Add socklen.
81502
81503 2005-09-23  Bruno Haible  <bruno@clisp.org>
81504
81505         * tests/test-verify.c: New file.
81506
81507 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81508
81509         Sync from coreutils.
81510
81511         * modules/argmatch (Depends-on): Add verify.
81512         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81513         unistd-safer.
81514         * modules/save-cwd (Depends-on): Likewise.
81515
81516         * modules/openat (Files): Add lib/openat-die.c.
81517         (Depends-on): Remove error, exitfail.
81518         Add dirname.
81519
81520         * modules/verify: New file.
81521         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81522         with "verify" module.
81523
81524 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81525
81526         Sync from coreutils.
81527
81528         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81529         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81530         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81531         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81532         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81533         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81534         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81535         Don't bother checking for string.h, stdlib.h, unistd.h.
81536         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81537         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81538         module's job.
81539         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81540         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81541
81542         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81543         (gl_GETDATE): Use it.
81544
81545         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81546
81547 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81548
81549         Sync from coreutils.
81550
81551         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81552         stat-time.h.
81553         * lib/argmatch.h: Include verify.h
81554         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81555         (ARGMATCH_ASSERT): Remove; unused.
81556         * lib/canonicalize.c: Assume STDC_HEADERS.
81557         * lib/exclude.c: Include "strcase.h".
81558         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81559         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81560         and stdio-safer.h.
81561         (getusershell): Call fopen, not fopen_safer.
81562         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81563         Do not include unistd-safer.h.
81564         (save_cwd): Don't call fd_safer; no longer needed
81565         now that we include fcntl--.h.
81566
81567         * lib/getdate.y (relative_time): New type.
81568         (RELATIVE_TIME_0): New constant.
81569         (parser_control): Use relative_time instead of doing it ourselves.
81570         (%union): Add new relative_time rel member.
81571         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81572         Now typeless.
81573         (relunit, relunit_snumber): Now of type rel.
81574         (zone, rel, relunit, get_date): Adjust to above changes.
81575
81576         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81577         Do not include unistd-safer.h.
81578         (getloadavg): Don't call fd_safer; no longer needed
81579         now that we include fcntl--.h.
81580
81581         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81582         (make_dir_parents): Treat ENOSYS like EEXIST.
81583
81584         Improve quality of diagnostics on restore_cwd failure.
81585         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81586         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81587         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81588         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81589         each time through the loop.  Do not diagnose restore_cwd failure;
81590         that is the caller's job (and perhaps the caller does not care).
81591
81592         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81593         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81594         If the file already exists but is not a directory, don't bother
81595         to try to make its parents.
81596         Close potential file descriptor leak if we can't chdir("/") (!).
81597         Don't always return true if chdir($PWD) fails; return true only
81598         if the requested action was done successfully (except for the
81599         chdir($PWD)).
81600         Don't log final directory unless we actually made it.
81601         Refactor to avoid duplicate code to fix up permissions.
81602         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81603
81604         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81605         to make it a bit faster and (I hope) clearer.
81606         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81607         Fix bug in formats like %2N.
81608
81609         * lib/verify.h: New file.
81610
81611 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81612
81613         Sync from coreutils.
81614         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81615
81616 2005-09-22  Jim Meyering  <jim@meyering.net>
81617
81618         Sync from coreutils.
81619
81620         * m4/lstat.m4 (gl_FUNC_LSTAT):
81621         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81622         Remove obsolete comment.
81623         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81624         * m4/xstrtod.m4: Likewise.
81625
81626         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81627
81628 2005-09-22  Jim Meyering  <jim@meyering.net>
81629
81630         Sync from coreutils.
81631
81632         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81633
81634         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81635         the .tm_year member, since otherwise gcc-4.0 would now warn about
81636         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81637
81638         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81639         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81640
81641         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81642         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81643         when run in a time zone for which daylight savings time is in effect
81644         for the starting date.
81645
81646         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81647         stop us from restricting permissions of just-created absolute-named
81648         directories.
81649         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81650         to restore initial working directory.
81651         * lib/mkdir-p.c (make_dir_parents): New parameter:
81652         different_working_dir, to tell caller if/when we change the working
81653         directory and are unable to return to the initial one.
81654         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81655         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81656         `return false'.  This fixes a bug introduced on 2004-07-30.
81657
81658         * lib/openat.c (fdopendir): Be sure to close the supplied
81659         file descriptor before returning.  This makes our replacement
81660         implementation a little closer to Solaris's, where fdopendir
81661         ties the file descriptor to the returned DIR* pointer.
81662         * lib/openat.c (unlinkat): New function.
81663         * lib/openat.h (unlinkat): Add prototype.
81664         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81665         (openat_restore_fail): Rename from openat_restore_die.
81666         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81667
81668         Provide an alternative to exiting immediately upon save_cwd or
81669         restore_cwd failure.  Now, an application can arrange e.g.,
81670         to perform a longjump in that case.
81671         * lib/openat.c: Include dirname.h.
81672         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81673         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81674         and openat_restore_die rather than calling error directly.
81675         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81676
81677         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81678         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81679         define.
81680
81681         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81682         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81683                             int utc, int nanoseconds);
81684         Background:
81685         date should not have to allocate a megabyte of virtual memory to
81686         handle a format argument like +%1048575T.  When implemented with
81687         strftime, it must allocate such a buffer, use strftime to fill it
81688         in, print it, then free it.
81689         With fprintftime, it simply prints everything and exits.
81690         With no need for memory allocation, that's one fewer way to fail.
81691         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81692         optional field width, not before, so we accept %9:z, not %:9z.
81693         (my_strftime): Be sure to use L_('x') for literals.
81694
81695         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81696         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81697         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81698         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81699         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81700         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81701         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81702         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81703         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81704         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81705         * lib/xgethostname.c, lib/xreadlink.c:
81706         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81707
81708         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81709         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81710         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81711         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81712         and don't include <sys/file.h>).
81713
81714 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81715
81716         Sync from coreutils.
81717
81718         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81719         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81720         [!LDAV_DONE]: Avoid unused variable warning.
81721
81722 2005-09-21  Bruno Haible  <bruno@clisp.org>
81723
81724         * lib/unicodeio.h (unicode_to_mb): New declaration.
81725
81726 2005-09-20  Derek Price  <derek@ximbiot.com>
81727
81728         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81729         getaddrinfo.h.
81730
81731 2005-09-20  Bruno Haible  <bruno@clisp.org>
81732
81733         * gnulib-tool: Remove trailing slashes from the values specified for
81734         --source-base, --m4-base, --tests-base, --aux-dir.
81735         Suggested by Simon Josefsson <jas@extundo.com>.
81736
81737 2005-09-20  Bruno Haible  <bruno@clisp.org>
81738
81739         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81740         func_modules_to_filelist, func_import, func_create_testdir): Make all
81741         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81742         change when gnulib-tool is invoked in a different locale.
81743
81744 2005-09-19  Simon Josefsson  <jas@extundo.com>
81745
81746         * m4/socklen.m4: Fix typo.
81747
81748 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81749
81750         Use a consistent style for including <config.h>.
81751         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81752         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81753         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81754         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81755         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81756         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81757         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81758         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81759         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81760         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81761         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81762         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81763         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81764         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81765         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81766         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81767         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81768         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81769         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81770         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81771         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81772         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81773         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81774         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81775         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81776         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81777         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81778         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81779         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81780         lib/xstrtoumax.c, lib/yesno.c:
81781         Standardize inclusion of config.h.
81782         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81783         lib/inttostr.h:  Removed inclusion of config.h from header files.
81784         * lib/inttostr.c:  Adjusted in-tree users.
81785         * lib/timespec.h: Remove superfluous warning to include config.h.
81786         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81787         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81788         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81789         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81790         config.h with HAVE_CONFIG_H.
81791
81792 2005-09-19  Jim Meyering  <jim@meyering.net>
81793
81794         * modules/pathmax (License): Change to LGPL.
81795
81796 2005-09-19  Derek Price  <derek@ximbiot.com>
81797
81798         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81799
81800 2005-09-19  Bruno Haible  <bruno@clisp.org>
81801
81802         * gnulib-tool (import): Provide default for --tests-base.
81803
81804 2005-09-19  Bruno Haible  <bruno@clisp.org>
81805
81806         * doc/quote.texi: New file, extracted from gnulib.texi.
81807         * doc/ctime.texi: New file, extracted from gnulib.texi.
81808         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81809         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81810         * doc/gnulib.texi: Include them.
81811
81812 2005-09-18  Bruno Haible  <bruno@clisp.org>
81813
81814         Portability fix.
81815         * gnulib-tool (func_readlink): New function.
81816         (func_ln_if_changed): Use it.
81817
81818 2005-09-18  Bruno Haible  <bruno@clisp.org>
81819
81820         * gnulib-tool: Support --with-tests also with --import.
81821         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81822         (func_import): Use variables $testsbase and $inctests. Emit a
81823         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81824         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81825         SUBDIRS += $testsdir.
81826         (func_create_testdir): Update.
81827
81828 2005-09-18  Bruno Haible  <bruno@clisp.org>
81829
81830         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81831         instead of $dry_run.
81832         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81833         (func_ln_if_changed): Don't handle dry-run here.
81834         (func_import): In dry-run mode, detect more precisely which actions
81835         would be performed, and don't use "...ing" verbs.
81836
81837 2005-09-18  Bruno Haible  <bruno@clisp.org>
81838
81839         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81840         (func_import): Use join on two temporary files instead of three nested
81841         loops, in order to determine which files are new or old.
81842
81843 2005-09-18  Bruno Haible  <bruno@clisp.org>
81844
81845         * gnulib-tool (func_import): Comment out code that spits out the
81846         new files with --dry-run.
81847
81848 2005-09-18  Bruno Haible  <bruno@clisp.org>
81849
81850         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81851
81852 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81853
81854         * lib/stat-time.h: New file.
81855         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81856         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81857         in a different way.
81858         (timespec_cmp): New function.
81859         * lib/utimecmp.c: Include stat-time.h.
81860         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81861         members exist, not on the obsolescent ST_MTIM_NSEC.
81862         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81863
81864 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81865
81866         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81867
81868 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81869
81870         * MODULES.html.sh (File system functions): Add stat-time.
81871         * modules/stat-time: New file.
81872         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81873         is now done in a different way, by the stat-time module.
81874         * modules/utimecmp (Depends-on): Add stat-time.
81875
81876 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81877
81878         * m4/st_mtim.m4: Remove.  Superseded by...
81879         * m4/stat-time.m4: New file.
81880         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81881         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81882
81883 2005-09-15  Derek Price  <derek@ximbiot.com>
81884
81885         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81886
81887 2005-09-15  Derek Price  <derek@ximbiot.com>
81888
81889         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81890         * lib/regex_internal.c: Ditto, using this...
81891         (__GNUC_PREREQ): ...new macro.
81892         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81893         using...
81894         (__GNUC_PREREQ): ...this new macro.
81895
81896         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81897
81898 2005-09-15  Derek Price  <derek@ximbiot.com>
81899             Paul Eggert  <eggert@cs.ucla.edu>
81900
81901         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81902         changes, consolidating in...
81903         * lib/regex_internal.h: ...this file.
81904
81905 2005-09-13  Jim Meyering  <jim@meyering.net>
81906
81907         * lib/canon-host.c: Filter through gnu indent and reword comments
81908         slightly.
81909         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81910
81911 2005-09-13  Derek Price  <derek@ximbiot.com>
81912
81913         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81914         failure.
81915         Reported by Jim Meyering  <jim@meyering.net>.
81916
81917 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81918
81919         * lib/base64.c: Typo.
81920         (base64_encode): Put b64str in initialized data section.
81921
81922 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81923
81924         Merge glibc and coreutils changes into gnulib, plus a few
81925         extra fixes.
81926         * lib/md5.c: Use #error rather than a string.
81927         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81928         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81929         (__attribute__): Define to empty for non recent-GCC.
81930         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81931         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81932         Renamed from their non-__ counterparts, with new macros replacing
81933         them if not _LIBC.  Add __THROW attribute.
81934         (rol): Remove.
81935         (struct md5_ctx): Align buffer if using GCC.
81936         * lib/sha1.h (struct sha1_ctx): Likewise.
81937         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81938         The old name was backwards.
81939         (NOTSWAP): Remove; not used.
81940         (rol): New macro, moved here from md5.h.
81941         (sha1_process_block): Remove a FIXME that doesn't make sense.
81942
81943 2005-09-12  Derek Price  <derek@ximbiot.com>
81944
81945         Return usable errors from canon-host.
81946         * lib/canon-host.h: New file.
81947         * lib/canon-host.c (canon_host): Wrap...
81948         (canon_host_r): ...this new function, which now relies exclusively on
81949         getaddrinfo.
81950         (ch_strerror): New function.
81951         (last_cherror): New global.
81952         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81953         interface.
81954         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81955         void *.
81956         (freeaddrinfo): Free ai->ai_canonname when set.
81957
81958 2005-09-12  Derek Price  <derek@ximbiot.com>
81959
81960         Make canon-host require getaddrinfo.
81961         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81962         AC_LIBSOURCE canon-host.h.  Call...
81963         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81964         gl_GETADDRINFO.
81965         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81966
81967 2005-09-12  Derek Price  <derek@ximbiot.com>
81968
81969         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81970         LGPL.
81971         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81972
81973 2005-09-12  Derek Price  <derek@ximbiot.com>
81974
81975         * lib/gai_strerror.c: Include config.h when available.  Include
81976         getaddrinfo.h before other headers to test interface.
81977         Reported by Larry Jones <lawrence.jones@ugs.com>.
81978
81979 2005-09-12  Derek Price  <derek@ximbiot.com>
81980             Paul Eggert  <eggert@cs.ucla.edu>
81981
81982         * modules/glob (Files): Add glob-libc.h.
81983
81984 2005-09-12  Derek Price  <derek@ximbiot.com>
81985             Paul Eggert  <eggert@cs.ucla.edu>
81986
81987         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81988         glob_.h, glob-libc.h.
81989         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81990
81991 2005-09-12  Derek Price  <derek@ximbiot.com>
81992             Paul Eggert  <eggert@cs.ucla.edu>
81993
81994         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81995         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81996         protecting things that should be done only in gnulib contexts.
81997         * lib/glob_.h: New file, containing only the glob things needed for
81998         gnulib.
81999         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
82000         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
82001         (glob, globfree, glob_pattern_p): Now defined simply in terms of
82002         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
82003         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
82004         and to respect the namespace rules better.
82005
82006 2005-09-08  Simon Josefsson  <jas@extundo.com>
82007
82008         * modules/socklen: New file.
82009
82010 2005-09-08  Simon Josefsson  <jas@extundo.com>
82011
82012         * m4/socklen.m4: New file.
82013
82014 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82015
82016         * modules/utimens (Files): Add m4/utimbuf.m4, since
82017         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
82018         Reported by Sergey Poznyakoff.
82019
82020 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82021
82022         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
82023         definitions, since that's the preferred style in glibc.
82024         Fix a minor spacing issue, and update copyright notice to match
82025         glibc's.
82026
82027 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82028
82029         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
82030
82031 2005-09-06  Simon Josefsson  <jas@extundo.com>
82032
82033         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
82034         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
82035
82036 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82037
82038         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
82039         warning.
82040
82041 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82042
82043         * config/srclist.txt: Add glibc bug 1302.
82044
82045 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
82046
82047         Change bitset word type from unsigned int to unsigned long int,
82048         as this has better performance on typical 64-bit hosts.
82049         Port bitset code to hosts with unusual word sizes.
82050         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
82051         (build_collating_symbol):
82052         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
82053         argument is a bitset.  This is merely a style issue, but it makes
82054         it clearer that an entire array is expected.
82055         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
82056         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
82057         Port to the case where bitset_word is not the same as unsigned int.
82058         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82059         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
82060         Likewise.
82061         * lib/regexec.c (check_dst_limits_calc_pos_1,
82062         check_subexp_matching_top):
82063         (build_trtable, group_nodes_into_DFAstates):
82064         Likewise.
82065         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
82066         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
82067         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
82068         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
82069         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
82070         * lib/regcomp.c (optimize_subexps, lower_subexp):
82071         Work even if bitset_word has holes in its bitwise representation.
82072         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
82073         * lib/regexec.c (check_dst_limits_calc_pos_1,
82074         check_subexp_matching_top):
82075         Likewise.
82076         * lib/regex_internal.c (re_string_reconstruct):
82077         Don't assume UCHAR_MAX == 255.
82078         * lib/regex_internal.h (bitset_set_all): Likewise.
82079         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
82080         All uses changed.
82081         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
82082         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
82083         All uses changed.
82084         (BITSET_WORD_MAX): New macro.
82085         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
82086         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
82087         (bitset_empty, bitset_copy):
82088         Prefer sizeof (bitset) to multiplying it out ourselves.
82089         (bitset_not_merge): Remove; unused.
82090         (bitset_contain): Return bool, not unsigned int with one bit on.
82091         All callers changed.
82092         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
82093         alignment than re_node_set; do this by defining a new internal
82094         type struct dests_alloc and using it to allocate memory.
82095
82096 2005-09-05  Bruno Haible  <bruno@clisp.org>
82097
82098         * gnulib-tool (func_import): Fix comparison in handling of symbolic
82099         links.
82100
82101 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
82102
82103         * modules/size_max (Makefile.am): Add size_max.h
82104
82105 2005-09-04  Derek Price  <derek@ximbiot.com>
82106
82107         * gnulib-tool (func_import): Fix reversed $symbolic logic.
82108
82109 2005-09-03  Simon Josefsson  <jas@extundo.com>
82110
82111         * gnulib-tool: Fix typo.
82112
82113 2005-09-03  Simon Josefsson  <jas@extundo.com>
82114
82115         * config/srclist.txt: Add glibc bug 1293.
82116
82117 2005-09-03  Derek Price  <derek@ximbiot.com>
82118
82119         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
82120         From Larry Jones <lawrence.jones@ugs.com>.
82121
82122 2005-09-02  Simon Josefsson  <jas@extundo.com>
82123
82124         * modules/socklen: New file.
82125
82126 2005-09-02  Simon Josefsson  <jas@extundo.com>
82127
82128         * modules/havelib: New module.
82129
82130         * modules/gettext, modules/iconv, modules/lock, modules/readline:
82131         Use havelib.
82132
82133 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82134
82135         Check for arithmetic overflow when calculating sizes, to prevent
82136         some buffer-overflow issues.  These patches are conservative, in the
82137         sense that when I couldn't determine whether an overflow was possible,
82138         I inserted a run-time check.
82139         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82140         macros.
82141         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82142         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82143         (re_xnrealloc, re_x2nrealloc): New inline functions.
82144         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82145         parse_bracket_exp):
82146         (build_equiv_class, build_charclass): Check for arithmetic overflow
82147         in size expression calculations.
82148         * lib/regex_internal.c (re_string_realloc_buffers):
82149         (build_wcs_upper_buffer, re_node_set_add_intersect):
82150         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82151         (re_dfa_add_node, register_state): Likewise.
82152         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82153         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82154         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82155         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82156
82157 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82158
82159         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82160         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82161
82162 2005-09-02  Bruno Haible  <bruno@clisp.org>
82163
82164         Support for lib vs. lib64 distinction on biarch platforms.
82165         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82166         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82167         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82168
82169 2005-09-02  Bruno Haible  <bruno@clisp.org>
82170
82171         * gnulib-tool (import): In the other first-use case, provide defaults
82172         as well.
82173
82174 2005-09-02  Bruno Haible  <bruno@clisp.org>
82175
82176         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82177         patches not yet found in the latest gettext release.
82178
82179 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82180
82181         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82182         to avoid a collision with bits/local_lim.h in glibc.
82183         All uses changed.  Problem reported by Dmitry V. Levin in
82184         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82185
82186         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82187         bugs in int versus size_t comparisons.
82188         (re_string_context_at): Fix bug where the code assumed that
82189         Idx is signed.
82190
82191         Use bool where appropriate.
82192         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82193         All callers changed.
82194         (calc_eclosure_iter): Likewise, for ROOT arg.
82195         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82196         (build_charclass_op): Likewise, for NON_MATCH arg.
82197         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82198         (re_string_construct_common): Likewise, for ICASE arg.
82199         * lib/regexec.c (re_search_2_stub, re_search_stub):
82200         Likewise, for RET_LEN arg.
82201         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82202         (set_regs): Likewise, for FL_BACKTRACK arg.
82203         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82204         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82205         (calc_eclosure_iter, parse_bracket_exp):
82206         Use bool for internal variables that are booleans.
82207         * lib/regexec.c (re_search_internal, check_matching,
82208         proceed_next_node):
82209         (set_regs, build_sifted_states, sift_states_bkref):
82210         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82211         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82212         (find_collation_sequence_value):
82213         Likewise.
82214         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82215         (re_node_set_compare):
82216         Return bool, not int. All callers changed.
82217         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82218         (build_trtable, check_node_accept): Likewise.
82219         * lib/regex_internal.h: Include stdbool.h.
82220
82221         Fix bugs uncovered when converting to bool.
82222         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82223         failure instead of charging ahead blindly.
82224         * lib/regex_internal.c (register_state): Likewise.
82225         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82226         for freeing internal storage.
82227         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82228         bitset pieces used as boolean, to avoid undefined behavior
82229         on hosts that do int overflow checking.
82230
82231 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82232
82233         * config/srclist.txt: Add glibc bugs 1285-1287.
82234
82235 2005-09-01  Jim Meyering  <jim@meyering.net>
82236
82237         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82238         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82239         Require gl_STAT_MACROS, too.
82240
82241 2005-09-01  Bruno Haible  <bruno@clisp.org>
82242
82243         * gnulib-tool (import): In the first-use case, provide defaults.
82244
82245 2005-09-01  Bruno Haible  <bruno@clisp.org>
82246
82247         * gnulib-tool (func_import): Remove the .tmp files.
82248
82249 2005-09-01  Bruno Haible  <bruno@clisp.org>
82250
82251         * gnulib-tool (func_import): Fix handling of symbolic links.
82252
82253 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82254
82255         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82256         old glibc regex code mishandles strings longer than 2**31 bytes.
82257         This patch fixes this when the regex code is used in gnulib
82258         (i.e., outside glibc).
82259
82260         This patch should not affect the use of the regex code inside
82261         glibc.  No doubt this problem also needs to be handled for glibc
82262         as well, but the result will be an incompatible change to the
82263         glibc ABI, and the old ABI will have to be supported too.  That
82264         can be the the subject for another patch.
82265
82266         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82267         governing whether the rest of this patch is active.  By default,
82268         the macro is disabled and the patch has no effect.
82269         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82270         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82271         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82272         (re_match_2, re_set_registers): Use the new types.
82273         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82274         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82275         New macros.
82276         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82277         (re_string_context_at, bin_tree_t, re_dfastate_t):
82278         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82279         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82280         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82281         (re_string_char_size_at, re_string_wchar_at):
82282         (re_string_elem_size_at):
82283         Use the new types and macros to port to 64-bit hosts.
82284         Use unsigned types for internal values, so that the code
82285         mostly works even for arrays larger than SSIZE_MAX.
82286         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82287         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82288         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82289         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82290         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82291         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82292         (calc_inveclosure, parse_dup_op, build_range_exp):
82293         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82294         (fetch_number, create_token_tree, mark_opt_subexp):
82295         Likewise.
82296         * lib/regex_internal.c (re_string_construct_common,
82297         create_ci_newstate):
82298         (create_cd_newstate, re_string_allocate, re_string_construct):
82299         (re_string_realloc_buffers, build_wcs_upper_buffer):
82300         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82301         (re_string_reconstruct, re_string_peek_byte_case):
82302         (re_string_fetch_byte_case, re_string_context_at):
82303         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82304         (re_node_set_init_copy, re_node_set_add_intersect):
82305         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82306         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82307         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82308         (re_acquire_state, re_acquire_state_context, register_state):
82309         Likewise.
82310         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82311         search_cur_bkref_entry):
82312         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82313         (re_search_internal, re_search_2_stub, re_search_stub)
82314         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82315         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82316         (update_cur_sifted_state, check_dst_limits):
82317         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82318         (check_subexp_limits, sift_states_bkref, merge_state_array):
82319         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82320         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82321         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82322         (expand_bkref_cache, check_node_accept_bytes):
82323         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82324         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82325         (acquire_init_state_context, check_halt_node_context):
82326         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82327         (sift_states_backward, clean_state_log_if_needed):
82328         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82329         (find_recover_state, transit_state_sb, transit_state_mb):
82330         (transit_state_bkref, build_trtable, match_ctx_clean):
82331         Likewise.
82332         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82333         to work around an assumption that REG_MISSING is negative.
82334
82335         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82336         (seek_collating_symbol_entry) [defined _LIBC]:
82337         (lookup_collation_sequence_value) [defined _LIBC]:
82338         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82339         Use prototypes rather than old-style function definitions.
82340         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82341         (transit_state_sb) [0]:
82342         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82343
82344         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82345         rm_eo.
82346
82347         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82348         (optimize_subexps, lower_subexp):
82349         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82350         since the signed shift might overflow.  Use 1u<<31 instead.
82351         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82352         Likewise.
82353         * lib/regexec.c (check_dst_limits_calc_pos_1,
82354         check_subexp_matching_top): Likewise.
82355
82356         * lib/regcomp.c (optimize_subexps, lower_subexp):
82357         Use CHAR_BIT rather than 8, for clarity.
82358         * lib/regexec.c (check_dst_limits_calc_pos_1):
82359         (check_subexp_matching_top): Likewise.
82360         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82361         have to worry about portability issues when shifting it left.
82362         Remove no-longer-needed test for table_size > 0.
82363         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82364         in a word, as the resulting behavior is undefined.
82365         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82366         in one case, a <= should have been an <, and in another case the
82367         whole test was missing.
82368         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82369         the standard name CHAR_BIT.
82370         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82371         this is not true on one's complement and signed-magnitude hosts.
82372
82373         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82374         next_last_offset.
82375         (struct re_dfa_t): Remove unused member states_alloc.
82376         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82377
82378 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82379
82380         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82381         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82382         and large-file glibc and in 32-bit large-file Solaris.
82383
82384 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82385
82386         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82387         lengths fit in regoff_t; this isn't true if regoff_t is the same
82388         width as size_t.
82389         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82390         (= START + RANGE) instead of RANGE.  This avoids overflow
82391         problems when regoff_t is the same width as size_t.
82392         All callers changed.
82393         (re_search_2_stub): Check for overflow when adding the
82394         sizes of the two strings.
82395         (re_search_stub): Check for overflow when adding START
82396         to RANGE; if it occurs, substitute the extreme value.
82397
82398 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82399
82400         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82401
82402 2005-08-31  Jim Meyering  <jim@meyering.net>
82403
82404         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82405         a pointer-to-const.
82406         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82407         (register_state): Likewise.
82408         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82409         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82410         (group_nodes_into_DFAstates): Likewise.
82411
82412 2005-08-31  Jim Meyering  <jim@meyering.net>
82413
82414         * check-module: Add a FIXME comment.
82415
82416 2005-08-31  Eric Blake  <ebb9@byu.net>
82417
82418         * modules/unistd-safer (Files): Add unistd--.h.
82419         * modules/stdio-safer (Files): Add stdio--.h.
82420
82421 2005-08-31  Derek Price  <derek@ximbiot.com>
82422
82423         * lib/getdelim.c (getdelim): Return EOF on EOF.
82424         Reported by Larry Jones <lawrence.jones@ugs.com>.
82425
82426 2005-08-31  Bruno Haible  <bruno@clisp.org>
82427
82428         Avoid unnecessary diffs in the generated lib/Makefile.am.
82429         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82430         the generated files.
82431         (func_import): Don't set cmd.
82432
82433 2005-08-31  Bruno Haible  <bruno@clisp.org>
82434
82435         * lib/strstr.c: Include <stddef.h>, for NULL.
82436         * lib/strcasestr.c: Likewise.
82437         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82438
82439 2005-08-31  Bruno Haible  <bruno@clisp.org>
82440
82441         * gnulib-tool: New option --macro-prefix.
82442         (func_import): Use macro_prefix.
82443         (import): Handle option --macro-prefix.
82444
82445 2005-08-31  Bruno Haible  <bruno@clisp.org>
82446
82447         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82448         Also use new variables cached_lgpl, cached_libtool.
82449
82450 2005-08-31  Bruno Haible  <bruno@clisp.org>
82451
82452         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82453         always instantiating them.
82454
82455 2005-08-31  Bruno Haible  <bruno@clisp.org>
82456
82457         * gnulib-tool (func_import): Read the previous cached settings
82458         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82459         earlier added by gnulib but are now dropped. Warn when a gnulib file
82460         overwrites a non-gnulib file.
82461
82462 2005-08-31  Bruno Haible  <bruno@clisp.org>
82463
82464         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82465         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82466         projects that don't keep autogenerated files in CVS. Put into
82467         actioncmd only the specified modules, not the transitive closure.
82468
82469 2005-08-31  Bruno Haible  <bruno@clisp.org>
82470
82471         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82472         Create directories that shall be filled.
82473         (import): Don't look for gl_* macros in configure.ac. Recurse across
82474         all directories containing a gnulib-cache.m4 files, if meaningful.
82475
82476 2005-08-31  Bruno Haible  <bruno@clisp.org>
82477
82478         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82479         (import): Set seen_libtool when we see gl_LIBTOOL.
82480
82481 2005-08-31  Bruno Haible  <bruno@clisp.org>
82482
82483         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82484         declaration macro definitions from generated gnulib.m4.
82485
82486 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82487
82488         * lib/iconvme.h: Add prototype for iconv_alloc.
82489
82490 2005-08-29  Simon Josefsson  <jas@extundo.com>
82491
82492         * lib/iconvme.c: Fix errno.
82493
82494 2005-08-29  Bruno Haible  <bruno@clisp.org>
82495
82496         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82497         that it works when the directory contains spaces.
82498
82499 2005-08-29  Bruno Haible  <bruno@clisp.org>
82500
82501         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82502
82503 2005-08-29  Bruno Haible  <bruno@clisp.org>
82504
82505         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82506         Emit more advice.
82507
82508 2005-08-29  Bruno Haible  <bruno@clisp.org>
82509         and Stepan Kasal  <kasal@ucw.cz>
82510
82511         * check-module: If more parameters are given, check each of them
82512         separately; add more exceptions, as noted by Jim Meyering.
82513         (check_module): New procedure.
82514         (%exempt_header): Now contains all exceptions.
82515
82516 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82517
82518         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82519
82520 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82521
82522         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82523
82524 2005-08-28  Bruno Haible  <bruno@clisp.org>
82525
82526         * m4/gnulib-tool.m4: New file.
82527
82528 2005-08-27  Jim Meyering  <jim@meyering.net>
82529
82530         * modules/unistd-safer (Files): Add pipe-safer.c.
82531         * modules/fcntl-safer (Files): Add creat-safer.c.
82532
82533 2005-08-27  Jim Meyering  <jim@meyering.net>
82534
82535         * m4/stdlib-safer.m4: New file.  From coreutils.
82536         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82537         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82538         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82539         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82540         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82541
82542 2005-08-27  Jim Meyering  <jim@meyering.net>
82543
82544         * lib/fopen-safer.c: Merge minor changes from coreutils.
82545         * lib/dup-safer.c: Likewise.
82546         * lib/fd-safer.c: Likewise.
82547
82548         Merge from coreutils.
82549         * lib/stdio--.h: New file.
82550         * lib/stdlib--.h: New file.
82551         * lib/mkstemp-safer.c: New file.
82552
82553         GNU tar needs these.
82554         * lib/pipe-safer.c: New file.
82555         * lib/creat-safer.c: New file.
82556         * lib/fcntl--.h (creat): Define to creat_safer.
82557         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82558         * lib/unistd--.h (pipe): Define to pipe_safer.
82559         * lib/unistd-safer.h: Declare pipe_safer.
82560
82561 2005-08-26  Simon Josefsson  <jas@extundo.com>
82562
82563         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82564         Haible <bruno@clisp.org>.
82565
82566 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82567
82568         * lib/regex_internal.h: Remove all references to
82569         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82570         or better.
82571         (bitset_not, bitset_merge, bitset_not_merge):
82572         (bitset_mask, re_string_allocate, re_string_construct):
82573         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82574         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82575         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82576         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82577         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82578         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82579         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82580         (re_acquire_state_context):
82581         Remove unnecessary forward decls.
82582         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82583         Put __attribute at function definition,
82584         now that the function decl has been removed.
82585         * lib/regex_internal.c (re_string_peek_byte_case):
82586         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82587         Likewise.
82588
82589 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82590
82591         * m4/regex.m4: Add AC_PREREQ(2.50).
82592         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82593
82594 2005-08-25  Simon Josefsson  <jas@extundo.com>
82595
82596         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82597         __fsetlocking.
82598
82599 2005-08-25  Simon Josefsson  <jas@extundo.com>
82600
82601         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82602         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82603         GLIBC specific code.
82604
82605 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82606
82607         Make regex safe for g++.  This fixes one real bug (an "err"
82608         that should have been "*err").  g++ problem reported by
82609         Sam Steingold.
82610         * lib/regex_internal.h (re_calloc): New macro, consistent with
82611         re_malloc etc.  All callers of calloc changed to use re_calloc.
82612         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82613         not int.  All callers changed.
82614         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82615         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82616         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82617         (find_recover_state): Change "err" to "*err"; this fixes what
82618         appears to be a real bug.
82619         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82620         versus int.
82621
82622 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82623
82624         * modules/regex (Depends-on): Add malloc, since the code
82625         assumes that !malloc(0) means failure.
82626
82627 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82628
82629         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82630
82631         alloca modernization/simplification for regex.
82632         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82633         needs to be at the start of the file, and can be moved into
82634         regex_internal.h and simplified.
82635         * lib/regex_internal.h: Include <alloca.h>.
82636         (__libc_use_alloca) [!defined _LIBC]: New macro.
82637         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82638         now works outside glibc.
82639
82640 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82641
82642         * config/srclist.txt: Add glibc bugs 1241, 1245.
82643
82644 2005-08-25  Jim Meyering  <jim@meyering.net>
82645
82646         * lib/open-safer.c: Include <config.h>.
82647         Otherwise, we'd lose LARGEFILE support in any file using
82648         e.g. "fcntl--.h"
82649
82650 2005-08-25  Bruno Haible  <bruno@clisp.org>
82651
82652         * m4/minmax.m4: Require autoconf 2.52.
82653         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82654         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82655         alternatives of translit over the alphabet.
82656         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82657
82658 2005-08-24  Simon Josefsson  <jas@extundo.com>
82659
82660         * tests/test-getpass.c: New file.
82661
82662 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82663
82664         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82665         for GNU regex features.
82666
82667 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82668
82669         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82670         * lib/regex.h (regerror): Likewise.
82671
82672         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82673         requires this.  (The code never needed it.)
82674
82675         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82676         All uses of recently-renamed identifiers changed to use the new,
82677         POSIX-compliant names.  The code will build and run just fine
82678         without these changes, but it's better to eat our own dog food
82679         and use the standard-conforming names.
82680
82681         * lib/regex.h: Fix a multitude of POSIX name space violations.
82682         These changes have an effect only for programs that define
82683         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82684         do not change anything for programs compiled in the normal way.
82685         Also, there is no effect on the ABI.
82686
82687         (_REGEX_SOURCE): New macro.
82688         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82689         defined and _GNU_SOURCE is not; this fixes a name space violation.
82690
82691         Rename the following macros to obey POSIX requirements.
82692         The old names are still visible as macros if _REGEX_SOURCE is defined.
82693         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82694         RE_BACKSLASH_ESCAPE_IN_LISTS.
82695         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82696         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82697         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82698         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82699         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82700         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82701         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82702         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82703         (REG_INTERVALS): renamed from RE_INTERVALS.
82704         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82705         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82706         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82707         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82708         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82709         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82710         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82711         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82712         RE_UNMATCHED_RIGHT_PAREN_ORD.
82713         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82714         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82715         (REG_DEBUG): renamed from RE_DEBUG.
82716         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82717         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82718         unusual, since we can't clash with the POSIX REG_ICASE.
82719         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82720         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82721         (REG_NO_SUB): renamed from RE_NO_SUB.
82722         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82723         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82724         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82725         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82726         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82727         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82728         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82729         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82730         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82731         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82732         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82733         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82734         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82735         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82736         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82737         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82738         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82739         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82740         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82741         (REG_FIXED): Renamed from REGS_FIXED.
82742         (REG_NREGS): Renamed from RE_NREGS.
82743
82744         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82745         of other REG_* macros, since POSIX says the user is allowed to
82746         #undef these macros selectively.
82747
82748         (reg_errcode_t): Update comment stating what other tables need
82749         to be consistent.
82750
82751         Rename the following enum values to obey POSIX requirements.
82752         The old names are still visible as macros.
82753         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82754         is not defined, since GNU is supposed to be a superset of POSIX as
82755         much as possible, and since we want reg_errcode_t to be a signed
82756         type for implementation consistency.
82757         (_REG_NOERROR): Renamed from REG_NOERROR.
82758         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82759         (_REG_BADPAT): Renamed from REG_BADPAT.
82760         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82761         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82762         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82763         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82764         (_REG_EBRACK): Renamed from REG_EBRACK.
82765         (_REG_EPAREN): Renamed from REG_EPAREN.
82766         (_REG_EBRACE): Renamed from REG_EBRACE.
82767         (_REG_BADBR): Renamed from REG_BADBR.
82768         (_REG_ERANGE): Renamed from REG_ERANGE.
82769         (_REG_ESPACE): Renamed from REG_ESPACE.
82770         (_REG_BADRPT): Renamed from REG_BADRPT.
82771         (_REG_EEND): Renamed from REG_EEND.
82772         (_REG_ESIZE): Renamed from REG_ESIZE.
82773         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82774         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82775         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82776         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82777         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82778
82779         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82780         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82781         changed.  But support the old name if the new one is not defined
82782         and if _REGEX_SOURCE.
82783
82784         Change the following member names in struct re_pattern_buffer.
82785         The old names are still supported if !_REGEX_SOURCE.
82786         The new names are always supported, regardless of _REGEX_SOURCE.
82787         (re_buffer): Renamed from buffer.
82788         (re_allocated): Renamed from allocated.
82789         (re_used): Renamed from used.
82790         (re_syntax): Renamed from syntax.
82791         (re_fastmap): Renamed from fastmap.
82792         (re_translate): Renamed from translate.
82793         (re_can_be_null): Renamed from can_be_null.
82794         (re_regs_allocated): Renamed from regs_allocated.
82795         (re_fastmap_accurate): Renamed from fastmap_accurate.
82796         (re_no_sub): Renamed from no_sub.
82797         (re_not_bol): Renamed from not_bol.
82798         (re_not_eol): Renamed from not_eol.
82799         (re_newline_anchor): Renamed from newline_anchor.
82800
82801         Change the following member names in struct re_registers.
82802         The old names are still supported if !_REGEX_SOURCE.
82803         The new names are always supported, regardless of _REGEX_SOURCE.
82804         (rm_num_regs): Renamed from num_regs.
82805         (rm_start): Renamed from start.
82806         (rm_end): Renamed from end.
82807
82808         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82809         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82810         Prepend __ to parameter names.
82811
82812         Undo yesterday's changes.
82813
82814 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82815
82816         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82817         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82818         lib/regex.c.
82819
82820 2005-08-24  Jim Meyering  <jim@meyering.net>
82821
82822         Sync from coreutils.
82823         * m4/fcntl-safer.m4: New file.
82824
82825         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82826         and object files for this module.
82827
82828 2005-08-24  Jim Meyering  <jim@meyering.net>
82829
82830         Sync from coreutils.
82831         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82832
82833 2005-08-24  Jim Meyering  <jim@meyering.net>
82834
82835         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82836         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82837
82838 2005-08-24  Jim Meyering  <jim@meyering.net>
82839
82840         * modules/fcntl-safer: New module.
82841         * modules/fts (Depends-on): Add fcntl-safer.
82842         * MODULES.html.sh (File descriptor based Input/Output):
82843         Add fcntl-safer.
82844
82845 2005-08-24  Bruno Haible  <bruno@clisp.org>
82846
82847         Support for unit test modules.
82848         * modules/README: Mention tests modules.
82849         * modules/TEMPLATE-TESTS: New file.
82850         * gnulib-tool: New options --extract-tests-module, --with-tests and
82851         --tests-base (unused for the moment).
82852         (testsbase, inctests): New variables.
82853         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82854         (func_verify_module): Exclude TEMPLATE-TESTS.
82855         (func_verify_nontests_module, func_verify_tests_module): New functions.
82856         (func_get_dependencies): Add implicit dependency for tests modules.
82857         (func_get_tests_module): New function.
82858         (func_modules_transitive_closure): When --with-tests was specified,
82859         include the unit tests as well, unless explicitly avoided.
82860         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82861         (func_emit_tests_Makefile_am): New function.
82862         (func_create_testdir): When --with-tests was specified, emit a
82863         tests/ directory.
82864         * MODULES.html.sh (Future developments): Update.
82865
82866 2005-08-24  Bruno Haible  <bruno@clisp.org>
82867
82868         * modules/tls-tests: New file.
82869         * tests/test-tls.c: New file, from GNU gettext.
82870
82871 2005-08-24  Bruno Haible  <bruno@clisp.org>
82872
82873         * modules/lock-tests: New file.
82874         * tests/test-lock.c: New file, from GNU gettext.
82875
82876 2005-08-24  Bruno Haible  <bruno@clisp.org>
82877
82878         * lib/lock.h: Add multiple inclusion guard.
82879         * lib/tls.h: Add multiple inclusion guard.
82880
82881 2005-08-24  Bruno Haible  <bruno@clisp.org>
82882
82883         * gnulib-tool: Add support for the --aux-dir option to
82884         --create-testdir, --create-megatestdir, --test, --megatest.
82885         (func_create_testdir, func_create_megatestdir): Optionally emit a
82886         AC_CONFIG_AUX_DIR directive.
82887         (create-testdir, create-megatestdir, test, megatest): Provide a
82888         default value for $auxdir.
82889
82890 2005-08-24  Bruno Haible  <bruno@clisp.org>
82891
82892         * gnulib-tool (import): Use compound statement instead of subshell
82893         where possible.
82894
82895 2005-08-24  Bruno Haible  <bruno@clisp.org>
82896
82897         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82898
82899 2005-08-24  Bruno Haible  <bruno@clisp.org>
82900
82901         * gnulib-tool (func_version): Update.
82902
82903 2005-08-24  Bruno Haible  <bruno@clisp.org>
82904
82905         * gnulib-tool (func_import, func_create_testdir,
82906         func_create_megatestdir): Quote all autoconf macro arguments.
82907
82908 2005-08-24  Bruno Haible  <bruno@clisp.org>
82909
82910         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82911         option --force, because --force causes the aclocal.m4 of each
82912         subdirectory to be newer than the corresponding config.h.in.
82913
82914 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82915
82916         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82917         All contents moved to gl_REGEX.
82918         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82919         assume that it does.
82920
82921 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82922
82923         * lib/regex.h (REG_NOSYS)
82924         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82925         Define, since POSIX requires it as of 2001.
82926         (_REG_ENOSYS)
82927         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82928         New private symbol, used to keep the enum signed in all cases.
82929         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82930         Youngman in
82931         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82932
82933         * lib/regex_internal.c (re_string_skip_chars, register_state):
82934         (calc_state_hash):
82935         Remove forward decls; no longer needed now that we use prototypes.
82936         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82937         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82938         (clean_state_log_if_needed): Likewise.
82939
82940 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82941
82942         * config/srclist.txt: Add glibc bugs 1231-1233.
82943
82944 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82945
82946         Fix problems reported by Sam Steingold in
82947         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82948         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82949         assumed that reg_errcode_t is a signed type, which is not
82950         necessarily true if _XOPEN_SOURCE is not defined.
82951         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82952         since some compilers warn about it otherwise.
82953
82954 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82955
82956         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82957         (init_word_char, create_initial_state, duplicate_node_closure):
82958         (fetch_token, peek_token_bracket, build_range_exp):
82959         (build_collating_symbol): Remove forward decls; no longer needed
82960         now that we use prototypes.
82961
82962         * lib/regcomp.c:
82963         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82964         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82965         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82966         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82967         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82968         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82969         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82970         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82971         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82972         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82973         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82974         (build_charclass, build_charclass_op, fetch_number, create_tree):
82975         (create_token_tree, mark_opt_subexp, duplicate_tree):
82976         Use prototypes rather than old-style definitions.
82977
82978         * lib/regex_internal.c:
82979         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82980         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82981         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82982         (re_string_reconstruct, re_string_peek_byte_case):
82983         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82984         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82985         (re_node_set_init_copy, re_node_set_add_intersect):
82986         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82987         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82988         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82989         (re_acquire_state, re_acquire_state_context, register_state):
82990         (create_ci_newstate, create_cd_newstate, free_state):
82991         Likewise.
82992         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82993         re_search_2):
82994         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82995         (re_search_internal, prune_impossible_nodes):
82996         (acquire_init_state_context, check_matching, static):
82997         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82998         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82999         (update_regs, sift_states_backward, build_sifted_states):
83000         (clean_state_log_if_needed, merge_state_array):
83001         (update_cur_sifted_state, add_epsilon_src_nodes):
83002         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
83003         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
83004         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
83005         (find_recover_state, check_subexp_matching_top, transit_state_mb):
83006         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
83007         (check_arrival, check_arrival_add_next_nodes):
83008         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83009         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83010         (check_node_accept_bytes, check_node_accept, extend_buffers):
83011         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
83012         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
83013         (sift_ctx_init):
83014         Likewise.
83015
83016         * lib/regex_internal.h:
83017         (re_string_allocate, re_string_construct, re_string_reconstruct):
83018         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
83019         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
83020         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
83021         (re_string_context_at, re_string_peek_byte_case):
83022         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
83023         is defined, since we now use prototypes always.
83024
83025         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
83026         C89 or better.  All uses removed.
83027
83028 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83029
83030         * config/srclist.txt: Add glibc bugs 1220-1227.
83031
83032 2005-08-20  Jim Meyering  <jim@meyering.net>
83033
83034         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
83035         of unused local, dfa.
83036
83037 2005-08-20  Bruno Haible  <bruno@clisp.org>
83038
83039         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
83040
83041 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83042
83043         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
83044         (re_node_set_insert_last, re_dfa_add_node):
83045         Rename local variables to avoid GCC shadowing warnings.
83046
83047 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83048
83049         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
83050         [defined lint]: Suppress bogus uninitialized-variable warnings.
83051
83052         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
83053         and let the caller return REG_ESPACE if out of space.  This
83054         removes an uninitialied-variable warning with GCC 4.0.1, and also
83055         avoids taking the address of a local variable.  All callers
83056         changed.
83057
83058 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83059
83060         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
83061         $LIBCSRC/posix/regexec.c.
83062         Add glibc bug 1217 for regcomp.c.
83063
83064 2005-08-19  Jim Meyering  <jim@meyering.net>
83065
83066         * lib/regexec.c (proceed_next_node): Redo local variables to
83067         avoid GCC shadowing warnings.
83068
83069 2005-08-18  Bruno Haible  <bruno@clisp.org>
83070
83071         * lib/strstr.c (strstr): Fix return value in multibyte case.
83072         * lib/strcasestr.c (strcasestr): Likewise.
83073
83074 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83075
83076         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
83077
83078 2005-08-17  Jim Meyering  <jim@meyering.net>
83079
83080         Make the %s format (seconds since the epoch) work for a negative
83081         number and when used with a zero-padded field width, e.g. %015s.
83082
83083         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
83084         label so that it precedes the code to set `digits'.  Otherwise,
83085         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
83086         print `00-22'.  Now, it prints `-0022', as it should.
83087
83088 2005-08-17  Bruno Haible  <bruno@clisp.org>
83089
83090         * modules/strstr (Files): Add m4/mbrtowc.m4.
83091         (Depends-on): Add mbuiter.
83092
83093 2005-08-17  Bruno Haible  <bruno@clisp.org>
83094
83095         * modules/strcasestr: New file.
83096         * MODULES.html.sh (String handling, based on ANSI C 89): Add
83097         strcasestr.
83098
83099 2005-08-17  Bruno Haible  <bruno@clisp.org>
83100
83101         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
83102
83103 2005-08-17  Bruno Haible  <bruno@clisp.org>
83104
83105         * modules/mbuiter: New file.
83106         * MODULES.html.sh (Extended multibyte and wide character utilities):
83107         Add mbuiter.
83108
83109 2005-08-17  Bruno Haible  <bruno@clisp.org>
83110
83111         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
83112         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
83113
83114 2005-08-17  Bruno Haible  <bruno@clisp.org>
83115
83116         * m4/strcasestr.m4: New file.
83117
83118 2005-08-17  Bruno Haible  <bruno@clisp.org>
83119
83120         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
83121         * lib/strstr.c: Completely rewritten, with multibyte locale support.
83122
83123 2005-08-17  Bruno Haible  <bruno@clisp.org>
83124
83125         * lib/strcasestr.h: New file.
83126         * lib/strcasestr.c: New file.
83127
83128 2005-08-17  Bruno Haible  <bruno@clisp.org>
83129
83130         * lib/strcasecmp.c: Use mbuiter.h.
83131
83132 2005-08-17  Bruno Haible  <bruno@clisp.org>
83133
83134         * lib/mbuiter.h: New file.
83135
83136 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83137
83138         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83139         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83140         and gl_GETOPT are both invoked via different paths (as happens
83141         with GNU tar CVS because it uses both argp and getopt), the former
83142         wins.
83143
83144 2005-08-16  Bruno Haible  <bruno@clisp.org>
83145
83146         * modules/tls: New file.
83147         * MODULES.html.sh (Multithreading): Add tls.
83148
83149 2005-08-16  Bruno Haible  <bruno@clisp.org>
83150
83151         * modules/strnlen1: New file.
83152         * MODULES.html.sh (String handling): Add strnlen1.
83153
83154 2005-08-16  Bruno Haible  <bruno@clisp.org>
83155
83156         * modules/strcase (Files): Add m4/mbrtowc.m4.
83157         (Depends-on): Add strnlen1, mbchar.
83158
83159 2005-08-16  Bruno Haible  <bruno@clisp.org>
83160
83161         * modules/mbiter: New file.
83162         * MODULES.html.sh (Extended multibyte and wide character utilities):
83163         Add mbiter.
83164
83165 2005-08-16  Bruno Haible  <bruno@clisp.org>
83166
83167         * modules/mbfile: New file.
83168         * MODULES.html.sh (Extended multibyte and wide character utilities):
83169         Add mbfile.
83170
83171 2005-08-16  Bruno Haible  <bruno@clisp.org>
83172
83173         * modules/mbchar: New file.
83174         * MODULES.html.sh (Extended multibyte and wide character utilities):
83175         New section.
83176
83177 2005-08-16  Bruno Haible  <bruno@clisp.org>
83178
83179         * m4/tls.m4: New file, from GNU gettext.
83180
83181 2005-08-16  Bruno Haible  <bruno@clisp.org>
83182
83183         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83184         always.
83185         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83186
83187 2005-08-16  Bruno Haible  <bruno@clisp.org>
83188
83189         * m4/mbiter.m4: New file.
83190
83191 2005-08-16  Bruno Haible  <bruno@clisp.org>
83192
83193         * m4/mbfile.m4: New file.
83194
83195 2005-08-16  Bruno Haible  <bruno@clisp.org>
83196
83197         * m4/mbchar.m4: New file.
83198
83199 2005-08-16  Bruno Haible  <bruno@clisp.org>
83200
83201         * lib/tls.h: New file, from GNU gettext.
83202         * lib/tls.c: New file, from GNU gettext.
83203
83204 2005-08-16  Bruno Haible  <bruno@clisp.org>
83205
83206         * lib/strnlen1.h: New file.
83207         * lib/strnlen1.c: New file.
83208
83209 2005-08-16  Bruno Haible  <bruno@clisp.org>
83210
83211         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83212         (mbi_init): Update.
83213         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83214         NUL byte, not after it.
83215
83216 2005-08-16  Bruno Haible  <bruno@clisp.org>
83217
83218         * lib/strcase.h (strcasecmp): Add note in comments.
83219         * lib/strncasecmp.c: Use code from strcasecmp.c.
83220         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83221         (strcasecmp): Work correctly in multibyte locales.
83222
83223 2005-08-16  Bruno Haible  <bruno@clisp.org>
83224
83225         * lib/mbiter.h: New file.
83226
83227 2005-08-16  Bruno Haible  <bruno@clisp.org>
83228
83229         * lib/mbfile.h: New file.
83230
83231 2005-08-16  Bruno Haible  <bruno@clisp.org>
83232
83233         * lib/mbchar.h: New file.
83234         * lib/mbchar.c: New file.
83235
83236 2005-08-16  Bruno Haible  <bruno@clisp.org>
83237
83238         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83239         the valid ones. Makes the comparison operations transitive:
83240         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83241         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83242
83243 2005-08-15  Simon Josefsson  <jas@extundo.com>
83244
83245         * modules/ssize_t (License): Change to 'unlimited'.
83246
83247         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83248
83249 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83250
83251         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83252         Add comments for each pending glibc patch.
83253
83254 2005-08-15  Bruno Haible  <bruno@clisp.org>
83255
83256         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83257         __cplusplus is defined.
83258
83259 2005-08-14  Jim Meyering  <jim@meyering.net>
83260
83261         Sync from coreutils.
83262
83263         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83264         Use the hash-table-based cycle-detection code not just when
83265         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83266         Reported by James Youngman in
83267         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83268         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83269         FTS_TIGHT_CYCLE_CHECK.
83270         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83271         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83272         once again.
83273         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83274         * lib/fts.c (fd_safer): Remove decl.
83275         Include fcntl--.h rather than unistd-safer.h
83276         (fts_safe_changedir): Don't call fd_safer; no longer needed
83277         now that we include fcntl--.h.
83278
83279 2005-08-12  Simon Josefsson  <jas@extundo.com>
83280
83281         * modules/getndelim2: Use ssize_t module.
83282         * modules/getnline: Likewise.
83283         * modules/safe-read: Likewise.
83284         * modules/xreadlink: Likewise.
83285
83286         * modules/ssize_t: New file.
83287
83288 2005-08-12  Simon Josefsson  <jas@extundo.com>
83289
83290         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83291
83292 2005-08-12  Simon Josefsson  <jas@extundo.com>
83293
83294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83295         ssize_t.
83296
83297 2005-08-12  Simon Josefsson  <jas@extundo.com>
83298
83299         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83300         readline, getdelim and check_version.
83301         (Support for systems lacking ISO C 99: Sizes of integer types):
83302         Add size_max.
83303
83304 2005-08-12  Bruno Haible  <bruno@clisp.org>
83305
83306         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83307
83308 2005-08-11  Simon Josefsson  <jas@extundo.com>
83309
83310         * modules/readline: New file.
83311
83312         * modules/strnlen (Files): Add strnlen.h.
83313
83314 2005-08-11  Simon Josefsson  <jas@extundo.com>
83315
83316         * m4/readline.m4: New file.
83317
83318 2005-08-11  Simon Josefsson  <jas@extundo.com>
83319
83320         * lib/readline.h, readline.c: New file.
83321
83322 2005-08-11  Simon Josefsson  <jas@extundo.com>
83323
83324         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83325         gl_AVOID.
83326
83327 2005-08-11  Bruno Haible  <bruno@clisp.org>
83328
83329         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83330
83331 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83332
83333         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83334
83335 2005-08-10  Simon Josefsson  <jas@extundo.com>
83336
83337         * tests/test-iconvme.c: New file.
83338
83339 2005-08-10  Simon Josefsson  <jas@extundo.com>
83340
83341         * m4/strnlen.m4: New file.
83342
83343         * m4/strndup.m4: Don't check for strnlen declaration, done in
83344         strnlen.m4.
83345
83346 2005-08-10  Simon Josefsson  <jas@extundo.com>
83347
83348         * lib/strndup.c: Use strnlen.h.
83349
83350         * lib/strnlen.h: New file.
83351
83352 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83353
83354         * README: Typos.
83355
83356 2005-08-02  Simon Josefsson  <jas@extundo.com>
83357
83358         * modules/readline: New file.
83359
83360 2005-08-02  Simon Josefsson  <jas@extundo.com>
83361
83362         * modules/getdelim: New file.
83363
83364         * modules/getline: Rewrite, don't use getndelim2.
83365
83366 2005-08-02  Simon Josefsson  <jas@extundo.com>
83367
83368         * m4/getline.m4: Separate out getdelim stuff into separate module.
83369
83370         * m4/getdelim.m4: New file.
83371
83372 2005-08-02  Simon Josefsson  <jas@extundo.com>
83373
83374         * lib/getline.h, getline.c: Rewrite.
83375
83376         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83377
83378 2005-07-31  Bruno Haible  <bruno@clisp.org>
83379
83380         * lib/lock.h (gl_lock_initializer): New macro.
83381         (gl_lock_define_initialized): Use it.
83382         (gl_rwlock_initializer): New macro.
83383         (gl_rwlock_define_initialized): Use it.
83384         (gl_recursive_lock_initializer): New macro.
83385         (gl_recursive_lock_define_initialized): Use it.
83386
83387 2005-07-30  Karl Berry  <karl@gnu.org>
83388
83389         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83390         Report from Ben Pfaff, regarding getopt.
83391
83392 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83393
83394         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83395         normal way.
83396         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83397         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83398         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83399         (gl_GETOPT): Use the new macros.  Most of the implementation
83400         is moved to the new macros.  This is for programs like Emacs
83401         that don't want all the functionality of gl_GETOPT.
83402
83403 2005-07-26  Bruno Haible  <bruno@clisp.org>
83404
83405         * m4/lock.m4: Update from GNU gettext.
83406
83407 2005-07-26  Bruno Haible  <bruno@clisp.org>
83408
83409         * lib/lock.h: Update from GNU gettext.
83410         * lib/lock.c: Update from GNU gettext.
83411
83412 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83413
83414         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83415         obsolescent AC_TRY_RUN.  Include the default includes files, for
83416         'exit'.
83417
83418 2005-07-24  Bruno Haible  <bruno@clisp.org>
83419
83420         * modules/visibility: New file.
83421         * MODULES.html.sh (Misc): Add visibility.
83422
83423 2005-07-24  Bruno Haible  <bruno@clisp.org>
83424
83425         * m4/visibility.m4: New file.
83426
83427 2005-07-24  Bruno Haible  <bruno@clisp.org>
83428
83429         * doc/visibility.texi: New file.
83430
83431 2005-07-22  Bruno Haible  <bruno@clisp.org>
83432
83433         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83434         $(ALLOCA_H), redundant through BUILT_SOURCES.
83435         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83436         redundant through BUILT_SOURCES.
83437         * modules/byteswap (Makefile.am): Remove explicit dependency on
83438         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83439         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83440         $(FNMATCH_H), redundant through BUILT_SOURCES.
83441         * modules/getopt (Makefile.am): Remove explicit dependency on
83442         $(GETOPT_H), redundant through BUILT_SOURCES.
83443         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83444         redundant through BUILT_SOURCES.
83445         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83446         redundant through BUILT_SOURCES.
83447         * modules/stdbool (Makefile.am): Remove explicit dependency on
83448         $(STDBOOL_H), redundant through BUILT_SOURCES.
83449         * modules/stdint (Makefile.am): Remove explicit dependency on
83450         $(STDINT_H), redundant through BUILT_SOURCES.
83451         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83452         Remove explicit dependency on $(SYSEXITS_H).
83453         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83454
83455 2005-07-18  Simon Josefsson  <jas@extundo.com>
83456
83457         * lib/check-version.c (check_version): Accept identical versions too.
83458
83459 2005-07-18  Bruno Haible  <bruno@clisp.org>
83460
83461         * modules/lock: New file.
83462         * MODULES.html.sh (Multithreading): New section.
83463
83464 2005-07-18  Bruno Haible  <bruno@clisp.org>
83465
83466         * m4/lock.m4: New file, from GNU gettext.
83467
83468 2005-07-18  Bruno Haible  <bruno@clisp.org>
83469
83470         * lib/lock.h: New file, from GNU gettext.
83471         * lib/lock.c: New file, from GNU gettext.
83472
83473 2005-07-18  Bruno Haible  <bruno@clisp.org>
83474
83475         * lib/lock.h (gl_once_t): New type.
83476         (gl_once_define, gl_once): New macros.
83477         * lib/lock.c (fresh_once): New variable.
83478         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83479         functions.
83480
83481 2005-07-16  Simon Josefsson  <jas@extundo.com>
83482
83483         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83484         workaround, suggested by Bruno.
83485
83486 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83487
83488         * modules/xalloc (Depends-on): Add xalloc-die.
83489         * modules/xvasprintf (Depends-on): Add xalloc-die.
83490
83491 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83492
83493         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83494         with a minor change.
83495
83496 2005-07-15  Bruno Haible  <bruno@clisp.org>
83497
83498         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83499         When using lib/poll.c, define poll as rpl_poll.
83500
83501 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83502
83503         * modules/argp (Depends-on): Remove unlocked-io.
83504
83505 2005-07-14  Derek Price  <derek@ximbiot.com>
83506
83507         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83508         for glob symlink bug.
83509
83510 2005-07-14  Bruno Haible  <bruno@clisp.org>
83511
83512         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83513         Instead, test for *_unlocked function declarations directly.
83514
83515 2005-07-11  Simon Josefsson  <jas@extundo.com>
83516
83517         * modules/size_max: New file.
83518
83519         * modules/xsize: Depend on size_max module for size_max.m4.
83520
83521 2005-07-11  Simon Josefsson  <jas@extundo.com>
83522
83523         * lib/size_max.h: New file.
83524
83525 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83526
83527         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83528         copyright symbol and the year.
83529         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83530         (version_etc_va): Use parameterized copyright notice.
83531         Reword to conform to the current GNU coding standards.
83532
83533 2005-07-11  Karl Berry  <karl@gnu.org>
83534
83535         * doc/gnulib.texi (Quoting): new node.
83536         (Initial import): more info, from Patrice.
83537
83538 2005-07-11  Bruno Haible  <bruno@clisp.org>
83539
83540         * gnulib-tool (func_usage): Document option --avoid.
83541         (Command line options): Handle --avoid.
83542         (func_acceptable): New function.
83543         (func_modules_transitive_closure): Use it.
83544
83545 2005-07-11  Bruno Haible  <bruno@clisp.org>
83546
83547         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83548         Reported by Jim Meyering.
83549
83550 2005-07-10  Bruno Haible  <bruno@clisp.org>
83551
83552         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83553         Needed when size_t is smaller than 'unsigned int'.
83554         Reported by Paul Eggert.
83555
83556 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83557
83558         * modules/argp (Depends-on): Add unlocked-io
83559
83560 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83561
83562         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83563         block of defines.
83564
83565 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83566
83567         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83568         fix now.
83569
83570 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83571         and Paul Eggert  <eggert@cs.ucla.edu>
83572
83573         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83574         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83575
83576 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83577
83578         * modules/regex (Files): Add lib/regex_internal.c,
83579         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83580         (Depends-on): Add extensions.
83581         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83582
83583 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83584
83585         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83586         pathconf.
83587         * m4/same.m4 (gl_SAME): Likewise.
83588         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83589
83590         * m4/regex.m4: Adjust to new libc regex implementation.
83591         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83592         all the .c and .h parts of (the new) regex.
83593         Quote the m4 stuff better.
83594         Check for RE_ICASE bug of old gnulib.
83595         Check for REG_STARTEND of recent libc.
83596         Rename local variables from jm_* to gl_*.
83597         Quote operand of "test -f".
83598         Say "recent enough" version of libc, not "version 2".
83599         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83600         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83601         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83602         Remove check for btowc, isascii.
83603         Require AM_LANGINFO_CODESET.
83604
83605 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83606
83607         * lib/regex.c, regex.h: Sync from libc.
83608         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83609         * lib/regexec.c:
83610         New files, synced from libc, except that regex_internal.h
83611         currently has a small porting fix.
83612
83613 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83614
83615         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83616         regex_internal.c, regexec.c.
83617         Add regex_internal.h too, but as a comment, since the libc version
83618         is currently broken in gnulib mode.
83619
83620 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83621
83622         Support programs like Emacs that use gnulib but not gettext.
83623         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83624         * modules/gettext-h: New file.
83625         * modules/gettext (Files): Remove lib/gettext.h.
83626         (Depends-on): Add gettext-h.
83627         (Makefile.am): Remove lib_SOURCES.
83628         * modules/argmatch, modules/c-stack, modules/closeout:
83629         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83630         * modules/execute, modules/file-type, modules/getaddrinfo:
83631         * modules/getopt, modules/human, modules/javacomp:
83632         * modules/javaexec, modules/mkdir-p, modules/obstack:
83633         * modules/openat, modules/pagealign_alloc, modules/pipe:
83634         * modules/quotearg, modules/regex, modules/rpmatch:
83635         * modules/unicodeio, modules/userspec, modules/version-etc:
83636         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83637         * modules/xsetenv:
83638         Depend on gettext-h, not gettext.
83639
83640 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83641
83642         * gnulib-tool (func_import): Add support for 'public domain' license.
83643         * modules/alloca, modules/atexit, modules/memmove:
83644         Now public domain, not GPL.
83645         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83646         * modules/realloc, modules/strerror, modules/strtod:
83647         Now LGPL, not GPL.
83648
83649 2005-07-05  Bruno Haible  <bruno@clisp.org>
83650
83651         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83652         autoconf CVS. Needed for mingw.
83653
83654 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83655
83656         Remove the dependency of the strftime module on the tzset module.
83657         * modules/strftime (Depends-on): Remove dependency on tzset.
83658
83659 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83660
83661         Remove the dependency of the strftime module on the tzset module.
83662         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83663         gl_FUNC_TZSET_CLOBBER.
83664
83665 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83666
83667         Remove the dependency of the strftime module on the tzset module.
83668         * lib/strftime.c (my_strftime)
83669         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83670         Copy the input structure, to work around some of the bug with
83671         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83672         Solaris releases, you should also use the tzset module, but we won't
83673         require it as a dependency any more since we don't want LGPLed code
83674         to depend on GPLed code.
83675
83676 2005-07-02  Jim Meyering  <jim@meyering.net>
83677
83678         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83679         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83680         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83681         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83682
83683 2005-07-02  Jim Meyering  <jim@meyering.net>
83684
83685         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83686
83687 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83688
83689         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83690         declares only 'struct timespec;' (!).
83691
83692 2005-07-01  Jim Meyering  <jim@meyering.net>
83693
83694         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83695         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83696         * lib/save-cwd.c, tempname.c:
83697         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83698         and don't include <sys/file.h>).
83699
83700 2005-06-29  Jim Meyering  <jim@meyering.net>
83701
83702         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83703         type name.  Use the variable name instead.
83704         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83705         Likewise.
83706
83707 2005-06-28  Simon Josefsson  <jas@extundo.com>
83708
83709         * modules/check-version (Files): Add check-version.m4.
83710
83711 2005-06-28  Simon Josefsson  <jas@extundo.com>
83712
83713         * m4/check-version.m4: New file, suggested by Jim Meyering
83714         <jim@meyering.net>.
83715
83716 2005-06-28  Simon Josefsson  <jas@extundo.com>
83717
83718         * lib/check-version.h, lib/check-version.c: New files.
83719
83720 2005-06-28  Simon Josefsson  <jas@extundo.com>
83721
83722         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83723         collision with global variable.  Better indentation.  Don't
83724         increment buffer pointer beyond buffer end.  Based on comments
83725         from Paul Eggert <eggert@cs.ucla.edu>.
83726
83727         * lib/base64.h: Indent.
83728
83729 2005-06-28  Simon Josefsson  <jas@extundo.com>
83730
83731         * doc/gnulib.texi (Library version handling): New section.
83732
83733 2005-06-28  Jim Meyering  <jim@meyering.net>
83734
83735         * check-module (find_included_lib_files): Hard-code another
83736         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83737         but modules/fts-lgpl (correctly) does not list those files.
83738
83739         * modules/canonicalize (Files): Add lib/pathmax.h.
83740
83741 2005-06-25  Simon Josefsson  <jas@extundo.com>
83742
83743         * modules/check-version: New file.
83744
83745 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83746
83747         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83748         initializer of struct addrinfo, as an indication that we don't
83749         care how many members the structure has.
83750
83751 2005-06-24  Derek Price  <derek@ximbiot.com>
83752         and Bruno Haible  <bruno@clisp.org>
83753
83754         Remove stat module & update lstat.
83755         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83756         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83757         * m4/stat.m4: Remove this file.
83758
83759 2005-06-24  Derek Price  <derek@ximbiot.com>
83760         and Bruno Haible  <bruno@clisp.org>
83761
83762         Remove stat module & update lstat.
83763         * lib/stat.c: Remove this file...
83764         (slash_aware_lstat): ...moving this content and its support...
83765         * lib/lstat.c (rpl_lstat): ...into here.
83766         * lib/lstat.h: New file.
83767
83768 2005-06-24  Derek Price  <derek@ximbiot.com>
83769         and Bruno Haible  <bruno@clisp.org>
83770
83771         Remove stat module & update lstat.
83772         * config/srclist.txt (libc sources): Remove stat.
83773
83774 2005-06-24  Derek Price  <derek@ximbiot.com>
83775         and Bruno Haible  <bruno@clisp.org>
83776
83777         Remove stat module & update lstat.
83778         * MODULES.html.sh (stat): Remove.
83779         * MODULES.html: Regenerated.
83780         * modules/lstat (Description): Correct function name.
83781         (Files): Add "lstat.h".
83782         (Depends-on): Remove stat, add xalloc, stat-macros.
83783         * modules/stat: Remove this file.
83784         (Include): Add "lstat.h", remove <sys/stat.h>.
83785
83786 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83787
83788         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83789         (ranged_convert): Don't save conversion in a temporary struct.
83790         This causes a warning with GCC 4.0.0, and anyway in the typical
83791         case it's not worth the extra 100 bytes or so of code.
83792         (ranged_convert, __mktime_internal): When calling a function via a
83793         pointer P, use P () rather than (*P) (), as we now assume C89 or
83794         better.
83795
83796 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83797
83798         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83799         "who -r" failed to give output.  Problem reported by Tim Waugh.
83800
83801         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83802         (xcalloc): Use it to avoid needless tests.
83803         Problem reported by Jim Meyering.
83804
83805 2005-06-20  Derek Price  <derek@ximbiot.com>
83806
83807         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83808         unnecessary for Autoconfs > 2.59c.
83809
83810 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83811
83812         * lib/argp.h (__option_is_short): Check upper limit of
83813         __key. Isprint() requires its argument to have the value
83814         of an unsigned char or EOF.
83815
83816 2005-06-16  Jim Meyering  <jim@meyering.net>
83817
83818         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83819         when either N or S is zero.
83820
83821 2005-06-16  Derek Price  <derek@ximbiot.com>
83822
83823         * m4/bison.m4: Declare YACC & YFLAGS precious.
83824
83825 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83826
83827         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83828         multibyte string or pattern, fall back on unibyte matching.
83829         Problem reported by James Youngman.
83830
83831 2005-06-08  Bruno Haible  <bruno@clisp.org>
83832
83833         * modules/csharpcomp: New file.
83834         * MODULES.html.sh (C#): Add csharpcomp.
83835
83836 2005-06-08  Bruno Haible  <bruno@clisp.org>
83837
83838         * m4/csharpcomp.m4: New file, from GNU gettext.
83839
83840 2005-06-08  Bruno Haible  <bruno@clisp.org>
83841
83842         * lib/csharpcomp.h: New file, from GNU gettext.
83843         * lib/csharpcomp.c: New file, from GNU gettext.
83844         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83845
83846 2005-06-08  Bruno Haible  <bruno@clisp.org>
83847
83848         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83849         warning on mingw.
83850
83851 2005-06-07  Derek Price  <derek@ximbiot.com>
83852
83853         Sync from CVS.
83854         * lib/glob_.h: Indent nested #ifdef.
83855
83856 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83857
83858         Sync from coreutils.
83859         Use "file name" when talking about file names, instead of "filename"
83860         or "path", as per the GNU coding standards.
83861         * lib/mkdir-p.c: Renamed from makepath.c.
83862         (make_dir_parents): Renamed from make_path.  All callers changed.
83863         * lib/mkdir-p.h: Likewise.  All includers changed.
83864         * lib/filenamecat.c: Renamed from path-concat.c.
83865         (file_name_concat): Renamed from path_concat.  All callers changed.
83866         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83867         * lib/filenamecat.h: Likewise.  All includers changed.
83868         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83869         in comments or local variable names.
83870         * lib/basename.c: Likewise.
83871         * lib/canonicalize.c, canonicalize.h: Likewise.
83872         * lib/dirname.c, dirname.h: Likewise.
83873         * lib/euidaccess.c: Likewise.
83874         * lib/exclude.c: Likewise
83875         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83876         * lib/fsusage.c, fsuage.h: Likewise.
83877         * lib/fts.c, fts_.h: Likewise.
83878         * lib/getcwd.c: Likewise.
83879         * lib/getloadavg.c: Likewise.
83880         * lib/mkstemp.c: Likewise.
83881         * lib/mountlist.c, mountlist.h: Likewise.
83882         * lib/openat.c, openat.h: Likewise.
83883         * lib/readlink-stub.c: Likewise.
83884         * lib/readutmp.c, readutmp.h: Likewise.
83885         * lib/rename.c: Likewise.
83886         * lib/rmdir.c: Likewise.
83887         * lib/same.c: Likewise.
83888         * lib/savedir.c: Likewise.
83889         * lib/stripslash.c: Likewise.
83890         * lib/tempname.c: Likewise.
83891         * lib/xreadlink.c: Likewise.
83892         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83893         All uses changed.
83894         * lib/exclude.h: Likewise.
83895
83896         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83897         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83898         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83899         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83900         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83901         files have been getting away with it for years (MORE/BSD 4.3
83902         is extinct now).
83903         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83904         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83905
83906         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83907         Define to 256, not 255, as per modern POSIX.
83908
83909 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83910
83911         Sync from coreutils.
83912         Use "file name" when talking about file names, instead of "filename"
83913         or "path", as per the GNU coding standards.
83914         * MODULES.html.sh: mkdir-p renamed from makepath.
83915         filenamecat renamed from path-concat.
83916         * modules/filenamecat: Renamed from modules/path-concat.
83917         (Files): filenamecat.h and filenamecat.c renamed from
83918         path-concat.h and path-concat.c.
83919         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83920         (Include): filenamecat.h, not path-concat.h.
83921         * modules/mkdir-p: Renamed from modules/makepath.
83922         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83923         makepath.c.
83924         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83925         (Include): mkdir-p.h, not makepath.h.
83926
83927 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83928
83929         Sync from coreutils.
83930         * m4/mkdir-p.m4: Renamed from makepath.m4.
83931         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83932         Rename files from makepath.c to mkdir-p.c, and from
83933         makepath.h to mkdir-p.h.
83934         * m4/filenamecat.m4: Renamed from path-concat.m4.
83935         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83936         Rename files from path-concat.c to filenamecat.c,
83937         and from path-concat.h to filenamecat.h.
83938         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83939         "file name" in local variables or comments.
83940         * m4/rename.m4: Likewise.
83941
83942 2005-06-01  Bruno Haible  <bruno@clisp.org>
83943
83944         * modules/csharpexec: New file.
83945         * MODULES.html.sh (C#): New section.
83946
83947 2005-06-01  Bruno Haible  <bruno@clisp.org>
83948
83949         * m4/csharp.m4: New file, from GNU gettext.
83950         * m4/csharpexec.m4: New file, from GNU gettext.
83951
83952 2005-06-01  Bruno Haible  <bruno@clisp.org>
83953
83954         * lib/csharpexec.h: New file, from GNU gettext.
83955         * lib/csharpexec.c: New file, from GNU gettext.
83956         * lib/csharpexec.sh.in: New file, from GNU gettext.
83957
83958 2005-05-31  Derek Price  <derek@ximbiot.com>
83959             Paul Eggert  <eggert@cs.ucla.edu>
83960
83961         Sync from cvs.
83962         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83963
83964 2005-05-31  Derek Price  <derek@ximbiot.com>
83965             Paul Eggert  <eggert@cs.ucla.edu>
83966
83967         Sync from cvs.
83968         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83969
83970 2005-05-29  Derek Price  <derek@ximbiot.com>
83971
83972         * config/srclist.txt (glob_.h, glob.c): Add these files.
83973
83974 2005-05-29  Derek Price  <derek@ximbiot.com>
83975
83976         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83977         * modules/glob: New file.
83978         * modules/getlogin_r: Add link to POSIX spec in description.
83979
83980 2005-05-29  Derek Price  <derek@ximbiot.com>
83981             Paul Eggert  <eggert@cs.ucla.edu>
83982
83983         * m4/glob.m4: New file.
83984
83985 2005-05-29  Derek Price  <derek@ximbiot.com>
83986             Paul Eggert  <eggert@cs.ucla.edu>
83987
83988         * lib/glob_.h, lib/glob.c: New files.
83989
83990 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83991
83992         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83993         * modules/fts-lgpl (Depends-on): Remove gettext.
83994
83995 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83996
83997         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83998         and don't require gt_INTTYPES_PRI.
83999
84000 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84001
84002         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
84003
84004         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
84005         the configuration hassle isn't worth it.
84006         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
84007         (LONGEST_MODIFIER, PRIuMAX): Remove.
84008
84009 2005-05-27  Bruno Haible  <bruno@clisp.org>
84010
84011         * lib/getlogin_r.h: Remove second include of <stddef.h>.
84012
84013 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
84014
84015         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
84016         _POSIX_PTHREAD_SEMANTICS for Solaris.
84017
84018 2005-05-25  Derek Price  <derek@ximbiot.com>
84019
84020         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
84021
84022 2005-05-25  Derek Price  <derek@ximbiot.com>
84023             Paul Eggert  <eggert@cs.ucla.edu>
84024
84025         * modules/getlogin_r, m4/getlogin_r.m4: New files.
84026         * lib/getlogin_r.c, getlogin_r.h: New files.
84027
84028 2005-05-25  Bruno Haible  <bruno@clisp.org>
84029             Derek Price  <derek@ximbiot.com>
84030
84031         * lib/getlogin_r.h: Simplify API documentation.
84032
84033 2005-05-23  Derek Price  <derek@ximbiot.com>
84034
84035         * modules/minmax (Files): Add m4/minmax.m4.
84036         (configure.ac): Add gl_MINMAX.
84037
84038 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
84039
84040         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
84041         so that unistd-safer.h (GPL'ed code) need not be included.
84042
84043 2005-05-22  Bruno Haible  <bruno@clisp.org>
84044
84045         * m4/minmax.m4: New file.
84046         Based on a patch by Derek Price <derek@ximbiot.com>.
84047
84048 2005-05-22  Bruno Haible  <bruno@clisp.org>
84049
84050         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
84051         (INT64_MIN): Fix definition.
84052         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
84053
84054         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
84055         NEED_SIGNED_INT_TYPES.
84056
84057         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
84058         HAVE_SYSTEM_INTTYPES.
84059
84060 2005-05-22  Bruno Haible  <bruno@clisp.org>
84061
84062         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
84063         Also include <sys/param.h> if it defines MIN, MAX.
84064         Based on a patch by Derek Price <derek@ximbiot.com>.
84065
84066 2005-05-21  Jim Meyering  <jim@meyering.net>
84067
84068         * modules/fts (Files): Add m4/inttypes-pri.m4.
84069         (Depends-on): Add lstat and remove gettext.  Alphabetize.
84070
84071 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84072
84073         New fts module.
84074         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
84075         (setup_dir, free_dir): New functions.
84076         (enter_dir, leave_dir): Define trivial
84077         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
84078         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
84079         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
84080         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
84081         Move to fts-cycle.c.
84082         (fts_open): Use setup_dir.
84083         (fts_close): Use free_dir.
84084         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
84085         This adds a label and some gotos, but the alternatives were messier.
84086         Check for memory allocation failure when entering a dir.
84087         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
84088         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
84089         (FTS): New member fts_cycle, that is a union that contains the
84090         old active_dir_ht and cycle_state.  All uses changed to mention
84091         fts_cycle.ht and fts_cycle.state.
84092         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
84093         fts.c, with the following changes:
84094         (setup_dir, free_dir): New functions.
84095         (enter_dir): Now returns bool.  Return true if successful, false
84096         if memory exhausted.  All callers changed.
84097         Do not bother partly cleaning up on
84098         memory allocation failure; that is free_dir's job.
84099         However, free ad if hash_insert fails, to avoid memory leak.
84100         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
84101         fts->fts_options to see which union member to use.
84102
84103 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84104
84105         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
84106         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
84107
84108 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84109
84110         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
84111
84112 2005-05-20  Jim Meyering  <jim@meyering.net>
84113
84114         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
84115         Now a macro, to pacify GCC.
84116
84117 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84118
84119         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
84120         of -1.
84121
84122 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84123
84124         * lib/chown.c (rpl_chown): Return -1 on failure.
84125
84126 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84127
84128         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
84129         Don't check for stddef.h.
84130         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
84131         don't use its results.
84132         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84133         since we include them unconditionally.  Don't require
84134         AM_STDBOOL_H, since stdbool is a prerequisite.
84135         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84136         since we assume C89 or better.
84137         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84138         as we don't use their results.
84139         Don't check for fchdir, memmove, memset, strrchr, as we use
84140         them unconditionally.
84141         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84142         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84143
84144 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84145
84146         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84147         Include <stddef.h> unconditionally, since we assume C89 now.
84148         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84149         * lib/fts.c: Include fts_.h first, to check interface.
84150         Do not include intprops.h; no longer needed.
84151         Include cycle-check.h and hash.h, since fts_.h no longer does.
84152         Remove unnecessary casts of closedir to void.
84153         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84154         decide whether to decrement nlinks.
84155         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84156         (FTS): Use struct hash_table * instead of Hash_table, so that
84157         we no longer need to include hash.h here.
84158
84159 2005-05-18  Jim Meyering  <jim@meyering.net>
84160
84161         * modules/dirfd (License): Change to LGPL.  Most of the code
84162         is already in the public domain.
84163
84164 2005-05-18  Jim Meyering  <jim@meyering.net>
84165
84166         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84167         Reported by Yoann Vandoorselaere.
84168
84169 2005-05-17  Jim Meyering  <jim@meyering.net>
84170
84171         * m4/fts.m4: New file, from coreutils.
84172
84173 2005-05-17  Jim Meyering  <jim@meyering.net>
84174
84175         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84176
84177 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84178
84179         Sync from coreutils.
84180         * m4/unlinkdir.m4: New file.
84181
84182 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84183
84184         Sync from coreutils.
84185         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84186         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84187         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84188         White space changes only.
84189         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84190         special.
84191         * lib/yesno.c: Include getline.h, not ctype.h.
84192         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84193         Use getline to remove arbitrary restriction on response length.
84194
84195 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84196
84197         * config/srclist-update: Spell out "Street" in FSF postal
84198         mail address; this is the style the FSF seems to prefer.
84199
84200         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84201         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84202         this updates FSF postal mail address.
84203
84204         Sync from coreutils.
84205         * modules/unlinkdir: New file.
84206         * modules/yesno (Depends-on): Add getline.
84207         * MODULES.html.sh (File system functions): Add unlinkdir.
84208
84209 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84210
84211         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84212         lib/strsep.h:
84213         Change the initial comment to refer to GPL, not LGPL.
84214         gnulib-tool will change it to LGPL as needed.
84215
84216         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84217         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84218         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84219         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84220         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84221         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84222         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84223         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84224         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84225         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84226         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84227         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84228         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84229         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84230         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84231         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84232         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84233         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84234         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84235         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84236         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84237         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84238         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84239         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84240         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84241         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84242         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84243         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84244         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84245         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84246         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84247         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84248         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84249         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84250         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84251         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84252         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84253         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84254         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84255         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84256         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84257         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84258         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84259         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84260         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84261         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84262         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84263         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84264         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84265         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84266         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84267         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84268         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84269         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84270         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84271         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84272         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84273         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84274         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84275         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84276         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84277         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84278         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84279         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84280         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84281         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84282         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84283         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84284         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84285         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84286         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84287         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84288         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84289         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84290         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84291         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84292         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84293         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84294         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84295         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84296         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84297         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84298         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84299         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84300         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84301         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84302         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84303         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84304         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84305         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84306         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84307         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84308         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84309         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84310         lib/yesno.c, lib/yesno.h:
84311         Update FSF postal mail address.
84312
84313 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84314
84315         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84316         tests/test-memmem.c, tests/test-stpncpy.c:
84317         Update FSF postal mail address.
84318
84319 2005-05-13  Bruno Haible  <bruno@clisp.org>
84320
84321         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84322         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84323         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84324         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84325         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84326         Add support for 64-bit integers in the MSVC compiler.
84327
84328 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84329
84330         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84331
84332 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84333
84334         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84335
84336 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84337
84338         * doc/getdate.texi (General date syntax): Don't say that date
84339         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84340         Problem reported by Nic Ferrier.
84341
84342 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84343
84344         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84345         specified in ai_socktype. Fix invalid ai_protocol
84346         check. ai_protocol is usually set to 0 or depending on
84347         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84348         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84349         ai_socktype / ai_protocol in the returned addrinfo structure.
84350
84351 2005-05-10  Simon Josefsson  <jas@extundo.com>
84352
84353         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84354         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84355
84356 2005-05-10  Karl Berry  <karl@gnu.org>
84357
84358         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84359         (from http://www.gnu.org/licenses).
84360         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84361         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84362         fdl.texi suffices.
84363
84364 2005-05-10  Karl Berry  <karl@gnu.org>
84365
84366         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84367         (COPYING.DOC): remove.
84368
84369         * config/srclist-update: new FSF address.
84370
84371 2005-05-10  Derek Price  <derek@ximbiot.com>
84372
84373         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84374         possible.
84375
84376 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84377             Bruno Haible  <bruno@clisp.org>
84378
84379         * modules/inet_ntop: New file.
84380         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84381         inet_ntop.
84382
84383 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84384             Bruno Haible  <bruno@clisp.org>
84385
84386         * m4/inet_ntop.m4: New file.
84387
84388 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84389             Bruno Haible  <bruno@clisp.org>
84390
84391         * lib/inet_ntop.h: New file.
84392         * lib/inet_ntop.c: New file, from glibc with modifications.
84393
84394 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84395
84396         * modules/time_r (License): Change to LGPL.
84397         * modules/extensions (License): Change to LGPL.  Actually,
84398         the license is more permissive than that, but currently gnulib-tool
84399         doesn't know how to handle more-permissive licenses.
84400
84401         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84402         Problem reported by Dave Love.
84403
84404 2005-05-08  Jim Meyering  <jim@meyering.net>
84405
84406         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84407         blank.
84408
84409 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84410
84411         * modules/argmatch (Depends-on): Add stdbool.
84412         * modules/backupfile (Depends-on): Likewise.
84413         * modules/chdir-long (Depends-on): Likewise.
84414         * modules/closeout (Depends-on): Likewise.
84415         * modules/cycle-check (Depends-on): Likewise.
84416         * modules/dirname (Depends-on): Likewise.
84417         * modules/fnmatch (Depends-on): Likewise.
84418         * modules/fsusage (Depends-on): Likewise.
84419         * modules/fwriteerror (Depends-on): Likewise.
84420         * modules/getcwd (Depends-on): Likewise.
84421         * modules/getloadavg (Depends-on): Likewise.
84422         * modules/hard-locale (Depends-on): Likewise.
84423         * modules/makepath (Depends-on): Likewise.
84424         * modules/mountlist (Depends-on): Likewise.
84425         * modules/nanosleep (Depends-on): Likewise.
84426         * modules/posixtm (Depends-on): Likewise.
84427         * modules/quotearg (Depends-on): Likewise.
84428         * modules/readtokens (Depends-on): Likewise.
84429         * modules/readtokens0 (Depends-on): Likewise.
84430         * modules/readutmp (Depends-on): Likewise.
84431         * modules/save-cwd (Depends-on): Likewise.
84432         * modules/strftime (Depends-on): Likewise.
84433         * modules/userspec (Depends-on): Likewise.
84434         * modules/utimecmp (Depends-on): Likewise.
84435         * modules/xgetcwd (Depends-on): Likewise.
84436         * modules/xnanosleep (Depends-on): Likewise.
84437         * modules/xstrtod (Depends-on): Likewise.
84438         * modules/yesno (Depends-on): Likewise.
84439
84440 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84441
84442         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84443         needless checks.
84444
84445 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84446
84447         Merge from coreutils.  Among other things,
84448         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84449         * lib/fd-safer.c: New file.
84450         * lib/fcntl-safer.h, open-safer.c: Remove.
84451         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84452         * lib/dup-safer.c: Include unistd-safer.h first.
84453         Don't include errno.h.
84454         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84455         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84456         * lib/file-type.c: Rely on file-type.h change.
84457         * lib/getloadavg.c: Include unistd-safer.h.
84458         (getloadavg): Use safer open.
84459         * lib/getusershell.c: Include "stdio-safer.h".
84460         (getusershell): Use safer fopen.
84461         * lib/long-options.c (long_options): Use NULL rather than 0.
84462         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84463         'free'.
84464         * lib/modechange.c: Likewise.
84465         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84466         (MODE_DONE): New constant.
84467         (struct mode_change): Remove 'next' member.
84468         (make_node_op_equals): New function; like the old one of the
84469         same name, except it allocates an array.
84470         (mode_compile, mode_create_from_ref): Use it.
84471         (mode_compile): Allocate result as an array, not a linked list.
84472         Parse octal string ourself, so that we catch mistakes like "+0".
84473         (mode_adjust): Arg is an array, not a linked list.
84474         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84475         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84476         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84477         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84478         Remove.  This is now stat-macros.h's job.
84479         (talloc): Remove.  All callers replaced by xalloc, so that
84480         our invokers don't have to worry about reporting memory failures.
84481         (make_node_op_equals): Remove.
84482         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84483         New constants.
84484         (struct mode_change): Moved here from modechange.h.
84485         (mode_append_entry): Remove.
84486         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84487         apps to have incorrect behavior.  Use simpler algorithm for head
84488         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84489         Detect more invalid usages rather than having somewhat-random behavior.
84490         Don't insert an "a=" action, as that leads to incorrect behavior.
84491         (mode_compile, mode_create_from_ref): Return NULL on error instead
84492         of an enum, since now there's only one way to have an error.  All
84493         callers changed.
84494         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84495         at the correct time.  Simplify calculation of "+u" and its ilk.
84496         Don't mishandle "+X".
84497         (mode_free): Remove "register" and localize decls.
84498         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84499         (struct mode_change): Move to modechange.c; callers don't
84500         need to see this stuff.
84501         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84502         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84503         (mode_change, mode_adjust): Reflect the new signatures noted above.
84504         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84505         that might redefine system include files.
84506         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84507         (my_usleep): Use NULL rather than (void *) 0.
84508         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84509         Use siginterrupt to specify that system calls should be interrupted.
84510         (rpl_nanosleep): Move initialization of suspended closer to call of
84511         my_usleep.
84512         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84513         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84514         (desirable_utmp_entry): New function.
84515         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84516         using x2nrealloc, to simplify logic.
84517         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84518         size calculation.  Do not assume utmp file is a regular file.
84519         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84520         (READ_UTMP_CHECK_PIDS): New constant.
84521         * lib/save-cwd.c: Include unistd-safer.h.
84522         (save_cwd): Use fd_safer.
84523         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84524         [!_LIBC] Include "stat-macros.h" instead.
84525         * lib/unistd-safer.h (fd_safer): New decl.
84526
84527 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84528
84529         * modules/getloadavg (Depends-on): Add unistd-safer.
84530         * modules/getusershell (Depends-on): Add stdio-safer.
84531         * modules/lstat (Depends-on): Remove xalloc.
84532         * modules/mkstemp (Depends-on): Add stat-macros.
84533         * modules/modechange (Depends-on): Remove xstrtol.
84534         Add stat-macros, xalloc.
84535         * modules/save-cwd (Depends-on): Add unistd-safer.
84536         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84537         * modules/unistd-safer (Files): Add lib/fd-safer.c
84538         (Makefile.am): Remove lib_SOURCES.
84539
84540         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84541         Remove fcntl-safer; unistd-safer supersedes it.
84542
84543 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84544
84545         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84546         AC_HEADER_STAT.
84547         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84548         (gl_PREREQ_CHOWN): Remove.
84549         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84550         it.  Don't require AC_HEADER_STAT.
84551         (gl_PREREQ_LSTAT): Remove.
84552         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84553         Don't require AC_HEADER_STAT.
84554         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84555         (gl_PREREQ_RMDIR): Remove.
84556         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84557         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84558         the stat-macros module a prerequisite.
84559         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84560         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84561         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84562         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84563         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84564         variable names.
84565         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84566         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84567         variable prefixes.
84568         * m4/fcntl-safer.m4: Remove.
84569         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84570         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84571         Invoke gl_PREREQ_FD_SAFER.
84572         (gl_PREREQ_FD_SAFER): New macro.
84573         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84574         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84575         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84576         Remove duplicate call to AC_LIBOBJ(readutmp).
84577         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84578
84579         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84580         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84581
84582 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84583
84584         * MODULES.html.sh (Misc): Add byteswap.
84585
84586 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84587
84588         * modules/getcwd (Depends-on): Add extensions.
84589         * modules/openat (Depends-on): Likewise.
84590
84591 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84592
84593         * modules/byteswap: New file.
84594
84595 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84596
84597         * m4/byteswap.m4: New file.
84598
84599 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84600
84601         * lib/byteswap_.h: New file.
84602
84603 2005-04-25  Karl Berry  <karl@gnu.org>
84604
84605         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84606
84607 2005-04-25  Albert Chin  <china@thewrittenword.com>
84608
84609         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84610         Toolkit C bug.
84611
84612 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84613
84614         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84615         (func_ln_if_changed): Remove forcibly for no error message
84616         in case file does not exist.
84617
84618 2005-04-19  Simon Josefsson  <jas@extundo.com>
84619
84620         * gnulib-tool (Options): Make --symlink mean --symbolic.
84621
84622 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84623
84624         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84625
84626 2005-04-16  Simon Josefsson  <jas@extundo.com>
84627
84628         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84629
84630 2005-04-15  Simon Josefsson  <jas@extundo.com>
84631
84632         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84633
84634 2005-04-15  Simon Josefsson  <jas@extundo.com>
84635
84636         * gnulib-tool: Rename --symlink to --symbolic.
84637
84638 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84639
84640         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84641         symbolic links to files instead of copying/moving.  Add --aux-dir,
84642         specifying directory relative --dir where auxiliary build tools
84643         are placed.
84644
84645 2005-04-14  Bruno Haible  <bruno@clisp.org>
84646
84647         * modules/allocsa (License): Change to LGPL.
84648         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84649
84650 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84651
84652         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84653         that "UTC +1 second" continues to work.  Problem reported
84654         by Dmitry V. Levin.
84655         (relunit_snumber): New rule.
84656         (relunit): Use it.
84657
84658 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84659
84660         * lib/getdate.y (universal_time_zone_table): New constant.
84661         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84662         universal_time_zone_table.
84663         (lookup_zone): Prefer universal_time_zone_table to
84664         local_time_zone_table, so that "GMT" time stamps are allowed in
84665         London during the summer.  Problem reported by Ian Abbott.
84666
84667 2005-04-12  Jim Meyering  <jim@meyering.net>
84668
84669         * lib/human.c (humblock): Set *options even when returning due to
84670         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84671         warning from gcc-4.
84672
84673 2005-04-09  Jim Meyering  <jim@meyering.net>
84674
84675         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84676         -Wuninitialized: initialize tm0.tm_year.
84677
84678 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84679
84680         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84681         count, since there's no maximum.  All uses changed.
84682         Add member dsts_seen.
84683         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84684         not being INT_MAX.
84685         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84686         Use pc_rels_seen to decide whether a date is absolute.
84687
84688         * lib/getdate.y (number): Don't overwrite year.
84689         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84690         check.
84691
84692 2005-04-02  Simon Josefsson  <jas@extundo.com>
84693
84694         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84695         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84696
84697 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84698
84699         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84700         where no absolute path name can be longer than PATH_MAX.
84701
84702 2005-03-27  Jim Meyering  <jim@meyering.net>
84703
84704         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84705
84706 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84707
84708         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84709         "one's complement" -> "ones' complement" in comment, as per Knuth.
84710         "value of type" -> "type or expression" in comment.
84711         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84712
84713 2005-03-26  Jim Meyering  <jim@meyering.net>
84714
84715         Comment nits.
84716         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84717         Correct typos: s/or/of/.
84718
84719 2005-03-26  Jim Meyering  <jim@meyering.net>
84720
84721         * modules/check-include-files: Move to ../ and rename to...
84722         * check-module: ...this.
84723
84724 2005-03-25  Jim Meyering  <jim@meyering.net>
84725
84726         * modules/xvasprintf (Files): Add xalloc.h.
84727
84728 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84729
84730         * modules/gettext (Files): config/config.rpath ->
84731         build-aux/config.rpath
84732         * modules/iconv (Files): Likewise.
84733         Problem reported by Oskar Liljeblad.
84734
84735 2005-03-23  Jim Meyering  <jim@meyering.net>
84736
84737         * modules/check-include-files: New script to check for
84738         missing dependencies, multiple includes, etc.
84739
84740         * modules/c-strtold (Depends-on): Add xalloc.
84741         * modules/c-strtod (Depends-on): Add xalloc.
84742         * modules/hash (Depends-on): Add xalloc.
84743         (Files): Remove lib/xalloc.h.
84744
84745         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84746         * modules/userspec (Files): Add lib/inttostr.h.
84747
84748 2005-03-23  Jim Meyering  <jim@meyering.net>
84749
84750         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84751
84752 2005-03-22  Jim Meyering  <jim@meyering.net>
84753
84754         * modules/stat-macros: New module.
84755         * modules/canonicalize, modules/euidaccess, modules/file-type,
84756         * modules/filemode, modules/lchown, modules/makepath,
84757         * modules/rmdir, modules/stat: Depend on new stat-macros module
84758         rather than listing lib/stat-macros.h manually.
84759         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84760
84761 2005-03-22  Jim Meyering  <jim@meyering.net>
84762
84763         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84764
84765 2005-03-22  Bruno Haible  <bruno@clisp.org>
84766
84767         * config/srclist.txt: Replace target directory 'config' with
84768         'build-aux'.
84769         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84770         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84771         ../build-aux/.
84772
84773 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84774
84775         * modules/chdir-long (Depends-on): Add mempcpy.
84776
84777         * modules/acl, modules/backupfile, modules/c-strtod,
84778         modules/c-strtold, modules/canon-host, modules/canonicalize,
84779         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84780         modules/exclude, modules/exitfail, modules/file-type,
84781         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84782         modules/getdate, modules/getline, modules/getpagesize,
84783         modules/getpass, modules/getugroups, modules/group-member,
84784         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84785         modules/inttostr, modules/long-options, modules/makepath,
84786         modules/md5, modules/memcasecmp, modules/memcoll,
84787         modules/modechange, modules/mountlist, modules/path-concat,
84788         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84789         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84790         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84791         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84792         modules/strftime, modules/strndup, modules/strverscmp,
84793         modules/timespec, modules/unlocked-io, modules/userspec,
84794         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84795         modules/yesno:
84796         Remove lib_SOURCES line from Makefile.am section, as this is now
84797         done automatically by the corresponding Autoconf macro.
84798
84799 2005-03-21  Jim Meyering  <jim@meyering.net>
84800
84801         Changes imported from coreutils.
84802
84803         * lib/cycle-check.c: Don't include xalloc.h.
84804
84805         * lib/path-concat.c: Don't include assert.h.
84806         (path_concat): Remove assertion that would have triggered
84807         for ABASE starting with more than one slash.
84808         Reported by Andreas Schwab.
84809
84810         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84811         properly when ABASE is an absolute file name.
84812         Correct the description of this function.
84813         Include <assert.h>.
84814         Add an assertion and a test driver.
84815         This fixes a bug introduced on 2004-07-02.
84816         Andreas Schwab reported the resulting failure of cp --parents:
84817         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84818
84819 2005-03-21  Jim Meyering  <jim@meyering.net>
84820
84821         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84822         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84823
84824 2005-03-21  Jim Meyering  <jim@meyering.net>
84825         and  Paul Eggert  <eggert@cs.ucla.edu>
84826
84827         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84828         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84829         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84830         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84831         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84832         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84833         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84834         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84835         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84836         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84837         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84838         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84839         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84840         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84841         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84842         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84843         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84844         for these modules.
84845
84846 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84847
84848         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84849         (which shouldn't happen), generate nothing instead of returning 0
84850         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84851
84852 2005-03-16  Bruno Haible  <bruno@clisp.org>
84853
84854         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84855         HAVE_LONGLONG_64BIT.
84856
84857 2005-03-16  Bruno Haible  <bruno@clisp.org>
84858
84859         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84860         HAVE_LONGLONG_64BIT.
84861
84862 2005-03-16  Bruno Haible  <bruno@clisp.org>
84863
84864         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84865         HAVE_LONGLONG_64BIT.
84866
84867 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84868
84869         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84870         reliably distinguish strftime failure from empty output on POSIX
84871         hosts.
84872
84873 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84874
84875         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84876         (iconv_string): Don't guess a size-zero buffer, as that might cause
84877         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84878         result would be 'too large', where 'too large' is (heuristically)
84879         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84880         overflow concerns.  This will prevent some unwanted malloc failures
84881         when the inputs are very large.
84882
84883 2005-03-15  Karl Berry  <karl@gnu.org>
84884
84885         * config/srclist.txt (config.rpath): from gettext.
84886         * config/config.rpath: update.
84887
84888 2005-03-15  Bruno Haible  <bruno@clisp.org>
84889
84890         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84891         to 'negate'.
84892
84893         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84894         variable.
84895
84896         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84897         results.
84898
84899 2005-03-14  Simon Josefsson  <jas@extundo.com>
84900
84901         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84902         <fx@gnu.org>.
84903
84904 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84905
84906         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84907         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84908         intprops.h.
84909         * lib/strtol.c: Likewise.
84910
84911 2005-03-14  Jim Meyering  <jim@meyering.net>
84912
84913         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84914         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84915         to be nonzero so that we (and caller) can detect the difference
84916         between a valid zero-length expansion and an error return, even
84917         when the underlying strftime fails before writing anything into
84918         that location.
84919
84920 2005-03-14  Bruno Haible  <bruno@clisp.org>
84921
84922         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84923         Update from GNU gettext 0.14.3.
84924
84925 2005-03-10  Jim Meyering  <jim@meyering.net>
84926
84927         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84928
84929 2005-03-10  Jim Meyering  <jim@meyering.net>
84930
84931         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84932         so that this module works on systems without fchdir.
84933
84934 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84935
84936         Factor int-properties macros into a single file, except for
84937         glibc-related files.
84938         * lib/intprops.h: New file.
84939         * lib/getloadavg.c: Include it instead of limits.h.
84940         (INT_STRLEN_BOUND): Remove.
84941         * lib/human.c: Include intprops.h.
84942         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84943         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84944         302/1000.
84945         * lib/inttostr.h: Include intprops.h instead of limits.h.
84946         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84947         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84948         for consistency with intprops.h.
84949         (time_t_is_integer, twos_complement_arithmetic): Use them.
84950         * lib/sig2str.h: Include <signal.h>, intprops.h.
84951         (INT_STRLEN_BOUND): Remove.
84952         * lib/strftime.c (TYPE_SIGNED): Remove.
84953         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84954         * lib/strtol.c: Adjust comments to match intprops.h.
84955         * lib/userspec.c: Include intprops.h.
84956         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84957         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84958         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84959         instead of rolling our own expressions.
84960         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84961
84962         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84963         instead of int.
84964         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84965         the right thing even if adding 1900 would overflow.  Similarly
84966         for tm_mon + 1 and tm_yday + 1.
84967         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84968         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84969         (DO_SIGNED_NUMBER): New macro.
84970         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84971
84972 2005-03-07  Bruno Haible  <bruno@clisp.org>
84973
84974         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84975
84976 2005-03-07  Bruno Haible  <bruno@clisp.org>
84977
84978         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84979
84980 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84981
84982         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84983         (func_import): Only replace files via --import when they have actually
84984         changed.
84985
84986 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84987
84988         * m4/mmap-anon.m4: New file.
84989         * m4/pagealign_alloc.m4: New file.
84990
84991 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84992             Bruno Haible  <bruno@clisp.org>
84993
84994         * modules/pagealign_alloc: New file.
84995         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84996
84997 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84998             Bruno Haible  <bruno@clisp.org>
84999
85000         * lib/pagealign_alloc.h: New file.
85001         * lib/pagealign_alloc.c: New file.
85002
85003 2005-03-03  Bruno Haible  <bruno@clisp.org>
85004
85005         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
85006         Use an all-permissive copyright notice, recommended by RMS.
85007
85008 2005-03-02  Bruno Haible  <bruno@clisp.org>
85009
85010         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
85011         of AIX, the replacement has to be done only after <string.h> is
85012         included, therefore not in config.h. stpncpy.h does the replacement,
85013         and stpncpy.c uses it.
85014
85015 2005-03-02  Bruno Haible  <bruno@clisp.org>
85016
85017         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
85018         stpncpy.c uses it.
85019
85020 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85021
85022         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
85023         The workaround isn't strictly needed for POSIX conformance, and
85024         it's too much of a pain to configure and maintain.  We'll ask
85025         people to fix their kernels instead.
85026         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
85027         (NANOSLEEP_BUG_WORKAROUND): Remove.
85028         (xnanosleep): Remove the workaround.
85029
85030 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85031
85032         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
85033         Reported by Derek Price.
85034         (Include): Add "timespec.h".
85035
85036         * modules/xnanosleep (Depends-on): Remove gethrxtime.
85037
85038 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85039
85040         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
85041         to detect nanosleep bug.
85042
85043 2005-03-01  Bruno Haible  <bruno@clisp.org>
85044
85045         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
85046
85047 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
85048
85049         * modules/gethrxtime: New file.
85050         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
85051         (Depends-on): Add gethrxtime.
85052         (configure.ac): Add gl_XNANOSLEEP.
85053         (Makefile.am): Remove lib_SOURCES line.
85054
85055 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85056
85057         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
85058         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
85059
85060 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85061
85062         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
85063         * lib/timespec.h (gettime): Return void, since it always
85064         succeeds now.  All uses changed.
85065         * lib/gettime.c (gettime): Likewise.
85066         [HAVE_NANOTIME]: Prefer nanotime.
85067         Assume gettimeofday succeeds, as POSIX requires.
85068         Assime time () succeeds, since other code already does.
85069         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
85070         (timespec_subtract): Remove.
85071         (NANOSLEEP_BUG_WORKAROUND): New constant.
85072         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
85073         things considerably.  Use it only on GNU/Linux hosts, since the
85074         workaround shouldn't be needed elsewhere.
85075
85076 2005-02-24  Bruno Haible  <bruno@clisp.org>
85077
85078         * modules/gettext (Files): Add m4/glibc2.m4.
85079
85080 2005-02-24  Bruno Haible  <bruno@clisp.org>
85081
85082         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
85083         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
85084         * m4/progtest.m4:
85085         Update from GNU gettext 0.14.2.
85086         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
85087
85088 2005-02-24  Bruno Haible  <bruno@clisp.org>
85089
85090         * lib/localcharset.c: Update from GNU gettext 0.14.2.
85091         * lib/config.charset: Update from GNU gettext 0.14.2.
85092
85093 2005-02-24  Bruno Haible  <bruno@clisp.org>
85094
85095         * lib/gettext.h: Update from GNU gettext 0.14.2.
85096
85097 2005-02-23  Simon Josefsson  <jas@extundo.com>
85098
85099         * m4/iconvme.m4: New file.
85100
85101 2005-02-23  Jim Meyering  <jim@meyering.net>
85102
85103         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
85104         change.
85105         Thanks to Bruno Haible for catching it.
85106
85107 2005-02-22  Simon Josefsson  <jas@extundo.com>
85108
85109         * modules/iconvme: New file.
85110
85111         * MODULES.html.sh: Add iconvme.
85112
85113 2005-02-22  Simon Josefsson  <jas@extundo.com>
85114
85115         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
85116
85117 2005-02-22  Simon Josefsson  <jas@extundo.com>
85118
85119         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
85120
85121 2005-02-22  Jim Meyering  <jim@meyering.net>
85122
85123         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
85124         s/ifndef/ifdef/.
85125
85126 2005-02-20  Neil Conway  <neilc@samurai.com>
85127
85128         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
85129         returned by OSX/Darwin if the specified buffer is not large
85130         enough for the hostname.
85131
85132 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85133
85134         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85135         pass it to _help, otherwise the latter coredumps trying to
85136         dereference state.root_argp.
85137
85138 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85139
85140         * modules/chdir-long (Depends-on): Add memrchr.
85141         * modules/memrchr (Files): Add lib/memrchr.h.
85142         (Include): "memrchr.h".
85143
85144 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85145
85146         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85147
85148 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85149
85150         * lib/memrchr.h: New file.
85151         * lib/chdir-long.c: Include it.
85152         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85153         Don't bother including stddef.h.
85154
85155 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85156
85157         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85158         inclusion.
85159         Include <sys/types.h>, for dev_t.
85160         (ME_DUMMY, ME_REMOTE): Move from here....
85161         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85162         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85163         Dmitry V. Levin.
85164         Include mountlist.h first, to test the interface.
85165
85166 2005-01-29  Bruno Haible  <bruno@clisp.org>
85167
85168         * lib/progname.c (program_name): Initialize.
85169         Needed when linking statically on MacOS X.
85170
85171 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85172
85173         Sync from coreutils.
85174         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85175         (Depends-on): Add c-strtod.
85176         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85177
85178 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85179
85180         Sync from coreutils.
85181         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85182
85183         Remove files that are specific to coreutils.
85184         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85185
85186 2005-01-28  Bruno Haible  <bruno@clisp.org>
85187
85188         * modules/javacomp: New file.
85189         * MODULES.html.sh (Java): Add javacomp.
85190
85191 2005-01-28  Bruno Haible  <bruno@clisp.org>
85192
85193         * m4/javacomp.m4: New file, from GNU gettext.
85194
85195 2005-01-28  Bruno Haible  <bruno@clisp.org>
85196
85197         * lib/javacomp.sh.in: New file, from GNU gettext.
85198         * lib/javacomp.h: New file, from GNU gettext.
85199         * lib/javacomp.c: New file, from GNU gettext.
85200
85201 2005-01-26  Simon Josefsson  <jas@extundo.com>
85202
85203         * lib/gai_strerror.c: Use GPL in header.
85204
85205 2005-01-26  Bruno Haible  <bruno@clisp.org>
85206
85207         * modules/javaexec: New file.
85208         * MODULES.html.sh (Java): Add javaexec.
85209
85210 2005-01-26  Bruno Haible  <bruno@clisp.org>
85211
85212         * m4/javaexec.m4: New file, from GNU gettext.
85213
85214 2005-01-26  Bruno Haible  <bruno@clisp.org>
85215
85216         * lib/javaexec.sh.in: New file, from GNU gettext.
85217         * lib/javaexec.h: New file, from GNU gettext.
85218         * lib/javaexec.c: New file, from GNU gettext.
85219
85220 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85221
85222         * modules/lchown (Depends-on): Remove lchown.h
85223
85224 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85225
85226         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85227         must be defined if the header file was not found, in order
85228         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85229
85230 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85231
85232         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85233         initializers for struct pentry_state.
85234         (__argp_error): Check return value of __asprintf
85235         (__argp_failure): Translate error message
85236
85237         * lib/argp-parse.c: Removed braces around the expansion of N_()
85238
85239 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85240
85241         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85242         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85243         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85244         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85245         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85246         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85247         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85248         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85249         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85250         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85251         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85252         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85253         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85254         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85255         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85256         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85257         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85258         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85259         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85260         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85261         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85262         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85263         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85264         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85265         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85266         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85267         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85268         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85269         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85270         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85271         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85272         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85273         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85274         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85275         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85276         Use an all-permissive copyright notice, recommended by RMS.
85277
85278 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85279
85280         * modules/chdir-long (Depends-on): Remove mempcpy.
85281
85282 2005-01-21  Jim Meyering  <jim@meyering.net>
85283
85284         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85285         same value as for Solaris 9.
85286
85287         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85288         component length.  This included changing the parameter to be
85289         of type `char *' rather than `char const *'.
85290         * lib/chdir-long.h (chdir_long): Update prototype.
85291
85292         * lib/openat.c (fdopendir, fstatat): New functions.
85293         * lib/openat.h: Include headers required for use of DIR and struct
85294         stat.
85295         [AT_SYMLINK_NOFOLLOW]: Define.
85296         (fdopendir, fstatat): Add prototypes.
85297
85298 2005-01-21  Bruno Haible  <bruno@clisp.org>
85299
85300         * modules/classpath: New file.
85301         * MODULES.html.sh (Java): Add classpath.
85302
85303 2005-01-21  Bruno Haible  <bruno@clisp.org>
85304
85305         * lib/classpath.h: New file, from GNU gettext.
85306         * lib/classpath.c: New file, from GNU gettext.
85307
85308 2005-01-20  Simon Josefsson  <jas@extundo.com>
85309
85310         * modules/version-etc-fsf: New file.
85311
85312 2005-01-20  Simon Josefsson  <jas@extundo.com>
85313
85314         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85315         * lib/version-etc.c: Remove version_etc_copyright.
85316         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85317         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85318
85319 2005-01-20  Simon Josefsson  <jas@extundo.com>
85320
85321         * lib/base64.h (isbase64): Add.
85322
85323         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85324         using a unsigned prototype, don't inline.
85325         (base64_decode): Use it.
85326
85327 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85328
85329         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85330         it.
85331
85332 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85333
85334         * lib/save-cwd.c (save_cwd): Remove code to support the case
85335         where fchdir is missing or flaky.
85336
85337 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85338
85339         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85340
85341 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85342
85343         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85344         AC_LIBSOURCES now does this.
85345         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85346         with new ullong_max module.
85347
85348 2005-01-19  Bruno Haible  <bruno@clisp.org>
85349
85350         * modules/sh-quote: New file.
85351         * MODULES.html.sh (Executing programs): Add sh-quote.
85352
85353 2005-01-19  Bruno Haible  <bruno@clisp.org>
85354
85355         * lib/sh-quote.h: New file, from GNU gettext.
85356         * lib/sh-quote.c: New file, from GNU gettext.
85357
85358 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85359
85360         Merge from coreutils.
85361         * m4/ullong_max.m4: New file.
85362         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85363         (gl_MACROS): Assume localeconv exists.
85364
85365 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85366
85367         Merge changes from coreutils, as described below in several
85368         changelogs dated today.
85369
85370         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85371         (O_DIRECTORY): Remove; not needed here, since "." must be
85372         a directory.  All uses removed.
85373         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85374         universal on Suns, and we also need to test for IRIX.
85375         Revamp code to use 'if' rather than '#if'.
85376         Avoid unnecessary comparison of cwd->desc to 0.
85377
85378         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85379         for known valid error numbers rather than observed invalid ones.
85380
85381 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85382
85383         * modules/ullong_max: New file.
85384
85385         * modules/chdir-long, modules/openat: New files.
85386         * modules/save-cwd (Depends-on): Depend on chdir-long.
85387         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85388
85389 2005-01-18  Jim Meyering  <jim@meyering.net>
85390
85391         Merge from coreutils.
85392         * m4/chdir-long.m4, m4/openat.m4: New files.
85393         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85394         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85395         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85396         is sane and DOES follow symlinks.  Besides, testing 20 different
85397         systems found no broken chown implementations.
85398         Prompted by a change in rsync's copy of this macro.
85399         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85400
85401         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85402
85403         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85404         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85405         NULL-means-set-to-current-time semantics.
85406         Remove temporary file immediately, rather than waiting
85407         for configure's at-exit trap code to do it.
85408
85409 2005-01-18  Jim Meyering  <jim@meyering.net>
85410
85411         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85412
85413         * lib/utimens.c (futimens): Account for the fact that futimes
85414         can also fail with errno == ENOSYS or errno == ENOENT.
85415         Patch from Dmitry V. Levin.
85416
85417         Change the name of the robust chdir function from chdir to chdir_long.
85418         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85419         (restore_cwd): Use chdir_long, not chdir.
85420         * lib/chdir-long.c: Renamed from chdir.c.
85421         * lib/chdir-long.h: Renamed from chdir.h.
85422         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85423         Hurd.
85424
85425 2005-01-18  Bruno Haible  <bruno@clisp.org>
85426
85427         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85428         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85429         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85430         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85431         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85432         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85433         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85434         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85435         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85436         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85437         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85438         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85439         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85440         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85441         Use an all-permissive copyright notice, recommended by RMS.
85442
85443 2005-01-18  Bob Proulx  <bob@proulx.com>
85444
85445         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85446         simplify offsetof() macro construct to avoid compile failure with
85447         native HP-UX 11.0 ANSI C compiler.
85448
85449 2005-01-17  Bruno Haible  <bruno@clisp.org>
85450
85451         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85452         redundant because stpncpy.m4 takes care of it.
85453
85454 2005-01-17  Bruno Haible  <bruno@clisp.org>
85455
85456         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85457
85458 2005-01-17  Bruno Haible  <bruno@clisp.org>
85459
85460         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85461         used.
85462
85463 2005-01-17  Bruno Haible  <bruno@clisp.org>
85464
85465         * lib/fwriteerror.h (fwriteerror): Change specification to include
85466         fclose.
85467         * lib/fwriteerror.c: Include <stdbool.h>.
85468         (fwriteerror): At the end, close the file stream. Record whether
85469         stdout was already closed.
85470
85471 2005-01-17  Bruno Haible  <bruno@clisp.org>
85472
85473         * lib/execute.c (environ): Declare if needed.
85474         * lib/pipe.c (environ): Likewise.
85475         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85476
85477 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85478
85479         * modules/argp: Depend on vsnprintf
85480
85481 2005-01-10  Jim Meyering  <jim@meyering.net>
85482
85483         * modules/closeout (Depends-on): Add atexit.
85484
85485 2005-01-06  Bruno Haible  <bruno@clisp.org>
85486
85487         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85488
85489 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85490
85491         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85492         definitions to be after all include files, to avoid collisions.
85493         Problem reported by Bob Proulx.
85494
85495 2005-01-04  Jim Meyering  <jim@meyering.net>
85496
85497         Changes imported from coreutils.
85498         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85499         as the mkstemp template, use a temporary directory and an
85500         8.3-friendly template to avoid trouble on systems like DJGPP.
85501         Reported by Juan M. Guerrero via Stepan Kasal.
85502         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85503         close. Remove the temporary directory right away, rather than waiting
85504         for configure's at-exit trap code to do it.
85505         Suggestion from Stepan Kasal.
85506
85507 2005-01-01  Simon Josefsson  <jas@extundo.com>
85508
85509         * gnulib-tool: Print #include directives when --import'ing.
85510
85511 2004-12-28  Simon Josefsson  <jas@extundo.com>
85512
85513         * tests/test-base64.c: Include required header files.  Remove
85514         unused variables.
85515
85516 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85517
85518         * modules/error (Depends-on): Remove gettext.
85519
85520 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85521
85522         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85523         not needed.  This removes a dependency on the gettext module.
85524         [defined _LIBC]: Do not include <libintl.h>; not needed.
85525
85526 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85527
85528         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85529         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85530
85531 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85532
85533         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85534         HAVE_DECL_STRTOLD.
85535
85536 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85537
85538         * modules/getdate (Depends-on): Remove alloca-opt.
85539
85540 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85541
85542         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85543
85544 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85545
85546         * lib/argp-parse.c: Include <stddef.h>.
85547         (alignof, alignto): New macros.
85548         (parser_init): Don't assume that void * is aligned sufficiently
85549         for struct option.
85550
85551         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85552         need to extend the stack.
85553         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85554         large.
85555
85556 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85557
85558         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85559
85560 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85561
85562         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85563         (2004-10-24) change.  Apparently this was a false alarm.
85564
85565         * modules/getdate: Depend on alloca-opt, not alloca.
85566
85567 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85568
85569         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85570         Remove now-obsolete comment about AIX.
85571         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85572         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85573         (YYMAXDEPTH): New macro.
85574
85575 2004-12-18  Simon Josefsson  <jas@extundo.com>
85576
85577         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85578
85579 2004-12-18  Bruno Haible  <bruno@clisp.org>
85580
85581         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85582
85583 2004-12-18  Bruno Haible  <bruno@clisp.org>
85584
85585         * lib/fatal-signal.c (fatal_signals): Make non-const.
85586         (init_fatal_signals): New function.
85587         (uninstall_handlers, install_handlers): Ignore signals that were set to
85588         SIG_IGN.
85589         (at_fatal_signal): Call init_fatal_signals.
85590         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85591         SIG_IGN.
85592         Reported by Paul Eggert.
85593
85594 2004-12-18  Bruno Haible  <bruno@clisp.org>
85595
85596         * doc/alloca.texi: New file.
85597         * doc/alloca-opt.texi: New file.
85598
85599 2004-12-17  Jim Meyering  <jim@meyering.net>
85600
85601         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85602         Otherwise, install-sh could exit with improper exit status when
85603         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85604
85605 2004-12-16  Simon Josefsson  <jas@extundo.com>
85606
85607         * tests/test-base64.c: Add license.
85608
85609 2004-12-15  Stepan Kasal  <address@hidden>
85610
85611         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85612
85613 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85614
85615         * modules/getcwd (Files): Add m4/d-ino.m4.
85616         Suggested by Mark D. Baushke.
85617
85618 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85619
85620         * lib/getdate.y (textint): New member "negative".
85621         (time_zone_hhmm): New function.
85622         Expect 14 shift-reduce conflicts, not 13.
85623         (o_colon_minutes): New rule.
85624         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85625         (yylex): Set the "negative" member of signed numbers.
85626
85627 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85628
85629         * doc/getdate.texi (Time of day items, Time zone items):
85630         Describe new formats +00:00, UTC+00:00.
85631
85632 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85633
85634         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85635         spurious "-l"s.  Problem reported by Stepan Kasal.
85636
85637 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85638
85639         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85640         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85641
85642 2004-12-04  Simon Josefsson  <jas@extundo.com>
85643
85644         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85645         Vandoorselaere <yoann@prelude-ids.org>.
85646
85647 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85648
85649         Changes imported from coreutils.
85650         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85651         exist.
85652         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85653
85654 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85655
85656         Changes imported from coreutils.
85657         * lib/hard-locale.c: Assume <locale.h> exists.
85658         Include "strdup.h".
85659         (GLIBC_VERSION): New macro.
85660         (hard_locale): Assume setlocale exists.
85661         Rewrite to avoid #ifdef.
85662         Use strdup rather than malloc + strcpy.
85663         * lib/human.c: Assume <locale.h> exists.
85664         (human_readable): Assume localeconv exists.
85665
85666 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85667
85668         * modules/hard-locale (Depends-on): Add strdup.
85669
85670 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85671
85672         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85673         convert T2, not T.  (Imported from libc.)
85674
85675 2004-11-30  Simon Josefsson  <jas@extundo.com>
85676
85677         * modules/restrict (License): Change to LGPL.
85678
85679 2004-11-30  Simon Josefsson  <jas@extundo.com>
85680
85681         * m4/restrict.m4: Add copyright and copying conditions.
85682
85683 2004-11-30  Simon Josefsson  <jas@extundo.com>
85684
85685         * m4/base64.m4: New file.
85686
85687 2004-11-30  Simon Josefsson  <jas@extundo.com>
85688
85689         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85690         base64.
85691
85692         * tests/test-base64.c: New file.
85693
85694         * modules/base64: New file.
85695
85696 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85697
85698         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85699         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85700
85701         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85702
85703 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85704
85705         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85706         (__getcwd.c): Don't restore errno; glibc doesn't.
85707         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85708         first, falling back to our code only if its results look suspicious.
85709         Ensure that the resulting buffer is only as large as necessary.
85710
85711         * lib/readutmp.c: Include readutmp.h first.
85712         Include <errno.h>, since readutmp.h no longer does that.
85713         * lib/readutmp.h: Don't include <errno.h>,
85714         <sys/param.h>, <time.h>; not needed to establish interface.
85715         (errno): Remove decl.
85716         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85717         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85718         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85719
85720 2004-11-28  Simon Josefsson  <jas@extundo.com>
85721
85722         * lib/base64.h, base64.c: New file.
85723
85724 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85725
85726         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85727
85728 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85729
85730         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85731         (Depends-on): Remove pathmax, same.  Add mempcpy.
85732         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85733         (Makefile.am): Append getcwd.h to lib_SOURCES.
85734         (Include): Add getcwd.h.
85735         (Maintainer): Change from Jim Meyering to "all, glibc",
85736         since getdate now uses intended-for-glibc code.
85737         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85738         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85739
85740 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85741
85742         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85743         HP's ANSI C compiler.
85744         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85745         Declaring int functions causes warnings on some modern systems and
85746         shouldn't be needed to compile on ancient ones.
85747         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85748         defined.
85749
85750         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85751         with the following changes.
85752         (__set_errno): Parenthesize properly.
85753         Include <stdbool.h>.
85754         (MIN, MAX, MATCHING_INO): New macros.
85755         (__getcwd): Define with prototype, not K&R form.
85756         Use heuristics to allocate default buffer on stack if possible.
85757         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85758         behavior, and to avoid the PATH_MAX limit when computing
85759         ../../../../...
85760         Use MATCHING_INO to compare inode number to file.
85761         Check for arithmetic overflow in size calculations.
85762         Fix bug in reallocation of dot array that caused getcwd to fail
85763         on directories nested deeper than 75.
85764         Be more careful about saving errno on error.
85765         Do not use realloc; use only free+malloc, as this is a bit
85766         more flexible and avoids a needless copy operation.
85767         Do not inspect st_dev and st_ino for symbolic links; POSIX
85768         doesn't specify the latter.
85769         Check for closedir errors.
85770         Avoid needless casts.
85771         Use "#ifdef weak_alias" around weak_alias, to be like other
85772         glibc code.
85773         The following changes to getcwd.c have effect only when used in
85774         gnulib; they have no effect inside glibc proper.
85775         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85776         as alloca isn't used.
85777         (alloca, __alloca): Likewise.
85778         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85779         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85780         unconditionally, as gnulib assumes C89 or better.
85781         Do not include <sys/param.h>.
85782         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85783         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85784         better.
85785         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85786         Include <dirent.h> in a way that is compatible with modern Autoconf.
85787         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85788         New macros, if not already defined.
85789         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85790         Use "_LIBC", not "defined _LIBC", for consistency.
85791         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85792         a mempcpy module.
85793         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85794         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85795         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85796         credit only to Jim Meyering and adjust the copyright dates.
85797         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85798         <stdlib.h>, <unistd.h>, "pathmax.h".
85799         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85800         (INITIAL_BUFFER_SIZE): Remove.
85801         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85802
85803 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85804
85805         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85806         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85807         Use the _ONCE methods, for efficiency.
85808         Check for fcntl.h.  In test program, include <errno.h>
85809         and <fcntl.h> if available.  Remove old K&R cruft from
85810         test program.  Check for common errors in GNU/Linux,
85811         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85812         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85813         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85814         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85815         name accordingly.
85816         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85817         accommodate new getcwd.c.
85818         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85819         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85820         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85821         that's all we need now.
85822
85823 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85824
85825         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85826         argp-parse.c depends on getopt internals, that means we should
85827         always use our getopt, to be on the safe side.
85828         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85829         order not to spoil the result of an eventual previous invocation
85830         of gl_GETOPT_SUBSTITUTE.
85831
85832 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85833
85834         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85835         redefinition warnings. To avoid them, include the defines
85836         in `#if !defined __need_getopt ... #endif'. The only place
85837         where __getopt_argv_const is used is in definitions
85838         of getopt_long and getopt_long_only below, which are as well
85839         protected by `#ifndef __need_getopt'.
85840         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85841         __need_getopt after including <stdio.h> and <unistd.h> These
85842         headers might have defined it.
85843
85844 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85845
85846         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85847
85848 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85849
85850         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85851         (futimens): New function, which uses futimes if available.
85852         (futimens, utimens): Support timespec==NULL, with same semantics
85853         as utime and utimens.
85854         * lib/utimens.h (futimens): New decl.
85855
85856 2004-11-23  Jim Meyering  <jim@meyering.net>
85857
85858         * lib/getopt_.h: Remove trailing blanks.
85859
85860 2004-11-23  Jim Meyering  <jim@meyering.net>
85861
85862         * lib/__fpending.c: Add comment.
85863
85864 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85865
85866         * modules/canonicalize (Depends-on): Add xreadlink.
85867         Problem reported by James Youngman.
85868
85869 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85870
85871         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85872         New macros.
85873         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85874         optopt): Use them instead of invoking ## directly; otherwise, the
85875         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85876
85877 2004-11-19  Bruno Haible  <bruno@clisp.org>
85878
85879         * lib/strtok_r.c: Move comments from here...
85880         * lib/strtok_r.h: ... to here.
85881
85882 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85883
85884         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85885         implementations that mishandle size_t overflow.
85886
85887 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85888
85889         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85890         might fail.  Problem reported by Yoann Vandoorselaere.
85891         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85892         implementations that mishandle size_t overflow.
85893
85894 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85895
85896         * modules/canon-host (Depends-on): Add strdup.
85897
85898 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85899
85900         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85901
85902 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85903
85904         * lib/canon-host.c: Include "strdup.h".
85905         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85906         Use strdup instead of malloc/strcpy to duplicate strings.
85907
85908         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85909         (human_space_before_unit): New constant.
85910         * lib/human.c (human_readable): Support it.
85911
85912         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85913         (xgetcwd): Set errno correctly when failing.
85914         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85915         the failure is actually due to a PATH_MAX problem.
85916
85917         Further getopt changes to make it more likely that glibc will
85918         buy the changes back.
85919         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85920         (getopt): Use it, so to preserve glibc semantic
85921         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85922         when compiling for libc.
85923         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85924         (getopt_long, getopt_long_only): Use it.
85925
85926         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85927         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85928         (getopt): Argv is now char * const *, as per standard.
85929         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85930         not char *__getopt_argv_const *.
85931         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85932         _getopt_long_only_r): Likewise.
85933         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85934         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85935         _getopt_long_r, _getopt_long_only_r): Likewise.
85936         * lib/getopt_.h (__getopt_argv_const): Remove.
85937         (getopt): Argv is now char * const *, as per standard.
85938
85939         * lib/getdate.y (tORDINAL): New token.
85940         (day, relunit): Allow it for relative times.
85941         (relative_time_table): Use tORDINAL for ordinals.
85942
85943 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85944
85945         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85946         Document that "second" isn't allowed as an ordinal number.
85947
85948 2004-11-16  Jim Meyering  <jim@meyering.net>
85949
85950         * modules/closeout (Depends-on): Add fpending.
85951
85952 2004-11-15  Jim Meyering  <jim@meyering.net>
85953
85954         * lib/closeout.c: Include "__fpending.h" once again.
85955         Include <stdbool.h>.
85956         (close_stdout): Don't fail just because stdout was closed initially,
85957         since some programs don't write to stdout in the normal course of
85958         operation (other than --version and --help), and we don't want this
85959         function to make e.g. `touch file >&-' fail.
85960         But do fail if it was closed and someone has tried to write to it.
85961         E.g., `printf foo >&-' must fail.
85962
85963 2004-11-13  Jim Meyering  <jim@meyering.net>
85964
85965         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85966
85967 2004-11-12  Simon Josefsson  <jas@extundo.com>
85968
85969         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85970         small doc fix is still pending.
85971
85972 2004-11-11  Simon Josefsson  <jas@extundo.com>
85973
85974         * modules/strtok_r: New file.
85975
85976         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85977         strtok_r.
85978
85979 2004-11-11  Simon Josefsson  <jas@extundo.com>
85980
85981         * m4/strtok_r.m4: New file.
85982
85983         * m4/getopt.m4: Replace opterr.
85984
85985 2004-11-11  Simon Josefsson  <jas@extundo.com>
85986
85987         * lib/strtok_r.h, strtok_r.c: New file.
85988
85989 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85990
85991         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85992         of replacing opterr, getopt, etc.  This should handle the
85993         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85994
85995 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85996
85997         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85998         we can stop lying to compilers about the constness of argv when we
85999         are compiled outside glibc.
86000         (getopt, getopt_long, getopt_long_only): Use it.
86001         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86002         _getopt_internal, getopt): Likewise.
86003         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86004         _getopt_long_only_r): Likewise.
86005         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86006         _getopt_long_r, _getopt_long_only_r): Likewise.
86007
86008         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
86009         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
86010         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
86011         the other external symbols.
86012         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
86013         declaration, since the above renaming now works around collisions.
86014
86015 2004-11-11  Jim Meyering  <jim@meyering.net>
86016
86017         * lib/linebreak.c: Remove trailing blanks.
86018         * lib/alloca_.h: Likewise.
86019         * lib/acosl.c: Likewise.
86020         * lib/euidaccess.c: Likewise.
86021         * lib/allocsa.h: Likewise.
86022
86023 2004-11-10  Simon Josefsson  <jas@extundo.com>
86024
86025         * m4/getaddrinfo.m4: New file.
86026
86027 2004-11-10  Simon Josefsson  <jas@extundo.com>
86028
86029         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
86030
86031 2004-11-10  Simon Josefsson  <jas@extundo.com>
86032
86033         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86034         getaddrinfo.
86035
86036         * modules/getaddrinfo: New file.
86037
86038 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86039
86040         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
86041
86042 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86043
86044         * lib/mktime.c (SHR): New macro, which is a portable
86045         substitute for >> that should work even on Crays.
86046         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
86047         Problem reported by Mark D. Baushke in
86048         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
86049         * lib/getdate.y (SHR): Likewise.
86050         (tm_diff): Use it.
86051         * lib/strftime.c (SHR): Likewise.
86052         (tm_diff): Use it.
86053         * lib/quotearg.c (struct quoting_options): Use unsigned int for
86054         quote_these_too, so that right shifts are well defined.  All uses
86055         changed.
86056
86057 2004-11-10  Jim Meyering  <jim@meyering.net>
86058
86059         Ensure that no close failure goes unreported.
86060         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
86061         return early when it seems there's nothing to flush.
86062         Don't include __fpending.h.
86063
86064 2004-11-10  Jim Meyering  <jim@meyering.net>
86065
86066         * modules/closeout (Depends-on): Remove fpending.
86067
86068 2004-11-10  Jim Meyering  <jim@meyering.net>
86069
86070         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
86071
86072 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86073
86074         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
86075         gl_FUNC_STRFTIME.
86076         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
86077         and AC_REQUIRE when possible, to avoid duplicate checks.
86078         Check for <wchar.h>.
86079
86080 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86081
86082         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
86083
86084 2004-11-09  Bruno Haible  <bruno@clisp.org>
86085
86086         * m4/sockpfaf.m4: New file.
86087
86088 2004-11-05  Bruno Haible  <bruno@clisp.org>
86089
86090         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
86091         Reported by Mark D. Baushke <mdb@cvshome.org>.
86092
86093 2004-11-04  Bruno Haible  <bruno@clisp.org>
86094
86095         2004-09-11  Bruno Haible  <bruno@clisp.org>
86096                 * allocsa.valgrind: New file.
86097         2004-02-06  Bruno Haible  <bruno@clisp.org>
86098                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
86099                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
86100                 Reported by Christopher Seip <chris.seip@hp.com>.
86101
86102 2004-11-04  Bruno Haible  <bruno@clisp.org>
86103
86104         * modules/allocsa (Files): Add lib/allocsa.valgrind.
86105         (Makefile.am): Distribute it.
86106
86107 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
86108
86109         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
86110         with errno == ERANGE if the buffer is too small.
86111         Problem reported by Mark D. Baushke.
86112
86113 2004-11-03  Albert Chin  <china@thewrittenword.com>
86114             Paul Eggert  <eggert@cs.ucla.edu>
86115
86116         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
86117         equivalent, substitute $ac_type for equivalent type rather than
86118         blindly using uint32_t *always* which won't work if uint32_t is not
86119         available.  Define _UINT32_T to work around typedef of uint32_t if
86120         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
86121         2.5.1.
86122
86123 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86124
86125         * m4/jm-macros.m4: Sync from coreutils.
86126         (gl_MACROS): Check for mbrlen, for pathchk.
86127         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
86128
86129 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86130
86131         * lib/xreadlink.c (MAXSIZE): New macro.
86132         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86133         size does not exceed MAXSIZE.  Avoid cast.
86134         As suggested by Mark D. Baushke in
86135         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86136         if readlink fails with buffer size just under MAXSIZE, try again
86137         with MAXSIZE.
86138
86139 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86140
86141         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86142
86143 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86144         and  Paul Eggert  <eggert@cs.ucla.edu>
86145
86146         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86147         (get_date): Overparenthesize to avoid GCC warning.
86148
86149 2004-11-02  Bruno Haible  <bruno@clisp.org>
86150
86151         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86152         returns void.
86153
86154 2004-11-02  Bruno Haible  <bruno@clisp.org>
86155
86156         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86157         function returns void.
86158
86159 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86160
86161         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86162         fflush_unlocked, flockfile, funlockfile, funlockfile,
86163         fputs_unlocked, putc_unlocked.
86164
86165 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86166
86167         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86168         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86169         already declared.
86170
86171 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86172
86173         * modules/getdate (Files): Add doc/getdate.texi.
86174         (Depends-on): Add setenv, xalloc.
86175
86176 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86177
86178         * lib/getdate.y: Add support for TZ="foo" within a date string.
86179         Fix some bugs near time_t boundaries.  Reject dates with
86180         out-of-range components, e.g., "Sept 31".
86181         Include <stdlib.h>, "setenv.h", "xalloc.h".
86182         (ISDIGIT_LOCALE): Remove; unused.
86183         Note that the TZ and time functions used here are not reentrant.
86184         (mktime_ok, get_tz): New functions.
86185         (TZBUFSIZE): New constant.
86186         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86187         This requires that we sometimes generate our own TZ="XXX..." setting.
86188
86189 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86190
86191         * doc/getdate.texi: New file, from coreutils with modifications for
86192         the new TZ parsing.
86193
86194 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86195
86196         * lib/mktime.c (not_equal_tm): Remove redundant check.
86197
86198 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86199
86200         * modules/regex (lib_SOURCES): Add regex.c.
86201         Reported by James Youngman in
86202         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86203
86204 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86205
86206         * lib/getdate.y: Use Bison 1.875 features, and some minor
86207         code cleanups.  This change does not affect semantics.
86208         Don't include <stdlib.h>; no longer needed.
86209         Don't include unlocked-io.h; only the "#if TEST" code uses
86210         stdio, and performance isn't crucial there.
86211         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86212         Bison 1.875 features as described below.
86213         All uses of "PC." replaced by "pc->".
86214         (YYSTYPE): Add a forward declaration.
86215         (yylex, yyerror): Use full prototypes in forward decls.
86216         Use "%pure-parser" rather than obsolescent "%pure_parser".
86217         Use %parse-param and %lex-param instead of obsolescent
86218         YYPARSE_PARAM and YYLEX_PARAM.
86219         (meridian_table, month_and_day_table, time_units_table,
86220         relative_time_table, time_zone_table, military_table,
86221         lookup_zone, lookup_word, get_date):
86222         Use NULL instead of 0 where appropriate.
86223         (to_hour): Avoid abort (), to avoid a dependency on
86224         stdlib.h.
86225         (yyerror, yylex): Now accepts parser_control * arg.
86226         (main) [TEST]: Use '\0' rather than 0 for char.
86227
86228 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86229
86230         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86231
86232 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86233
86234         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86235         It's now the caller's responsibility to handle the case where
86236         !HAVE_GETPAGESIZE && !defined getpagesize.
86237
86238         * lib/mktime.c (leapyear): Arg is long int, not int.
86239
86240 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86241
86242         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86243
86244 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86245
86246         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86247         missing.  Problem reported by James Youngman.
86248
86249 2004-10-16  Simon Josefsson  <jas@extundo.com>
86250
86251         * gnulib-tool: Fix comments.  Fix parse problem.
86252         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86253
86254 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86255
86256         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86257         implementation of getopt_long.  Problem reported by Alexander Taler in:
86258         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86259
86260 2004-10-15  Bruno Haible  <bruno@clisp.org>
86261
86262         * gnulib-tool: Untabify. Initialize supplied_libname.
86263         (func_usage): More homogenous output.
86264         (func_modules_transitive_closure, func_modules_to_filelist,
86265         func_emit_lib_Makefile_am): New functions.
86266         (func_import): New function, extracted from big case statement. Use
86267         func_get_license, func_modules_transitive_closure,
86268         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86269         opt_lgpl. Don't use test -a, as it's not portable.
86270         (func_create_testdir): Use func_modules_transitive_closure,
86271         func_modules_to_filelist, func_emit_lib_Makefile_am.
86272
86273 2004-10-15  Bruno Haible  <bruno@clisp.org>
86274
86275         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86276
86277 2004-10-15  Bruno Haible  <bruno@clisp.org>
86278
86279         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86280         the portions belonging to each module.
86281         Suggested by Derek Robert Price <derek@ximbiot.com>.
86282
86283 2004-10-12  Simon Josefsson  <jas@extundo.com>
86284
86285         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86286         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86287         to real functions.
86288
86289 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86290
86291         * modules/vsnprintf: New file.
86292
86293 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86294
86295         * m4/vsnprintf.m4: New file.
86296
86297 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86298
86299         * lib/vsnprintf.h: New file.
86300         * lib/vsnprintf.c: New file.
86301
86302 2004-10-11  Bruno Haible  <bruno@clisp.org>
86303
86304         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86305         vsnprintf.
86306
86307 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86308
86309         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86310
86311 2004-10-07  Bruno Haible  <bruno@clisp.org>
86312
86313         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86314         fits into the provided buffer.
86315
86316 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86317
86318         * lib/diacrit.c, diacrit.h: Add GPL notice.
86319
86320         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86321         notice.
86322         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86323         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86324         This avoids a potential constant-folding bug.
86325
86326 2004-10-05  Bruno Haible  <bruno@clisp.org>
86327
86328         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86329         for the declaration of strsep.
86330
86331 2004-10-05  Bruno Haible  <bruno@clisp.org>
86332
86333         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86334
86335 2004-10-04  Simon Josefsson  <jas@extundo.com>
86336
86337         * modules/memmem: New file.
86338         * tests/test-memmem.c: New file.
86339         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86340
86341 2004-10-04  Simon Josefsson  <jas@extundo.com>
86342
86343         * m4/memmem.m4: New file.
86344
86345 2004-10-04  Simon Josefsson  <jas@extundo.com>
86346
86347         * lib/memmem.h: New file.
86348         * lib/memmem.c: New file, taken from glibc.
86349
86350 2004-10-04  Simon Josefsson  <jas@extundo.com>
86351
86352         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86353         '#ifdef USE_UNLOCKED_IO'.
86354
86355 2004-10-04  Simon Josefsson  <jas@extundo.com>
86356
86357         * config/srclist.txt: Add memmem from glibc.
86358
86359 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86360
86361         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86362
86363         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86364         modules/exclude, modules/getdate, modules/getline,
86365         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86366         modules/getusershell, modules/linebuffer, modules/md5,
86367         modules/mountlist, modules/posixtm, modules/readtokens,
86368         modules/readutmp, modules/regex, modules/sha1,
86369         modules/version-etc, modules/yesno:
86370         Remove dependency on unlocked-io.
86371
86372 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86373
86374         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86375
86376         * m4/unlocked-io.m4: Add copyright notice.
86377         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86378
86379 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86380
86381         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86382         * lib/xmalloc.c (xmemdup): Likewise.
86383         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86384         XFREE): Remove these long-obsolescent macros.
86385         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86386         * lib/xstrdup.c: Remove.
86387
86388         * lib/regex.c (re_comp): Cast gettext return value to char *,
86389         Problem reported by Martin Neitzel via Mark D. Baushke.
86390
86391 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86392
86393         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86394         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86395         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86396         regex.c, sha1.c, version-etc.c, yesno.c:
86397         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86398         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86399         the includer's responsibility.
86400
86401         Sync from coreutils.
86402
86403         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86404         points to the start of a string, as the C Standard says the
86405         resulting behavior is undefined.
86406
86407         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86408         simple -> simple_backups, numbered_existing ->
86409         numbered_existing_backups, numbered -> numbered_backups
86410         to avoid shadowing problems.  All uses changed.
86411         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86412         * lib/backupfile.c (check_extension, numbered_backup):
86413         Rename locals to avoid shadowing 'basename'.
86414         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86415         once.
86416
86417         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86418         * lib/.cvsignore: Add getopt.h.
86419
86420 2004-10-04  Bruno Haible  <bruno@clisp.org>
86421
86422         * modules/README: New file.
86423         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86424         not a module.
86425
86426 2004-10-02  Jim Meyering  <jim@meyering.net>
86427
86428         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86429
86430 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86431
86432         * modules/strsep: New file.
86433
86434 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86435
86436         * m4/strsep.m4: New file.
86437
86438 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86439
86440         * lib/strsep.h: New file.
86441         * lib/strsep.c: New file.
86442
86443 2004-10-01  Simon Josefsson  <jas@extundo.com>
86444
86445         * lib/snprintf.c (snprintf): Handle size==0.
86446
86447 2004-10-01  Simon Josefsson  <jas@extundo.com>
86448             Bruno Haible  <bruno@clisp.org>
86449
86450         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86451         (snprintf): Declare 'args'.
86452
86453 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86454
86455         * lib/snprintf.c: Remove comments as to why each header is needed.
86456
86457 2004-10-01  Bruno Haible  <bruno@clisp.org>
86458
86459         * MODULES.html.sh: Add strsep.
86460
86461 2004-09-30  Simon Josefsson  <jas@extundo.com>
86462
86463         * modules/snprintf: New file.
86464
86465 2004-09-30  Simon Josefsson  <jas@extundo.com>
86466
86467         * m4/snprintf.m4: New file.
86468
86469 2004-09-30  Simon Josefsson  <jas@extundo.com>
86470
86471         * lib/snprintf.h, lib/snprintf.c: New files.
86472
86473 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86474
86475         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86476         (hol_entry_help): Never translate an empty string.
86477         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86478         * lib/argp.h (OPTION_NO_TRANS): New option.
86479
86480 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86481
86482         * modules/argp (Maintainer): Replace Simon Josefsson
86483         by Sergey Poznyakoff.
86484
86485 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86486
86487         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86488         changes merged back into glibc.
86489
86490 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86491
86492         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86493
86494 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86495
86496         * lib/xvasprintf.c: Include xalloc.h.
86497         (xvasprintf): Use xalloc_die, not xmalloc_die.
86498
86499 2004-09-29  Bruno Haible  <bruno@clisp.org>
86500
86501         * modules/alloca-opt: New file, derived from modules/alloca.
86502         * modules/allocsa: Depend on alloca-opt instead of alloca.
86503         * modules/setenv: Likewise.
86504         * modules/vasnprintf: Likewise.
86505         * MODULES.html.sh: Add alloca-opt.
86506
86507 2004-09-28  Simon Josefsson  <jas@extundo.com>
86508
86509         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86510         LGPL, and to replace license template from GPL to LGPL.
86511
86512 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86513
86514         * modules/dummy: Change license to LGPL.
86515
86516 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86517
86518         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86519
86520 2004-09-24  Simon Josefsson  <jas@extundo.com>
86521
86522         * modules/minmax (License): Change from GPL to LGPL.
86523
86524 2004-09-23  Simon Josefsson  <jas@extundo.com>
86525
86526         * gnulib-tool (--import): Typo.
86527
86528 2004-09-23  Simon Josefsson  <jas@extundo.com>
86529
86530         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86531
86532 2004-09-22  Bruno Haible  <bruno@clisp.org>
86533
86534         * modules/*: Add 'License' field.
86535         * gnulib-tool: Accept --extract-license option.
86536         (func_get_license): New function.
86537
86538 2004-09-21  Bruno Haible  <bruno@clisp.org>
86539
86540         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86541         Reported by Simon Josefsson.
86542
86543 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86544
86545         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86546         gl_AC_TYPE_LONG_LONG.
86547
86548 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86549
86550         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86551
86552 2004-09-18  Simon Josefsson  <jas@extundo.com>
86553         and  Paul Eggert  <eggert@cs.ucla.edu>
86554
86555         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86556         calls with autoreconf.  Define GL_LIB.
86557
86558 2004-09-14  Karl Berry  <karl@gnu.org>
86559
86560         * config/srclist.txt: unsync setenv.c, sigh.
86561
86562 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86563
86564         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86565         Problem reported by Bruno Haible in:
86566         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86567
86568 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86569
86570         * config/srclist.txt: Comment out argp-pvh.c.
86571
86572 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86573
86574         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86575         in case some system header has #define'd it.  Problem reported by
86576         Soeren D. Schulze in
86577         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86578
86579 2004-09-09  Karl Berry  <karl@gnu.org>
86580
86581         * regex.[ch]: delete from the root.  These were supposed to be
86582                 synced with emacs cvs, but this has not happened for about
86583                 a year, and anyway nothing else uses emacs regex.[ch].
86584                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86585                 lib/regex[.ch] is untouched.
86586
86587 2004-09-09  Bruno Haible  <bruno@clisp.org>
86588
86589         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86590
86591 2004-09-09  Bruno Haible  <bruno@clisp.org>
86592
86593         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86594         modifications.
86595         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86596
86597 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86598
86599         * modules/xvasprintf: New file.
86600         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86601
86602 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86603
86604         * lib/xvasprintf.h: New file.
86605         * lib/xvasprintf.c: New file.
86606         * lib/xasprintf.c: New file.
86607
86608 2004-09-08  Bruno Haible  <bruno@clisp.org>
86609
86610         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86611
86612 2004-09-08  Bruno Haible  <bruno@clisp.org>
86613
86614         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86615         length is > INT_MAX.
86616         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86617         more.
86618
86619 2004-09-08  Bruno Haible  <bruno@clisp.org>
86620
86621         * lib/stdint_.h: New file, taken from GNU clisp.
86622
86623 2004-09-08  Bruno Haible  <bruno@clisp.org>
86624             Oskar Liljeblad  <oskar@osk.mine.nu>
86625
86626         * modules/stdint: New file.
86627         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86628
86629 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86630
86631         Import from coreutils.
86632         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86633         strings on unbounded length.  alloca's performance benefits aren't
86634         that important here.
86635         (V_STRDUP): Remove.
86636         (parse_with_separator): New function, with most of the internals
86637         of the old parse_user_spec.  Allow user to omit both user and group,
86638         for compatibility with FreeBSD.
86639         Clone only the user name, not the entire spec.
86640         Do not set *uid, *gid unless entirely successful.
86641         Avoid memory leak in some failing cases.
86642         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86643         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86644         (parse_user_spec): Rewrite to use parse_with_separator.
86645
86646 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86647
86648         * modules/userspec: Don't depend on alloca.
86649
86650 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86651
86652         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86653
86654 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86655
86656         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86657         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86658         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86659
86660 2004-08-16  Simon Josefsson  <jas@extundo.com>
86661
86662         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86663         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86664         Add --dry-run for --import.
86665         Let user provided command line parameters override configure.ac
86666         settings.
86667
86668 2004-08-12  Simon Josefsson  <jas@extundo.com>
86669
86670         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86671         as discussed with Paul Eggert in threads rooted at
86672         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86673         and
86674         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86675         Before, the test was empty, and relied on ELIDE_CODE in source
86676         code.)
86677         (gl_PREREQ_GETOPT): New macro.
86678         (gl_GETOPT): Use them.
86679
86680 2004-08-12  Simon Josefsson  <jas@extundo.com>
86681
86682         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86683         * lib/getopt_.h: Renamed from getopt.h.
86684
86685 2004-08-12  Simon Josefsson  <jas@extundo.com>
86686
86687         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86688         Change default library name from libfoo to libgnu.
86689         Now, if you have a configure.ac that says:
86690                 gl_SOURCE_BASE(gl)
86691                 gl_M4_BASE(gl/m4)
86692                 gl_MODULES(error getopt etcetera)
86693                 gl_INIT
86694         you can import all you need by running:
86695                 ../gnulib/gnulib-tool --import
86696
86697         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86698         (Makefile.am): Rewrite, use logic from argz.
86699         (Include): Use <getopt.h> instead of "getopt.h".
86700
86701 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86702
86703         * modules/argp (Files): Add m4/unlocked-io.m4.
86704         (Depends-on): Add extensions.
86705
86706 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86707
86708         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86709         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86710         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86711         Check for program_invocation_name, program_invocation_short_name,
86712         flockfile, funlockfile, features.h, _getopt_long_only_r.
86713
86714 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86715
86716         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86717         its complicated substitute.
86718         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86719         and program_invocation_name.
86720         (__argp_basename) [!_LIBC]: Remove; the only use was
86721         replaced by its body.
86722         (__argp_short_program_name): Change condition from
86723         !defined __argp_short_program_name to
86724         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86725         to match argp-namefrob.h.
86726         (__argp_failure): Don't assume strerror_r returns char *.
86727         * lib/argp-parse.c (N_): Define unconditionally.
86728         (argp_default_options): Fill out initializers with 0 to avoid
86729         gcc warnings.
86730
86731 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86732
86733         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86734         getopt1.c.
86735
86736 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86737
86738         Merge from coreutils.
86739
86740         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86741
86742         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86743         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86744
86745 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86746
86747         Merge from coreutils.
86748
86749         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86750         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86751         for Reliant Unix 5.43.
86752
86753         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86754         (union fooround): Use uintmax_t, not long int.
86755         The rest is a merge from libc:
86756         [defined _LIBC]: Include <shlib-compat.h>.
86757         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86758
86759         * lib/settime.c (settime): Recode to avoid warning with
86760         Sun Forte C 6U2.
86761
86762         * lib/strverscmp.c: Convert to UTF-8.
86763
86764 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86765
86766         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86767         m4/uintmax_t.m4.
86768
86769 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86770
86771         * modules/xalloc-die: New file.
86772         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86773
86774         * modules/md5 (Files): Add m4/uint32_t.m4.
86775         * modules/sha1: Renamed from modules/sha.
86776         (Files):
86777         Rename lib/sha.h to lib/sha1.h.
86778         Rename lib/sha.c to lib/sha1.c.
86779         Rename m4/sha.m4 to m4/sha1.m4.
86780         (lib_SOURCES): Likewise.
86781         (configure.ac): Rename gl_SHA to gl_SHA1.
86782         (Include): sha.h -> sha1.h.
86783
86784 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86785
86786         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86787         * m4/sha1.m4: Renamed from sha.m4.
86788         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86789
86790 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86791
86792         * lib/obstack.h (obstack_empty_p):
86793         Don't assume that chunk->contents is suitably aligned.
86794         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86795         Likewise. Problem reported by Benno in
86796         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86797
86798         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86799         readable.  This could be improved further but it'd take some work.
86800
86801 2004-08-08  Simon Josefsson  <jas@extundo.com>
86802
86803         * modules/xgethostname (Depends-on): Remove exit and error (not
86804         used).
86805
86806         * modules/getpass-gnu: Add getpass.h.
86807         (Depends-on): Add stdbool.
86808         * modules/getpass: Add getpass.h.
86809
86810 2004-08-08  Simon Josefsson  <jas@extundo.com>
86811
86812         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86813         Check getpass declaration.
86814
86815 2004-08-08  Simon Josefsson  <jas@extundo.com>
86816
86817         * lib/xgethostname.c: Don't include error.h (not used).
86818
86819         * lib/getpass.h: Add.
86820         * lib/getpass.c: Include getpass.h first.
86821
86822 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86823
86824         * lib/xalloc-die.c: New file.
86825         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86826         All uses removed.
86827         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86828         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86829         xalloc-die.c.
86830         (_, N_, xalloc_die): Move to xalloc-die.c.
86831         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86832         so that we needn't mess with xalloc_msg_memory_exhausted.
86833
86834         * lib/sha1.h: Renamed from sha.h.
86835         (SHA1_H): Renamed from _SHA_H.
86836         (sha1_ctx): Renamed from sha_ctx.
86837         (sha1_init_ctx): Renamed from sha_init_ctx.
86838         (sha1_process_block): Renamed from sha_process_block.
86839         (sha1_process_bytes): Renamed from sha_process_bytes.
86840         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86841         (sha1_read_ctx): Renamed from sha_read_ctx.
86842         (sha1_stream): Renamed from sha_stream.
86843         (sha1_buffer): Renamed from sha_buffer.
86844         * lib/sha1.c: Likewise; renamed from sha.c.
86845         Do not include <sys/types.h>.
86846         Include <stddef.h> rather than <stdlib.h>.
86847
86848 2004-08-08  Bruno Haible  <bruno@clisp.org>
86849
86850         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86851         FILESYSTEM_PREFIX_LEN.
86852         * lib/progreloc.c: Likewise.
86853         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86854
86855 2004-08-06  Simon Josefsson  <jas@extundo.com>
86856
86857         * modules/progname (Depends-on): Don't depend on stdbool.
86858
86859 2004-08-06  Simon Josefsson  <jas@extundo.com>
86860
86861         * modules/getsubopt: New file.
86862         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86863         getsubopt.
86864
86865 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86866
86867         More merge from coreutils.
86868
86869         * m4/utimens.m4, m4/utimecmp.m4: New files.
86870         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86871         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86872         prereq.m4, sha.m4: Import changes from coreutils.
86873
86874 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86875
86876         More merge from coreutils.
86877         * modules/raise, modules/readtokens0, modules/utimens:
86878         * modules/utimecmp, module/xnanosleep: New files.
86879         * modules/strftime: Add lib/strftime.h.
86880         Change include from <time.h> to "strftime.h".
86881         * modules/yesno: Add lib/yesno.h.
86882         * modules/backupfile: Remove lib/addext.c.
86883         * modules/euidaccess: Add stat-macros.h.
86884         * modules/canonicalize, modules/euidaccess,
86885         modules/filemode, modules/lchown, modules/makepath,
86886         modules/rmdir, modules/stat: Likewise.
86887
86888 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86889
86890         Merge from tar.
86891         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86892         SIZE_MAX is a valid preprocessor constant.
86893         (__argp_basename): Change from "#ifndef _LIBC"
86894         to "#ifndef __argp_short_program_name", so that
86895         we don't compile these functions for tar.
86896
86897         More merges from coreutils.
86898         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86899         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86900         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86901         * lib/addext.c: Remove; no longer needed.
86902         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86903         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86904         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86905         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86906         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86907         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86908         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86909         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86910         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86911         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86912         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86913         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86914         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86915         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86916         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86917         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86918         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86919         Import changes from coreutils.
86920
86921 2004-08-05  Simon Josefsson  <jas@extundo.com>
86922
86923         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86924
86925 2004-08-05  Simon Josefsson  <jas@extundo.com>
86926
86927         * m4/getsubopt.m4: New file.
86928
86929 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86930
86931         Merge from coreutils.
86932
86933         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86934         * m4/getcwd-path-max.m4: New files.
86935
86936         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86937         FILESYSTEM_PREFIX_LEN ->
86938         FILE_SYSTEM_PREFIX_LEN.
86939         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86940         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86941         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86942         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86943
86944         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86945         prerequisite modules now handle the DOS stuff.
86946         Don't check for unistd.h.
86947
86948 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86949
86950         Merge from coreutils.
86951
86952         * lib/.gdb-history: Remove; this doesn't belong here.
86953
86954         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86955         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86956         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86957         * lib/getcwd.c: New files.
86958
86959         * lib/dirname.h: Include <stdbool.h>.
86960         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86961         for consistency with POSIX terminology.  All uses changed.
86962         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86963         (strip_trailing_slashes): Use bool for booleans.
86964         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86965
86966         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86967         sometimes returns a positive errno value even when it succeeds.
86968         (print_errno_message) [!LIBC]: Fall back on strerror if
86969         __strerror_r fails.
86970
86971         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86972         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86973         (longest_relative_suffix): New function.
86974         (path_concat): Use it.  Assume first argument is not NULL.
86975         Port to DOS.  Omit redundant separators.
86976         Report an error instead of returning NULL.
86977         Use mempcpy instead of memcpy.
86978         (xpath_concat): Remove: not declared or used.
86979
86980         * lib/same.h: Include <stdbool.h>
86981         (same_name): Return bool, not int.
86982         * lib/same.c (same_name): Likewise.
86983         (errno): Don't declare; we assume C89 or better now.
86984
86985         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86986         if not already defined.
86987
86988         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86989         * lib/dup-safer.c (errno): Likewise.
86990
86991 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86992
86993         Merge from coreutils.
86994         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86995         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86996         * modules/path-concat: Don't depend on strdup.
86997
86998 2004-08-03  Simon Josefsson  <jas@extundo.com>
86999
87000         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
87001         * lib/progname.h: Don't include stdbool.h.
87002
87003 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87004
87005         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
87006         * MODULES.html.sh (func_all_modules): Remove fatal.
87007
87008 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87009
87010         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
87011
87012 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87013
87014         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
87015         working.
87016
87017 2004-08-02  Simon Josefsson  <jas@extundo.com>
87018
87019         * lib/getsubopt.h: New file, with comments from Bruno Haible.
87020         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
87021         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
87022
87023 2004-08-01  Simon Josefsson  <jas@extundo.com>
87024
87025         * lib/xgetdomainname.c: Include stdlib.h, for free().
87026
87027 2004-07-19  Bruno Haible  <bruno@clisp.org>
87028
87029         * MODULES.html.sh (func_all_modules): Add dummy.
87030
87031 2004-07-16  Simon Josefsson  <jas@extundo.com>
87032
87033         * modules/dummy: New file.
87034
87035 2004-07-16  Simon Josefsson  <jas@extundo.com>
87036
87037         * lib/dummy.c: New file.
87038
87039 2004-07-16  Bruno Haible  <bruno@clisp.org>
87040
87041         * lib/backupfile.h: Add extern "C" for C++.
87042         * lib/closeout.h: Likewise.
87043         * lib/copy-file.h: Likewise.
87044         * lib/findprog.h: Likewise.
87045         * lib/full-write.h: Likewise.
87046         * lib/pathname.h: Likewise.
87047         * lib/progname.h: Likewise.
87048         * lib/stpcpy.h: Likewise.
87049         * lib/stpncpy.h: Likewise.
87050         * lib/strcase.h: Likewise.
87051         * lib/strstr.h: Likewise.
87052         * lib/xalloc.h: Likewise.
87053
87054         * lib/mbswidth.h: Add extern "C" for C++.
87055         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
87056
87057 2004-07-13  Robert Millan  <robertmh@gnu.org>
87058
87059         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
87060
87061 2004-07-09  Simon Josefsson  <jas@extundo.com>
87062
87063         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
87064         failed without this.)
87065
87066 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87067
87068         * modules/chown (Files): Add lib/fchown-stub.c, since
87069         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
87070
87071 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87072
87073         * lib/fchown-stub.c: New file.
87074
87075 2004-06-24  Jim Meyering  <jim@meyering.net>
87076
87077         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
87078
87079 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87080
87081         * modules/argz: Omit "#include".
87082
87083         * MODULES.html.sh (func_all_modules): Add calloc, to match
87084         2004-06-01 addition of calloc module.
87085
87086 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87087
87088         * m4/argz.m4: New file, which is autoupdated from libtool.
87089
87090 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87091
87092         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
87093         libtool.
87094
87095 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87096
87097         * config/srclist-update: Don't insist on "USA." before the
87098         close-comment, as libtool omits the period and puts the */ on a
87099         separate line.
87100         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
87101         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
87102
87103 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
87104
87105         * modules/argz: New file.
87106         * MODULES.html.sh (func_all_modules): Add argz.
87107
87108 2004-06-12  Jim Meyering  <jim@meyering.net>
87109         and  Paul Eggert  <eggert@cs.ucla.edu>
87110
87111         * modules/hash (Files): Add lib/xalloc.h.
87112         * modules/pipe (Depends-on): Add wait-process.
87113         * modules/stat (Depends-on): Add xalloc.
87114         * modules/userspec (Files): Add lib/userspec.h.
87115         * modules/xstrto
87116
87117         Upgrade from gettext-0.13.
87118         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
87119         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
87120         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
87121
87122 2004-06-10  Jim Meyering  <jim@meyering.net>
87123
87124         * lib/calloc.c: New file.
87125
87126 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87127
87128         * lib/getdate.y (yylex): Allow space between sign and number.
87129         Problem reported by Dan Jacobson.
87130
87131 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87132
87133         Merge from coreutils CVS.
87134
87135         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87136         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87137         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87138         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87139         xstrtol.m4: Fix copyright date and/or serial number.
87140
87141         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87142         See if we need an fchown replacement.
87143         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87144         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87145         and use the replacement function if we detect either defect.
87146
87147         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87148         gl_UTIMECMP.
87149
87150 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87151         and  Jim Meyering  <jim@meyering.net>
87152
87153         Merge from coreutils CVS.
87154
87155         * lib/stat-macros.h: New file, with contents from file-type.h
87156         and coreutils' system.h.
87157         * lib/file-type.c: Include "stat-macros.h".
87158         * lib/file-type.h (file_type): Move all macro definitions to new file,
87159         stat-macros.h.
87160
87161         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87162         Wrap old code with this conditional.
87163         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87164         function that does not dereference symlinks.
87165         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87166
87167         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87168         dependency problems.
87169         (xreadlink): Accept new arg SIZE, for efficiency.
87170         All decls and uses changed.
87171         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87172
87173         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87174         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87175
87176         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87177         sysexits.h.
87178
87179 2004-06-01  Jim Meyering  <jim@meyering.net>
87180
87181         * m4/calloc.m4: New file.
87182
87183 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87184
87185         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87186         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87187         Also, fix a typo in a diagnostic.
87188
87189 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87190
87191         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87192         or AC_FUNC_REALLOC.
87193
87194 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87195
87196         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87197         macros to be defined.
87198         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87199         the allocator returns NULL because the requested size is zero.
87200
87201 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87202
87203         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87204         var.  Add comment explaining why libc still defines it.  This
87205         merges the following patch from glibc:
87206         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87207
87208 2004-05-20  Andreas Schwab  <schwab@suse.de>
87209
87210         * m4/free.m4: Replace free if it not known to work, not the other
87211         way round.
87212
87213 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87214
87215         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87216         present in glibc since revision 1.1 of this file.
87217         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87218         obstack_alignment_mask, obstack_alloc, obstack_base,
87219         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87220         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87221         obstack_grow0, obstack_init, obstack_int_grow,
87222         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87223         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87224         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87225         nonexistent functions.
87226
87227 2004-05-18  Karl Berry  <karl@gnu.org>
87228
87229         * config/srclist.txt: break link for vasnprintf.c.
87230
87231 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87232
87233         Port obstack to the AS/400, where pointers are 16 bytes wide and
87234         you cannot cast an integer to a valid pointer.  This patch is
87235         currently waiting to be integrated into glibc; see
87236         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87237
87238         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87239         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87240         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87241         (struct obstack): temp member is now a union of a pointer and
87242         an integer, instead of an integer.  All integer uses changed.
87243         This does not affect the physical layout of struct obstack,
87244         except on hosts (like the AS/400) where the size or alignment of
87245         void * is greater than that of ptrdiff_t.
87246         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87247         __STDC__)]: Store temporary in pointer member of union, not
87248         integer member.
87249         * lib/obstack.c: Include <stddef.h>, for offsetof.
87250         (struct fooalign): Remove; it doesn't need a name.
87251         (union fooround): Change double to long double, and add void *.
87252         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87253         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87254         not a macro.  Hence the values are always int; so remove all
87255         casts-to-int in uses.
87256
87257 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87258
87259         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87260         we can get this patch merged into glibc.
87261
87262 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87263             Paul Eggert  <eggert@cs.ucla.edu>
87264
87265         * m4/argp: Depend on alloca.
87266
87267 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87268             Paul Eggert  <eggert@cs.ucla.edu>
87269
87270         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87271         freecoding.
87272
87273 2004-05-17  Bruno Haible  <bruno@clisp.org>
87274
87275         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87276         precision that consists of a '.' followed by an empty digit string.
87277         Patch by Tor Lillqvist <tml@iki.fi>.
87278
87279 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87280
87281         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87282         for backward compatibility with older code.  We need our own
87283         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87284         it under some other name, and our alloca.h will define it.
87285
87286 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87287             Derek Price  <derek@ximbiot.com>
87288
87289         * lib/alloca.c: Include <alloca.h>, to get our interface.
87290         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87291         include <alloca.h> first.  Use C89 prototype for alloca; this
87292         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87293         Use #elif for simplicity, since we can assume C89 now.
87294         Don't try to source the system alloca.h since it will not be found
87295         and to prevent recursively including its replacement.
87296         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87297         * lib/regex.c: Likewise.
87298
87299 2004-05-16  Derek Price  <derek@ximbiot.com>
87300             Paul Eggert  <eggert@cs.ucla.edu>
87301
87302         getline cleanup.  This changes the getndelim2 API: both order of
87303         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87304         no delimiter).
87305
87306         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87307         interface does that.
87308         (getline): Always use getdelim, so that we don't have two
87309         copies of this code.
87310         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87311         if available.
87312         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87313         (GETNDELIM2_MAXIMUM): New macro.
87314         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87315         instead of the old practice of delim2==0.  All callers changed.
87316         Return -1 on overflow, instead of returning junk.
87317         Do not set *linesize unless allocation succeeds.
87318         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87319         that we include sys/types.h.
87320         * lib/getnline.h: Likewise.
87321         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87322         (getndelim2): Reorder arguments.
87323         * lib/getnline.c (getnline, getndelim):
87324         Don't discard the NMAX argument.
87325         (getnline): Invoke getndelim, to avoid code duplication.
87326         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87327         of (size_t) -1 by callers of the getnline family.
87328
87329 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87330
87331         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87332         Check for gettimeofday.
87333         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87334         Check for settimeofday, stime.
87335
87336 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87337
87338         * lib/nanosleep.c (suspended): Change its type from int to
87339         sig_atomic_t volatile.
87340         (first_call): Make it private to rpl_nanosleep, and have it
87341         be zero initially as that's a bit faster.
87342         (my_usleep): Round up fractional times instead of truncating them,
87343         as this is the usual meaning for 'sleep'.
87344
87345         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87346         doesn't work.
87347         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87348         (ENOSYS): Define if not defined.
87349         (settime): Fall back on stime if it exists and settimeofday fails.
87350         But don't bother with fallbacks if a method fails with errno == EPERM.
87351
87352 2004-05-11  Jim Meyering  <jim@meyering.net>
87353
87354         Prior to this change, the save_cwd caller required read access to the
87355         current directory on most systems (ones with the fchdir function).
87356
87357         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87358         fails, try write-only, and finally, resort to using xgetcwd.
87359
87360 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87361
87362         * lib/obstack.c, obstack.h: Import changes from libc.
87363
87364 2004-04-28  Bruno Haible  <bruno@clisp.org>
87365
87366         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87367         also implicitly appends .exe to executables.
87368         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87369         accepts Windows pathnames.
87370         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87371         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87372         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87373         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87374         Reported by Derek Robert Price <derek@ximbiot.com>.
87375
87376 2004-04-21  Karl Berry  <karl@gnu.org>
87377
87378         * config/srclist.txt (localcharset.c): break sync.
87379
87380 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87381
87382         * m4/host-os.m4: Add a copyright notice.
87383
87384 2004-04-20  Jim Meyering  <jim@meyering.net>
87385
87386         Change UTILS_ to gl_ in AC_DEFINE'd names.
87387         Change utils_- and jm_-prefixed variables, too.
87388         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87389         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87390         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87391
87392         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87393         Don't emit trailing blanks.
87394         Also rename jm_-prefixed variables to have gl_ prefix.
87395
87396         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87397         Also rename jm_-prefixed variables to have gl_ prefix.
87398
87399         * m4/jm-macros.m4: Reflect the renamings.
87400         * m4/prereq.m4: Likewise.
87401
87402 2004-04-20  Jim Meyering  <jim@meyering.net>
87403
87404         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87405         memory.
87406
87407 2004-04-20  Jim Meyering  <jim@meyering.net>
87408             Bruno Haible  <bruno@clisp.org>
87409
87410         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87411         memory when realloc fails.
87412
87413 2004-04-19  Jim Meyering  <jim@meyering.net>
87414
87415         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87416         now that readutmp.c may call `free (0)'.
87417
87418 2004-04-19  Bruno Haible  <bruno@clisp.org>
87419
87420         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87421         * m4/inttypes_h.m4: Likewise.
87422         * m4/stdint_h.m4: Likewise.
87423         * m4/intmax_t.m4: Likewise.
87424         * m4/uintmax_t.m4: Likewise.
87425
87426 2004-04-18  Jim Meyering  <jim@meyering.net>
87427
87428         * m4/prereq.m4: Don't forbid jm_ prefix.
87429
87430         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87431         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87432         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87433         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87434         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87435         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87436         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87437         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87438         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87439         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87440         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87441         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87442         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87443         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87444         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87445         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87446         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87447         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87448         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87449
87450 2004-04-18  Jim Meyering  <jim@meyering.net>
87451
87452         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87453         failure, don't leak memory and do call END_UTMP_ENT.
87454
87455 2004-04-16  Jim Meyering  <jim@meyering.net>
87456
87457         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87458         coreutils' stat program.
87459         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87460
87461 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87462
87463         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87464         C89.
87465         (CHAR_BIT): Remove, since we assume C89.
87466         Include <stdint.h> if available, as per current Autoconf CVS advice.
87467
87468 2004-03-31  Jim Meyering  <jim@meyering.net>
87469
87470         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87471         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87472         * m4/xalloc.m4: Likewise.
87473
87474 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87475
87476         Merge from coreutils.
87477
87478         * m4/inttostr.m4: New file.
87479         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87480         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87481         Require gl_CLOCK_TIME.
87482         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87483
87484 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87485
87486         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87487         not bool, to be more consistent with Unix conventions.
87488         Suggested by Bruno Haible.
87489
87490         Merge from coreutils.
87491
87492         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87493         * lib/umaxtostr.c: New files.
87494
87495         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87496         the usual <time.h> dance.
87497         (get_date): Change signature to support fractional time stamps.
87498         All callers changed.
87499         * lib/getdate.y: Include "getdate.h" first, as we can now
87500         assume C89 and don't need to worry about 'const'.
87501         Similarly, include "unlocked-io.h" near start, not in middle.
87502         Include <limits.h>.
87503         (textint.value): Use long int rather than int.
87504         (textint.digits): Use size_t rather than int.
87505         (BILLION, LOG10_BILLION): New constants.
87506         (parser_control): New member rel_ns.  Members day_ordinal,
87507         time_zone, month, day, hour, minutes, rel_year, rel_month,
87508         rel_day, rel_hour, rel_minutes, rel_seconds
87509         are now long int, not int.  Member seconds is now struct timespec,
87510         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87511         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87512         not int.
87513         (%union.intval): Now long int, not int.
87514         New member timespec.
87515         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87516         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87517         (spec): Now is a timespec or an item list.
87518         (timespec, items): New nonterminals.
87519         (time, rel, relunit, number, get_date):
87520         Add support for fractional seconds.
87521         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87522         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87523         (to_hour): First arg is now long int, not int.
87524         (to_year): Returns long int, not int.
87525         Don't treat year -70 like 70.
87526         (tm_diff): Returns long int, not int.
87527         (lookup_word): Use bool instead of int when appropriate.
87528         (yylex): Use size_t for count, not int.
87529         Detect overflow when parsing large integer constants.
87530         Add support for fractions.
87531         (get_date): Make pointers 'const' if possible.
87532         Use more-portable code to detect integer overflow.
87533         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87534         Don't use ctime; it's not reliable if the year has >4 digits.
87535
87536         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87537         This is for compatibility with BSD.
87538
87539         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87540         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87541         From coreutils' system.h.
87542
87543         * lib/userspec.c: Don't include "posixver.h".
87544         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87545         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87546         compatible extension.  Simplify code by removing a boolean int
87547         that was always nonzero if a string was nonnull.
87548
87549 2004-03-30  Jim Meyering  <jim@meyering.net>
87550
87551         Merge from coreutils.
87552
87553         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87554         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87555         on some systems one must include <grp.h> before it.
87556         Reported by Christian Krackowizer.
87557
87558 2004-03-30  Jim Meyering  <jim@meyering.net>
87559
87560         Merge from coreutils.
87561
87562         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87563
87564         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87565         an empty input stream.
87566
87567         * lib/readtokens.c: Include <stdbool.h>.
87568         (readtoken): Use `size_t' rather than int/long.
87569         All callers adjusted.
87570         Use `bool' rather than `int' where appropriate.
87571         Use memset rather than an explicit loop.
87572         Use x2nrealloc rather than xrealloc.
87573         Allow the use of `\0' as a delimiter.
87574         (readtokens): Likewise.
87575         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87576
87577 2004-03-30  Jim Meyering  <jim@meyering.net>
87578
87579         * m4/realloc.m4: Remove file, since now it does no more than
87580         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87581         the `configure.ac' section of module/realloc.
87582         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87583
87584 2004-03-30  Bruno Haible  <bruno@clisp.org>
87585
87586         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87587         nonnull.
87588
87589 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87590
87591         Merge changes to getloadavg.c from coreutils and Emacs.
87592
87593         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87594         Define to an expression, not to the empty string.
87595         Include cloexec.h and xalloc.h.
87596         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87597         Use set_cloexec_flag rather than rolling our own.
87598         * lib/cloexec.c, lib/cloexec.h: New files.
87599
87600 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87601
87602         * m4/cloexec.m4: New file.
87603
87604 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87605
87606         * lib/getopt.h: Sync with libc CVS.
87607
87608 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87609             Bruno Haible  <bruno@clisp.org>
87610
87611         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87612         mbswidth.
87613
87614 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87615             Bruno Haible  <bruno@clisp.org>
87616
87617         * lib/mbswidth.h: Include <wchar.h> only if
87618         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87619         <wchar.h>.
87620         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87621
87622 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87623
87624         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87625         Sync with libc CVS.
87626         * lib/getopt_int.h: New file, also synced from libc.
87627
87628 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87629
87630         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87631         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87632         Bring back getopt.c, getopt.h, getopt1.c.
87633
87634 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87635
87636         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87637         All uses changed.  Check for sa_sigaction member; this fixes
87638         a bug first reported by Jason Andrade in
87639         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87640
87641 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87642
87643         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87644         '#if' expressions.  Unlike the code it replaces, it does not
87645         depend on (defined _SC_PAGESIZE).  However, it does depend on
87646         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87647         first reported by Jason Andrade in
87648         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87649
87650 2004-02-25  Simon Josefsson  <jas@extundo.com>
87651
87652         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87653
87654 2004-02-25  Simon Josefsson  <jas@extundo.com>
87655
87656         * lib/strdup.h: New file.
87657         * lib/strdup.c: Include it.
87658         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87659         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87660
87661 2004-02-23  Karl Berry  <karl@gnu.org>
87662
87663         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87664         (from fencepost.gnu.org:/gd/gnuorg).
87665
87666 2004-02-23  Karl Berry  <karl@gnu.org>
87667
87668         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87669         * config/srclist.txt: add maintain/standards documents.
87670
87671 2004-02-18  Bruno Haible  <bruno@clisp.org>
87672
87673         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87674         Reported by Derek Robert Price <derek@ximbiot.com>.
87675
87676 2004-02-16  Karl Berry  <karl@gnu.org>
87677
87678         * config/mkinstalldirs, install-sh: update from automake.
87679
87680 2004-02-06  Karl Berry  <karl@gnu.org>
87681
87682         * m4/po.m4: update from gettext 0.14.1.
87683
87684 2004-02-06  Karl Berry  <karl@gnu.org>
87685
87686         * lib/config.charset: update from gettext 0.14.1.
87687
87688 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87689
87690         Add comments and code, prompted by suggestions from Bruno Haible
87691         for sh-quote.
87692         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87693         describing the enum quoting_style values.
87694         * lib/quotearg.c (quotearg_alloc): New function.
87695         (quotearg_buffer_restyled): Treat lone { and } as special.
87696         Treat = as special.  Work around bug with older shells
87697         that "see" a '\' that is really the 2nd byte of a multibyte char.
87698         Quote empty string with shell_quoting_style.
87699
87700 2004-02-03  Bruno Haible  <bruno@clisp.org>
87701
87702         * m4/pipe.m4: New file, from GNU gettext.
87703
87704 2004-02-03  Bruno Haible  <bruno@clisp.org>
87705
87706         * lib/pipe.h: New file, from GNU gettext.
87707         * lib/pipe.c: New file, from GNU gettext.
87708
87709 2004-01-27  Bruno Haible  <bruno@clisp.org>
87710
87711         * m4/execute.m4: New file, from GNU gettext.
87712
87713 2004-01-27  Bruno Haible  <bruno@clisp.org>
87714
87715         * lib/execute.h: New file, from GNU gettext.
87716         * lib/execute.c: New file, from GNU gettext.
87717         * lib/w32spawn.h: New file, from GNU gettext.
87718
87719 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87720
87721         Merge from diffutils.
87722
87723         * lib/file-type.c (file_type): Add typed memory objects.
87724         * lib/file-type.h (S_TYPEISTMO): New macro.
87725
87726         * lib/c-stack.h (c_stack_action): Remove argv argument.
87727         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87728         (die): Don't calculate message unless segv_action returns.
87729         (get_stack_location, min_address_from_argv, max_address_from_argv,
87730         volatile stack_base, volatile_stack_size): Remove.
87731         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87732         that every segmentation violation is a stack overflow.  (Ouch!)
87733         See Debian bug 136249 (still outstanding) for more info about why
87734         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87735
87736 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87737
87738         Exit-status fix from coreutils.
87739
87740         Use exit_failure consistently in place of EXIT_FAILURE,
87741         so that program exit statuses are consistent on failure.
87742
87743         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87744         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87745         * lib/argmatch.h: Comment fix to match the above.
87746         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87747         Now a macro referring to exit_failure, instead of a separate
87748         variable.  Include "exitfail.h" to get it.
87749         * lib/xstrtol.h: Include "exitfail.h".
87750         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87751
87752         * lib/long-options.c (parse_long_options): Use prototype
87753         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87754         for clarity.
87755
87756 2004-01-21  Jim Meyering  <jim@meyering.net>
87757
87758         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87759         so as not to conflict with a different-sized __mktime_internal
87760         function in GNU libc.
87761         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87762         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87763
87764 2004-01-20  Karl Berry  <karl@gnu.org>
87765
87766         * config/config.guess: update from config.
87767
87768         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87769
87770 2004-01-20  Bruno Haible  <bruno@clisp.org>
87771
87772         Safer stack allocation.
87773         * lib/setenv.c: Include allocsa.h.
87774         (alloca): Remove fallback definition.
87775         (freea): Remove macro.
87776         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87777         instead of freea.
87778
87779 2004-01-20  Bruno Haible  <bruno@clisp.org>
87780
87781         * m4/eealloc.m4: New file, from GNU gettext.
87782
87783 2004-01-20  Bruno Haible  <bruno@clisp.org>
87784
87785         * m4/allocsa.m4: New file, from GNU gettext.
87786
87787 2004-01-20  Bruno Haible  <bruno@clisp.org>
87788
87789         * lib/xallocsa.h: New file, from GNU gettext.
87790         * lib/xallocsa.c: New file, from GNU gettext.
87791
87792 2004-01-20  Bruno Haible  <bruno@clisp.org>
87793
87794         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87795
87796 2004-01-20  Bruno Haible  <bruno@clisp.org>
87797
87798         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87799         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87800         specially.
87801
87802 2004-01-20  Bruno Haible  <bruno@clisp.org>
87803
87804         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87805         patch.
87806
87807 2004-01-20  Bruno Haible  <bruno@clisp.org>
87808
87809         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87810
87811 2004-01-20  Bruno Haible  <bruno@clisp.org>
87812
87813         * lib/eealloc.h: New file.
87814
87815 2004-01-20  Bruno Haible  <bruno@clisp.org>
87816
87817         * lib/binary-io.h: Avoid warnings on Cygwin.
87818
87819 2004-01-20  Bruno Haible  <bruno@clisp.org>
87820
87821         * lib/allocsa.h: New file, from GNU gettext.
87822         * lib/allocsa.c: New file, from GNU gettext.
87823
87824 2004-01-18  Karl Berry  <karl@gnu.org>
87825
87826         * doc/gpl.texi, doc/lgpl.texi: new files.
87827
87828 2004-01-18  Karl Berry  <karl@gnu.org>
87829
87830         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87831         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87832
87833 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87834
87835         Merge from coreutils.
87836
87837         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87838         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87839         (gl_DEFAULT_POSIX2_VERSION): Move
87840         the documentation from 'configure' into 'config.hin',
87841         so that 'configure --help' isn't burdened by it and
87842         we don't have to worry about its formatting there.
87843         Reword the documentation so that it's more succinct
87844         and can be run together into a single paragraph.
87845         * m4/same.m4 (gl_SAME): Check for pathconf.
87846
87847 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87848
87849         Merge from coreutils.
87850
87851         * lib/posixver.c: Include posixver.h.
87852
87853         * lib/same.c: Include <stdbool.h>, <limits.h>.
87854         (_POSIX_NAME_MAX): Define if not defined.
87855         (MIN): New macro.
87856         (same_name): If file names are silently truncated, report
87857         that the file names are the same if they are the same after
87858         the silent truncation.
87859
87860         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87861         conversion function.
87862         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87863         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87864         longer needed.
87865
87866 2004-01-15  Jim Meyering  <jim@meyering.net>
87867
87868         Merge from coreutils.
87869
87870         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87871         if no library is required.
87872         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87873         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87874         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87875         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87876         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87877         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87878         value, $ac_cv_search_crypt, if it's "none required".
87879         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87880         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87881         not gl_FUNC_GETLOADAVG.
87882         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87883         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87884
87885 2004-01-15  Jim Meyering  <jim@meyering.net>
87886
87887         Merge from coreutils.
87888
87889         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87890         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87891         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87892
87893         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87894         optional configure-time default.
87895
87896         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87897
87898         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87899
87900 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87901
87902         Merge from coreutils.
87903
87904         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87905         value, $ac_cv_search_nanosleep, if it's "none required".
87906
87907 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87908
87909         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87910         with like-named macro in fnmatch.c.
87911         (EXT): Use an internal constant instead.
87912
87913         Merge fnmatch patches from glibc.
87914         * lib/fnmatch.c (mbsinit): Remove define.
87915         Add libc_hidden_ver (__fnmatch, fnmatch).
87916         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87917         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87918
87919 2004-01-14  Karl Berry  <karl@gnu.org>
87920
87921         * config/install-sh: update from automake.
87922
87923 2004-01-13  Karl Berry  <karl@gnu.org>
87924
87925         * config/install-sh: update from automake.
87926
87927 2004-01-09  Karl Berry  <karl@gnu.org>
87928
87929         * config/install-sh: update from automake.
87930
87931 2004-01-05  Karl Berry  <karl@gnu.org>
87932
87933         * config/config.{sub,guess}: update from config.
87934
87935 2003-12-31  Karl Berry  <karl@gnu.org>
87936
87937         * config/depcomp: update from automake.
87938
87939 2003-12-14  Karl Berry  <karl@gnu.org>
87940
87941         * lib/config.charset: update from gettext-runtime.
87942
87943 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87944
87945         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87946         Bug reported by Alfred M. Szmidt.
87947
87948 2003-12-03  Bruno Haible  <bruno@clisp.org>
87949
87950         * m4/gettext.m4: Upgrade from gettext-0.13.
87951         * m4/po.m4: Upgrade from gettext-0.13.
87952         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87953         * m4/intmax.m4: New file, from gettext-0.13.
87954         * m4/printf-posix.m4: New file, from gettext-0.13.
87955
87956 2003-11-29  Karl Berry  <karl@gnu.org>
87957
87958         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87959
87960 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87961             Bruno Haible  <bruno@clisp.org>
87962
87963         * lib/printf-parse.h: Don't include sys/types.h.
87964         (ARG_NONE): New macro.
87965         (char_directive): Change type of *arg_index fields to size_t.
87966         * lib/printf-parse.c: Don't include sys/types.h.
87967         (SSIZE_MAX): Remove macro.
87968         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87969         Remove unnecessary overflow check.
87970         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87971         fields.
87972
87973 2003-11-25  Bruno Haible  <bruno@clisp.org>
87974
87975         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87976
87977 2003-11-25  Bruno Haible  <bruno@clisp.org>
87978
87979         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87980         gt_TYPE_SSIZE_T.
87981
87982 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87983
87984         * modules/alloca: Remove dependency on xalloc.
87985
87986 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87987
87988         * lib/alloca.c: Remove dependency on xalloc module.
87989         (xalloc_die): Remove.
87990         (memory_full) [!defined emacs]: New macro.
87991         [!defined emacs]: Don't include xalloc.h.
87992         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87993         address arithmetic overflows.  Change datatypes a bit to avoid
87994         unnecessary casts.
87995
87996 2003-11-22  Jim Meyering  <jim@meyering.net>
87997
87998         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87999         s/size/size_t/.
88000
88001 2003-11-21  Karl Berry  <karl@gnu.org>
88002
88003         * config/config.{sub,guess}: update from config.
88004
88005 2003-11-18  Karl Berry  <karl@gnu.org>
88006
88007         * config/config.{sub,guess}: update from config.
88008
88009         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
88010
88011 2003-11-17  Paul Eggert  <eggert@twinsun.com>
88012
88013         * README: Mention that S+T cannot overflow if S is the size of
88014         an existing object and T is sufficiently small.
88015
88016 2003-11-17  Jim Meyering  <jim@meyering.net>
88017
88018         On systems without utime and without a utimes function capable of
88019         dealing with a NULL struct utimbuf* argument, this utime replacement
88020         could -- in unusual circumstances -- leak a file descriptor.
88021         * lib/utime.c: Include <unistd.h> and <errno.h>.
88022         (utime_null): Be sure to close `fd' and to preserve errno.
88023         Reported by Geoff Collyer via Arnold Robbins.
88024
88025 2003-11-17  Bruno Haible  <bruno@clisp.org>
88026
88027         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
88028         (Depends-on): Add xsize.
88029
88030 2003-11-17  Bruno Haible  <bruno@clisp.org>
88031
88032         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
88033
88034 2003-11-17  Bruno Haible  <bruno@clisp.org>
88035
88036         * lib/vasnprintf.c (alloca): Remove fallback definition.
88037         (freea): Remove definition.
88038         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
88039         Reported by Paul Eggert.
88040
88041 2003-11-16  Paul Eggert  <eggert@twinsun.com>
88042             Bruno Haible  <bruno@clisp.org>
88043
88044         Protect against address arithmetic overflow.
88045         * lib/printf-args.h: Include stddef.h.
88046         (arguments): Change type of field 'count' to size_t.
88047         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
88048         'unsigned int' where appropriate.
88049         * lib/printf-parse.h: Include sys/types.h.
88050         (char_directive): Change type of *arg_index fields to ssize_t.
88051         (char_directives): Change type of fields 'count', max_*_length to
88052         size_t.
88053         * lib/printf-parse.c: Include sys/types.h and xsize.h.
88054         (SSIZE_MAX): Define fallback value.
88055         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
88056         instead of 'int' where appropriate. Check a_allocated, d_allocated
88057         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
88058         * lib/vasnprintf.c: Include xsize.h.
88059         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
88060         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
88061         overflow. Avoid wraparound when converting a width or precision from
88062         decimal to binary.
88063
88064 2003-11-16  Bruno Haible  <bruno@clisp.org>
88065
88066         Update from GNU gettext.
88067         * lib/printf-parse.c: Generalize to it can be compiled for wide
88068         strings.
88069         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
88070         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
88071         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
88072         SNPRINTF): New macros.
88073         Don't include <alloca.h> if the file is used inside libintl.
88074         (local_wcslen): New function, for Solaris 2.5.1.
88075         (VASNPRINTF): Use it instead of wcslen.
88076
88077 2003-11-16  Bruno Haible  <bruno@clisp.org>
88078
88079         * lib/xsize.h (xmax): New function.
88080         (xsum, xsum3, xsum4): Declare as "pure" functions.
88081
88082 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88083
88084         * modules/xalloc (Files): Undo latest change, since xalloc.h
88085         no longer needs SIZE_MAX or PTRDIFF_MAX.
88086
88087 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88088
88089         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
88090         gl_PTRDIFF_MAX.
88091
88092 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88093
88094         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
88095         "return", to pacify some unknown compiler.  Problem reported
88096         by Joerg Schilling.
88097
88098 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88099
88100         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
88101         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
88102         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
88103         heuristic is just as accurate as far as we know, and it removes a
88104         dependency on size_max.m4 and ptrdiff_max.m4.
88105
88106 2003-11-11  Bruno Haible  <bruno@clisp.org>
88107
88108         * modules/xsize (Files): Add m4/size_max.m4.
88109         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
88110
88111 2003-11-11  Bruno Haible  <bruno@clisp.org>
88112
88113         * m4/size_max.m4: New file.
88114         * m4/ptrdiff_max.m4: New file.
88115         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
88116         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
88117         (gl_XALLOC): Invoke it.
88118
88119 2003-11-11  Bruno Haible  <bruno@clisp.org>
88120
88121         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
88122         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
88123         defined.
88124
88125 2003-11-10  Paul Eggert  <eggert@twinsun.com>
88126
88127         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
88128         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
88129         rejected some allocations of exactly SIZE_MAX - 2 bytes.
88130         From Bruno Haible.
88131         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
88132         not (size_t) -1, since it's defined here.
88133
88134 2003-11-09  Karl Berry  <karl@gnu.org>
88135
88136         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88137
88138 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88139
88140         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88141         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88142         Reject sizes of exactly SIZE_MAX bytes.
88143         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88144         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88145
88146 2003-11-05  Bruno Haible  <bruno@clisp.org>
88147
88148         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88149         SIZE_MAX defined in <limits.h> on Solaris.
88150
88151 2003-11-04  Jim Meyering  <jim@meyering.net>
88152
88153         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88154         variable names, rather than @VAR@.
88155         * modules/poll: Likewise.
88156
88157 2003-11-04  Bruno Haible  <bruno@clisp.org>
88158
88159         * modules/xsize: New file.
88160         * modules/linebreak: Depend on xsize.
88161         * MODULES.html.sh (func_all_modules): Add xsize.
88162
88163 2003-11-04  Bruno Haible  <bruno@clisp.org>
88164
88165         * m4/xsize.m4: New file.
88166
88167 2003-11-04  Bruno Haible  <bruno@clisp.org>
88168
88169         * lib/xsize.h: New file.
88170         * lib/linebreak.c: Include xsize.h.
88171         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88172         argument for overflow.
88173         Suggested by Paul Eggert.
88174
88175 2003-11-03  Karl Berry  <karl@gnu.org>
88176
88177         * config/config.{guess,sub}: update from config.
88178
88179 2003-11-03  Jim Meyering  <jim@meyering.net>
88180
88181         * modules/userspec (lib_SOURCES): Add userspec.h.
88182         (Include): Add "userspec.h".
88183         Improve description.
88184
88185 2003-11-03  Jim Meyering  <jim@meyering.net>
88186
88187         * lib/userspec.c: Include "userspec.h".
88188         * lib/userspec.h: New file.
88189
88190 2003-11-03  Bruno Haible  <bruno@clisp.org>
88191
88192         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88193
88194 2003-11-03  Bruno Haible  <bruno@clisp.org>
88195
88196         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88197         available, to avoid (extremely rare) race condition.
88198         Suggested by Paul Eggert.
88199
88200 2003-11-02  Karl Berry  <karl@gnu.org>
88201
88202         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88203
88204 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88205
88206         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88207         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88208         (read_filesystem_list): Set and use me_type_malloced.
88209         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88210         whatever the type happens to be), for brevity and consistency.
88211         Check for size calculation overflow on Alphas running OSF/1.
88212
88213 2003-10-31  Jim Meyering  <jim@meyering.net>
88214
88215         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88216
88217         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88218
88219 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88220             Bruno Haible  <bruno@clisp.org>
88221
88222         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88223         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88224
88225 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88226
88227         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88228         netbsd*-gnu*.  Suggested by Robert Millan.
88229
88230 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88231
88232         * modules/group-member: Depend on stdbool.
88233
88234 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88235
88236         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88237
88238 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88239
88240         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88241         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88242         after the 'gnu' in these cases.  This fixes some bugs in the
88243         previous change, and is based on suggestions by Robert Millan.
88244
88245 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88246
88247         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88248         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88249         no longer needed.
88250         * lib/quotearg.c (quotearg_n_options): Use it.
88251         * lib/group-member.c: Include <stdbool.h>.
88252         (free_group_info): Arg is now const *; don't free arg.
88253         (get_group_info): Now returns bool and accepts struct group_info *,
88254         rather than returning a malloc'ed struct group_info *.
88255         All uses changed.  Check for overflow in internal size calculation.
88256
88257         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88258         rather than xmalloc/xrealloc.
88259         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88260         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88261         conformance bug: the old code used a pointer after freeing the
88262         storage that it addressed.
88263         * lib/hash.c (hash_initialize): Simplify the code by using
88264         xalloc_oversized rather than doing it by hand.
88265         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88266         the buffer preserved.  Use free and xmalloc instead.
88267         * lib/quotearg.c (quotearg_n_options): Likewise.
88268         Use a simpler test for size overflow.  Don't use xalloc_oversized
88269         because unsigned int might be wider than size_t (!); this suggests
88270         that we should switch from unsigned int to size_t for slot numbers.
88271
88272 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88273
88274         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88275         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88276         NetBSD kernels.  Requested by Richard Stallman.
88277
88278 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88279
88280         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88281         to allocate the returned structure.  Do not allocate a subarray,
88282         as x2nrealloc will do that.
88283         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88284         instead of xnrealloc.
88285         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88286
88287 2003-10-27  Bruno Haible  <bruno@clisp.org>
88288
88289         * lib/stdbool_.h: Better support for BeOS.
88290
88291 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88292
88293         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88294         now uses inline.
88295
88296 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88297
88298         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88299         callers that want to do their own size-overflow checking.  Include
88300         <stdbool.h>, since xalloc_oversized returns bool.
88301         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88302         to use xalloc_oversized.
88303
88304         Add two functions x2realloc, x2nrealloc, for programs that grow
88305         arrays dynamically by doubling their sizes.
88306         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88307         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88308         New functions.
88309
88310         Port to C99 semantics for 'inline' of external functions.
88311         Bug reported by Bruno Haible.
88312         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88313         with the old contents of xnmalloc.
88314         (xnmalloc, xmalloc): Use it.
88315         (xnrealloc_inline): New static inline function,
88316         with the old contents of xnrealloc.
88317         (xnrealloc, xrealloc): Use it.
88318
88319         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88320         that.
88321
88322 2003-10-26  Karl Berry  <karl@gnu.org>
88323
88324         * config/srclist.txt (COPYING.DOC): no longer available from
88325         /gd/gnuorg; don't know where the ultimate source is.
88326
88327 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88328
88329         Fix several address-calculation bugs in the hash modules,
88330         plus some minor code cleanup.
88331
88332         * lib/hash.h: Include <stdbool.h>, for bool.
88333         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88334         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88335         hash_get_n_entries, hash_get_max_bucket_length,
88336         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88337         hash_rehash): Use size_t rather than unsigned.
88338         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88339         hash_get_n_buckets_used, hash_get_n_entries,
88340         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88341         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88342         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88343         Likewise.
88344         (SIZE_MAX): Define if not defined.
88345         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88346         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88347         hash_print):
88348         Use const * when possible.
88349         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88350         (check_tuning): Fix bug: if tuning parameters were very close to
88351         0 or 1, rounding errors could have caused subscript violations.
88352         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88353         (hash_initialize): Add 'fail:' label
88354         to free table and return NULL, and use it to simplify code.
88355         Use calloc rather than clearing the storage ourself.
88356         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88357         buffer size calculations.
88358         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88359         Include <stddef.h>, for size_t.
88360         * lib/hash-pjw.c (hash_pjw): Likewise.
88361         Switch to method described by Bruno Haible.
88362         Include <limits.h>, for CHAR_BIT.
88363         (SIZE_BITS): New macro.
88364
88365 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88366
88367         * m4/getline.m4 (AM_FUNC_GETLINE):
88368         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88369         hosts.  Problem reported by Derek Robert Price in
88370         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88371         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88372         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88373
88374 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88375
88376         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88377         ceiling the allocation at NMAX bytes rather than silently
88378         discarding input bytes before NMAX is reached.  This makes
88379         a difference only if NMAX exceeds SIZE_MAX / 2.
88380
88381         * lib/obstack.c: Merge from glibc.
88382         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88383         Add libc_hidden_def (_obstack_newchunk).
88384         (_obstack_free) [! defined _LIBC]: Remove.
88385         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88386         a clone of the function body.
88387         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88388         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88389
88390         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88391         glibc.
88392         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88393         arg to memcpy.
88394
88395         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88396         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88397         Don't use lvalue casts, as GCC plans to remove support for them
88398         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88399         was also present in the non-GCC version, indicating that this
88400         code had always been buggy and had never been widely used.
88401         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88402         Use the fast variant of each macro, rather than copying the
88403         definiens of the fast variant; that way, we'll be more likely to
88404         catch future bugs in the fast variants.
88405
88406 2003-10-20  Bruno Haible  <bruno@clisp.org>
88407
88408         * modules/wait-process: New file.
88409         * MODULES.html.sh (func_all_modules): Add wait-process.
88410
88411 2003-10-20  Bruno Haible  <bruno@clisp.org>
88412
88413         * m4/wait-process.m4: New file.
88414
88415 2003-10-20  Bruno Haible  <bruno@clisp.org>
88416
88417         * lib/wait-process.h: New file, from GNU gettext.
88418         * lib/wait-process.c: New file, from GNU gettext.
88419
88420 2003-10-19  Jim Meyering  <jim@meyering.net>
88421
88422         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88423         HPUX 10.20.
88424
88425 2003-10-18  Karl Berry  <karl@gnu.org>
88426
88427         * config/config.guess: update from config.
88428
88429 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88430
88431         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88432         (getgroups): First arg is int, not size_t.
88433         Don't let 'free' mangle errno.
88434
88435 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88436
88437         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88438
88439 2003-10-16  Karl Berry  <karl@gnu.org>
88440
88441         * config/config.{guess,sub}: update from config.
88442
88443 2003-10-16  Jim Meyering  <jim@meyering.net>
88444
88445         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88446         memcpy.
88447
88448 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88449
88450         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88451         (SIZE_MAX): Remove.
88452         (new_exclude, add_exclude_file): Initial size no longer needs to
88453         be a power of 2.
88454         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88455         our own address arithmetic overflow checking.
88456
88457         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88458         (fnmatch): Do not alloca more than 2000 wide characters;
88459         instead, use malloc for large buffers.
88460         Check for address arithmetic overflow, and return -1
88461         with errno set to ENOMEM in that case.
88462         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88463         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88464         instead, return -1.  Check for address arithmetic overflow.
88465
88466 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88467
88468         Handle invalid suffixes and overflow independently, so that
88469         callers can treat them independently as needed.  Fix some bugs in
88470         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88471         suffix for a human-readable blocksize.  The major caller-visible
88472         change is the addition of a new
88473         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88474         that both overflow and suffix chars were found.
88475
88476         * lib/human.c (humblock): Don't check separately for invalid suffix
88477         char; that is xstrtoumax's job (now that its bug is fixed).
88478         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88479         INTMAX_MAX]: New macros.
88480         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88481         TYPE_MAXIMUM): New macros.
88482         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88483         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88484         if overflow occurs, as it's what __strtol does and it's more useful
88485         in practice.
88486         (__xstrtol): If __strtol reports some error other than ERANGE,
88487         reflect it to the caller as LONGINT_INVALID.  If it reports
88488         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88489         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88490         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88491         value.
88492         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88493         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88494         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88495         [defined UINTMAX_MAX]: New macros.
88496
88497 2003-10-14  Bruno Haible  <bruno@clisp.org>
88498
88499         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88500
88501 2003-10-14  Bruno Haible  <bruno@clisp.org>
88502
88503         * m4/sig_atomic_t: New file, from GNU gettext.
88504         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88505
88506 2003-10-14  Bruno Haible  <bruno@clisp.org>
88507
88508         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88509         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88510         Also use volatile where needed.
88511
88512 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88513
88514         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88515         Change maintainer from Bruno Haible to 'all'.
88516
88517 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88518
88519         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88520
88521 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88522
88523         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88524         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88525         and define in terms of the other primitives.
88526         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88527         (SIZE_MAX): Define if not already defined.
88528         (array_size_overflow): New function.
88529         (xalloc_die): Abort instead of exiting if 'error' returns.
88530         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88531         (xmalloc, xrealloc): Use them.
88532         (xcalloc): Check for address arithmetic overflow.
88533         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88534         a bit faster than strcpy.
88535
88536 2003-10-10  Simon Josefsson  <jas@extundo.com>
88537
88538         * modules/argp (Depends-on): Add restrict and strcase.
88539
88540 2003-10-10  Simon Josefsson  <jas@extundo.com>
88541
88542         * m4/argp.m4: Add AC_C_INLINE.
88543
88544 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88545
88546         Merge getpass from libc, plus a few fixes.
88547
88548         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88549         Include <stdbool.h>.
88550         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88551         __fsetlocking to empty.
88552         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88553         do include <bits/libc-lock.h>.
88554         Do not include <fcntl.h>; not needed.
88555         [_LIBC]: Include <wchar.h>.
88556         (NOTCANCEL_MODE): New macro.
88557         (flockfile, funlockfile) [_LIBC]: New macros.
88558         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88559         [!_LIBC]: New macros.
88560         (call_fclose): New function.
88561         (getpass): Use it.  Save tty stream separately; this simplifies the
88562         code and makes it more reliable if stdin happens to equal stdout.
88563         Invoke __fsetlocking on tty.
88564         Handle thread cancellation if needed.
88565         Namespace cleanup (use __tcgetattr, __getline).
88566         Use bool for Booleans.
88567         [USE_IN_LIBIO]: Handle wide streams.
88568         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88569         stream might go where.
88570
88571         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88572         doesn't have to include <stdio.h> before us.
88573         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88574         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88575         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88576         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88577         if not declared, so that we can use getpass.c code from libc without
88578         rewriting it.
88579         (flockfile, ftrylockfile, funlockfile): New macros.
88580
88581 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88582
88583         * modules/getpass: Depend on stdbool.
88584
88585 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88586
88587         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88588
88589 2003-10-07  Karl Berry  <karl@gnu.org>
88590
88591         * config/config.{guess,sub}: update from config.
88592
88593 2003-10-06  Jim Meyering  <jim@meyering.net>
88594             Bruno Haible  <bruno@clisp.org>
88595
88596         This lets translators provide better translations for the
88597         "Written by ..." part of --version output.
88598         * lib/version-etc.h: Include stdarg.h.
88599         (version_etc_copyright): Declare as readonly.
88600         (version_etc): Make this function variadic with a NULL-terminated list
88601         of author name strings.
88602         (version_etc_va): New declaration.
88603         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88604         (version_etc_copyright): Declare as readonly.
88605         (version_etc_va): New function. Provide a different translatable string
88606         for each possible number of authors < 10. Abbreviate when there are 10
88607         authors or more.
88608         (version_etc): Make this function variadic. Call version_etc_va.
88609         Suggestion from Gary V. Vaughan.
88610
88611         * lib/long-options.h (parse_long_options): Change prototype: the
88612         authors string is moved to the end and becomes variadic.
88613         * lib/long-options.c: Include stdarg.h.
88614         (parse_long_options): Make this function variadic, too.
88615         Call version_etc_va, not version_etc.
88616
88617 2003-10-06  Bruno Haible  <bruno@clisp.org>
88618
88619         * modules/version-etc-2: Remove file.
88620         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88621
88622 2003-10-06  Bruno Haible  <bruno@clisp.org>
88623
88624         * modules/fatal-signal: New file.
88625         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88626
88627 2003-10-06  Bruno Haible  <bruno@clisp.org>
88628
88629         * m4/fatal-signal.m4: New file.
88630         * m4/signalblocking.m4: New file, from GNU gettext.
88631
88632 2003-10-06  Bruno Haible  <bruno@clisp.org>
88633
88634         * lib/version-etc-2.h: Remove file.
88635         * lib/version-etc-2.c: Remove file.
88636
88637 2003-10-06  Bruno Haible  <bruno@clisp.org>
88638
88639         * lib/fatal-signal.h: New file, from GNU gettext.
88640         * lib/fatal-signal.c: New file, from GNU gettext.
88641
88642 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88643
88644         * README: Rework advice for preventing empty .o files.
88645         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88646         not <sys/types.h>.
88647
88648 2003-10-04  Karl Berry  <karl@gnu.org>
88649
88650         * lib/argp*: update from libc.
88651
88652 2003-10-04  Karl Berry  <karl@gnu.org>
88653
88654         * config/config.{guess,sub}: update from config.
88655
88656 2003-10-02  Bruno Haible  <bruno@clisp.org>
88657
88658         * modules/lchown (Include): Add lchown.h.
88659         * modules/time_r (Include): Use "..." syntax.
88660         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88661
88662 2003-10-01  Simon Josefsson  <jas@extundo.com>
88663
88664         * MODULES.html.sh (func_all_modules): Move gethostname from section
88665         'based on' to section 'lacking' POSIX:2001.
88666
88667 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88668
88669         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88670         to output mode on the same stream.
88671
88672 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88673
88674         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88675         Fix arg typo in previous patch.
88676
88677 2003-09-28  Jim Meyering  <jim@meyering.net>
88678
88679         * lib/error.c: Correct cpp indentation.
88680
88681 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88682
88683         * modules/free: New file.
88684
88685 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88686
88687         * m4/free.m4: New file.
88688
88689 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88690
88691         * lib/minmax.h (MIN, MAX)
88692         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88693         Omit the special code that used __typeof__, since we worry that
88694         it could be more trouble than it's worth.  See:
88695         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88696         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88697
88698         * lib/free.c: New file.
88699
88700 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88701
88702         Trivial fixes to Makefile.am parts of module listings.
88703         * modules/strstr: Append strstr.h to lib_SOURCES.
88704         * modules/strcase: Likewise, for strcase.h.
88705
88706 2003-09-27  Karl Berry  <karl@gnu.org>
88707
88708         * config/mkinstalldirs: update from automake.
88709
88710 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88711
88712         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88713         (error_tail): Do not loop, reallocating temporary buffer, since
88714         the output cannot contain more wide characters than the input
88715         contains bytes, the size must be big enough already.  This avoids
88716         one potential size overflow calculation.  Check for size overflow
88717         when calculating temporary buffer size.  Free temporary buffer
88718         when done, if it was allocated with malloc; this plugs a memory
88719         leak.  Remove casts from void * to pointers, that are no longer
88720         needed now that we're assuming C89 or better.
88721
88722         Merge error changes from glibc.
88723
88724         * lib/error.c, error.h: Update copyright notice header to match glibc.
88725         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88726         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88727         Disable cancellation while printing error.
88728         * lib/error.h: Prepend __ to parameter names.
88729
88730 2003-09-26  Jim Meyering  <jim@meyering.net>
88731
88732         * lib/error.c (error_tail): Move some declarations
88733         into inner scope where the local variables are used.
88734
88735 2003-09-26  Bruno Haible  <bruno@clisp.org>
88736
88737         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88738         stpncpy().
88739         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88740
88741 2003-09-26  Bruno Haible  <bruno@clisp.org>
88742
88743         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88744         (stpncpy): Define as alias for gnu_stpncpy.
88745         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88746
88747 2003-09-25  Simon Josefsson  <jas@extundo.com>
88748
88749         * lib/xgetdomainname.h: New file.
88750         * lib/xgetdomainname.c: New file.
88751
88752 2003-09-25  Simon Josefsson  <jas@extundo.com>
88753             Bruno Haible  <bruno@clisp.org>
88754
88755         * modules/getdomainname: New file.
88756         * modules/xgetdomainname: New file.
88757         * MODULES.html.sh (func_all_modules): Add getdomainname,
88758         xgetdomainname.
88759
88760 2003-09-25  Simon Josefsson  <jas@extundo.com>
88761             Bruno Haible  <bruno@clisp.org>
88762
88763         * m4/getdomainname.m4: New file.
88764
88765 2003-09-25  Simon Josefsson  <jas@extundo.com>
88766             Bruno Haible  <bruno@clisp.org>
88767
88768         * lib/getdomainname.h: New file.
88769         * lib/getdomainname.c: New file.
88770
88771 2003-09-25  Karl Berry  <karl@gnu.org>
88772
88773         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88774
88775 2003-09-25  Karl Berry  <karl@gnu.org>
88776
88777         * config/install-sh: update from automake.
88778
88779 2003-09-25  Bruno Haible  <bruno@clisp.org>
88780
88781         * modules/version-etc-2: New file, from modules/version-etc with
88782         modifications.
88783         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88784
88785 2003-09-25  Bruno Haible  <bruno@clisp.org>
88786
88787         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88788         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88789
88790 2003-09-24  Simon Josefsson  <jas@extundo.com>
88791
88792         * modules/xgethostname: Add xgethostname.h.
88793
88794 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88795
88796         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88797         the buffer associated with the argument.  Bug reported by
88798         Simon Josefsson.
88799
88800 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88801
88802         * README: Document assumptions that 'int' is at least 32 bits
88803         wide, that integer arithmetic is 2's complement without overflow,
88804         that there are no holes in integer values, that adding sizes of
88805         two nonoverlapping objects can't overflow, and that all-bits-zero
88806         yields scalar zero.  Fix spelling and capitalization typos.
88807
88808 2003-09-19  Karl Berry  <karl@gnu.org>
88809
88810         * lib/argp.h: update from libc.
88811
88812 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88813
88814         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88815         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88816         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88817
88818 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88819
88820         * gnulib-tool: Use "test -h", not "test -L", for portability
88821         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88822         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88823         (sed_extract_prog): Issue s commands one-by-one, rather than
88824         using \| in one s command.
88825
88826 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88827
88828         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88829         input error, instead of returning NULL the next time we are called
88830         (and therefore losing track of errno).
88831
88832 2003-09-16  Bruno Haible  <bruno@clisp.org>
88833
88834         * gnulib-tool (func_create_testdir): Warn about duplicated
88835         dependencies.
88836
88837 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88838
88839         * modules/argmatch, modules/fatal, modules/obstack,
88840         modules/xalloc, modules/xgethostname: Sort dependencies by
88841         importance, not alphabetically.
88842
88843 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88844
88845         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88846         fails, so that the caller gets the proper errno.
88847
88848         * lib/readutmp.c (read_utmp): Likewise.
88849         Check for fstat error.  Close stream and free storage
88850         when failing.
88851
88852 2003-09-14  Karl Berry  <karl@gnu.org>
88853
88854         * config/srclist.txt (strdup.c): disable for c89 changes.
88855
88856 2003-09-14  Jim Meyering  <jim@meyering.net>
88857
88858         * lib/getloadavg.c: Correct cpp indentation.
88859         * lib/strdup.c: Likewise.
88860         * lib/vasnprintf.c: Likewise.
88861
88862 2003-09-14  Bruno Haible  <bruno@clisp.org>
88863
88864         * modules/fwriteerror: New file.
88865         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88866
88867 2003-09-14  Bruno Haible  <bruno@clisp.org>
88868
88869         * lib/fwriteerror.h: New file.
88870         * lib/fwriteerror.c: New file.
88871
88872 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88873
88874         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88875         modules/xgethostname, modules/xalloc: Depend on exit.
88876
88877 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88878
88879         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88880
88881         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88882         and AC_MINIX, too, so that their extensions are available.
88883
88884         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88885         This macro has been superseded by gl_BACKUPFILE.
88886
88887         More patches to assume C89 or better.
88888
88889         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88890
88891         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88892         unconditionally.
88893         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88894         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88895         Include <string.h>, <stdlib.h> unconditionally.
88896         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88897         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88898         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88899         headers or for string.h.
88900         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88901         or strtoul.
88902
88903         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88904         headers.
88905         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88906         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88907         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88908         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88909         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88910         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88911         memcpy, memset.
88912         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88913         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88914         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88915         strtol.
88916         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88917         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88918         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88919         strtoul.
88920
88921 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88922
88923         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88924         * lib/obstack.c [!defined _LIBC]: Likewise.
88925         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88926         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88927         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88928
88929         More changes to assume C89 or better.
88930
88931         * lib/error.c (error_tail): Assume vprintf.
88932
88933         * lib/argmatch.c (getenv): Remove decl.
88934         * lib/progreloc.c (get_full_program_name): Define via prototype.
88935         * lib/setenv.c (clearenv): Likewise.
88936         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88937         needed.
88938         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88939         (malloc, memcpy): Remove decls.
88940         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88941         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88942         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88943         (memcpy): Remove macro.
88944         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88945         (__P): Remove.  All uses removed.
88946         (PTR): Remove.  All uses changed to void *.
88947         (CHAR_BIT, NULL): Remove.
88948         (spaces, zeros, memset_space, memset_zero)
88949         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88950         Remove.
88951         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88952         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88953         Define with prototype.
88954         Remove now-unnecessary prototype decl.
88955         (extra_args_spec): Assume ANSI C.  All uses changed.
88956         (extra_args_spec_iso): Remove.
88957         (my_strftime, emacs_strftimeu): Define via prototype.
88958         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88959         unconditionally.
88960         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88961         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88962         (strtoul, strtol): Remove decls.
88963         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88964         LONG_MAX): Remove.
88965         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88966         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88967         (LOCALE_PARAM_PROTO): New macro.
88968         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88969         (INTERNAL (strtol), strtol): Define with a prototype.
88970         (PARAMS): Remove.  All uses removed.
88971         * lib/tempname.c: Include <string.h> unconditionally.
88972         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88973         * lib/xgethostname.c (main): Define with a prototype.
88974         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88975         Include <stdlib.h> unconditionally.
88976         (calloc, malloc, realloc, free): Remove decls.
88977         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88978         Include <stdlib.h> unconditionally.  Sort include file names.
88979         (strtod): Remove.
88980         (xstrtod): Define with a prototype.
88981         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88982         (strtol, strtoul): Remove decls.
88983
88984 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88985
88986         More patches to assume C89 or better.
88987         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88988         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88989         string.h, memchr, STDC_HEADERS.
88990
88991 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88992
88993         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88994         Include <stdlib.h>, <string.h> unconditionally.
88995         Remove now-unnecessary cast to char *.
88996         * lib/strnlen.c: Include <string.h> unconditionally.
88997         * lib/yesno.c (yesno): Define with a prototype.
88998
88999 2003-09-11  Bruno Haible  <bruno@clisp.org>
89000
89001         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
89002
89003 2003-09-10  Jim Meyering  <jim@meyering.net>
89004
89005         * lib/error.c: Correct indentation of cpp directives.
89006
89007 2003-09-10  Bruno Haible  <bruno@clisp.org>
89008
89009         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
89010         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
89011         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
89012         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
89013         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
89014         <stdlib.h> and <string.h> checks.
89015         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
89016         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
89017
89018 2003-09-10  Bruno Haible  <bruno@clisp.org>
89019
89020         * lib/strcspn.c: Include <string.h> unconditionally.
89021         * lib/strpbrk.c: Include <string.h> unconditionally.
89022         * lib/strstr.c: Include <string.h> unconditionally.
89023         * lib/unicodeio.c: Include <string.h> unconditionally.
89024         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
89025         * lib/unsetenv.c: Likewise.
89026         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
89027         * lib/yesno.c: Include <stdlib.h> unconditionally.
89028         (rpmatch): Add prototype.
89029
89030 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89031
89032         More patches to assume C89 or better.
89033         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
89034         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
89035         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
89036         or for string.h.
89037         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
89038         stdlib.h.
89039         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
89040         C headers.
89041         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
89042         string.h.
89043         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
89044         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
89045         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
89046         or for string.h.
89047         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
89048         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
89049         C headers.
89050         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
89051         memcpy.
89052         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
89053         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
89054         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
89055         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
89056         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
89057         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
89058         string.h, free.
89059         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
89060         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
89061         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
89062         C headers, or for string.h.
89063         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
89064         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
89065         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
89066         headers, memory.h, stdlib.h, string.h, strings.h.
89067         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
89068         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
89069         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
89070         strchr.
89071         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
89072         headers, memory.h, string.h.
89073         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
89074         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
89075         free.
89076         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
89077         headers.
89078         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
89079         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
89080         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
89081         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
89082         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
89083
89084 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89085
89086         More K&R removal.
89087
89088         * lib/acosl.c (main): Use a prototype.
89089         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
89090         tanl.c: Likewise.
89091
89092         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
89093
89094         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
89095         (getopt, etopt_long, getopt_long_only, _getopt_internal)
89096         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
89097         with a prototype.
89098         * lib/getopt.c (const): Remove macro.
89099         Include <string.h> unconditionally.
89100         (my_index): Remove; all uses changed to strchr.
89101         (strlen): Remove decl.
89102         (exchange): Remove forward decl; no longer needed.
89103         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
89104         Define with prototype.
89105         * lib/getopt1.c (const): Remove macro.
89106         (getopt_long, getopt_long_only, main): Define with prototype.
89107
89108         * lib/getugroups.c: Include <string.h> unconditionally.
89109
89110         * lib/getusershell.c: Include <stdlib.h> unconditionally.
89111         (getusershell, setusershell, endusershell, readname, main):
89112         Define with prototypes.
89113
89114         * lib/group-member.c: Include group-member.h first.
89115         Include <stdlib.h> unconditionally.
89116
89117         * lib/hard-locale.c: Include hard-locale.h first.
89118         Include <stdlib.h>, <string.h> unconditionally.
89119
89120         * lib/hash.c (free, malloc): Remove decls.
89121         Include <stdlib.h> unconditionally.
89122
89123         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
89124         (getenv): Do not declare.
89125
89126         * lib/idcache.c: Include <string.h> unconditionally.
89127
89128         * lib/long-options.c: Include long-options.h first, to test interface.
89129         Include <stdlib.h> unconditionally.
89130
89131         * lib/makepath.c: Include makepath.h first, to test interface.
89132         Include <stdlib.h> and <string.h> unconditionally.
89133
89134         * lib/linebuffer.c: Include <stdlib.h>.
89135         (free): Remove decl.
89136
89137         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89138         stddef.h. rpl_malloc returns void *, not char *.
89139         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89140         prototype.
89141
89142         * lib/md5.h: Include <limits.h> unconditionally.
89143         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89144         (__P): Remove; all uses removed.
89145         * lib/md5.c: Include "md5.h" first.
89146         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89147         md5_buffer, md5_process_bytes, md5_process_block):
89148         Define with prototypes.
89149         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89150         * lib/sha.c: Include "sha.h" first.
89151         Include <stdlib.h>, <string.h> unconditionally.
89152
89153         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89154         * lib/memcmp.c (__ptr_t): Likewise.
89155         * lib/memrchr.c (__ptr_t): Likewise.
89156         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89157         Include <string.h> unconditionally.
89158         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89159         * lib/memchr.c: Include <stdlib.h> unconditionally.
89160         * lib/memchr.c (LONG_MAX): Remove.
89161         * lib/memrchr.c (LONG_MAX): Likewise.
89162         * lib/memchr.c (__memchr): Define via a prototype.
89163         * lib/memrchr.c (__memrchr): Likewise.
89164         * lib/memcmp.c (__P): Remove, and remove all uses.
89165         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89166         Remove forward decls; no longer needed.
89167         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89168         Use types required by C89 in prototype.
89169
89170         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89171         * lib/savedir.c: Likewise.
89172         * lib/mkdir.c (free): Remove decl.
89173         * lib/rmdir.c (rmdir): Define with a prototype.
89174         * lib/savedir.c: Include savedir.h first, to test interface.
89175
89176         * lib/mktime.c (STDC_HEADERS): Remove.
89177         Include <stdlib.h>, <string.h> unconditionally.
89178
89179         * lib/modechange.c: Include <stdlib.h> unconditionally.
89180         (malloc): Remove decl.
89181
89182         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89183         (free): Remove decl.
89184
89185         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89186         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89187         (This type really should be intptr_t, but that's a C99ism.)
89188         (_obstack_memcpy): Remove: all uses changed to memcpy.
89189         Include <string.h> unconditionally.
89190         (struct obstack): Assume __STDC__ for types of members
89191         chunkfun, freefun, extra_arg.
89192         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89193         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89194         obstack_begin, obstack_specify_allocation,
89195         obstack_specify_allocation_with_arg, obstack_chunkfun,
89196         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89197         Remove unprototyped decls and the macros that use them.
89198         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89199         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89200         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89201         (defined __STDC__ && __STDC__)]:
89202         Remove nonprototyped code.
89203         Include <stdlib.h> unconditionally.
89204         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89205         _obstack_allocated_p, _obstack_free, obstack_free,
89206         _obstack_memory_used, print_and_abort):
89207         Define using prototypes.
89208         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89209         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89210         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89211         obstack_next_free, obstack_object_size, obstack_room) [0]:
89212         Remove unused, unprototyped code.
89213
89214         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89215
89216         * lib/physmem.c (physmem_total, physmem_available, main): Define
89217         with prototypes.
89218
89219         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89220         (main): Define with a prototype.
89221
89222         * lib/posixver.c (getenv): Remove decl.
89223
89224         * lib/putenv.c (malloc): Returns void *, not char *.
89225         Include <string.h> unconditionally.
89226         (strchr, memcpy, NULL): Do not define.
89227
89228         * lib/readtokens.c: Include readtokens.h first, to test interface.
89229         Include <stdlib.h>, <string.h> unconditionally.
89230         (init_tokenbuffer): Define with a prototype.
89231
89232         * lib/regex.c (PARAMS): Remove.  All uses removed.
89233         All uses of _RE_ARGS removed, too.
89234         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89235         unconditionally.
89236         (bzero): Assume memset exists.
89237         (memcmp, memcpy, NULL): Remove.
89238         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89239         char, or assignments to local vars of type signed char.
89240         (init_syntax_once, PREFIX(extract_number_and_incr),
89241         PREFIX(print_partial_compiled_pattern),
89242         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89243         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89244         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89245         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89246         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89247         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89248         wcs_compile_range, byte_compile_range, truncate_wchar,
89249         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89250         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89251         count_mbs_length, wcs_re_match_2_internal,
89252         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89253         PREFIX(alt_match_null_string_p),
89254         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89255         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89256         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89257         now-unnecessary declaration, if any.
89258         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89259         regcomp, regexec):
89260         Remove now-unnecessary casts among pointer types.
89261         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89262
89263         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89264         (free): Remove decl.
89265
89266         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89267
89268         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89269         (free): Remove decl.
89270
89271         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89272         * lib/xgetcwd.c: Likewise.
89273
89274         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89275         (free): Remove decl.
89276
89277         * lib/strchrnul.c (strchrnul): Define with a prototype.
89278         Fix bug: c_in was not converted to char before searching.
89279
89280         The following changes are not K&R related:
89281
89282         * lib/group-member.h: Include <sys/types.h>, so that this file is
89283         self-contained.
89284         * lib/makepath.h: Likewise.
89285
89286         * lib/getusershell.c (readname, default_index, line_size, readname):
89287         Use size_t, not int, for sizes.
89288         (readname): If the size overflows, report an error instead of
89289         looping forever.
89290
89291 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89292
89293         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89294         libc.
89295
89296 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89297
89298         * README: New section: portability guidelines.
89299
89300 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89301
89302         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89303         C89 spec.
89304
89305 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89306
89307         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89308
89309 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89310
89311         Assume C89 or better; remove K&R cruft.
89312         A few of these changes were first proposed by Derek Robert Price
89313         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89314
89315         * lib/addext.c: Include <string.h> unconditionally.
89316         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89317         Don't declare getenv or malloc.
89318
89319         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89320         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89321         (NULL): Remove.
89322         (find_stack_direction, alloca): Use prototypes.
89323
89324         * lib/atexit.c (atexit): Define using a prototype.
89325
89326         * lib/basename.c, dirname.c, stripslash.c:
89327         Include <string.h> unconditionally.
89328
89329         * lib/bcopy.c: Include <stddef.h>.
89330         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89331
89332         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89333
89334         * lib/error.h (error, error_at_line, error_print_progname)
89335         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89336         * lib/error.c: Include error.h first, to check interface.
89337         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89338         (VA_START): Remove; all uses changeed to va_start.
89339         (exit, strerror): Remove decls.
89340         (error_print_progname): Prototype uncondionally.
89341         Don't include <errno.h>; no longer needed.
89342         (private_strerror): Remove.
89343         (error_tail): Always define.
89344         (error, error_at_line): Assume C89 or better; always use prototypes.
89345         * lib/fatal.c: Include "fatal.h" first, to test interface.
89346         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89347         (VA_START): Remove; all uses changed to va_start.
89348         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89349         this case.
89350         (exit): Remove decl.
89351         (fatal): Prototype unconditionally.  Assume va_start works.
89352         Abort at end, to pacify gcc.
89353
89354         * lib/euidaccess.c (main): Define with a prototype.
89355
89356         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89357
89358         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89359
89360         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89361         prototypes.
89362         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89363         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89364         (getenv): Remove decl.
89365         (fnmatch): Define using a prototype.
89366         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89367         (FCT): Define using a prototype.
89368
89369         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89370
89371         * lib/gethostname.c: Include <stddef.h>.
89372         (gethostname): Define with prototype.  Length is size_t, not int.
89373
89374 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89375
89376         Assume C89 or better; remove K&R cruft.
89377         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89378         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89379         string.h, getenv, malloc.
89380         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89381         headers.
89382         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89383         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89384         do not check for strerror.
89385         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89386         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89387         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89388         do not check for doprnt or vprintf.
89389         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89390         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89391
89392 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89393
89394         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89395         getversion.c should have been removed then, but was accidentally
89396         preserved.
89397
89398         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89399         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89400
89401 2003-09-08  Karl Berry  <karl@gnu.org>
89402
89403         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89404                 config, forget about prep.
89405
89406         * config/depcomp, missing: update from automake.
89407
89408 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89409
89410         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89411         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89412
89413 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89414
89415         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89416         copy_tm_result.  Bug reported by Simon Josefsson in
89417         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89418
89419 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89420
89421         * m4/time_r.m4: New file.
89422         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89423         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89424         is. Check for timegm declaration.
89425         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89426         Do not check for gmtime_r.
89427         Replace mktime if __mktime_internal does not exist and if mktime
89428         hasn't been replaced already.
89429
89430 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89431
89432         * lib/time_r.c, lib/time_r.h: New files.
89433
89434         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89435         __localtime_r.
89436         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89437         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89438
89439         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89440         __gmtime_r.
89441         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89442         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89443         Include <time_r.h>.
89444
89445         * lib/timegm.c: Switch to glibc implementation, with the following
89446         changes:
89447         [defined HAVE_CONFIG_H]: Include <config.h>.
89448         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89449         (__mktime_internal) [!defined _LIBC]: New decl.
89450         (__gmtime_r) [!defined _LIBC]: New macro and function.
89451         (timegm): Use a prototype, since gnulib assumes C89.
89452         Do not bother declaring tmp to be const, as it's not really usefu.
89453         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89454         (timegm): Declare only if HAVE_DECL_TIMEGM.
89455
89456 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89457
89458         * MODULES.html.sh (func_all_modules): Add time_r.
89459         * modules/time_r: New file.
89460         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89461         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89462
89463 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89464
89465         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89466         Bug reported by Lute Kamstra in
89467         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89468
89469         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89470         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89471         course with correspondingly smaller numbers for tomorrow and
89472         yesterday.  From Tadayoshi Funaba.  Originally installed into
89473         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89474         coreutils merge?).
89475
89476 2003-08-31  Simon Josefsson  <jas@extundo.com>
89477
89478         * modules/timegm: New file.
89479         * MODULES.html.sh (func_all_modules): Add timegm.
89480
89481 2003-08-31  Simon Josefsson  <jas@extundo.com>
89482
89483         * m4/timegm.m4: New file.
89484
89485 2003-08-31  Simon Josefsson  <jas@extundo.com>
89486
89487         * lib/timegm.h: New file.
89488         * lib/timegm.c: New file.  Based on
89489         wget-1.8.2/src/http.c:mktime_from_utc.
89490
89491 2003-08-31  Karl Berry  <karl@gnu.org>
89492
89493         * lib/argp.h: update from libc.
89494
89495 2003-08-28  Bruno Haible  <bruno@clisp.org>
89496
89497         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89498         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89499         followed by '#define fnmatch fnmatch_posix' gives an error.
89500
89501 2003-08-28  Bruno Haible  <bruno@clisp.org>
89502
89503         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89504         warning on QNX, which defines O_BINARY to 000000.
89505
89506 2003-08-27  Jim Meyering  <jim@meyering.net>
89507
89508         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89509         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89510         would fail after 32.  Reported by Danny Levinson.  Details here:
89511         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89512
89513 2003-08-24  Bruno Haible  <bruno@clisp.org>
89514
89515         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89516         MSVC7 <stdio.h> is included later.
89517
89518 2003-08-22  Simon Josefsson  <jas@extundo.com>
89519
89520         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89521
89522 2003-08-20  Karl Berry  <karl@gnu.org>
89523
89524         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89525
89526 2003-08-20  Bruno Haible  <bruno@clisp.org>
89527
89528         * modules/progname: New file.
89529         * MODULES.html.sh (func_all_modules): Add progname.
89530
89531 2003-08-20  Bruno Haible  <bruno@clisp.org>
89532
89533         * lib/progname.h: New file, from GNU gettext.
89534         * lib/progname.c: New file, from GNU gettext.
89535         * lib/progreloc.c: New file, from GNU gettext.
89536
89537 2003-08-19  Jim Meyering  <jim@meyering.net>
89538
89539         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89540         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89541
89542 2003-08-19  Bruno Haible  <bruno@clisp.org>
89543
89544         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89545         more.
89546
89547 2003-08-19  Bruno Haible  <bruno@clisp.org>
89548
89549         * lib/xstrdup.c: Assume <string.h> exists.
89550
89551 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89552
89553         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89554         in makefile rules.
89555
89556 2003-08-18  Jim Meyering  <jim@meyering.net>
89557
89558         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89559         * m4/lib-ld.m4: Likewise.
89560
89561 2003-08-18  Jim Meyering  <jim@meyering.net>
89562
89563         * lib/setenv.h: Indent nested cpp directive.
89564         * lib/vasnprintf.c: Remove trailing blanks.
89565
89566 2003-08-17  Simon Josefsson  <jas@extundo.com>
89567
89568         * modules/xstrndup: New file.
89569         * MODULES.html.sh (func_all_modules): Add xstrndup.
89570
89571 2003-08-17  Simon Josefsson  <jas@extundo.com>
89572
89573         * modules/argp: Fix autoconf macro name. Add more dependencies.
89574
89575 2003-08-17  Simon Josefsson  <jas@extundo.com>
89576
89577         * m4/xstrndup.m4: New file.
89578
89579 2003-08-17  Simon Josefsson  <jas@extundo.com>
89580
89581         * m4/argp.m4: New file.
89582
89583 2003-08-17  Simon Josefsson  <jas@extundo.com>
89584             Bruno Haible  <bruno@clisp.org>
89585
89586         * lib/xstrndup.h: New file.
89587         * lib/xstrndup.c: New file.
89588
89589 2003-08-17  Bruno Haible  <bruno@clisp.org>
89590
89591         * modules/strndup (Files, Include): Add lib/strndup.h.
89592
89593 2003-08-17  Bruno Haible  <bruno@clisp.org>
89594
89595         * modules/euidaccess (Files): Add lib/euidaccess.h.
89596
89597 2003-08-17  Bruno Haible  <bruno@clisp.org>
89598
89599         * lib/strndup.h: New file.
89600
89601 2003-08-17  Bruno Haible  <bruno@clisp.org>
89602
89603         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89604         like AC_GNU_SOURCE.
89605         * modules/extensions (configure.ac): Comment out the invocation of
89606         gl_USE_SYSTEM_EXTENSIONS.
89607
89608 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89609
89610         Merges from coreutils, etc.
89611         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89612         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89613         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89614         fixing a typo.
89615         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89616         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89617
89618 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89619
89620         Document merge from coreutils.
89621         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89622         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89623         * modules/utime: Add m4/utimes-null.m4.
89624
89625 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89626
89627         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89628         space, undoing this 2003-08-12 change:
89629         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89630
89631 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89632
89633         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89634         strtoul.c from libc, undoing this 2003-08-12 change:
89635         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89636
89637 2003-08-16  Jim Meyering  <jim@meyering.net>
89638
89639         Merges from coreutils.
89640         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89641         prefix.  Adjust cache variables similarly.  Create 500 rather than
89642         just 300 files, to exercise bug on Darwin6.5, too.
89643         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89644         $missing_dir.
89645         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89646         AM_SYS_POSIX_TERMIOS.
89647         Reported by mkc@mathdogs.com.
89648         Also change use of $am_cv_sys_posix_termios
89649         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89650         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89651         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89652         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89653         in /proc/mounts until it finds one with matching device number.  This
89654         is unnecessary when the FILE argument *is* a mount point.  No stat call
89655         is necessary in that case.  So, disable the statvfs-testing code on
89656         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89657         as RedHat bug# 84846.
89658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89659         to 1MB, so as not to render systems with no stack size limit (e.g.,
89660         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89661         Include <unistd.h>.  On some systems,
89662         it is required for the definition of _SC_PAGESIZE.
89663
89664 2003-08-16  Jim Meyering  <jim@meyering.net>
89665
89666         Merge from coreutils.
89667         * lib/xstrtoimax.c: #else #if -> #elif.
89668         * lib/xstrtoumax.c: Likewise.
89669
89670 2003-08-16  Jim Meyering  <jim@meyering.net>
89671
89672         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89673         * m4/utimes.m4: Removed.
89674         * m4/utimes-null.m4: Renamed from utimes.m4.
89675
89676         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89677         to 1MB, so as not to render systems with no stack size limit (e.g.,
89678         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89679         Include <unistd.h>.  On some systems,
89680         it is required for the definition of _SC_PAGESIZE.
89681
89682 2003-08-16  Jim Meyering  <jim@meyering.net>
89683         and Paul Eggert  <eggert@cs.ucla.edu>
89684
89685         Merges from coreutils, etc.
89686
89687         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89688         using the latest version from cvs.  This avoids problems with #line
89689         directives using a vendor (Sun) compiler.
89690         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89691         Don't set GETGROUPS_LIB here; now it's
89692         done via getgroups.m4's wrapper function.
89693         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89694         rather than just in sh-util/configure.in, so that the
89695         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89696         same.
89697         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89698         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89699         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89700         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89701         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89702         Remove code that is now done by the newly-required macros.
89703         Append $(EXEEXT) to DF_PROG.
89704         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89705         Do not invoke or require the following here,
89706         since prereq.m4 or some gnulib .m4 now does this for us:
89707         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89708         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89709         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89710         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89711         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89712         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89713         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89714         AC_FUNC_OBSTACK.
89715         Do not replace the following functions, as this is now the job
89716         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89717         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89718         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89719         atexit getpass, strdup, getpagesize.
89720         Replace 'raise'.
89721         Do not check for the following functions, as this is now the job
89722         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89723         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89724         setregid.
89725         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89726         Check for sys/sysctl.h.
89727         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89728         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89729         of checking for ssize_t ourselves.
89730
89731         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89732         Require every macro that gnulib/modules/* suggests for us.
89733         (jm_PREREQ_ADDEXT): New macro.
89734         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89735         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89736
89737         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89738         (gl_PHYSMEM): Use it.
89739         Also check for `table' function.
89740         Check for new headers and functions.
89741         Add check for sys/sysmp.h.
89742         With suggestions from Kaveh Ghazi.
89743         Ignore headers that are present but cannot be compiled.  This
89744         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89745         C 5.4.
89746
89747 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89748
89749         Document merge from coreutils.
89750         * modules/userspec: Depend on posixver.
89751         * modules/strftime: Depend on tzset.
89752
89753 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89754
89755         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89756         rather than tab, after '#' in shell-script copyright notices.
89757         Suggested by Bruno Haible.
89758
89759 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89760
89761         * config/srclist-update: Use three spaces, rather than tab, after '#'
89762         in shell-script copyright notices.  Suggested by Bruno Haible.
89763         Remove unnecessary parenthesization in regular expression.
89764
89765 2003-08-15  Jim Meyering  <jim@meyering.net>
89766
89767         Merge from coreutils.
89768         * lib/xgethostname.c: Include <stdlib.h>.
89769         (xghostname): Don't exit for anything other than memory-related
89770         failure; just return NULL.
89771         * lib/userspec.c: Include "posixver.h".
89772         (parse_user_spec): Accept `.' as a separator only
89773         in pre-POSIX-200112 mode.
89774         * lib/strtoimax.c: Use #elif rather than #else #if.
89775         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89776         Remove function, now that we can rely on a working tzset function.
89777         [!_LIBC]: Ensure that the required autoconf test has been run.
89778         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89779         Use underlying_strftime for %r.
89780         * lib/sha.c: Merge in some clean-up and optimization changes from
89781         glibc.
89782         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89783         Ensure that it is a multiple of 64.
89784         Rearrange loop exit tests so as to avoid performing an
89785         additional fread after encountering an error or EOF.
89786         * lib/realloc.c: Update copyright date.
89787
89788 2003-08-15  Jim Meyering  <jim@meyering.net>
89789         and Paul Eggert  <eggert@twinsun.com>
89790
89791         Merge from coreutils.
89792         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89793         member but strut utmpx does not.  Needed for AIX 4.3.3.
89794         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89795
89796 2003-08-15  Jim Meyering  <jim@meyering.net>
89797         and Paul Eggert  <eggert@cs.ucla.edu>
89798
89799         Merges from coreutils, etc.
89800         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89801         Require gl_FUNC_TZSET_CLOBBER.
89802         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89803         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89804         members.
89805
89806 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89807
89808         Help the merge from coreutils.
89809         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89810         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89811         * m4/tzset.m4: Use it too.
89812
89813 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89814
89815         * modules/tzset: New file.
89816
89817 2003-08-14  Jim Meyering  <jim@meyering.net>
89818
89819         Merges from coreutils.
89820         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89821         variable names, rather than @FNMATCH_H@.
89822         * modules/alloca: Likewise for $(ALLOCA_H).
89823
89824         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89825         the three copies of the literal target, `fnmatch.h'.
89826         * modules/alloca (alloca.h): Likewise.
89827
89828 2003-08-14  Jim Meyering  <jim@meyering.net>
89829
89830         Merge from coreutils.
89831         * m4/tzset.m4: New file.
89832         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89833         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89834         otherwise, AIX 5.1 systems would end up using the latter.
89835         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89836         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89837         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89838         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89839
89840 2003-08-14  Jim Meyering  <jim@meyering.net>
89841
89842         Merge from coreutils.
89843         * lib/obstack.h: Whitespace changes.
89844         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89845         and xcalloc return values.
89846         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89847         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89848         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89849         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89850         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89851         error from mntctl.
89852         Use mntctl's return value to drive the entry-processing loop, since
89853         we can't rely on the value of the vmt_length member in the last
89854         entry.  On some systems doing so could result in exhausting
89855         virtual memory.  Based in part on a patch from Mike Jetzer.
89856
89857 2003-08-14  Jim Meyering  <jim@meyering.net>
89858         and Paul Eggert  <eggert@twinsun.com>
89859
89860         Merges from coreutils, plus other fixes.
89861         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89862         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89863         for credits and details.  Thanks to Kaveh Ghazi for helping
89864         to keep these files in sync.
89865         (ARRAY_SIZE): Define it.
89866         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89867         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89868         (memcasecmp): Don't assume size_t fits in unsigned int.
89869         Remove casts and duplicate code.
89870         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89871         (memcpy): Remove definition.
89872         Merge in some clean-up and optimization changes from glibc.
89873         [BLOCKSIZE]: Move definition to top of file.
89874         Ensure that it is a multiple of 64.
89875         Rearrange loop exit tests so as to avoid performing an
89876         additional fread after encountering an error or EOF.
89877         * lib/md5.h (md5_uintptr): Define.
89878         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89879         return to the initial working directory.  Preserve errno
89880         for caller.
89881         * lib/idcache.c: Include "xalloc.h".
89882         (xmalloc, xrealloc): Remove decls.
89883         (getuser): Remove casts no longer required in C89.
89884         * lib/human.c: Include stdio.h, for sprintf.
89885         * lib/group-member.c: Include "xalloc.h".
89886         (xmalloc, xrealloc): Remove decls.
89887         (get_group_info): Remove casts no longer required in C89.
89888         * lib/getusershell.c (readname): Remove casts no longer required in
89889         C89.
89890         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89891         * lib/getline.c: Whitespace fix, from coreutils.
89892
89893 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89894
89895         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89896         Check for isascii.
89897
89898         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89899         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89900         Undo previous (whitespace-only) change.
89901
89902 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89903
89904         * lib/exclude.c: Include <ctype.h>
89905         (IN_CTYPE_DOMAIN): New macro.
89906         (is_space): New fn.
89907         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89908         and empty lines.
89909
89910         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89911         Undo previous (whitespace-only) change.
89912
89913 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89914
89915         * config/srclist-update: Change update back to the old behavior,
89916         leaving whitespace alone.  Use one 'sed' command rather than a
89917         pipeline.
89918         (fixlicense): Now a variable, not a function.
89919         (remove_trailing_blanks): Remove.
89920         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89921         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89922         Undo previous (whitespace-only) change.
89923
89924 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89925
89926         Merge from coreutils.
89927         * modules/euidaccess: Add lib_SOURCES, include for new
89928         file euidaccess.h
89929
89930 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89931
89932         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89933         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89934         Normalize leading white space and remove trailing white space.
89935
89936         Merge from coreutils
89937         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89938
89939         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89940         0.12.1.  These files are now being upgraded automatically by
89941         ../config/srclist-update.
89942
89943 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89944
89945         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89946         Normalize leading white space and remove trailing white space.
89947         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89948         notice, as per ../config/srclist-update.
89949
89950         Merge from coreutils.
89951         * lib/euidaccess.h: New file.
89952         * lib/euidaccess.c: Include it.
89953         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89954         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89955         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89956
89957 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89958
89959         * config/srclist-update: Add copyright notice.
89960         (remove_id_lines, remove_trailing_blanks): New constants.
89961         (fixfile): Use them to normalize spacing a bit in copied files.
89962         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89963         Normalize leading white space and remove trailing white space.
89964
89965         * config/texinfo.tex: Sync with texinfo.
89966
89967         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89968         strtoul.c from libc, to merge coreutils whitespace changes.
89969
89970         * config/srclist.txt: Get the following m4 files from gettext:
89971         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89972         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89973         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89974         wint_t.m4.
89975
89976 2003-08-12  Karl Berry  <karl@gnu.org>
89977
89978         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89979         been made.
89980
89981 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89982
89983         * modules/gnu-source, m4/gnu-source.m4:
89984         Remove; we're assuming Autoconf 2.54 or later now.
89985         Suggested by Bruno Haible.
89986         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89987
89988 2003-08-11  Bruno Haible  <bruno@clisp.org>
89989
89990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89991
89992 2003-08-11  Bruno Haible  <bruno@clisp.org>
89993
89994         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89995         (vasnprintf): Use it instead of wcslen.
89996
89997 2003-08-11  Bruno Haible  <bruno@clisp.org>
89998
89999         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
90000         value to ensure that _Bool promotes to int. Use #define for _Bool when
90001         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
90002
90003 2003-08-10  Karl Berry  <karl@gnu.org>
90004
90005         * lib/regex.h: update from libc (whitespace fix).
90006
90007 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90008
90009         Merge some files from coreutils.  These changes were
90010         originally made by Jim Meyering.
90011         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
90012         many older Unixes require this.
90013         * lib/alloca.c (alloca): Remove cast to argument of free;
90014         no longer needed in C89.
90015         * lib/alloca_.h, regex.h: Fix white space to match
90016         what GNU indent does.
90017
90018 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90019
90020         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
90021         apparently Emacs's Unicode mode got confused before my 2003-08-05
90022         checkin.
90023
90024 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90025
90026         * m4/extensions.m4: New file.
90027         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
90028         Require gl_USE_SYSTEM_EXTENSIONS.
90029         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
90030         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
90031
90032 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90033
90034         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
90035         * modules/extensions, modules/gnu-source: New files.
90036         * modules/timespec, modules/unlocked-io: Depend on extensions.
90037
90038 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90039
90040         * modules/restrict: New file.
90041         * MODULES.html.sh (func_all_modules): Add restrict.
90042         * modules/regex: Depend on restrict.
90043
90044 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90045
90046         * m4/restrict.m4: New file.
90047         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
90048
90049 2003-08-07  Bruno Haible  <bruno@clisp.org>
90050
90051         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
90052         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
90053
90054 2003-08-07  Bruno Haible  <bruno@clisp.org>
90055
90056         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
90057         makes the module 'getndelim2' compatible with the module 'getline'.
90058
90059 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90060
90061         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
90062         byte with "\201" to avoid glitches when editing that source file
90063         with multi-gnome-terminal.
90064
90065 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90066
90067         * lib/bumpalloc.h: Remove.
90068
90069 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90070
90071         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
90072         * modules/bumpalloc: Remove.
90073
90074 2003-08-04  Paul Eggert  <eggert@twinsun.com>
90075
90076         * lib/getloadavg.c: Change copyright notice and spacing to conform to
90077         GNU coding style.
90078
90079         Merge from coreutils.
90080         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
90081         1. From glibc.
90082         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
90083         from Karl Berry, implemented by Jim Meyering.
90084         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
90085         from Dmitry V. Levin.
90086         Remove anachronistic cast of xrealloc.
90087         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
90088         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
90089         type. Otherwise, it wouldn't compile with at least /bin/cc on
90090         ymp-cray-unicos9.0.2.X.
90091         Combine two mostly-identical uses of alloca into one.
90092         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
90093
90094 2003-08-04  Dave Love  <d.love@dl.ac.uk>
90095
90096         [From Emacs.]
90097
90098         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
90099         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
90100         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
90101         obsolete NLIST_NAME_UNION.
90102         [__GNU__]: Undef BSD and FSCALE.
90103         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
90104
90105 2003-08-03  Paul Eggert  <eggert@twinsun.com>
90106
90107         * lib/stdbool_.h (_Bool): Make it signed char, instead of
90108         an enum type, so that it's guaranteed to promote to int.  See:
90109         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
90110
90111 2003-08-03  Karl Berry  <karl@gnu.org>
90112
90113         * config/depcomp: update from automake.
90114
90115 2003-07-31  Paul Eggert  <eggert@twinsun.com>
90116
90117         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
90118         (strerror): Don't assume that a printable int fits in 14 bytes.
90119
90120 2003-07-31  Bruno Haible  <bruno@clisp.org>
90121
90122         * modules/getpass-gnu: New file.
90123         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
90124
90125 2003-07-31  Bruno Haible  <bruno@clisp.org>
90126
90127         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
90128
90129 2003-07-24  Karl Berry  <karl@gnu.org>
90130
90131         * config/missing: update from automake.
90132
90133 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90134             Bruno Haible  <bruno@clisp.org>
90135
90136         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90137         * lib/getline.c (getline, getdelim): Likewise.
90138         Remove _GNU_SOURCE define; now it's defined in config.h through
90139         m4/getline.m4.
90140
90141 2003-07-23  Karl Berry  <karl@gnu.org>
90142
90143         * config/config.sub: update from prep.
90144
90145 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90146
90147         * modules/xalloc (Depends-on): Add exitfail.
90148         * modules/xmemcoll: Likewise.
90149
90150 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90151
90152         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90153         over-parenthesization in macros.
90154
90155         Sync with coreutils.
90156
90157         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90158         required by C99.
90159
90160         Use `exit_failure' for xalloc and xmemcoll instead of their own
90161         private exit-failure variables.
90162         * lib/xalloc.h (xalloc_exit_failure): Remove.
90163         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90164         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90165         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90166         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90167         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90168
90169 2003-07-20  Jim Meyering  <jim@meyering.net>
90170
90171         * modules/closeout (Depends-on): Add exitfail.
90172         Suggestion from Bruno Haible.
90173
90174 2003-07-19  Karl Berry  <karl@gnu.org>
90175
90176         * config/config.sub: update from prep.
90177
90178 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90179
90180         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90181         Remove.
90182         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90183         to test that it can stand by itself.  Include "exitfail.h".
90184         Clients should set exit_failure instead.
90185         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90186
90187 2003-07-18  Bruno Haible  <bruno@clisp.org>
90188
90189         * modules/getndelim2: New file.
90190         * modules/getline: Share files with module getndelim2.
90191         * modules/getnline: Depend on getndelim2 instead of sharing files with
90192         it. Add getnline.c to lib_SOURCES.
90193         * MODULES.html.sh (func_all_modules): Add getndelim2.
90194
90195 2003-07-18  Bruno Haible  <bruno@clisp.org>
90196
90197         * m4/getndelim2.m4: New file.
90198         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90199         invoke gl_PREREQ_GETNDELIM2.
90200         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90201         gl_PREREQ_GETNDELIM2.
90202         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90203         gl_GETNDELIM2.
90204
90205 2003-07-18  Bruno Haible  <bruno@clisp.org>
90206
90207         * lib/getndelim2.h: New file.
90208         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90209         getndelim2.h.
90210         (getndelim2): Make non-static. Change return type to ssize_t.
90211         * lib/getline.h: Change argument names.
90212         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90213         * lib/getnline.c: Include getndelim2.h.
90214
90215 2003-07-18  Andreas Schwab  <schwab@suse.de>
90216
90217         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90218
90219 2003-07-17  Karl Berry  <karl@gnu.org>
90220
90221         * config/config.sub: update from prep.
90222
90223 2003-07-17  Bruno Haible  <bruno@clisp.org>
90224
90225         * modules/getnline: New file.
90226         * modules/getline: Add lib/getndelim2.c to source file list.
90227         * MODULES.html.sh (func_all_modules): Add getnline.
90228
90229 2003-07-17  Bruno Haible  <bruno@clisp.org>
90230
90231         * m4/getnline.m4: New file.
90232
90233 2003-07-17  Bruno Haible  <bruno@clisp.org>
90234
90235         * m4/Makefile.am.in: Remove file.
90236         * m4/Makefile.am: Remove file.
90237         * m4/Makefile.in: Remove file.
90238
90239 2003-07-17  Bruno Haible  <bruno@clisp.org>
90240
90241         * lib/getnline.h: New file.
90242         * lib/getnline.c: New file.
90243         * lib/getndelim2.c: New file, extracted from getline.c.
90244         (getndelim2): Renamed from getdelim2, with added nmax argument.
90245         * lib/getline.c: Include getndelim2.c.
90246         (getdelim2): Moved out to getndelim2.c.
90247         (getline, getdelim): Update.
90248
90249 2003-07-17  Bruno Haible  <bruno@clisp.org>
90250
90251         * lib/Makefile.am: Remove file.
90252         * lib/Makefile.in: Remove file.
90253
90254 2003-07-17  Bruno Haible  <bruno@clisp.org>
90255
90256         * configure.in: Remove file.
90257         * Makefile.in: Remove file.
90258
90259 2003-07-17  Bruno Haible  <bruno@clisp.org>
90260
90261         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90262
90263 2003-07-16  Karl Berry  <karl@gnu.org>
90264
90265         * config/srclist-update: was running fixlicense twice, which caused
90266                 texinfo.tex to be nullified for some reason.  Simplify,
90267                 $gplsrc is no longer needed as far as I can see?
90268
90269 2003-07-16  Jim Meyering  <jim@meyering.net>
90270
90271         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90272
90273 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90274
90275         * config/srclist.txt: Get the following files from gettext-runtime/intl
90276         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90277         ref-del.sin.  From Bruno Haible.
90278         * config/srclist-update (fixfile): Change grep pattern again, since the
90279         previous fix didn't work (there was another trailing $).  Use
90280         '[$]' to escape the $s.
90281
90282 2003-07-15  Karl Berry  <karl@gnu.org>
90283
90284         * lib/vasnprintf.c: update from gettext.
90285
90286 2003-07-15  Karl Berry  <karl@gnu.org>
90287
90288         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90289         gets expanded when surrounded by '$'.
90290
90291 2003-07-15  Jim Meyering  <jim@meyering.net>
90292
90293         * modules/save-cwd: Don't depend on error.  From Derek Price.
90294
90295 2003-07-15  Jim Meyering  <jim@meyering.net>
90296
90297         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90298
90299 2003-07-14  Simon Josefsson  <jas@extundo.com>
90300
90301         * modules/mempcpy: New file.
90302         * MODULES.html.sh (func_all_modules): Add mempcpy.
90303
90304 2003-07-14  Simon Josefsson  <jas@extundo.com>
90305
90306         * m4/mempcpy.m4: New file.
90307
90308 2003-07-14  Simon Josefsson  <jas@extundo.com>
90309
90310         * lib/mempcpy.h: New file.
90311         * lib/mempcpy.c: New file.
90312
90313 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90314
90315         * modules/getdate, modules/posixtm: Depend on mktime.
90316
90317 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90318
90319         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90320         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90321         unicodeio.c, unicodeio.h, unlocked-io.h:
90322         Switch from LGPL to GPL.
90323
90324 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90325
90326         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90327         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90328         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90329         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90330         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90331         updated automatically by ../config/srclist-update.  This changes
90332         their license from LPGL to GPL.
90333
90334 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90335
90336         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90337         assumed to refer to the root of the most recent stable gettext version.
90338         * config/srclistvars.sh: Add defaults for eggert.
90339         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90340         Match "This program" as well as "The program".  This is needed
90341         for gettext.
90342
90343 2003-07-14  Jim Meyering  <jim@meyering.net>
90344
90345         Don't emit diagnostics.  Let callers do that.
90346         * lib/save-cwd.c: Don't include "error.h".
90347         (save_cwd): Don't call error.  Ensure that errno is valid
90348         when returning nonzero.
90349
90350         * lib/save-cwd.h (restore_cwd): Update prototype.
90351         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90352         Simplify.  Don't call error upon failure.  Let callers do that.
90353         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90354         when auditing is enabled.  But don't bother updating the #if.
90355
90356 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90357
90358         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90359         it breaks C++ compilation.
90360         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90361
90362 2003-07-10  Simon Josefsson  <jas@extundo.com>
90363
90364         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90365
90366 2003-07-10  Jim Meyering  <jim@meyering.net>
90367
90368         * m4/clock_time.m4: Remove trailing blank.
90369         * m4/intmax_t.m4: Likewise.
90370
90371 2003-07-10  Jim Meyering  <jim@meyering.net>
90372
90373         * lib/vasnprintf.c: Remove trailing blanks.
90374         Make cpp indentation consistent.
90375
90376 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90377
90378         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90379         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90380         Switch from LGPL to GPL.
90381
90382 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90383
90384         * config/srclist.txt: Sort sublists.  Add
90385         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90386         that differ from gnulib for one reason or another; we'd like this list
90387         to be smaller but for now let's document what we have.
90388
90389 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90390
90391         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90392         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90393         and sweeter "eval x=$x".
90394         * config/srclist.txt: Get lib/argp* from glibc.
90395
90396 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90397
90398         * lib/mktime.c: Fix some boundary cases and remove need for floating
90399         point.
90400
90401         Issue a compile-time diagnostic if time_t is floating point, or if
90402         two's complement arithmetic is not in effect, or if arithmetic
90403         right shift does not propagate the sign.  These assumptions were
90404         all in the original code but they weren't checked.
90405
90406         (TIME_T_MIDPOINT, verify): New macros.
90407         (__isleap): Remove; it has integer overflow problems.
90408         (leapyear): New function, without those problems.
90409         (ydhms_tm_diff): Remove; splitting into two parts.
90410         (ydhms_diff): New function, containing the arithmetic part of
90411         the old ydhms_tm_diff function.  Issue a compile-time
90412         diagnostic if we are not using C99 integer division.
90413         Avoid casts when possible.
90414         (guess_time_tm): New function, containing the checking part of
90415         the old ydhms_tm_diff function.  Return the new value, rather than
90416         the difference between it and the old.  Accept a new argument T
90417         so that *T specifies the old value.  Check for overflow in the result.
90418
90419         (__mktime_internal): Use a time_t offset, not a long int offset.
90420         This undoes the 2003-06-04 change, which is no longer needed now
90421         that we have better overflow checking.
90422         (localtime_offset): Likewise.
90423
90424         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90425         and long are 64-bit but int is only 32-bit.
90426         (ydhms_diff): Use long int to store year1 and yday1.
90427         Issue a compile-time diagnostic if long int is not wide enough.
90428
90429         (__mktime_internal): Use long int to store adjusted year and yday.
90430         Use plain C rather than preprocessor commands, if that doesn't
90431         affect efficiency.
90432         Check for overflow (and try to repair) after each probe
90433         rather than checking only at the very end.  This avoids some bugs
90434         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90435         does not equal GMT offset at maximum time).
90436         Use integer to check for overflow rather than floating point; this
90437         is more portable to non-IEEE hosts, and is a tad faster.
90438         When we detect that we are oscillating between two values,
90439         don't check whether tm_isdst has the requested value, since
90440         we already know the answer.  When tm_isdst has the wrong value,
90441         use a different heuristic to find the right one, based on the
90442         extreme values actually observed in practice in tz2003a,
90443         rather than the (overly optimistic) "previous 3 calendar quarters".
90444
90445         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90446         "T const" to accommodate glibc style.
90447         (check_result): Use less-confusing report format.  "long" -> "long int.
90448         (main): Likewise.
90449         Don't loop if the iteration overflows time_t.
90450         Allow a negative step in the iteration.
90451
90452 2003-07-06  Karl Berry  <karl@gnu.org>
90453
90454         * config/depcomp: update from automake.
90455         * config/config.sub: update from prep.
90456
90457 2003-07-03  Karl Berry  <karl@gnu.org>
90458
90459         * config/config.guess: update from prep.
90460
90461 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90462
90463         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90464         xreadlink.c now includes it unconditionally.
90465
90466 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90467
90468         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90469         having it depend on HAVE_SYS_TYPES_H.
90470
90471 2003-07-01  Bruno Haible  <bruno@clisp.org>
90472
90473         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90474         <sys/types.h> should be sufficient.
90475         Reported by Paul Eggert.
90476
90477 2003-06-26  Karl Berry  <karl@gnu.org>
90478
90479         * config/depcomp: update from automake.
90480
90481 2003-06-26  Bruno Haible  <bruno@clisp.org>
90482
90483         * modules/human: Depend on module stdbool.
90484
90485 2003-06-25  Bruno Haible  <bruno@clisp.org>
90486
90487         * modules/readlink: New file.
90488         * modules/xreadlink: Depend on it.
90489         * MODULES.html.sh (func_all_modules): Add readlink.
90490
90491 2003-06-25  Bruno Haible  <bruno@clisp.org>
90492
90493         * m4/readlink.m4: New file.
90494
90495 2003-06-25  Bruno Haible  <bruno@clisp.org>
90496
90497         * lib/readlink.c: New file.
90498
90499 2003-06-22  Karl Berry  <karl@gnu.org>
90500
90501         * config/srclist.txt: update mkinstalldirs from automake.
90502         * config/mkinstalldirs: update.
90503
90504 2003-06-22  Bruno Haible  <bruno@clisp.org>
90505
90506         Portability to mingw32.
90507         * m4/ssize_t.m4: New file, from GNU gettext.
90508         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90509         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90510
90511 2003-06-22  Bruno Haible  <bruno@clisp.org>
90512
90513         * modules/safe-read: Add m4/ssize_t.m4.
90514         * modules/xreadlink: Add m4/ssize_t.m4.
90515
90516 2003-06-20  Bruno Haible  <bruno@clisp.org>
90517
90518         Assume C89, so PARAMS isn't needed.
90519         * lib/unicodeio.h (PARAMS): Remove.
90520         * lib/unicodeio.c: Don't use PARAMS.
90521
90522 2003-06-18  Karl Berry  <karl@gnu.org>
90523
90524         * config/config.{guess,sub}: update from prep.
90525
90526 2003-06-18  Jim Meyering  <jim@meyering.net>
90527
90528         Merge changes from coreutils.
90529         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90530         Remove explicit declarations of xmalloc and realloc.
90531         Include xalloc.h.
90532         (read_utmp): Remove anachronistic cast of xmalloc.
90533
90534 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90535
90536         Assume C89, so PARAMS isn't needed.
90537         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90538         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90539         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90540         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90541         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90542         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90543         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90544         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90545         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90546         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90547         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90548         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90549         no longer needed. Anyway, config.h should always be included before any
90550         other file.
90551
90552 2003-06-11  Simon Josefsson  <jas@extundo.com>
90553
90554         * modules/sysexits: New file.
90555         * MODULES.html.sh (func_all_modules): Add sysexits.
90556
90557 2003-06-11  Simon Josefsson  <jas@extundo.com>
90558
90559         * lib/sysexit_.h: New file.
90560
90561 2003-06-11  Derek Price  <derek@ximbiot.com>
90562
90563         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90564         necessary.
90565
90566 2003-06-11  Bruno Haible  <bruno@clisp.org>
90567
90568         * m4/sysexits.m4: New file.
90569
90570 2003-06-10  Simon Josefsson  <jas@extundo.com>
90571
90572         * lib/argp.h: New file, from glibc.
90573         * lib/argp-ba.c: New file, from glibc.
90574         * lib/argp-eexst.c: New file, from glibc.
90575         * lib/argp-fmtstream.c: New file, from glibc.
90576         * lib/argp-fmtstream.h: New file, from glibc.
90577         * lib/argp-fs-xinl.c: New file, from glibc.
90578         * lib/argp-help.c: New file, from glibc.
90579         * lib/argp-namefrob.h: New file, from glibc.
90580         * lib/argp-parse.c: New file, from glibc.
90581         * lib/argp-pv.c: New file, from glibc.
90582         * lib/argp-pvh.c: New file, from glibc.
90583         * lib/argp-xinl.c: New file, from glibc.
90584
90585 2003-06-10  Simon Josefsson  <jas@extundo.com>
90586
90587         * modules/strchrnul: New file.
90588
90589 2003-06-10  Simon Josefsson  <jas@extundo.com>
90590
90591         * modules/argp: New file.
90592
90593 2003-06-10  Simon Josefsson  <jas@extundo.com>
90594
90595         * m4/strchrnul.m4: New file.
90596
90597 2003-06-10  Simon Josefsson  <jas@extundo.com>
90598
90599         * lib/strchrnul.h: New file.
90600         * lib/strchrnul.c: New file.
90601
90602 2003-06-10  Bruno Haible  <bruno@clisp.org>
90603
90604         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90605
90606 2003-06-07  Karl Berry  <karl@gnu.org>
90607
90608         * config/config.{guess,sub}: update from prep.
90609
90610 2003-06-07  Jim Meyering  <jim@meyering.net>
90611
90612         * modules/strtod: Use $(...) notation, not @...@ for
90613         AC_REPLACE'd variables.
90614         * modules/localcharset: Likewise.
90615
90616 2003-06-07  Jim Meyering  <jim@meyering.net>
90617
90618         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90619         in place of my name in the copyright comment.
90620         Remove definition and uses of __P.
90621
90622         From coreutils.
90623         * lib/stat.c: Don't declare xmalloc explicitly.
90624         Instead, include "xalloc.h".
90625         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90626         xrealloc, and xcalloc return values.
90627         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90628         Improve comment.
90629         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90630
90631 2003-06-07  Bruno Haible  <bruno@clisp.org>
90632
90633         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90634         avoid AC_CONFIG_LINKS.
90635         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90636         fnmatch.h, to avoid AC_CONFIG_LINKS.
90637         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90638
90639 2003-06-07  Bruno Haible  <bruno@clisp.org>
90640
90641         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90642         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90643         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90644         directory.
90645         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90646         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90647         directory.
90648
90649 2003-06-06  Jim Meyering  <jim@meyering.net>
90650
90651         Merge from coreutils.
90652         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90653         Consolidate declarations and initializations of *_base* locals.
90654
90655         Merge from coreutils.
90656         This avoids a core dump on systems without GNU putenv,
90657         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90658         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90659         (unsetenv): New static function, from GNU libc.
90660         (rpl_putenv): Use it.
90661
90662         * lib/modechange.c: Remove trailing blanks.
90663
90664         Merge from coreutils.
90665         * lib/fsusage.c: Remove declaration of statfs.
90666         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90667
90668         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90669
90670 2003-06-06  Jim Meyering  <jim@meyering.net>
90671
90672         * lib/stdbool_.h: Renamed from stdbool.h.in.
90673
90674 2003-06-06  Jim Meyering  <jim@meyering.net>
90675             Bruno Haible  <bruno@clisp.org>
90676
90677         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90678         Adjust Makefile.am snippet not to redirect directly to target.
90679         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90680
90681 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90682
90683         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90684         mismatch, look in future quarters as well as past.  This fixes a
90685         bug when processing fall-backwards gaps immediately after a long
90686         period of daylight-saving time.
90687
90688         * lib/mktime.c: Assume freestanding C89 or better.
90689         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90690         (__P): Remove; not used.
90691         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90692         (mktime, not_equal_tm, print_tm, check_result,
90693         main): Use prototypes.  Use const * where appropriate.
90694         (main): Fix typo in testing code that uncovered by above changes.
90695         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90696
90697 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90698
90699         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90700         locale.h, localeconv.  This merges changes from coreutils.
90701
90702         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90703         It can be removed after the next Autoconf is released.
90704         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90705         needed.
90706
90707 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90708
90709         * lib/mktime.c: Fix Debian bug 177940
90710         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90711         (localtime_offset): Now long int, not time_t, because we want it
90712         to be guaranteed to be signed.  All uses changed.
90713         (__mktime_internal): If overflow would occur when adding offset,
90714         don't add it.
90715
90716         Merge 'human' changes from coreutils.  Rewrite to support
90717         locale-specific notations like thousands separators.
90718         * lib/human.c: Simplify authorship notice.
90719         Include human.h immediately after config.h.
90720         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90721         <limits.h>: Do not include, since human.h does.
90722         (SIZE_MAX, UINTMAX_MAX): New macros.
90723         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90724         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90725         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90726         (power_letter): Renamed from suffixes.
90727         (generate_suffix_backwards): Remove.
90728         (adjust_value): Now takes int style (because of human.h changes)
90729         and long double value (for greater precision on some platforms).
90730         (group_number): New function.
90731         (human_readable): Use it.  Use integer options, not enum.
90732         Put the options before the sizes in the arg list.
90733         Support all the new options.
90734         The old human_readable function has been removed;
90735         use inttostr.h instead.
90736         (human_readable, default_block_size, humblock):
90737         Use uintmax_t, not int, for block sizes.
90738         (human_readable_inexact, block_size_types): Remove.
90739         (block_size_opts): New constant.
90740         (human_options): Renamed from human_block_size, with new signature
90741         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90742         * lib/human.h: Add copyright and authorship notice.
90743         Include <limits.h> and <stdbool.h> unconditionally.
90744         (PARAMS): Remove.  All uses removed.
90745         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90746         (enum human_inexact_style): Remove tag; now a nameless enum.
90747         (human_floor, human_ceiling, human_round_to_even): Now have
90748         values 2, 0, 1 rather than -1, 1, 0.
90749         (human_group_digits, human_suppress_point_zero, human_autoscale,
90750         human_base_1024, human_SI, human_B): New constants.
90751         (human_readable_inexact, human_block_size): Remove.
90752         (human_readable): Size args are now uintmax_t, not int.
90753         (human_options): New decl.
90754
90755         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90756         unnecessary now that we assume C89 or better.  This change
90757         imported from coreutils.
90758
90759         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90760         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90761         in the 2003-05-30 sync from glibc.
90762
90763         .h files should stand alone, but we shouldn't include <sys/types.h>
90764         if we can get away with just <stddef.h>.
90765
90766         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90767         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90768         rather than <sys/types.h>, as we merely need size_t.
90769         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90770         to get size_t.
90771         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90772         Include <stdio.h>, to get FILE.
90773         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90774         memcasecmp.h has included <stddef.h> and all we need is size_t.
90775         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90776         our interface, instead of including <sys/types.h>
90777
90778 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90779
90780         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90781         now, as glibc mktime is buggy on non-glibc systems.
90782
90783 2003-06-03  Karl Berry  <karl@gnu.org>
90784
90785         * config/config.sub: update from prep.
90786
90787 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90788
90789         [from coreutils]
90790         Fix some minor time-related bugs with POSIX time arguments.
90791         Some valid time stamps were being rejected (notably -1, and
90792         time stamps before 1900 on 64-bit hosts).  And some invalid
90793         time stamps were being accepted, e.g. September 31.
90794
90795         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90796         that we can return (time_t) -1 successfully.
90797         * lib/posixtm.c: Likewise.
90798         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90799         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90800         (t): Remove static var.
90801         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90802         of static var.  All uses changed.
90803         (year): Do not reject years before 1900; they can occur with
90804         64-bit time_t.
90805         (posix_time_parse): Do not check for out-of-range components;
90806         that is now the caller's responsibility, since our checks were
90807         only approximations.
90808         (posixtime): Use mktime to check for out-of-range components,
90809         since it knows them exactly.
90810         If mktime returns (time_t) -1, check whether an error actually occurred
90811         by invoking localtime on -1.
90812         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90813         posixtime failures better.
90814         Improve the test data (in comments only).
90815
90816 2003-06-02  Karl Berry  <karl@gnu.org>
90817
90818         * config/mkinstalldirs (version): new variable.
90819         (--version): new option.
90820         (usage): improve message.
90821
90822 2003-05-30  Karl Berry  <karl@gnu.org>
90823
90824         * lib/mktime.c: update from libc.
90825
90826 2003-05-30  Bruno Haible  <bruno@clisp.org>
90827
90828         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90829         * config/config.rpath: Upgrade to gettext-0.12.1.
90830
90831 2003-05-30  Bruno Haible  <bruno@clisp.org>
90832
90833         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90834         * m4/nls.m4: New file, from gettext-0.12.1.
90835         * m4/po.m4: New file, from gettext-0.12.1.
90836         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90837
90838 2003-05-30  Bruno Haible  <bruno@clisp.org>
90839
90840         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90841         * lib/localcharset.h: Likewise.
90842         * lib/localcharset.c: Likewise.
90843
90844 2003-05-29  Karl Berry  <karl@gnu.org>
90845
90846         * config/config.rpath: update from gettext.
90847
90848 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90849
90850         Assume the headers required for C89 freestanding compilers.
90851         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90852         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90853         * m4/human.m4 (gl_HUMAN): Likewise.
90854         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90855         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90856         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90857         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90858         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90859         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90860
90861 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90862
90863         Assume the headers required for C89 freestanding compilers.
90864         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90865         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90866         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90867         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90868         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90869         define, since <limits.h> is guaranteed to do that.
90870         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90871         * lib/exclude.c: Include <stdbool.h> unconditionally.
90872         * lib/tempname.c: Include <stddef.h> unconditionally.
90873         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90874         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90875         <stddef.h> does that.
90876         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90877         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90878         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90879         needed.
90880         * lib/xstrtol.c: Likewise.
90881         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90882         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90883
90884         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90885         warnings on some platforms.
90886
90887         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90888         arbitrarily.
90889
90890 2003-05-26  Jim Meyering  <jim@meyering.net>
90891
90892         Merge in a change from coreutils:
90893         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90894         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90895         that condition, rather than `-1' which is slightly misleading.
90896         Change the name of the cache variable to have the gl_ prefix.
90897         Prompted by a patch from Richard Dawe for DJGPP.
90898
90899 2003-05-24  Karl Berry  <karl@gnu.org>
90900
90901         * config/config.guess: update from prep.
90902
90903 2003-05-22  Karl Berry  <karl@gnu.org>
90904
90905         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90906
90907 2003-05-20  Karl Berry  <karl@gnu.org>
90908
90909         * config/config.guess: update from prep.
90910
90911 2003-05-18  Karl Berry  <karl@gnu.org>
90912
90913         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90914         might actually be set by the user.
90915
90916         * config/depcomp, install-sh, mdate-sh: update from automake.
90917
90918 2003-05-17  Bruno Haible  <bruno@clisp.org>
90919
90920         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90921         invalid expansion for AC_EGREP_CPP.
90922         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90923         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90924         Suggested by Akim Demaille <akim@epita.fr> in
90925         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90926
90927 2003-05-12  Jim Meyering  <jim@meyering.net>
90928
90929         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90930         the space-padded-by-default conversion specifiers, %e, %k, %l.
90931
90932 2003-05-12  Bruno Haible  <bruno@clisp.org>
90933
90934         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90935         the string is longer than 4 KB.
90936
90937 2003-05-11  Karl Berry  <karl@gnu.org>
90938
90939         * config/config.{guess,sub}: update from prep.
90940
90941 2003-05-09  Bruno Haible  <bruno@clisp.org>
90942
90943         * modules/error: Add m4/strerror_r.m4 to file list.
90944
90945 2003-05-03  Bruno Haible  <bruno@clisp.org>
90946
90947         Upgrade to Unicode-4.0.
90948         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90949         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90950         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90951         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90952         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90953         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90954         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90955         Change width of U+E0100..U+E01EF from 1 to 0.
90956
90957 2003-04-25  Jim Meyering  <jim@meyering.net>
90958
90959         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90960         of type size_t, not int.
90961
90962 2003-04-25  Bruno Haible  <bruno@clisp.org>
90963
90964         * lib/copy-file.c: Include <stddef.h>, for size_t.
90965
90966 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90967
90968         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90969         code which expansion is under static control.  Patch imported from
90970         Akim Demaille's patch to Bison; see
90971         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90972
90973 2003-04-14  Bruno Haible  <bruno@clisp.org>
90974
90975         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90976
90977 2003-04-11  Jim Meyering  <jim@meyering.net>
90978
90979         Merge changes from Coreutils.
90980
90981         2003-03-22  Jim Meyering  <jim@meyering.net>
90982
90983         * lib/strftime.c (widen): Cast alloca return value to proper type.
90984
90985         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90986
90987         From GNU libc.
90988         * lib/strftime.c (my_strftime): Handle very large width
90989         specifications for numeric values correctly.  Improve checks for
90990         overflow.
90991
90992         2003-01-19  Jim Meyering  <jim@meyering.net>
90993
90994         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90995         definitions.
90996         (nl_get_alt_digit) [! defined my_strftime]: Define.
90997         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90998         _nl_get_alt_digit and _nl_get_walt_digit.
90999
91000         * lib/strftime.c (my_strftime): Merge in locale-related changes from
91001         libc. These changes have no effect outside of _LIBC.
91002
91003 2003-04-10  Bruno Haible  <bruno@clisp.org>
91004
91005         * modules/findprog: New file.
91006         * MODULES.html.sh (func_all_modules): Add it.
91007
91008 2003-04-10  Bruno Haible  <bruno@clisp.org>
91009
91010         * m4/findprog.m4: New file.
91011         * m4/eaccess.m4: New file.
91012
91013 2003-04-10  Bruno Haible  <bruno@clisp.org>
91014
91015         * lib/findprog.h: New file, from GNU gettext.
91016         * lib/findprog.c: New file, from GNU gettext.
91017
91018 2003-04-05  Jim Meyering  <jim@meyering.net>
91019
91020         Merge changes from Coreutils.
91021
91022         * lib/exclude.h (PARAMS): Remove definition and uses.
91023         * lib/exclude.c: Remove uses of `PARAMS'.
91024
91025         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
91026         Add test-cases for DOS filenames. Declare program_name.
91027         (main): Set up program_name.  Patch by Rich Dawe.
91028
91029         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91030         error from mntctl.
91031         Use mntctl's return value to drive the entry-processing loop, since
91032         we can't rely on the value of the vmt_length member in the last
91033         entry.  On some systems doing so could result in exhausting
91034         virtual memory.  Based in part on a patch from Mike Jetzer.
91035
91036 2003-04-04  Bruno Haible  <bruno@clisp.org>
91037
91038         * modules/linebreak: New file.
91039         * MODULES.html.sh (func_all_modules): Add it.
91040
91041 2003-04-04  Bruno Haible  <bruno@clisp.org>
91042
91043         * m4/linebreak.m4: New file.
91044
91045 2003-04-04  Bruno Haible  <bruno@clisp.org>
91046
91047         * lib/linebreak.h: New file, from GNU gettext.
91048         * lib/linebreak.c: New file, from GNU gettext with slight
91049         modifications.
91050         * lib/lbrkprop.h: New file, from GNU gettext.
91051
91052 2003-04-03  Bruno Haible  <bruno@clisp.org>
91053
91054         * modules/utf8-ucs4: New file.
91055         * modules/utf16-ucs4: New file.
91056         * modules/ucs4-utf8: New file.
91057         * modules/ucs4-utf16: New file.
91058         * MODULES.html.sh (func_all_modules): Add them.
91059
91060 2003-04-03  Bruno Haible  <bruno@clisp.org>
91061
91062         * m4/utf-ucs4.m4: New file.
91063         * m4/ucs4-utf.m4: New file.
91064
91065 2003-04-03  Bruno Haible  <bruno@clisp.org>
91066
91067         * lib/utf8-ucs4.h: New file, from GNU gettext.
91068         * lib/utf16-ucs4.h: New file, from GNU gettext.
91069         * lib/ucs4-utf8.h: New file, from GNU gettext.
91070         * lib/ucs4-utf16.h: New file, from GNU gettext.
91071
91072 2003-04-02  Bruno Haible  <bruno@clisp.org>
91073
91074         * modules/binary-io: New file.
91075         * MODULES.html.sh (func_all_modules): Add it.
91076
91077 2003-04-02  Bruno Haible  <bruno@clisp.org>
91078
91079         * lib/binary-io.h: New file, from GNU gettext.
91080
91081 2003-04-01  Bruno Haible  <bruno@clisp.org>
91082
91083         * modules/pathname: New file.
91084         * MODULES.html.sh (func_all_modules): Add it.
91085
91086 2003-04-01  Bruno Haible  <bruno@clisp.org>
91087
91088         * lib/pathname.h: New file, from GNU gettext.
91089         * lib/concatpath.c: New file, from GNU gettext.
91090
91091 2003-03-30  Bruno Haible  <bruno@clisp.org>
91092
91093         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
91094
91095 2003-03-30  Bruno Haible  <bruno@clisp.org>
91096
91097         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
91098         function chown() doesn't exist.
91099
91100 2003-03-28  Bruno Haible  <bruno@clisp.org>
91101
91102         * modules/copy-file: New file.
91103         * MODULES.html.sh (func_all_modules): Add it.
91104
91105 2003-03-28  Bruno Haible  <bruno@clisp.org>
91106
91107         * m4/copy-file.m4: New file.
91108
91109 2003-03-28  Bruno Haible  <bruno@clisp.org>
91110
91111         * lib/copy-file.h: New file, from GNU gettext.
91112         * lib/copy-file.c: New file, from GNU gettext.
91113
91114 2003-03-18  Jim Meyering  <jim@meyering.net>
91115
91116         * lib/quote.c (quote_n): Fix typo in comment.
91117
91118 2003-03-18  Bruno Haible  <bruno@clisp.org>
91119
91120         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
91121         checking.
91122         * m4/onceonly_2_57.m4: Likewise.
91123
91124 2003-03-17  Bruno Haible  <bruno@clisp.org>
91125
91126         * m4/onceonly.m4: Require autoconf 2.54 or newer.
91127         (m4_quote): Remove macro.
91128         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
91129
91130 2003-03-14  Jim Meyering  <jim@meyering.net>
91131
91132         Merge changes from Coreutils.
91133         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91134         to be const, in order to avoid warnings.
91135         (obstack_room): Likewise.
91136         (obstack_empty_p): Likewise.
91137
91138 2003-03-14  Bruno Haible  <bruno@clisp.org>
91139
91140         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91141         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91142
91143 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91144
91145         Merge changes from Bison.
91146         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91147         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91148         when compiling Bison 1.875's `bitset bset = obstack_alloc
91149         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91150         * lib/hash.c: Include <stdbool.h> unconditionally.
91151
91152 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91153
91154         * m4/onceonly.m4 (m4_quote): New macro.
91155         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91156         Quote AC_FOREACH variable-expansions properly.
91157
91158 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91159
91160         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91161
91162 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91163
91164         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91165         Reported by Bruce Becker; see:
91166         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91167
91168 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91169             Bruno Haible  <bruno@clisp.org>
91170
91171         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91172         Reported by John Hughes, see
91173         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91174
91175 2003-02-20  Bruno Haible  <bruno@clisp.org>
91176
91177         * MODULES.html.sh (func_all_modules): Add poll.
91178
91179 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91180
91181         * modules/poll: New file.
91182
91183 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91184
91185         * lib/poll_.h: New file.
91186         * lib/poll.c: New file.
91187
91188 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91189
91190         * m4/poll.m4: New file.
91191
91192 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91193
91194         * modules/mathl: New file.
91195
91196 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91197
91198         * lib/mathl.h: New file.
91199         * lib/acosl.c: New file.
91200         * lib/asinl.c: New file.
91201         * lib/atanl.c: New file.
91202         * lib/ceill.c: New file.
91203         * lib/cosl.c: New file.
91204         * lib/expl.c: New file.
91205         * lib/floorl.c: New file.
91206         * lib/frexpl.c: New file.
91207         * lib/ldexpl.c: New file.
91208         * lib/logl.c: New file.
91209         * lib/sincosl.c: New file.
91210         * lib/sinl.c: New file.
91211         * lib/sqrtl.c: New file.
91212         * lib/tanl.c: New file.
91213         * lib/trigl.c: New file.
91214         * lib/trigl.h: New file.
91215
91216 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91217
91218         * m4/mathl.m4: New file.
91219
91220 2003-02-18  Bruno Haible  <bruno@clisp.org>
91221
91222         * MODULES.html.sh (func_all_modules): Add mathl.
91223
91224 2003-02-17  Bruno Haible  <bruno@clisp.org>
91225
91226         * modules/mkdtemp: New module.
91227         * MODULES.html.sh (func_all_modules): Add it.
91228
91229 2003-02-17  Bruno Haible  <bruno@clisp.org>
91230
91231         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91232
91233 2003-02-17  Bruno Haible  <bruno@clisp.org>
91234
91235         * lib/mkdtemp.h: New file, from GNU gettext.
91236         * lib/mkdtemp.c: New file, from GNU gettext.
91237
91238 2003-02-02  Jim Meyering  <jim@meyering.net>
91239
91240         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91241         e.g. glibc-2.2.93.
91242
91243 2003-01-31  Bruno Haible  <bruno@clisp.org>
91244
91245         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91246         'rpl_rename'.
91247         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91248         'rpl_strnlen'.
91249         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91250         'rpl_strtod'.
91251         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91252         'rpl_utime'.
91253
91254 2003-01-31  Bruno Haible  <bruno@clisp.org>
91255
91256         * lib/rename.c: #undef rename before defining rpl_rename.
91257         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91258
91259 2003-01-30  Bruno Haible  <bruno@clisp.org>
91260
91261         * modules/vasnprintf, modules/vasprintf: New modules.
91262         * MODULES.html.sh (func_all_modules): Add them.
91263
91264 2003-01-30  Bruno Haible  <bruno@clisp.org>
91265
91266         * m4/signed.m4: New file, from GNU gettext.
91267         * m4/longdouble.m4: New file, from GNU gettext.
91268         * m4/wchar_t.m4: New file, from GNU gettext.
91269         * m4/wint_t.m4: New file, from GNU gettext.
91270         * m4/vasnprintf.m4: New file.
91271         * m4/vasprintf.m4: New file.
91272
91273 2003-01-30  Bruno Haible  <bruno@clisp.org>
91274
91275         * lib/printf-args.h: New file, from GNU gettext.
91276         * lib/printf-args.c: New file, from GNU gettext.
91277         * lib/printf-parse.h: New file, from GNU gettext.
91278         * lib/printf-parse.c: New file, from GNU gettext.
91279         * lib/vasnprintf.h: New file, from GNU gettext.
91280         * lib/vasnprintf.c: New file, from GNU gettext.
91281         * lib/asnprintf.c: New file, from GNU gettext.
91282         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91283         * lib/vasprintf.c: New file, from GNU gettext.
91284         * lib/asprintf.c: New file, from GNU gettext.
91285
91286 2003-01-29  Bruno Haible  <bruno@clisp.org>
91287
91288         * modules/stpncpy: New module.
91289         * MODULES.html.sh (func_all_modules): Add it.
91290
91291 2003-01-29  Bruno Haible  <bruno@clisp.org>
91292
91293         * m4/stpncpy.m4: New file.
91294
91295 2003-01-29  Bruno Haible  <bruno@clisp.org>
91296
91297         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91298         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91299
91300 2003-01-28  Bruno Haible  <bruno@clisp.org>
91301
91302         * modules/c-ctype: New module.
91303         * MODULES.html.sh (func_all_modules): Add it.
91304
91305 2003-01-28  Bruno Haible  <bruno@clisp.org>
91306
91307         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91308         Paul Eggert.
91309         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91310         Paul Eggert.
91311
91312 2003-01-27  Bruno Haible  <bruno@clisp.org>
91313
91314         * modules/xsetenv: New module.
91315         * MODULES.html.sh (func_all_modules): Add it.
91316
91317 2003-01-27  Bruno Haible  <bruno@clisp.org>
91318
91319         * lib/xsetenv.h: New file, from GNU gettext.
91320         * lib/xsetenv.c: New file, from GNU gettext.
91321
91322 2003-01-23  Jim Meyering  <jim@meyering.net>
91323
91324         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91325         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91326
91327 2003-01-23  Bruno Haible  <bruno@clisp.org>
91328
91329         * modules/minmax: New module.
91330         * MODULES.html.sh (func_all_modules): Add it.
91331
91332 2003-01-23  Bruno Haible  <bruno@clisp.org>
91333
91334         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91335         Eggert.
91336
91337 2003-01-22  Bruno Haible  <bruno@clisp.org>
91338
91339         * modules/exit: New module.
91340         * MODULES.html.sh (func_all_modules): Add it.
91341
91342 2003-01-22  Bruno Haible  <bruno@clisp.org>
91343
91344         * lib/exit.h: New file, from GNU gettext.
91345
91346 2003-01-19  Bruno Haible  <bruno@clisp.org>
91347
91348         * gnulib-tool: Recognize option --extract-maintainer.
91349         (func_get_maintainer): New function.
91350         * modules/*: Add Maintainer entry.
91351
91352 2003-01-16  Jim Meyering  <jim@meyering.net>
91353
91354         * m4/regex.m4: The `regex' struct is both input and output.
91355         Initialize it before each use.  Patch by Tim Waugh.
91356
91357 2003-01-16  Bruno Haible  <bruno@clisp.org>
91358
91359         * MODULES.html.sh: Add a table of contents. Add the module name as
91360         leftmost column. Add hyperlinks.
91361
91362 2003-01-15  Bruno Haible  <bruno@clisp.org>
91363
91364         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91365
91366 2003-01-15  Bruno Haible  <bruno@clisp.org>
91367
91368         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91369         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91370         suffix.
91371
91372 2003-01-15  Bruno Haible  <bruno@clisp.org>
91373
91374         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91375
91376 2003-01-15  Bruno Haible  <bruno@clisp.org>
91377
91378         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91379         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91380
91381 2003-01-14  Jim Meyering  <jim@meyering.net>
91382
91383         * lib/same.c (same_name): Tweak a comment.
91384
91385 2003-01-14  Bruno Haible  <bruno@clisp.org>
91386
91387         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91388         when a string comparison is sufficient.
91389
91390 2003-01-14  Bruno Haible  <bruno@clisp.org>
91391
91392         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91393         'unsigned int'.
91394
91395 2003-01-14  Bruno Haible  <bruno@clisp.org>
91396
91397         * lib/hash-pjw.c: Add comment about low quality of this function.
91398
91399 2003-01-13  Bruno Haible  <bruno@clisp.org>
91400
91401         * modules/stpcpy: Distribute lib/stpcpy.h.
91402         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91403
91404 2003-01-13  Bruno Haible  <bruno@clisp.org>
91405
91406         * modules/*: Add a description.
91407         * modules/strpbrk: Fix Makefile.am snippet.
91408         * modules/strtoimax: Fix dependencies.
91409         * modules/strtoumax: Likewise.
91410
91411 2003-01-13  Bruno Haible  <bruno@clisp.org>
91412
91413         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91414         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91415         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91416
91417 2003-01-13  Bruno Haible  <bruno@clisp.org>
91418
91419         * gnulib-tool (func_create_testdir): Store config/* files in the main
91420         directory.
91421         * config.rpath: Move to ...
91422         * config/config.rpath: ... here.
91423         * modules/gettext: Contains config/config.rpath, not config.rpath.
91424         * modules/iconv: Likewise.
91425
91426 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91427
91428         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91429         to avoid collisions with libcurses and libreadline.
91430
91431         * m4/getstr.m4: Remove.
91432         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91433
91434 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91435
91436         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91437         to avoid collisions with libcurses and libreadline.
91438
91439         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91440         * lib/getstr.h, getstr.c: Remove.
91441         * lib/getline.c: Include "getline.h", to check interface.
91442         Move body of old getstr.c here: this defines MIN_CHUNK and
91443         declares getdelim2, which is renamed from getstr.
91444         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91445
91446         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91447         All uses changed.
91448         * lib/linebuffer.h: Likewise.
91449         (readline): Remove backward-compatibility macro.
91450
91451 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91452
91453         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91454         to avoid collisions with libcurses and libreadline.
91455         * getstr: Remove.
91456         * MODULES.html.sh: Remove getstr.
91457         * modules/getline: Depend on unlocked-io, not getstr.
91458
91459 2003-01-12  Jim Meyering  <jim@meyering.net>
91460
91461         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91462
91463 2003-01-10  Bruno Haible  <bruno@clisp.org>
91464
91465         * modules/alloca: Change Makefile.am requirements. Simplify Include
91466         requirements. Add lib/alloca_.h to file list.
91467
91468 2003-01-10  Bruno Haible  <bruno@clisp.org>
91469
91470         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91471
91472 2003-01-10  Bruno Haible  <bruno@clisp.org>
91473
91474         * lib/alloca_.h: New file.
91475         * lib/getdate.y: Unconditionally include alloca.h.
91476         * lib/makepath.c: Likewise.
91477         * lib/setenv.c: Likewise.
91478         * lib/userspec.c: Likewise.
91479
91480 2003-01-09  Karl Berry  <karl@gnu.org>
91481
91482         * MODULES.html.sh: include `dirname $0` in PATH, to find
91483         gnulib-tool.
91484
91485 2003-01-09  Bruno Haible  <bruno@clisp.org>
91486
91487         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91488         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91489
91490 2003-01-09  Bruno Haible  <bruno@clisp.org>
91491
91492         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91493
91494 2003-01-09  Bruno Haible  <bruno@clisp.org>
91495
91496         * lib/stdbool.h.in: New file.
91497
91498 2003-01-09  Bruno Haible  <bruno@clisp.org>
91499
91500         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91501         * MODULES.html.sh: Likewise.
91502
91503 2003-01-08  Jim Meyering  <jim@meyering.net>
91504
91505         * lib/full-write.c: Undefine and define-away `const' after inclusion
91506         of errno.h, not before.  Suggestion from Bruno Haible.
91507
91508 2003-01-08  Bruno Haible  <bruno@clisp.org>
91509
91510         * modules/full-read: Depend on full-write.
91511
91512 2003-01-08  Bruno Haible  <bruno@clisp.org>
91513
91514         * lib/safe-read.c: Include specification header first, to ensure its
91515         selfcontainedness.
91516         * lib/full-write.c: Likewise.
91517
91518 2003-01-07  Jim Meyering  <jim@meyering.net>
91519
91520         * lib/full-write.c: Rework so that it may serve to define full_read,
91521         too.
91522         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91523
91524 2003-01-07  Bruno Haible  <bruno@clisp.org>
91525
91526         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91527         <inttypes.h>.
91528         * lib/xstrtol.h: Likewise.
91529         * lib/xstrtoimax.c: Likewise.
91530         * lib/xstrtoumax.c: Likewise.
91531         * lib/human.h: Likewise.
91532
91533         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91534         on systems that have <inttypes.h> but not <stdint.h>.
91535
91536 2003-01-07  Bruno Haible  <bruno@clisp.org>
91537
91538         * MODULES.html.sh: Add copyright notice.
91539         (missed_files): Omit CVS directory entries.
91540         (func_module): Make it work with sed-3.02.
91541         * MODULES.txt: Remove file.
91542
91543 2003-01-06  Jim Meyering  <jim@meyering.net>
91544
91545         * lib/version-etc.c: Update year in translatable copyright string.
91546
91547 2003-01-03  Karl Berry  <karl@gnu.org>
91548
91549         * config/config.{guess,sub}: update from prep.
91550
91551 2003-01-02  Karl Berry  <karl@gnu.org>
91552
91553         * doc/COPYING.DOC: belatedly updated to 1.2.
91554
91555 2003-01-01  Karl Berry  <karl@gnu.org>
91556
91557         * gnulib-tool (func_verify_module): report module name $module in
91558         error message, not $1.
91559         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91560         be created, only if it doesn't exist.
91561         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91562
91563 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91564
91565         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91566
91567 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91568
91569         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91570         memcmp if strcoll doesn't work.
91571
91572 2002-12-31  Bruno Haible  <bruno@clisp.org>
91573
91574         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91575         nonempty.
91576
91577 2002-12-31  Bruno Haible  <bruno@clisp.org>
91578
91579         * lib/memcoll.c (STRCOLL): New macro.
91580         (memcoll): Use it.
91581
91582 2002-12-31  Bruno Haible  <bruno@clisp.org>
91583
91584         * lib/localcharset.h: New file.
91585         * lib/localcharset.c: Include it.
91586         * lib/unicodeio.c: Likewise.
91587
91588 2002-12-31  Bruno Haible  <bruno@clisp.org>
91589
91590         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91591         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91592
91593 2002-12-31  Bruno Haible  <bruno@clisp.org>
91594
91595         * lib/getline.h: Include <stddef.h>, for size_t.
91596
91597         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91598         * lib/unicodeio.c: Don't include <stddef.h>.
91599
91600 2002-12-31  Bruno Haible  <bruno@clisp.org>
91601
91602         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91603         HAVE_TM_ZONE.
91604
91605 2002-12-24  Karl Berry  <karl@gnu.org>
91606
91607         * config/config.guess: update from prep.
91608
91609 2002-12-24  Bruno Haible  <bruno@clisp.org>
91610
91611         General infrasructure.
91612         * m4/README: Rewritten.
91613         * m4/onceonly.m4: New file.
91614         * m4/onceonly_2_57.m4: New file.
91615
91616         Module atexit.
91617         * m4/atexit.m4: New file.
91618
91619         Module strtod.
91620         * m4/strtod.m4: New file.
91621
91622         Module strtol.
91623         * m4/strtol.m4: New file.
91624
91625         Module strtoul.
91626         * m4/strtoul.m4: New file.
91627
91628         Module memchr.
91629         * m4/memchr.m4: New file.
91630
91631         Module memcmp.
91632         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91633         (jm_FUNC_MEMCMP): Invoke it.
91634
91635         Module memcpy.
91636         * m4/memcpy.m4: New file.
91637
91638         Module memmove.
91639         * m4/memmove.m4: New file.
91640
91641         Module memset.
91642         * m4/memset.m4: New file.
91643
91644         Module strcspn.
91645         * m4/strcspn.m4: New file.
91646
91647         Module strpbrk.
91648         * m4/strpbrk.m4: New file.
91649
91650         Module strstr.
91651         * m4/strstr.m4: New file.
91652
91653         Module strerror.
91654         * m4/strerror.m4: New file.
91655
91656         Module mktime.
91657         * m4/mktime.m4: Renamed from jm-mktime.m4.
91658         (gl_PREREQ_MKTIME): New macro.
91659         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91660
91661         Module malloc.
91662         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91663         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91664         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91665
91666         Module realloc.
91667         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91668         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91669         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91670
91671         Module strftime.
91672         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91673         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91674         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91675         gl_TM_GMTOFF.
91676         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91677
91678         Module xalloc.
91679         * m4/xalloc.m4: New file.
91680
91681         Module alloca.
91682         * m4/alloca.m4: New file.
91683
91684         Module putenv.
91685         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91686         (jm_FUNC_PUTENV): Invoke it.
91687
91688         Module setenv.
91689         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91690         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91691         when invoked twice.
91692         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91693         gt_FUNC_SETENV.
91694
91695         Module memrchr.
91696         * m4/memrchr.m4: New file.
91697
91698         Module stpcpy.
91699         * m4/stpcpy.m4: New file.
91700
91701         Module strcase.
91702         * m4/strcase.m4: New file.
91703
91704         Module strdup.
91705         * m4/strdup.m4: New file.
91706
91707         Module strnlen.
91708         * m4/strnlen.m4: New file.
91709
91710         Module strndup.
91711         * m4/strndup.m4: New file.
91712
91713         Module xstrtod.
91714         * m4/xstrtod.m4: New file.
91715
91716         Module xstrtol.
91717         * m4/xstrtol.m4: New file.
91718
91719         Module getdate.
91720         * m4/getdate.m4: New file.
91721
91722         Module unlocked-io.
91723         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91724         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91725         * m4/jm-glibc-io.m4n: Remove file.
91726
91727         Module long-options.
91728         * m4/long-options.m4: New file.
91729
91730         Module md5.
91731         * m4/md5.m4: New file.
91732
91733         Module sha.
91734         * m4/sha.m4: New file.
91735
91736         Module getstr.
91737         * m4/getstr.m4: New file.
91738
91739         Module getline.
91740         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91741         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91742         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91743         simply getline. Infoke gl_PREREQ_GETLINE.
91744
91745         Module obstack.
91746         * m4/obstack.m4: New file.
91747
91748         Module hash.
91749         * m4/hash.m4: New file.
91750
91751         Module readtokens.
91752         * m4/readtokens.m4: New file.
91753
91754         Module strverscmp.
91755         * m4/strverscmp.m4: New file.
91756
91757         Module stdbool.
91758         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91759         OSF/1.
91760
91761         Module strtoll.
91762         * m4/strtoll.m4: New file.
91763
91764         Module strtoull.
91765         * m4/strtoull.m4: New file.
91766
91767         Module strtoimax.
91768         * m4/strtoimax.m4: New file.
91769
91770         Module strtoumax.
91771         * m4/strtoumax.m4: New file.
91772
91773         Module xstrtoimax.
91774         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91775         jm_AC_PREREQ_XSTRTOIMAX.
91776         Moved the strtol prerequisites to strtol.m4.
91777         Moved the strtoll prerequisites to strtoll.m4.
91778         Moved the strtoimax prerequisites to strtoimax.m4.
91779
91780         Module xstrtoumax.
91781         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91782         jm_AC_PREREQ_XSTRTOUMAX.
91783         Moved the strtoul prerequisites to strtoul.m4.
91784         Moved the strtoull prerequisites to strtoull.m4.
91785         Moved the strtoumax prerequisites to strtoumax.m4.
91786
91787         Module chown.
91788         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91789         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91790
91791         Module dup2.
91792         * m4/dup2.m4: New file.
91793
91794         Module ftruncate.
91795         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91796         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91797
91798         Module getgroups.
91799         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91800         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91801
91802         Module gettimeofday.
91803         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91804         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91805         gl_PREREQ_GETTIMEOFDAY.
91806
91807         Module mkdir.
91808         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91809         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91810
91811         Module mkstemp.
91812         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91813         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91814         jm_AC_TYPE_UINTMAX_T.
91815         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91816
91817         Module stat.
91818         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91819         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91820
91821         Module lstat.
91822         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91823         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91824
91825         Module timespec.
91826         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91827         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91828         * m4/st_mtim.m4: Indentation.
91829
91830         Module nanosleep.
91831         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91832         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91833         gl_PREREQ_NANOSLEEP.
91834
91835         Module regex.
91836         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91837         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91838         (gl_REGEX): New macro.
91839
91840         Module rename.
91841         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91842         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91843
91844         Module rmdir.
91845         * m4/rmdir.m4: New file.
91846
91847         Module utime.
91848         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91849         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91850         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91851
91852         Module dirname.
91853         * m4/dirname.m4: New file.
91854
91855         Module getopt.
91856         * m4/getopt.m4: New file.
91857
91858         Module unistd-safer.
91859         * m4/unistd-safer.m4: New file.
91860
91861         Module fnmatch.
91862         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91863         declaration.
91864         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91865         (gl_FUNC_FNMATCH_POSIX): New macro.
91866         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91867         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91868         simply fnmatch.
91869
91870         Module exclude.
91871         * m4/exclude.m4: New file.
91872
91873         Module human.
91874         * m4/human.m4: New file.
91875
91876         Module acl.
91877         * m4/acl.m4: Nop.
91878
91879         Module backupfile.
91880         * m4/backupfile.m4: New file.
91881         * m4/d-ino.m4: Indentation.
91882
91883         Module fsusage.
91884         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91885         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91886         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91887
91888         Module dirfd.
91889         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91890         requirements.
91891
91892         Module euidaccess.
91893         * m4/euidaccess.m4: New file.
91894
91895         Module file-type.
91896         * m4/file-type.m4: New file.
91897
91898         Module fileblocks.
91899         * m4/fileblocks.m4: New file.
91900
91901         Module filemode.
91902         * m4/filemode.m4: New file.
91903
91904         Module isdir.
91905         * m4/isdir.m4: New file.
91906
91907         Module lchown.
91908         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91909         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91910
91911         Module makepath.
91912         * m4/makepath.m4: New file.
91913
91914         Module modechange.
91915         * m4/modechange.m4: New file.
91916
91917         Module mountlist.
91918         * m4/mountlist.m4: New file.
91919         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91920         Indentation.
91921
91922         Module path-concat.
91923         * m4/path-concat.m4: New file.
91924
91925         Module pathmax.
91926         * m4/pathmax.m4: New file.
91927
91928         Module same.
91929         * m4/same.m4: New file.
91930
91931         Module save-cwd.
91932         * m4/save-cwd.m4: New file.
91933
91934         Module savedir.
91935         * m4/savedir.m4: New file.
91936
91937         Module xgetcwd.
91938         * m4/xgetcwd.m4: New file.
91939         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91940
91941         Module xreadlink.
91942         * m4/xreadlink.m4: New file.
91943
91944         Module safe-read.
91945         * m4/safe-read.m4: New file.
91946
91947         Module safe-write.
91948         * m4/safe-write.m4: New file.
91949
91950         Module closeout.
91951         * m4/closeout.m4: New file.
91952
91953         Module stdio-safer.
91954         * m4/stdio-safer.m4: New file.
91955
91956         Module getpass.
91957         * m4/getpass.m4: New file.
91958
91959         Module getugroups.
91960         * m4/getugroups.m4: New file.
91961
91962         Module group-member.
91963         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91964         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91965
91966         Module idcache.
91967         * m4/idcache.m4: New file.
91968
91969         Module userspec.
91970         * m4/userspec.m4: New file.
91971
91972         Module gettime.
91973         * m4/clock_time.m4: New file.
91974         * m4/gettime.m4: New file.
91975
91976         Module settime.
91977         * m4/settime.m4: New file.
91978
91979         Module posixtm.
91980         * m4/posixtm.m4: New file.
91981
91982         Module gethostname.
91983         * m4/gethostname.m4: New file.
91984
91985         Module canon-host.
91986         * m4/canon-host.m4: New file.
91987
91988         Module gettext.
91989         * m4/codeset.m4: New file, from gettext-0.11.5.
91990         * m4/gettext.m4: New file, from gettext-0.11.5.
91991         * m4/glibc21.m4: New file, from gettext-0.11.5.
91992         * m4/iconv.m4: New file, from gettext-0.11.5.
91993         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91994         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91995         * m4/inttypes.m4: New file, from gettext-0.11.5.
91996         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91997         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91998         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91999         * m4/lib-ld.m4: New file, from gettext-0.11.5.
92000         * m4/lib-link.m4: New file, from gettext-0.11.5.
92001         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
92002         * m4/progtest.m4: New file, from gettext-0.11.5.
92003         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
92004         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
92005         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
92006
92007         Module localcharset.
92008         * m4/localcharset.m4: New file.
92009
92010         Module hard-locale.
92011         * m4/hard-locale.m4: New file.
92012
92013         Module mbswidth.
92014         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
92015         onceonly macros.
92016         * m4/mbrtowc.m4: Add comment.
92017
92018         Module memcasecmp.
92019         * m4/memcasecmp.m4: New file.
92020
92021         Module memcoll.
92022         * m4/memcoll.m4: New file.
92023
92024         Module unicodeio.
92025         * m4/unicodeio.m4: New file.
92026
92027         Module rpmatch.
92028         * m4/rpmatch.m4: New file.
92029
92030         Module yesno.
92031         * m4/yesno.m4: New file.
92032
92033         Module exitfail.
92034         * m4/exitfail.m4: New file.
92035
92036         Module c-stack.
92037         * m4/c-stack.m4 (gl_C_STACK): New macro.
92038         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
92039
92040         Module error.
92041         * m4/error.m4 (gl_ERROR): New macro.
92042         (jm_PREREQ_ERROR): Use onceonly macros.
92043
92044         Module fatal.
92045         * m4/fatal.m4: New file.
92046
92047         Module getloadavg.
92048         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
92049         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
92050
92051         Module getpagesize.
92052         * m4/getpagesize.m4: New file.
92053
92054         Module getusershell.
92055         * m4/getusershell.m4: New file.
92056
92057         Module physmem.
92058         * m4/physmem.m4: New file.
92059
92060         Module posixver.
92061         * m4/posixver.m4: New file.
92062
92063         Module quotearg.
92064         * m4/quotearg.m4: New file.
92065
92066         Module quote.
92067         * m4/quote.m4: New file.
92068
92069         Module readutmp.
92070         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
92071
92072         Module sig2str.
92073         * m4/sig2str.m4: New file.
92074
92075         Other.
92076         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
92077         ulonglong.m4.
92078         * m4/intmax_t.m4: New file.
92079         * m4/d-type.m4: Indentation.
92080         * m4/jm-macros.m4: Update.
92081         * m4/prereq.m4 (jm_PREREQ): Update.
92082         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
92083         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
92084         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
92085         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
92086         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
92087         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
92088         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
92089         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
92090         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
92091         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
92092         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
92093         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
92094         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
92095         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
92096         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
92097         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
92098         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
92099         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
92100         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
92101
92102 2002-12-24  Bruno Haible  <bruno@clisp.org>
92103
92104         * MODULES.txt: Update according to m4/ changes.
92105
92106         Module gettext.
92107         * config.rpath: New file, from gettext-0.11.5.
92108
92109         * modules/*: New module descriptions.
92110         * gnulib-tool: New file.
92111         * MODULES.html.sh: New file.
92112
92113 2002-12-21  Karl Berry  <karl@gnu.org>
92114
92115         * doc/fdl.texi: update to version 1.2.
92116
92117 2002-12-19  Karl Berry  <karl@gnu.org>
92118
92119         * config/config.guess: update from prep.
92120
92121 2002-12-18  Bruno Haible  <bruno@clisp.org>
92122
92123         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
92124         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
92125
92126 2002-12-17  Bruno Haible  <bruno@clisp.org>
92127
92128         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
92129         stdlib.h, string.h.
92130
92131 2002-12-17  Bruno Haible  <bruno@clisp.org>
92132
92133         * lib/canon-host.c (strdup): Remove unused declaration.
92134
92135         * lib/fsusage.c: Include full_read.h.
92136         (get_fs_usage): Use full_read instead of safe_read.
92137
92138         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92139
92140 2002-12-12  Karl Berry  <karl@gnu.org>
92141
92142         * config/config.guess: update from prep.
92143
92144 2002-12-11  Bruno Haible  <bruno@clisp.org>
92145
92146         * m4/setenv.m4: New file, from gettext-0.11.5.
92147
92148 2002-12-11  Bruno Haible  <bruno@clisp.org>
92149
92150         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92151         not unsetenv().
92152         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92153         modifications:
92154
92155         2002-12-11  Bruno Haible  <bruno@clisp.org>
92156
92157                 * setenv.c (alloca): Fall back to malloc.
92158                 (freea): New macro.
92159                 (setenv): Use freea() to free memory allocated with alloca().
92160
92161         2002-11-13  Bruno Haible  <bruno@clisp.org>
92162
92163                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92164                 function declarations.
92165                 * unsetenv.c (unsetenv): Likewise.
92166
92167         2002-03-04  Bruno Haible  <bruno@clisp.org>
92168
92169                 Portability to AIX 4.3.3.
92170                 * unsetenv.c: New file, extracted from setenv.c.
92171                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92172
92173         2001-12-20  Bruno Haible  <bruno@clisp.org>
92174
92175                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92176                 use malloc instead. For SunOS 4.
92177
92178         2001-12-11  Bruno Haible  <bruno@clisp.org>
92179
92180                 * setenv.c: Declare alloca.
92181                 (compar_fn_t): New typedef.
92182                 (KNOWN_VALUE, STORE_VALUE): Use it.
92183
92184         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92185         setenv.h.
92186
92187 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92188
92189         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92190         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92191         Choose values that are less likely to collide with system fnmatch
92192         options.
92193         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92194         defined (e.g., a pure POSIX system).
92195         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92196         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92197
92198 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92199
92200         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92201         a pain in practice to deal with generated m4 files.  This change
92202         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92203
92204         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92205         and jm-glibc-io.m4, as they are no longer a special case.
92206         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92207         kludge and the auto-generation stuff.  Check only whether the
92208         functions are declared, not whether they exist, since older hosts
92209         that don't declare the functions can't use the optimization anyway.
92210
92211 2002-12-06  Jim Meyering  <jim@meyering.net>
92212
92213         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92214
92215         Merge in changes from libc's misc/error.c, in preparation
92216         for the merge of gnulib's changes back into libc.
92217
92218         * lib/error.c (_): Define only if not already defined.
92219         Move definition to follow all #include directives.
92220         Include unlocked-io.h only if !_LIBC.
92221         [_LIBC]: Include <libio/libioP.h>.
92222         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92223         (fflush): Tweak definition to use INTUSE.
92224         (putc): Define.
92225
92226 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92227
92228         * lib/alloca.c [defined emacs]: Include "lisp.h".
92229         (xalloc_die) [defined emacs]: New macro.
92230         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92231         [! defined emacs]: Include <xalloc.h>.
92232         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92233         (pointer): Typedef to POINTER_TYPE *.
92234         (malloc): Remove decl; we now always use xmalloc.
92235         (alloca): Use old-style definition, since Emacs needs this.
92236         Check for arithmetic overflow when computing combined size.
92237
92238 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92239
92240         Do not generate unlocked-io.h automatically, since it's easier to
92241         maintain it by hand.
92242
92243         * lib/unlocked-io.h: New file, from GNU diffutils,
92244         but with proper copyright notice and attribution.
92245         * lib/gen-uio: Remove.
92246         * lib/Makefile.am: Add copyright notice.
92247         (libfetish_a_SOURCES): Add unlocked-io.h.
92248         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92249         (DISTCLEANFILES, io_functions): Remove macros.
92250         (EXTRA_DIST): Remove gen_uio.
92251         (unlocked-io.h): Remove rule.
92252
92253 2002-12-04  Jim Meyering  <jim@meyering.net>
92254
92255         Reflect the fact that stat.c and lstat.c are no longer generated.
92256         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92257         (DISTCLEANFILES): Likewise.
92258         (EXTRA_DIST): Likewise.
92259         (all_local): Don't depend on stat.c or lstat.c.
92260         (stat.c, lstat.c): Remove rules.
92261         (EXTRA_DIST): Remove xstat.in.
92262
92263         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92264         * lib/stat.c: New file.  Contents mostly from xstat.in.
92265         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92266         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92267
92268         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92269         too.
92270         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92271
92272 2002-12-03  Jim Meyering  <jim@meyering.net>
92273
92274         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92275         but not semantics, to minimize the differences between these two files.
92276         (safe_read): Change comment to mention SAFE_READ_ERROR.
92277
92278         * lib/safe-read.c (IS_EINTR): Define.
92279         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92280
92281 2002-12-02  Jim Meyering  <jim@meyering.net>
92282
92283         * lib/safe-read.c (EINTR): Define.
92284         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92285         (INT_MAX): Provide fallback.
92286         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92287
92288         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92289
92290 2002-12-02  Bruno Haible  <bruno@clisp.org>
92291
92292         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92293         Define, taken from safe-read.c.
92294         (INT_MAX): Provide fallback.
92295         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92296         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92297
92298         * lib/safe-read.c (EINTR): Remove definition.
92299         (safe_read): Don't use EINTR if it is absent.
92300
92301 2002-12-01  Jim Meyering  <jim@meyering.net>
92302
92303         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92304         zero.
92305         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92306
92307 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92308
92309         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92310         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92311         with `if (! (value < limit)) abort ();', for readability.
92312
92313 2002-11-26  Karl Berry  <karl@gnu.org>
92314
92315         * lib/strdup.c: copy from libc again, with jim's ok.
92316         * lib/.cppi-disable: re-add strdup.c
92317
92318 2002-11-25  Karl Berry  <karl@gnu.org>
92319
92320         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92321         instead of "strtol.c".
92322
92323 2002-11-25  Karl Berry  <karl@gnu.org>
92324
92325         * config/install-sh: update from automake for variable quoting, $0 in
92326         error msgs, etc.
92327
92328         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92329         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92330         entry.
92331
92332 2002-11-25  Jim Meyering  <jim@meyering.net>
92333
92334         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92335
92336 2002-11-24  Karl Berry  <karl@gnu.org>
92337
92338         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92339         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92340
92341 2002-11-24  Jim Meyering  <jim@meyering.net>
92342
92343         Update from coreutils:
92344
92345         * lib/mktime.c: Merge in changes from libc.
92346
92347         Avoid a link-time failure on some Linux systems.
92348         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92349         (otherwise).
92350         (__mon_yday): Declare with the STATIC attribute.
92351         (__mktime_internal): Likewise.
92352         Based on a report from Greg Schafer.
92353
92354 2002-11-23  Jim Meyering  <jim@meyering.net>
92355
92356         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92357         Use `unsigned', not `int', as type of index.
92358
92359         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92360
92361         * lib/fsusage.c: Remove unneeded parentheses around operands of
92362         `defined'.
92363
92364 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92365
92366         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92367         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92368         so that we can be included first.
92369         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92370         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92371         No need to include stddef.h or sys/types.h any more.
92372         Surround local include files with "", not "<>".
92373         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92374         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92375         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92376         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92377         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92378         (ISPRINT): Remove; no longer needed now that we assume C89.
92379
92380         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92381         Preserve errno.
92382
92383         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92384         quotearg_char): Use SIZE_MAX rather than
92385         (size_t) -1 when we are talking about "infinity".
92386
92387         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92388
92389 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92390
92391         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92392         hint that one should use `if (! x) abort ();' rather than `assert
92393         (x);', and anyway it's one less thing to worry about configuring.
92394         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92395         hash_rehash, hash_insert): Use abort rather than assert.
92396
92397 2002-11-22  Bruno Haible  <bruno@clisp.org>
92398
92399         * lib/safe-read.h: Assume C89. Add comments.
92400         (safe_read): Change return type to size_t.
92401         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92402         byte counts > SSIZE_MAX correctly.
92403         * lib/safe-write.h: New file.
92404         * lib/safe-write.c: New file.
92405         * lib/full-read.h: New file.
92406         * lib/full-read.c: New file.
92407         * lib/full-write.h: Assume C89. Add comments.
92408         * lib/full-write.c: Include safe-write.h.
92409         (full_write): Rewritten to use safe_write.
92410         Suggested by Jim Meyering and Paul Eggert.
92411
92412 2002-11-21  Jim Meyering  <jim@meyering.net>
92413
92414         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92415
92416         Merge in changes from the coreutils.
92417
92418         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92419         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92420         <stdint.h>.
92421         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92422         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92423         int.  Work more efficiently if X is the same width as uintmax_t.
92424         Do not compare X to -1, to avoid bogus compiler warning.
92425         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92426         Don't assume that f_frsize and f_bsize are the same type.
92427
92428         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92429         warning on FreeBSD.
92430
92431         * lib/makepath.c (make_path): Restore umask *before* creating the final
92432         component.
92433         (make_path): Minor reformatting.
92434
92435         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92436         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92437         HAVE_MALLOC/HAVE_REALLOC.
92438
92439         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92440         dummy ones.  At least on GNU/Linux systems, `auto' means something
92441         else.
92442         From Michael Stone.
92443
92444 2002-11-21  Bruno Haible  <bruno@clisp.org>
92445
92446         Remove case insensitive option matching.
92447         * lib/argmatch.h (argcasematch): Remove declaration.
92448         (ARGCASEMATCH): Remove macro.
92449         (__xargmatch_internal): Remove case_sensitive argument.
92450         (XARGMATCH): Update.
92451         (XARGCASEMATCH): Remove macro.
92452         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92453         case_sensitive argument.
92454         (argcasematch): Remove function.
92455         (__xargmatch_internal): Remove case_sensitive argument.
92456         (main): Use XARGMATCH instead of XARGCASEMATCH.
92457
92458         * lib/xmalloc.c: Change compile-time error message. Add comment about
92459         required autoconf version.
92460
92461 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92462
92463         Merge argmatch cleanups from Bison.  Assume C89.
92464
92465         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92466         Include stdlib.h, for EXIT_FAILURE.
92467         Always include <string.h>, since we assume C89.
92468         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92469         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92470         Include <stddef.h> instead, since it's all we need for size_t.
92471         (PARAMS): Remove.  All uses removed.
92472         (ARRAY_CARDINALITY): Do not bother to #undef.
92473         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92474         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92475         Remove unnecessary parentheses.
92476         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92477         Insert necessary parentheses.
92478         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92479         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92480
92481 2002-11-19  Bruno Haible  <bruno@clisp.org>
92482
92483         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92484         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92485
92486         * lib/mbswidth.h (PARAMS): Remove macro.
92487         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92488         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92489
92490         * lib/gcd.h (PARAMS): Remove macro.
92491         (gcd): Use ANSI C function declarations.
92492         * lib/gcd.c (gcd): Likewise.
92493
92494 2002-11-15  Bruno Haible  <bruno@clisp.org>
92495
92496         * lib/strcspn.c: Include <stddef.h>.
92497         (strcspn): Use ANSI C function declaration. Change return type to
92498         size_t. Use NULL.
92499         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92500         (strpbrk): Use NULL.
92501         * lib/strpbrk.h (PARAMS): Remove macro.
92502         (strpbrk): Use ANSI C function declaration.
92503         * lib/strstr.c: Don't include <sys/types.h>.
92504         * lib/strstr.h (PARAMS): Remove macro.
92505         (strstr): Use ANSI C function declarations.
92506
92507 2002-11-14  Karl Berry  <karl@gnu.org>
92508
92509         * config/mkinstalldirs: `do' on separate line, instead of
92510         `for var; do'.
92511
92512 2002-11-06  Bruno Haible  <bruno@clisp.org>
92513
92514         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92515         * lib/gcd.c (gcd): Likewise.
92516
92517 2002-11-05  Bruno Haible  <bruno@clisp.org>
92518
92519         * lib/gcd.h: New file, from gettext-0.11.5.
92520         * lib/gcd.c: New file, from gettext-0.11.5.
92521
92522 2002-11-05  Bruno Haible  <bruno@clisp.org>
92523
92524         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92525         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92526         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92527         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92528
92529         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92530         <libintl.h>.
92531         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92532         <libintl.h>.
92533
92534         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92535         * lib/human.c: Include gettext.h instead of <libintl.h>.
92536         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92537         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92538         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92539         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92540         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92541         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92542         (textdomain): Remove definition.
92543         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92544
92545         * lib/long-options.c: Remove include of <libintl.h> and definition of
92546         _.
92547         * lib/same.c: Remove include of <libintl.h> and definition of _.
92548
92549 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92550
92551         * lib/config.charset: A few additions for Solaris.
92552
92553 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92554
92555         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92556         * lib/localcharset.c (locale_charset): Declare as extern "C".
92557
92558 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92559
92560         * lib/config.charset: msdos in uk_UA uses CP1125.
92561
92562 2002-11-04  Bruno Haible  <bruno@clisp.org>
92563
92564         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92565         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92566         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92567         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92568         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92569
92570 2002-11-04  Bruno Haible  <bruno@clisp.org>
92571
92572         * lib/localcharset.c (locale_charset): Don't return an empty string.
92573
92574 2002-11-04  Bruno Haible  <bruno@clisp.org>
92575
92576         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92577         aliases.
92578
92579 2002-11-04  Bruno Haible  <bruno@clisp.org>
92580
92581         * lib/config.charset: Update for newest glibc. Add canonical names
92582         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92583
92584 2002-11-04  Bruno Haible  <bruno@clisp.org>
92585
92586         * lib/config.charset: Add support for NetBSD.
92587
92588 2002-11-04  Bruno Haible  <bruno@clisp.org>
92589
92590         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92591
92592 2002-11-01  Bruno Haible  <bruno@clisp.org>
92593
92594         * configure.in: Add AC_CONFIG_AUX_DIR call.
92595         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92596         test/Makefile.
92597         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92598
92599 2002-09-28  Karl Berry  <karl@gnu.org>
92600
92601         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92602         installed automake until the next release, since changes have been
92603         made.
92604
92605 2002-09-25  Karl Berry  <karl@gnu.org>
92606
92607         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92608         * lib/getopt*: copy from libc/posix.
92609         * lib/gettext.h: copy from gettext.
92610         * lib/.cppi-disable: add strdup.c, gettext.h.
92611
92612 2002-09-25  Karl Berry  <karl@gnu.org>
92613
92614         * config/srclist.txt: enable gettext.h check.
92615         * config/config.{guess,sub}: update from prep.
92616         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92617                 from automake 1.6.3.
92618         See srclist*.
92619
92620 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92621
92622         * regex.c (PATFETCH): Remove the translating fetch.
92623         (PATFETCH_RAW): Rename to PATFETCH.
92624         (set_image_of_range): New fun.
92625         (SET_RANGE_TABLE_WORK_AREA): Use it.
92626         (regex_compile): Don't translate the pattern chars so eagerly.
92627         Only do it when inserting an `exactn' bytecode or when handling
92628         a char-range.
92629         (mutually_exclusive_p): Avoid empty statement.
92630
92631 2002-07-06  Jim Meyering  <meyering@lucent.com>
92632
92633         * m4/README: Don't mention Makefile.am.in.
92634         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92635
92636 2002-07-01  Jim Meyering  <meyering@lucent.com>
92637
92638         * lib/c-stack.c: Include sys/time.h.
92639         From Volker Borchert.
92640
92641 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92642
92643         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92644
92645 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92646
92647         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92648         New macro.  Use it uniformly instead of
92649         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92650         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92651         reported by Vin Shelton.
92652
92653 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92654
92655         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92656         Do not assume SA_SIGINFO behavior.
92657         Bug reported by Jim Meyering on NetBSD 1.5.2.
92658
92659 2002-06-22  Jim Meyering  <meyering@lucent.com>
92660
92661         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92662         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92663
92664         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92665         now that configure.ac uses AC_GNU_SOURCE.
92666         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92667         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92668
92669         Update to latest tools.  Suggestions from Paul Eggert.
92670         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92671         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92672         * m4/fnmatch.m4: Likewise.
92673         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92674         to AC_HEADER_STDBOOL
92675
92676 2002-06-22  Jim Meyering  <meyering@lucent.com>
92677
92678         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92679         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92680
92681 2002-06-22  Jim Meyering  <meyering@lucent.com>
92682
92683         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92684
92685         * lib/exitfail.c, exitfail.h: Likewise.
92686         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92687
92688         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92689         of fnmatch.h.
92690         (EXTRA_DIST): Add fnmatch_loop.c.
92691         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92692
92693         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92694         * lib/fnmatch.c: Update from diffutils-2.8.2.
92695         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92696         * lib/fnmatch.h: Remove file.
92697
92698 2002-06-21  Jim Meyering  <meyering@lucent.com>
92699
92700         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92701         * m4/mbrtowc.m4: Likewise.
92702
92703         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92704         * m4/mbswidth.m4: Reflect name change:
92705         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92706         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92707
92708         * m4/lib-link.m4: Update from gettext-0.11.2.
92709         * m4/gettext.m4: Likewise.
92710
92711         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92712         From Alfred M. Szmidt.
92713
92714 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92715
92716         * lib/file-type.h: Report an error if neither S_ISREG nor
92717         S_IFREG is defined, instead of using a test specific to glibc
92718         2.2.  This should be safe, since POSIX requires S_ISREG and
92719         Unix Version 7 had S_IFREG.  We don't need to check for
92720         <sys/types.h> since we don't use any symbols that it defines.
92721
92722 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92723
92724         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92725         $@-t, so that each temporary file name is unique and valid in the first
92726         8 characters, for operation under DOS.
92727
92728 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92729
92730         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92731
92732 2002-06-15  Jim Meyering  <meyering@lucent.com>
92733
92734         Work even with DJGPP 2.03, which lacks support for symlinks.
92735         From Richard Dawe.
92736         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92737         is defined.
92738         * lib/lchown.c (S_ISLNK): Likewise.
92739
92740 2002-06-15  Jim Meyering  <meyering@lucent.com>
92741
92742         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92743         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92744         have been included before this file.
92745
92746 2002-06-14  Jim Meyering  <meyering@lucent.com>
92747
92748         * lib/file-type.h: Use the version from diffutils-2.8.2.
92749         * lib/file-type.c: Likewise.
92750
92751 2002-06-07  Jim Meyering  <meyering@lucent.com>
92752
92753         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92754         They're needed at least for NetBSD 1.5.2.
92755         ($statxfs_includes): Include those same headers.
92756         ($statxfs_includes): Include sys/vfs.h if available.
92757         ($statxfs_includes): Likewise for sys/statvfs.h.
92758         Check for the following members in both structs statfs and statvfs:
92759         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92760
92761 2002-06-01  Jim Meyering  <meyering@lucent.com>
92762
92763         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92764         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92765
92766 2002-05-28  Jim Meyering  <meyering@lucent.com>
92767
92768         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92769         Reported by Volker Borchert.
92770
92771 2002-05-27  Jim Meyering  <meyering@lucent.com>
92772
92773         Fix a problem seen only on nonconforming systems whereby ls.c's
92774         use of localtime, and then of gettimeofday would cause trouble:
92775         the localtime call used to initialize rpl_gettimeofday's save
92776         mechanism would clobber ls's current local time information so
92777         that in any long listing the first file would always be listed
92778         with date 1970-01-01.  Analysis by Volker Borchert.
92779
92780         * lib/gettimeofday.c (localtime): Undefine.
92781         (rpl_localtime): New function.
92782
92783 2002-05-27  Jim Meyering  <meyering@lucent.com>
92784
92785         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92786         localtime.
92787
92788         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92789         use the replacement function; it wouldn't resolve at link time.
92790         Reported by Volker Borchert.
92791
92792 2002-05-22  Jim Meyering  <meyering@lucent.com>
92793
92794         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92795         file-type.h.
92796         * lib/file-type.h: New file.
92797         * lib/file-type.c (file_type): New file/function.  Extracted from
92798         diffutils.
92799
92800 2002-04-30  Jim Meyering  <meyering@lucent.com>
92801
92802         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92803
92804 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92805
92806         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92807
92808 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92809
92810         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92811         Do not check for alloca.h (no longer used) or stdbool.h (was never
92812         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92813
92814 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92815
92816         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92817
92818 2002-04-29  Jim Meyering  <meyering@lucent.com>
92819
92820         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92821         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92822         Use AC_FUNC_STRNLEN here instead.
92823
92824         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92825         With autoconf-2.53a, it's part of AC_PROG_CC.
92826
92827 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92828
92829         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92830         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92831
92832 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92833
92834         * lib/sig2str.h, lib/sig2str.c: New files.
92835         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92836
92837 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92838
92839         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92840         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92841         of 127, since 64 is the largest conceivable number for ancient
92842         nonstandard hosts.
92843         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92844
92845 2002-04-28  Jim Meyering  <meyering@lucent.com>
92846
92847         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92848
92849 2002-04-24  Jim Meyering  <meyering@lucent.com>
92850
92851         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92852         (jm_PREREQ): Use it.
92853
92854         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92855         mach/mach.h fcntl.h.
92856         Check for this function: setlocale.
92857
92858 2002-04-24  Jim Meyering  <meyering@lucent.com>
92859
92860         * lib/gettext.h: New file, from Gettext.
92861         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92862         (libfetish_a_SOURCES): Add gettext.h.
92863
92864 2002-04-16  Jim Meyering  <meyering@lucent.com>
92865
92866         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92867         ut_pid, ut_id, ut_exit.
92868
92869 2002-04-16  Jim Meyering  <meyering@lucent.com>
92870
92871         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92872         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92873         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92874
92875 2002-04-12  Jim Meyering  <meyering@lucent.com>
92876
92877         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92878         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92879         existence of the getmntinfo function.  Needed for Darwin 5.3.
92880
92881         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92882         This is necessary at least on Darwin 5.3.
92883
92884         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92885         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92886         strnlen.o in the library, and that makes some versions of ranlib
92887         object.
92888
92889 2002-04-12  Jim Meyering  <meyering@lucent.com>
92890
92891         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92892
92893 2002-04-09  Jim Meyering  <meyering@lucent.com>
92894
92895         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92896         to be more precise.  Rather than saying we're checking whether the
92897         function `works', say what we're testing.
92898         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92899         Reported by Bruno Haible.
92900
92901 2002-03-10  Jim Meyering  <meyering@lucent.com>
92902
92903         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92904         Suggestion from Santiago Vila.
92905
92906 2002-03-08  Jim Meyering  <meyering@lucent.com>
92907
92908         * lib/rename.c: Mention that this wrapper is needed also on
92909         mips-dec-ultrix4.4 systems.
92910
92911 2002-03-02  Jim Meyering  <meyering@lucent.com>
92912
92913         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92914         not HAVE_CLOCK_SETTIME.
92915
92916 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92917
92918         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92919         Check for clock_settime.
92920
92921 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92922
92923         * lib/nanosleep.h: Rename to....
92924         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92925
92926         * lib/gettime.c: New file.
92927         * lib/settime.c: New file.
92928         * lib/stime.c: Remove.
92929
92930         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92931         timespec.h.  Remove nanosleep.h.
92932
92933 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92934
92935         * m4/acl.m4: New file.
92936         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92937         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92938
92939 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92940
92941         * lib/acl.c, lib/acl.h: New files.
92942         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92943
92944 2002-02-24  Jim Meyering  <meyering@lucent.com>
92945
92946         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92947         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92948         cause trouble.  Reported by Nelson Beebe.
92949
92950 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92951
92952         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92953         compilers that don't know that xalloc_die never returns.
92954
92955 2002-02-20  Jim Meyering  <meyering@lucent.com>
92956
92957         * lib/getdate.c: Regenerate using bison-1.33.
92958
92959 2002-02-17  Jim Meyering  <meyering@lucent.com>
92960
92961         * config/config.guess (main): Don't use `head -1'; it's no longer
92962         portable. Use `sed 1q' instead.
92963
92964 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92965
92966         * m4/codeset.m4: Upgrade to gettext-0.11.
92967         * m4/gettext.m4: Upgrade to gettext-0.11.
92968         * m4/glibc21.m4: Upgrade to gettext-0.11.
92969         * m4/iconv.m4: Upgrade to gettext-0.11.
92970         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92971         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92972         * m4/lib-ld.m4: New file, from gettext-0.11.
92973         * m4/lib-link.m4: New file, from gettext-0.11.
92974         * m4/lib-prefix.m4: New file, from gettext-0.11.
92975         * m4/progtest.m4: Upgrade to gettext-0.11.
92976
92977 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92978
92979         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92980         (jm_PREREQ): Use it.
92981
92982 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92983
92984         * lib/posixver.c, lib/posixver.h: New files.
92985         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92986
92987 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92988             Bruno Haible  <bruno@clisp.org>
92989
92990         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92991         (fwrite_success_callback): New declaration.
92992         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92993         print_unicode_char. Call failure callback instead of error.
92994         (fwrite_success_callback): New function.
92995         (exit_failure_callback): New function.
92996         (fallback_failure_callback): New function.
92997         (print_unicode_char): Call unicode_to_mb.
92998
92999 2002-01-26  Jim Meyering  <meyering@lucent.com>
93000
93001         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
93002         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
93003
93004 2002-01-26  Jim Meyering  <meyering@lucent.com>
93005
93006         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
93007
93008 2002-01-22  Paul Eggert  <eggert@twinsun.com>
93009
93010         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
93011
93012 2002-01-22  Jim Meyering  <meyering@lucent.com>
93013
93014         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
93015         Otherwise, some versions of automake would omit the rule that makes
93016         Makefile from Makefile.in.
93017
93018 2002-01-21  Paul Eggert  <eggert@twinsun.com>
93019
93020         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
93021         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93022         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
93023         (memcoll): Set errno to zero if there is no error.
93024
93025         * lib/quotearg.c (quotearg_buffer_restyled):
93026         Fix bug with quoting buffers containing NUL when backslashing escapes.
93027         This bug was exposed by the other changes in this patch.
93028         (quotearg_n_options): New arg ARGSIZE.
93029         All callers changed.
93030         (quoting_options_from_style): New function.
93031         (quotearg_n_style): Use it.
93032         (quotearg_n_style_mem): New function.
93033
93034         * lib/quotearg.h (quotearg_n_style_mem): New function.
93035
93036 2002-01-19  Jim Meyering  <meyering@lucent.com>
93037
93038         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
93039         Remove useless quotes: DF_PROG="df".
93040         * m4/strnlen.m4: New file.
93041
93042 2002-01-16  Paul Eggert  <eggert@twinsun.com>
93043
93044         * lib/backupfile.c (ISDIGIT): Comment fix.
93045         * lib/getdate.y (ISDIGIT): Likewise.
93046         * lib/posixtm.c (ISDIGIT, year): Likewise.
93047         * lib/strverscmp.c (ISDIGIT): Likewise.
93048         * lib/userspec.c (ISDIGIT): Likewise.
93049
93050 2002-01-16  Jim Meyering  <meyering@lucent.com>
93051
93052         * lib/getdate.y: Add three semicolons, each just before a closing
93053         brace. Bison (as of version 1.31) no longer papers over that mistake.
93054
93055 2002-01-05  Jim Meyering  <meyering@lucent.com>
93056
93057         * lib/version-etc.c (version_etc_copyright): Update copyright year.
93058
93059 2001-12-19  Paul Eggert  <eggert@twinsun.com>
93060
93061         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
93062         not silently exit merely because the output buffer happens to
93063         have nothing pending.
93064
93065 2001-12-18  Paul Eggert  <eggert@twinsun.com>
93066
93067         See the big note in ../ChangeLog.
93068         * lib/human.c (suffixes): Prefer K to k for 1024.
93069         (generate_suffix_backwards): New function.
93070         (human_readable_inexact): Use it.
93071         * lib/xstrtol.c (__xstrtol): If there is no number but there
93072         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
93073         Accept 'K' as well as 'k'.
93074
93075 2001-12-15  Jim Meyering  <meyering@lucent.com>
93076
93077         * lib/regex.h (__restrict_arr): Update from libc.
93078
93079         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
93080         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
93081         (STREQ): Define.
93082
93083 2001-12-14  Jim Meyering  <meyering@lucent.com>
93084
93085         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
93086         Suggestion from Bruno Haible.
93087
93088 2001-12-10  Jim Meyering  <meyering@lucent.com>
93089
93090         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
93091         xrealloc, Instead, include "xalloc.h".
93092         (initbuffer): Don't cast xmalloc return value to char*.
93093         (readline): Reword comment.
93094         Don't cast xrealloc return value to char*
93095         Return NULL, not 0.
93096
93097 2001-12-09  Jim Meyering  <meyering@lucent.com>
93098
93099         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
93100         about `signed and unsigned type in conditional expression'.
93101         * lib/posixtm.c (posix_time_parse): Likewise.
93102
93103         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
93104
93105         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
93106         to avoid a pedantic warning.
93107
93108         * lib/getstr.c: Don't include assert.h.
93109         (getstr): Remove warning-evoking assertions.
93110         Return -1 if offset parameter is out of bounds.
93111         Change the type of a local from int to size_t.
93112
93113         * lib/strftime.c (my_strftime_localtime_r): Include this function
93114         definition in the `#if ! HAVE_TM_GMTOFF' block.
93115
93116         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
93117         Include xalloc.h instead.
93118
93119 2001-12-02  Jim Meyering  <meyering@lucent.com>
93120
93121         * lib/tempname.c: Don't declare getenv, thus reverting the change of
93122         2001-11-18.  It's no longer necessary, now that stdlib.h is always
93123         included.
93124
93125         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
93126         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
93127
93128 2001-11-30  Akim Demaille  <akim@epita.fr>
93129
93130         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
93131         before being defined.
93132
93133 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93134
93135         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93136         First arg is int, not unsigned.
93137         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93138         (SIZE_MAX, UINT_MAX): New macros.
93139         (quotearg_n_options): Abort if N is negative.
93140         Avoid overflow check on hosts where size_t is 64 bits and int
93141         is 32 bits, as overflow is impossible there.
93142         Fix off-by-one typo that caused unnecessary reallocation.
93143
93144 2001-11-27  Jim Meyering  <meyering@lucent.com>
93145
93146         * lib/tempname.c: Merge with version from libc.
93147         * lib/regex.c: Likewise.
93148
93149         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93150         systems for which STDC_HEADERS is 0, it was not included, resulting in
93151         a warning about an integer-to-pointer conversion problem with getenv.
93152         Reported by Volker Borchert.
93153
93154 2001-11-26  Jim Meyering  <meyering@lucent.com>
93155
93156         * lib/gtod.h: Remove file.
93157         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93158         * lib/gettimeofday.c: Don't include gtod.h.
93159         (GTOD_init): Remove function.
93160         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93161         Suggestion from Volker Borchert.
93162
93163 2001-11-23  Jim Meyering  <meyering@lucent.com>
93164
93165         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93166         it.
93167         * lib/hash.c (struct hash_table): Define it here instead.
93168
93169 2001-11-22  Jim Meyering  <meyering@lucent.com>
93170
93171         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93172
93173 2001-11-20  Jim Meyering  <meyering@lucent.com>
93174
93175         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93176         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93177
93178 2001-11-19  Jim Meyering  <meyering@lucent.com>
93179
93180         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93181         directory.  Use "conftestXXXXXX" as the template.
93182         Suggestion from Paul Eggert.
93183
93184         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93185         immediately, so the test doesn't mistakenly hit the max-open-files
93186         limit.
93187
93188 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93189
93190         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93191         (TEMPORARIES): New macro.
93192         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93193         removes an artificial limitation (e.g. HP-UX 10.20, where
93194         TMP_MAX is 17576).
93195
93196 2001-11-18  Jim Meyering  <meyering@lucent.com>
93197
93198         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93199
93200 2001-11-18  Jim Meyering  <meyering@lucent.com>
93201
93202         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93203         on SunOS 4.
93204
93205         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93206         files will be created before anything else.
93207
93208 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93209
93210         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93211         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93212
93213 2001-11-17  Jim Meyering  <meyering@lucent.com>
93214
93215         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93216         Prompted by a report from Bob Proulx.
93217
93218         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93219         Instead, require UTILS_FUNC_MKSTEMP.
93220
93221 2001-11-17  Jim Meyering  <meyering@lucent.com>
93222
93223         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93224         Now, that's done as part of AC_FUNC_STRTOD.
93225
93226 2001-11-17  Jim Meyering  <meyering@lucent.com>
93227
93228         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93229         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93230         rather than group writable.  Patch by Juan F. Codagnone.
93231
93232         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93233         xrealloc, Instead, include "xalloc.h".
93234
93235         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93236         Remove explicit declarations of xmalloc, xrealloc,
93237         and xstrdup.  Instead, include "xalloc.h".
93238
93239         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93240         unlocked-io.h.
93241         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93242         Likewise.
93243         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93244
93245         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93246         Reported by Padraig Brady.
93247
93248         * lib/mkstemp.c: #undef mkstemp.
93249         Include config.h.
93250         (rpl_mkstemp): Rename from mkstemp.
93251         Protoize.
93252
93253 2001-11-16  Jim Meyering  <meyering@lucent.com>
93254
93255         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93256         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93257         determine the amount of total physical memory, use pstat_getstatic.
93258         HPUX-11 doesn't define _SC_PHYS_PAGES.
93259         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93260         If sysconf couldn't be used to determine the amount of available
93261         physical memory, use both pstat_getstatic and pstat_getdynamic.
93262         Based on a patch from Bob Proulx.
93263
93264 2001-11-10  Jim Meyering  <meyering@lucent.com>
93265
93266         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93267         (jm_PREREQ): Use it.
93268
93269 2001-11-09  Jim Meyering  <meyering@lucent.com>
93270
93271         * m4/jm-macros.m4: Require autoconf-2.52f.
93272         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93273         Use these AC_-prefixed names, not the AM_-prefixed ones.
93274
93275         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93276
93277 2001-11-05  Jim Meyering  <meyering@lucent.com>
93278
93279         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93280
93281 2001-11-04  Jim Meyering  <meyering@lucent.com>
93282
93283         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93284         $DEFS.
93285
93286 2001-11-03  Jim Meyering  <meyering@lucent.com>
93287
93288         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93289         of AC_DEFUN.
93290
93291         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93292         know the name of the variable in the macro definition.
93293
93294 2001-11-03  Jim Meyering  <meyering@lucent.com>
93295
93296         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93297         in argmatch_to_argument call.
93298
93299         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93300         argument.
93301
93302         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93303         e.g., a fault due to an attempt to free a NULL pointer.
93304
93305 2001-11-01  Jim Meyering  <meyering@lucent.com>
93306
93307         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93308         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93309
93310 2001-11-01  Jim Meyering  <meyering@lucent.com>
93311
93312         * lib/dirfd.c, lib/dirfd.h: New files.
93313         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93314
93315         * lib/hash.c (hash_print) [TESTING]: Clean up.
93316
93317 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93318
93319         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93320         to avoid a warning if -Wall.
93321
93322 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93323
93324         * README: New file
93325         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93326         (per RMS's instructions, this is now the canonical source)
93327         * lgpl/, gpl/: New directories.
93328
93329 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93330
93331         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93332
93333 2001-10-21  Jim Meyering  <meyering@lucent.com>
93334
93335         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93336         this code would end up calling gettext even in packages built
93337         with --disable-nls.
93338         * lib/getopt.c (_): Likewise.
93339         * lib/regex.c (_): Likewise.
93340
93341 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93342
93343         * m4/error.m4 (jm_PREREQ_ERROR):
93344         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93345         AC_FUNC_STRERROR_R does that.
93346         Check for strerror declaration.
93347
93348         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93349         are supposed to have them these days.
93350         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93351         Merge changes from latest Autoconf CVS.
93352         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93353         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93354         POSIX decided to standardize on the int flavor of strerror_r.
93355
93356 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93357
93358         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93359         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93360         Use strerror_r that is only a macro, even if it is not a function.
93361         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93362         (private_strerror): Use prototypes, not old-style function definition.
93363         (print_errno_message): New function.
93364         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93365         char*-flavored one.
93366         (error_tail, error, error_at_line): Use it.
93367
93368 2001-10-11  Jim Meyering  <meyering@lucent.com>
93369
93370         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93371         and quote_n (1, ... to avoid clobbering a buffer.
93372
93373 2001-10-05  Jim Meyering  <meyering@lucent.com>
93374
93375         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93376         hash-pjw.h.
93377         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93378         * lib/hash-pjw.h: New file.
93379
93380 2001-09-30  Jim Meyering  <meyering@lucent.com>
93381
93382         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93383         `struct fsstat' has the `f_fstypename' member.
93384         Use that to define FS_TYPE, which is now used to make
93385         the getfsstat link test tighter.
93386
93387 2001-09-30  Jim Meyering  <meyering@lucent.com>
93388
93389         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93390         Include <sys/ucred.h>, for Apple Darwin.
93391         Include sys/mount.h and sys/fs_types.h only if available.
93392         (FS_TYPE): Define.
93393         (read_filesystem_list): Use FS_TYPE.
93394
93395 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93396
93397         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93398         a boolean context.
93399
93400 2001-09-29  Jim Meyering  <meyering@lucent.com>
93401
93402         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93403         [one-argument getmntent function]): Include stdio.h before mntent.h.
93404         SunOS 4.1.x needs it for the declaration of `FILE'.
93405         Patch by Volker Borchert.
93406
93407         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93408         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93409         sys/fs_types.h, and make the link-test for getfsstat guard #include
93410         directives with appropriate #if HAVE_*_H tests so that we can
93411         detect getfsstat on Apple Darwin1.3.7 systems.
93412         Reported by Nelson Beebe.
93413         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93414
93415 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93416
93417         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93418         #defines strtoimax.  Also treat the other strto* functions
93419         like strtoimax.
93420
93421         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93422         Check for strtoul and strtoumax,
93423         as those declarations are made even in the signed case.
93424         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93425         Likewise, for strtol and strtoimax.
93426
93427 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93428
93429         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93430         #defines strtoimax.  Also treat the other strto* functions
93431         like strtoimax.
93432
93433         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93434         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93435         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93436
93437 2001-09-26  Jim Meyering  <meyering@lucent.com>
93438
93439         Most macros in unlocked-io.h had the wrong number of arguments.
93440         * lib/gen-uio: New script.
93441         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93442         * lib/unlocked-io.hin: Remove file.
93443         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93444         rather than trying to embed it here.
93445         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93446         Reported by Padraig Brady.
93447
93448 2001-09-25  Volker Borchert  <bt@teknon.de>
93449
93450         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93451         `result'.
93452
93453 2001-09-24  Jim Meyering  <meyering@lucent.com>
93454
93455         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93456
93457 2001-09-23  Jim Meyering  <meyering@lucent.com>
93458
93459         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93460         instead of the mere test for existence of mntent.h.  The latter
93461         would get a false-positive on AIX 3.4 systems.
93462         In the outer getmntent if-block, don't die if neither of the getmntent
93463         tests succeeds.  Instead, just fall through and continue with the
93464         remaining tests.
93465
93466 2001-09-23  Jim Meyering  <meyering@lucent.com>
93467
93468         * lib/mountlist.c: Remove useless parentheses in #if directives.
93469         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93470         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93471
93472 2001-09-22  Jim Meyering  <meyering@lucent.com>
93473
93474         * m4/gettext.m4: New file.  From gettext.
93475         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93476         * m4/progtest.m4: Likewise
93477         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93478         * m4/glibc21.m4: Likewise.
93479
93480         * m4/libintl.m4: Remove.  No longer used.
93481
93482 2001-09-22  Jim Meyering  <meyering@lucent.com>
93483
93484         * lib/localcharset.c: Update from latest gettext.
93485         * lib/config.charset: Likewise.
93486
93487 2001-09-20  Jim Meyering  <meyering@lucent.com>
93488
93489         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93490         strtoimax.
93491         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93492         strtoumax.
93493
93494 2001-09-20  Jim Meyering  <meyering@lucent.com>
93495
93496         * lib/xstrtol.c (strtoimax): Guard declaration with
93497         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93498         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93499         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93500         (strtoumax): Likewise, for completeness (it wasn't necessary).
93501
93502 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93503
93504         * lib/strtoimax.c (HAVE_LONG_LONG):
93505         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93506         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93507         to work around bug in IBM C compiler.
93508
93509 2001-09-17  Jim Meyering  <meyering@lucent.com>
93510
93511         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93512         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93513         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93514         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93515         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93516         whenever the right hand side need not be expanded by the shell.
93517
93518 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93519
93520         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93521         library.  It's not correct, as some older glibcs are buggy.
93522         fnmatch wasn't fixed until glibc 2.2.
93523
93524         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93525         special shell magic here.
93526
93527 2001-09-16  Jim Meyering  <meyering@lucent.com>
93528
93529         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93530         * m4/jm-macros.m4: Require it.
93531
93532 2001-09-16  Jim Meyering  <meyering@lucent.com>
93533
93534         * lib/mkdir.c: New file.
93535
93536 2001-09-15  Jim Meyering  <meyering@lucent.com>
93537
93538         * m4/jm-macros.m4: Check for help2man.
93539
93540 2001-09-11  Jim Meyering  <meyering@lucent.com>
93541
93542         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93543         The body, by Paul Eggert, was moved here from configure.in.
93544         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93545
93546 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93547
93548         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93549         (jm_PREREQ): Use it.
93550
93551 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93552
93553         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93554         Use ssize_t, not int, to store result of readlink.
93555         Check for ssize_t overflow as well as size_t overflow,
93556         as POSIX says the result of readlink is implementation-defined
93557         when ssize_t overflows.
93558         Remove unnecessary cast to char*.
93559         Use free+malloc instead of realloc, as the storage doesn't need
93560         to be preserved and it's clearer and can be more efficient that way.
93561         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93562         * lib/xreadlink.h (xreadlink): Update prototype.
93563
93564 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93565
93566         * lib/xgetcwd.c: Revert some of the previous change; intead,
93567         fix the HAVE_GETCWD_NULL code to behave more like the
93568         !HAVE_GETCWD_NULL code used to.
93569
93570         Include "xalloc.h".
93571         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93572         invoke xalloc_die.
93573
93574 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93575
93576         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93577         sys/param.h, as pathmax.h includes them.
93578
93579 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93580
93581         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93582         (jm_PREREQ_XGETCWD): New macro.
93583
93584         * m4/getcwd.m4: New file.
93585
93586 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93587
93588         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93589         like the HAVE_GETCWD_NULL code.
93590         Include pathmax.h if not HAVE_GETCWD.
93591         Do not include xalloc.h.
93592         (INITIAL_BUFFER_SIZE): New symbol.
93593         Do not use xmalloc / xrealloc, since the caller is responsible for
93594         handling errors.  Preserve errno around `free' during failure.
93595         Do not overrun buffer when using getwd.
93596
93597 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93598
93599         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93600         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93601         getcwd (NULL, 0).
93602
93603 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93604
93605         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93606         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93607         spotted by Jim Meyering.
93608
93609 2001-09-03  Jim Meyering  <meyering@lucent.com>
93610
93611         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93612         failure.
93613
93614 2001-09-02  Jim Meyering  <meyering@lucent.com>
93615
93616         * lib/error.c: Update from GNU libc.
93617
93618 2001-09-01  Jim Meyering  <meyering@lucent.com>
93619
93620         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93621         Used by df.
93622
93623 2001-09-01  Jim Meyering  <meyering@lucent.com>
93624
93625         * lib/xreadlink.c: New file.
93626         * lib/xreadlink.h: New file.
93627         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93628         xreadlink.h.
93629
93630         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93631         doesn't conflict with sparc Solaris 7's definition in
93632         /usr/include/sys/int_types.h.
93633
93634         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93635         files.
93636         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93637         and strncasecmp as r-values.  Unixware didn't have declarations.
93638
93639 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93640
93641         * lib/xstrtol.h: Add copyright notice.
93642         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93643         LONGINT_INVALID_SUFFIX_CHAR.
93644
93645 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93646
93647         * lib/xstrtol.c (strtoimax): New decl.
93648
93649 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93650
93651         * lib/xgetcwd.c: Don't include pathmax.h.
93652         Include stdlib.h and unistd.h if available.
93653         Include xalloc.h.
93654         (xmalloc, xstrdup, free): Remove decls.
93655         (xgetcwd): Don't assume sizes fit in unsigned.
93656         Check for overflow when computing sizes.
93657         Simplify reallocation code.
93658
93659 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93660
93661         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93662         a directory's st_size can have an arbitrary value, so the old
93663         usage could waste an arbitrary amount of memory.  All uses
93664         changed.
93665         * lib/savedir.h: Update prototype.
93666
93667 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93668
93669         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93670
93671         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93672         old strtoimax.c.
93673
93674         Also, make the following further changes to make this file's
93675         configuration more similar to that of strtol.c:
93676         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93677         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93678         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93679         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93680         changed to signed values.
93681
93682         And make the following changes as well:
93683         Fix copyright notice, as 1999 was missing.
93684         (verify): New macro.
93685         (strtoimax): Check sizes at compile-time, not run-time.
93686         Prefer strtol to strtoll if both work.
93687         (main): Remove; it was not that useful and was a pain to maintain.
93688
93689         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93690
93691 2001-08-31  Jim Meyering  <meyering@lucent.com>
93692
93693         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93694         Use an initial, malloc'd, buffer of length 128 rather than
93695         a statically allocated one of length 1024.
93696
93697 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93698
93699         Simplify code, partly by assuming autoconf 2.52 semantics.
93700
93701         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93702
93703         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93704         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93705         All uses removed.
93706         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93707         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93708         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93709         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93710         jm_AC_HEADER_INTTYPES_H.
93711         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93712
93713         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93714
93715         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93716         Quote first arg of AC_DEFUN.
93717         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93718         since they are needed to parse the include file even if we need
93719         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93720         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93721         but with opposite signedness.
93722
93723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93724
93725         Merge 'exclude' changes from tar 1.13.22.
93726         This fixes one or two unlikely storage allocation overflow bugs,
93727         but doesn't change user-visible behavior otherwise.
93728
93729 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93730
93731         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93732         (jm_PREREQ_EXCLUDE): New macro.
93733
93734 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93735
93736         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93737         tm to be declared.
93738
93739 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93740
93741         * lib/hash.c: Remove '2001' from copyright notice.
93742
93743 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93744
93745         * lib/full-write.h: New file.
93746         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93747         * lib/full-write.c: Correct credits, as cccp.c no longer
93748         exists and anyway it was so heavily changed from the old cccp
93749         code as to be unrecognizable.  Include full-write.h.
93750         (full_write): Return size_t, with short writes meaning failure.
93751         All callers changed.  This fixes a bug with large buffers
93752         on 64-bit hosts.
93753         * lib/utime.c: Include full-write.h.
93754
93755 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93756
93757         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93758         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93759         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93760         Include if available.
93761         (<xalloc.h>): Include
93762         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93763         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93764         collide with FNM macros.
93765         (struct patopts): New struct.
93766         (struct exclude): Use it, as exclude patterns now come with options.
93767         (new_exclude): Support above changes.
93768         (new_exclude, add_exclude_file):
93769         Initial size must now be a power of two to simplify overflow checking.
93770         (free_exclude, fnmatch_no_wildcards): New function.
93771         (excluded_filename): No longer requires options arg, as the options
93772         are determined by add_exclude.  Now returns bool, not int.
93773         (excluded_filename, add_exclude):
93774         Add support for the fancy new exclusion options.
93775         (add_exclude, add_exclude_file): Now takes int options arg.
93776         Check for arithmetic overflow when computing sizes.
93777         (add_exclude_file): xrealloc might modify errno, so don't
93778         realloc until after errno might be used.
93779
93780         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93781         New macros.
93782         (free_exclude): New decl.
93783         (add_exclude, add_exclude_file): Now takes int options arg.
93784         (excluded_filename): No longer requires options arg, as the options
93785         are determined by add_exclude.  Now returns bool, not int.
93786
93787 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93788
93789         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93790
93791 2001-08-27  Jim Meyering  <meyering@lucent.com>
93792
93793         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93794
93795         * lib/version-etc.c (N_): Remove definition.
93796         Revert most of last change.
93797         Instead, simply don't mark the `Copyright...' string for translation.
93798         Based on advice from Paul Eggert.
93799
93800         * lib/strtoxmax.c: Tweak comment.
93801
93802 2001-08-26  Jim Meyering  <meyering@lucent.com>
93803
93804         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93805
93806         * m4/xstrtoimax.m4: New file.
93807         * m4/xstrtoumax.m4: Add comments explaining why we
93808         AC_REPLACE_FUNCS(strtol).
93809
93810 2001-08-26  Jim Meyering  <meyering@lucent.com>
93811
93812         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93813         of copyright with `%s' so translators don't get an untranslated
93814         message in 2002.
93815         (COPYRIGHT_YEAR): Define.
93816         (version_etc): Use fprintf rather than fputs.
93817         Suggestion from Ulrich Drepper.
93818
93819         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93820
93821         * lib/strtoll.c: New file, from GNU libc.
93822         * lib/xstrtoimax.c: New file.
93823
93824         * lib/xstrtol.h: Add xstrtoimax.
93825         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93826         * lib/strtoimax.c: New file.  Likewise, but first define
93827         STRTOUXMAX_SIGNED.
93828
93829         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93830         ...
93831         * lib/strtoxmax.c: ... then renamed to this.
93832
93833 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93834
93835         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93836         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93837         (jm_AC_TYPE_INTMAX_T): New macro.
93838         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93839
93840         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93841
93842         * m4/longlong.m4: Renamed from ulonglong.m4.
93843         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93844         * m4/uintmax_t.m4: Removed.
93845
93846 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93847
93848         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93849         Port to Solaris 8, where 'sed' requires a space after the 'r'
93850         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93851         Redirect output to $tmp just once.
93852
93853 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93854
93855         * lib/addext.c (<errno.h>): Include.
93856         (errno): Declare if not defined.
93857         (addext): Work correctly when pathconf returns -1 and leaves
93858         errno alone because there is no limit.  Also, work even if
93859         pathconf returns a value greater than SIZE_MAX.
93860
93861 2001-08-12  Jim Meyering  <meyering@lucent.com>
93862
93863         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93864         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93865         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93866         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93867         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93868         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93869         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93870         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93871         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93872         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93873         utime.m4, utimes.m4, xstrtoumax.m4:
93874         Quote the first argument in each use of AC_DEFUN.
93875
93876 2001-08-12  Jim Meyering  <meyering@lucent.com>
93877
93878         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93879         Simply `return getcwd (NULL, 0);'.
93880         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93881         Use 1300 as initial value for length, not PATH_MAX.
93882
93883         * lib/pathmax.h: Clean up cpp syntax.
93884
93885 2001-08-12  Jim Meyering  <meyering@lucent.com>
93886
93887         * lib/gettimeofday.c: New file.
93888         * lib/gtod.h: New file.
93889         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93890
93891 2001-08-05  Jim Meyering  <meyering@lucent.com>
93892
93893         * m4/jm-macros.m4: Require autoconf-2.52.
93894
93895 2001-08-04  Jim Meyering  <meyering@lucent.com>
93896
93897         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93898         stmt, to get in sync with glibc.
93899
93900 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93901
93902         The following changes are from gettext 0.10.39 as maintained by
93903         Bruno Haible.
93904
93905         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93906         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93907         with inverted sense.  All uses changed.
93908
93909         * lib/mbswidth.c: Don't include <limits.h>.
93910         Include <stdlib.h> and <string.h> unconditionally.
93911         (iswcntrl, mbsinit, ISCNTRL): New macros.
93912         (mbsnwidth): Use K&R style function declarations.
93913         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93914         can optimize it when MB_CUR_MAX == 1.
93915         The width of control characters is zero, not 1.
93916
93917 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93918
93919         The following changes are from gettext 0.10.39 as maintained by
93920         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93921
93922         * m4/codeset.m4: Upgrade to serial AM1.
93923         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93924         all uses changed.  Quote first arg of AC_DEFUN.
93925         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93926
93927         * m4/iconv.m4: Upgrade to serial AM2.
93928         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93929         Add --with-libconv-prefix.
93930         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93931         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93932         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93933         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93934         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93935
93936         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93937         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93938         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93939         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93940         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93941         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93942         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93943         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93944         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93945
93946         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93947         string.h any more.
93948
93949         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93950         not the default value.
93951
93952         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93953         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93954         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93955         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93956         Also check for iswcntrl, used for wcwidth fallback.
93957         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93958         to Autoconf 2.13.
93959
93960 2001-08-03  Jim Meyering  <meyering@lucent.com>
93961
93962         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93963         as it was in the original.  Reported by Paul Eggert.
93964
93965 2001-07-16  Jim Meyering  <meyering@lucent.com>
93966
93967         * m4/gettimeofday.m4: New file.
93968         Prompted by a report from Bernhard Baehr.
93969
93970 2001-07-15  Jim Meyering  <meyering@lucent.com>
93971
93972         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93973         stuff. Now it's in ../Makefile.cfg.
93974
93975 2001-07-15  Jim Meyering  <meyering@lucent.com>
93976
93977         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93978         (BUILT_SOURCES): Add unlocked-io.h.
93979         (io_functions): Define.
93980         (unlocked-io.h): New rule.
93981         (DISTCLEANFILES): Add unlocked-io.h.
93982         (all-local): Depend on unlocked-io.h, to ensure it is created.
93983
93984         * lib/unlocked-io.hin: New file
93985
93986         * lib/regex.c: Update from glibc.
93987
93988 2001-07-05  Jim Meyering  <meyering@lucent.com>
93989
93990         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93991         recommendation.
93992         (libfetish_a_SOURCES): Put all .h files here instead.
93993         Remove a thus-exposed (better checks in automake) duplicate and
93994         two unnecessary .h files.
93995
93996 2001-07-04  Jim Meyering  <meyering@lucent.com>
93997
93998         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93999         that generates jm-glibc-io.m4 so that it doesn't trigger any make
94000         distcheck failure.
94001
94002 2001-07-02  Jim Meyering  <meyering@lucent.com>
94003
94004         The following changes were prompted by suggestions from Bruno Haible.
94005
94006         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
94007         is now generated.
94008         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
94009         definition of EXTRA_DIST.
94010         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
94011         ensure that the generated file is created/updated whenever the list
94012         of $(unlocked_functions) is changed.
94013         (jm-glibc-io.m4): New rule.
94014         (unlocked-io.h): New rule -- currently unused.
94015
94016 2001-06-24  Jim Meyering  <meyering@lucent.com>
94017
94018         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
94019         unmatched right bracket, rather than kludging it with an extra,
94020         falsely-matching quote in a comment.  Patch by Akim Demaille.
94021
94022 2001-06-11  Jim Meyering  <meyering@lucent.com>
94023
94024         * lib/regex.c: Update from GNU libc.
94025
94026 2001-05-27  Jim Meyering  <meyering@lucent.com>
94027
94028         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
94029         Check for ut_type in struct utmp.
94030
94031 2001-05-27  Jim Meyering  <meyering@lucent.com>
94032
94033         * lib/readutmp.h (UT_TYPE): Define.
94034
94035 2001-05-24  Jim Meyering  <meyering@lucent.com>
94036
94037         * lib/argmatch.c: Include "quote.h".
94038         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
94039         quote function.  Reported by Göran Uddeborg.
94040
94041 2001-05-22  Jim Meyering  <meyering@lucent.com>
94042
94043         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
94044         now that we use the package-supplied version unconditionally.
94045         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
94046
94047 2001-05-21  Jim Meyering  <meyering@lucent.com>
94048
94049         * m4/regex.m4: Change a couple backticks to single quotes to avoid
94050         shell syntax errors.
94051
94052 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94053
94054         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
94055
94056 2001-05-20  Paul Eggert  <eggert@twinsun.com>
94057
94058         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
94059         Don't bother to check library strftime, since
94060         we'll be using our own my_strftime function anyway.
94061         Define my_strftime instead of strftime.
94062
94063 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
94064
94065         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
94066         which is not yet declared.
94067
94068 2001-05-15  Jim Meyering  <meyering@lucent.com>
94069
94070         * m4/regex.m4: Use proper quoting so brackets appear in the test
94071         program.
94072         Reported by, and with help from, Bruno Haible.
94073
94074 2001-05-13  Jim Meyering  <meyering@lucent.com>
94075
94076         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
94077         undefined.
94078
94079 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94080
94081         dirname code cleanup.  base_name now behaves more compatibly
94082         with POSIX basename when given file names that have trailing
94083         slashes, and similarly for dir_name.  Add new primitives
94084         base_len and dir_len.  Put the directory-name-related decls
94085         into dirname.h.
94086
94087         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
94088         * lib/backupfile.c (base_name): Likewise.
94089         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
94090         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
94091         * lib/makepath.c (strip_trailing_slashes): Likewise.
94092         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
94093         ISSLASH): Likewise.
94094         * lib/rename.c (strip_trailing_slashes): Likewise.
94095         * lib/same.c (base_name): Likewise.
94096         * lib/stripslash.c (ISSLASH): Likewise.
94097
94098         * lib/addext.c: Include <dirname.h> after size_t is defined.
94099         * lib/backupfile.c: Likewise.
94100
94101         * lib/addext.c (addext): Use base_len to trim redundant
94102         trailing slashes instead of doing it ourselves.
94103         But do not trim the last slash if it is not redundant.
94104
94105         * lib/backupfile.c (find_backup_file_name,
94106         max_backup_version): Use base_len instead of rolling it ourselves.
94107         Handle the case of "" and (on DOS) "C:" correctly.
94108
94109         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
94110         needed. Include <string.h>, <dirname.h>.
94111         (base_name): Allow file names ending in slashes, other than names
94112         that are all slashes.  In this case, return the basename followed
94113         by the slashes.  This is more general, and can be used in places
94114         where the original base_name purposely had an assertion failure.
94115         (base_len): New function.
94116
94117         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
94118         Do not include <assert.h>; no longer needed.
94119         Include xalloc.h.
94120         (memrchr): Remove decl.
94121         (dir_name_r): Remove.
94122         (dir_len): Renamed from dirlen.  All callers changed.
94123         Rewrite in terms of base_name, for simplicity and consistency.
94124         (dir_name): Never return NULL.  All callers changed.
94125         Do not include <stdlib.h> in test program; no longer needed.
94126         return 0; is fine for test program.
94127
94128         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
94129         New macros.
94130         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
94131
94132         * lib/path-concat.c (path_concat): Use base_len to compute
94133         base length, not strlen; this means we cannot rely on memcpy
94134         to null-terminate.
94135
94136         * lib/same.c (STREQ): Remove.
94137         (same_name): Handle the case where the basename ends in trailing '/'.
94138
94139         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94140         a slash was stripped.  Do not strip the last slash after a
94141         file system prefix.
94142
94143 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94144
94145         * lib/Makefile.am (libfetish_a_SOURCES):
94146         Add strftime.c, since we now compile it on all hosts.
94147
94148         * lib/strftime.c (my_strftime):
94149         Define to nstrftime if emacs, but only if my_strftime is not defined.
94150         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94151         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94152         Add one more extra argument: a nanoseconds value.
94153         All uses changed.
94154         (ns): New macro.
94155         (my_strftime function): Add %N format.
94156         (emacs_strftimeu): Renamed from emacs_strftime,
94157         with extra ut argument.
94158
94159 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94160
94161         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94162
94163 2001-04-21  Jim Meyering  <meyering@lucent.com>
94164
94165         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94166         doesn't interfere.
94167
94168 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94169
94170         * m4/ftruncate.m4: Check for chsize.
94171         Link with ftruncate.o unconditionally if ftruncate is missing.
94172         This was required when cross-compiling to i586-mingw32msvc.
94173
94174 2001-04-08  Jim Meyering  <meyering@lucent.com>
94175
94176         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94177         recomputed; that's necessary when the offset spans a DST transition.
94178         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94179
94180 2001-04-02  Jim Meyering  <meyering@lucent.com>
94181
94182         * lib/regex.h, regex.c: Update from GNU libc.
94183
94184 2001-03-24  Jim Meyering  <meyering@lucent.com>
94185
94186         * m4/jm-macros.m4: Require autoconf-2.49d.
94187
94188 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94189
94190         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94191
94192 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94193
94194         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94195
94196 2001-03-17  Jim Meyering  <meyering@lucent.com>
94197
94198         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94199         now that the version in autoconf is equivalent.
94200         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94201
94202         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94203         Suggestion from Akim Demaille.
94204
94205         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94206         (jm_PREREQ_TEMPNAME): New function.
94207
94208 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94209
94210         * lib/tempname.c (uint64_t): Define to uintmax_t if
94211         not defined, and if UINT64_MAX is not defined.
94212         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94213         Reported by John David Anglin.
94214
94215 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94216
94217         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94218         resolve alias if codeset is empty.
94219         * lib/config.charset (BeOS): Use wildcard syntax.
94220
94221 2001-03-13  Jim Meyering  <meyering@lucent.com>
94222
94223         * lib/path-concat.c (path_concat)
94224         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94225         concatenating e.g., `C:' and `foo'.
94226         From Bruno Haible.
94227
94228 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94229
94230         * lib/localcharset.c (locale_charset): Don't use
94231         setlocale(LC_CTYPE,NULL). Don't return NULL.
94232         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94233
94234 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94235
94236         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94237         support for DOS/DJGPP.
94238
94239 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94240
94241         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94242         lacks mkstemp.  Compile our own tempname.c if we compile our own
94243         mkstemp.c, as mkstemp relies on tempname.
94244
94245 2001-03-01  Jim Meyering  <meyering@lucent.com>
94246
94247         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94248         AH_VERBATIM really does output its argument verbatim.
94249
94250 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94251
94252         * lib/Makefile.am (libfetish_a_SOURCES):
94253         Add dup-safer.c, fopen-safer.c.
94254         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94255
94256         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94257         * lib/unistd-safer.h: New files.
94258
94259 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94260
94261         The mkstemp replacement is taken from glibc 2.2.2, with some
94262         portability fixes for use outside glibc, as follows:
94263
94264         * lib/tempname.c (struct_stat64): New macro.
94265         (direxists, __gen_tempname): Use it.
94266         This avoids a portability problem with Solaris 8.
94267
94268         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94269         (<stddef.h>, <stdint.h>, <string.h>):
94270         Include only if STDC_HEADERS || _LIBC.
94271         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94272         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94273         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94274         (__set_errno): Define this macro if <errno.h> doesn't.
94275         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94276         Define these macros if <stdio.h> doesn't.
94277         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94278         Define these macros if <sys/stat.h>
94279         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94280         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94281         __xstat64): Define if not _LIBC.
94282         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94283         (__gen_tempname): Invoke gettimeofday only if
94284         HAVE_GETTIMEOFDAY || _LIBC;
94285         otherwise, fall back on plain "time".
94286         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94287
94288         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94289
94290         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94291
94292 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94293
94294         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94295
94296 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94297
94298         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94299         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94300         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94301         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94302
94303 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94304
94305         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94306         Remove workaround macros for hosts that have mbrtowc but not
94307         mbstate_t, as we now insist on proper declarations for both
94308         before using mbrtowc.
94309
94310 2001-02-17  Jim Meyering  <meyering@lucent.com>
94311
94312         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94313         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94314         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94315         UnixWare 7.1.1.
94316
94317         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94318         rather than AC_CACHE_VAL.
94319
94320 2001-02-17  Jim Meyering  <meyering@lucent.com>
94321
94322         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94323         around included file name.
94324
94325         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94326
94327         * lib/strftime.c: Update from GNU libc (the only changes were to
94328         comments).
94329
94330 2001-02-17  Jim Meyering  <meyering@lucent.com>
94331
94332         * lib/regex.c: Update from libc.
94333
94334 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94335
94336         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94337         clash.
94338
94339 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94340
94341         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94342         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94343         Reported by Mark Hounschell via Paul Eggert.
94344
94345 2001-02-07  Jim Meyering  <meyering@lucent.com>
94346
94347         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94348
94349 2001-02-05  Jim Meyering  <meyering@lucent.com>
94350
94351         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94352         it includes the patch required for `large file' support with at least
94353         HP-UX's 10.20 /bin/cc.
94354
94355 2001-02-03  Jim Meyering  <meyering@lucent.com>
94356
94357         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94358         AS_IF, now that it works once again (mysteriously).
94359         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94360
94361 2001-01-30  Jim Meyering  <meyering@lucent.com>
94362
94363         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94364         * m4/chown.m4: Rename conftestchown to conftest.chown.
94365         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94366         s/conftestdir2/conftest.d2/.
94367         * m4/utimes.m4: s/conftestdata/conftest.data/
94368         Inspired by Pavel Roskin's change in autoconf.
94369
94370 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94371
94372         * lib/config.charset: Update for FreeBSD 4.2.
94373
94374 2001-01-27  Jim Meyering  <meyering@lucent.com>
94375
94376         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94377         a use of AS_IF.
94378         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94379
94380 2001-01-26  Jim Meyering  <meyering@lucent.com>
94381
94382         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94383         quotearg.c includes it.
94384
94385 2001-01-26  Jim Meyering  <meyering@lucent.com>
94386
94387         * lib/quotearg.c: Include stddef.h.
94388         * lib/quote.c: Include stddef.h.
94389         Reported by Axel Kittenberger.
94390
94391         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94392         line in double quotes so that it evokes a better diagnostic.
94393         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94394         Reported by Axel Kittenberger.
94395
94396 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94397
94398         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94399         as if it was a `charset'.
94400
94401 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94402
94403         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94404         has const.
94405
94406 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94407
94408         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94409         to avoid a warning.  Add back 'const' to inptr.
94410
94411 2001-01-20  Jim Meyering  <meyering@lucent.com>
94412
94413         Be sure that headers are checked before used in code compiled
94414         for the type checks.
94415         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94416         In place of that, invoke jm_CHECK_ALL_TYPES.
94417         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94418         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94419         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94420         The check for ssize_t was mistakenly run before the test for unistd.h.
94421
94422         The configure-time check for stdbool.h was missing.
94423         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94424         (jm_PREREQ_HASH): New function.
94425
94426 2001-01-17  Jim Meyering  <meyering@lucent.com>
94427
94428         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94429         for autoconf-2.49c.
94430         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94431
94432 2001-01-16  Jim Meyering  <meyering@lucent.com>
94433
94434         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94435         From Bruno Haible.
94436
94437 2001-01-14  Jim Meyering  <meyering@lucent.com>
94438
94439         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94440         foo and bar.  Create conftestdir/ in the script, not in the C code.
94441         Remove directories in the script, not in the C code.
94442         Remove conftestdir{,2} before trying to create the directory.
94443         Make the entire configure script fail if the mkdir fails.
94444
94445 2001-01-14  Jim Meyering  <meyering@lucent.com>
94446
94447         * lib/rename.c: New file.  From Volker Borchert.
94448         Include stdlib.h, string.h or strings.h, and xalloc.h.
94449         Use strip_trailing_slashes rather than open-coding it.
94450
94451 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94452
94453         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94454
94455 2001-01-03  Jim Meyering  <meyering@lucent.com>
94456
94457         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94458         of local `inptr' to avoid warning with some system declarations of
94459         iconv.
94460
94461 2001-01-02  Volker Borchert  <bt@teknon.de>
94462
94463         * m4/rename.m4: New file.
94464         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94465
94466 2001-01-01  Jim Meyering  <meyering@lucent.com>
94467
94468         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94469         even on systems with utmpx.h.  It's necessary for the declaration of
94470         utmp's ut_user member.  Reported by Andreas Jaeger.
94471
94472         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94473         available. They are required for the declarations of getgrgid and
94474         getpwuid resp.
94475         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94476         Reported by Andreas Jaeger.
94477
94478 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94479
94480         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94481         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94482         so `make install' also works in VPATH builds.
94483
94484 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94485
94486         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94487         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94488         can be used in subdirectories.
94489
94490 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94491
94492         * lib/modechange.c: Do not assume that mode_t uses the
94493         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94494         the other-execute bit of FOO even if S_IXOTH != 1.
94495
94496         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94497         WOTH, XOTH, ALLM): New macros.
94498         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94499          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94500         Use them.
94501         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94502         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94503         (mode_compile):
94504         No need to use uintmax_t; unsigned long is long enough.
94505         Don't bother to get suffix since we don't use it.
94506
94507 2000-12-26  Jim Meyering  <meyering@lucent.com>
94508
94509         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94510         better with autoheader.
94511
94512 2000-12-24  Jim Meyering  <meyering@lucent.com>
94513
94514         * lib/hash.c (is_prime): Return explicit boolean values.
94515         (hash_get_first): Return NULL to appease Irix5.6's 89.
94516         Reported by Nelson Beebe.
94517
94518 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94519
94520         * lib/localcharset.c (locale_charset): Add support for Win32.
94521
94522 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94523
94524         * lib/physmem.h, lib/physmem.c: New files.
94525
94526         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94527         (noinst_HEADERS): Add physmem.h.
94528
94529         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94530         't' for compatibility with Solaris 8 sort.
94531
94532 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94533
94534         * lib/config.charset: Add support for BeOS.
94535
94536 2000-12-17  Jim Meyering  <meyering@lucent.com>
94537
94538         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94539         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94540
94541 2000-12-16  Jim Meyering  <meyering@lucent.com>
94542
94543         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94544         N and M) would have treated it like `chown N:N FILE'.
94545
94546         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94547
94548 2000-12-16  Jim Meyering  <meyering@lucent.com>
94549
94550         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94551         SHELLS_FILE to a file name that's useful on djgpp systems.
94552         Include stdlib.h.
94553         (ADDITIONAL_DEFAULT_SHELLS): Define.
94554         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94555         Based mostly on a patch from Prashant TR.
94556
94557 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94558
94559         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94560         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94561         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94562
94563 2000-12-08  Andreas Schwab  <schwab@suse.de>
94564
94565         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94566         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94567
94568 2000-12-07  Jim Meyering  <meyering@lucent.com>
94569
94570         * lib/stripslash.c (ISSLASH): Define.
94571         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94572         `/'.
94573         From Prashant TR.
94574
94575         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94576         (dir_name_r): Declare this function as static.
94577         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94578         manifest itself on a name containing a mix of slashes and
94579         backslashes.
94580         Make this function work with names starting with a DOS-style
94581         drive letter and colon prefix.
94582         (dir_name): Append `.' if necessary.
94583         Based mostly on patches from Prashant TR and Eli Zaretskii.
94584
94585         * lib/dirname.h (dir_name_r): Remove prototype.
94586
94587 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94588
94589         * m4/off_t-format.m4: Remove this file.
94590         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94591
94592 2000-12-06  Jim Meyering  <meyering@lucent.com>
94593
94594         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94595         replacement strtoull, we may well need the replacement strtoul, too.
94596         Check for declarations of strtoul and strtoull.
94597         Check for strtol.  Mainly as a cue to cause automake to include
94598         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94599         Check for limits.h -- strtol.c needs it.
94600
94601 2000-12-05  Jim Meyering  <meyering@lucent.com>
94602
94603         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94604
94605 2000-12-04  Jim Meyering  <meyering@lucent.com>
94606
94607         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94608         Also include memory.h, stdlib.h, unistd.h if appropriate.
94609         Reported by Andreas Jaeger (conflicting declaration of malloc).
94610
94611 2000-12-02  Jim Meyering  <meyering@lucent.com>
94612
94613         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94614         * m4/jm-macros.m4 (jm_MACROS): require it.
94615
94616 2000-12-02  Jim Meyering  <meyering@lucent.com>
94617
94618         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94619
94620 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94621
94622         * lib/memrchr.c: Include <config.h> before any system include file.
94623
94624 2000-11-30  Jim Meyering  <meyering@lucent.com>
94625
94626         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94627
94628 2000-11-30  Jim Meyering  <meyering@lucent.com>
94629
94630         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94631
94632 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94633
94634         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94635
94636 2000-11-26  Jim Meyering  <meyering@lucent.com>
94637
94638         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94639
94640 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94641
94642         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94643         size of (size_t) -1; it's not portable.
94644
94645 2000-11-17  Jim Meyering  <meyering@lucent.com>
94646
94647         * lib/strstr.c: Update from GNU libc.
94648
94649 2000-11-17  Akim Demaille  <akim@epita.fr>
94650
94651         * lib/obstack.h: Formatting changes.
94652         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94653         prevent type checking.
94654         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94655         cast the value to (void *): assigning a `foo *' to a `void *'
94656         variable is valid.
94657         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94658
94659 2000-11-16  Jim Meyering  <meyering@lucent.com>
94660
94661         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94662
94663 2000-11-11  Jim Meyering  <meyering@lucent.com>
94664
94665         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94666
94667 2000-11-10  Jim Meyering  <meyering@lucent.com>
94668
94669         * lib/obstack.h: Update from GNU libc.
94670         * lib/obstack.c: Likewise.
94671
94672 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94673
94674         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94675
94676 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94677
94678         * lib/getusershell.c (setusershell): Use rewind rather than
94679         fseek/fseeko, to avoid configuration hassles with fseeko.
94680         Don't bother opening SHELLS_FILE if shellstream is NULL;
94681         it's not necessary.
94682
94683 2000-11-05  Jim Meyering  <meyering@lucent.com>
94684
94685         * lib/makepath.h (make_dir): Declare.
94686         * lib/makepath.c (make_dir): Remove `static' attribute.
94687         Tweak a comment.
94688
94689 2000-11-04  Jim Meyering  <meyering@lucent.com>
94690
94691         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94692
94693 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94694
94695         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94696         last one in a bucket, advance to the next bucket.
94697
94698 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94699
94700         * lib/fnmatch.c: Do not comment out all the code if we are using
94701         the GNU C library, because in some cases we are replacing buggy
94702         code in the GNU C library itself.
94703
94704 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94705
94706         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94707         (regex_compile): Catch bogus \(\1\).
94708
94709 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94710
94711         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94712         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94713         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94714
94715 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94716
94717         * lib/error.h, getline.h, modechange.h:
94718         Remove "2000" from Copyright line, as the file hasn't been
94719         changed this year other than in the copyright notice.
94720
94721         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94722         was changed this year.
94723
94724 2000-10-29  Jim Meyering  <meyering@lucent.com>
94725
94726         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94727         renaming.
94728         * m4/ls-mntd-fs.m4: Likewise
94729
94730 2000-10-29  Jim Meyering  <meyering@lucent.com>
94731
94732         * lib/xstat.in: Fix grammar in comment.
94733
94734 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94735
94736         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94737         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94738         doesn't define __restrict_arr.
94739
94740 2000-10-28  Jim Meyering  <meyering@lucent.com>
94741
94742         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94743         (jm_PREREQ_MEMCHR): New function.
94744
94745 2000-10-28  Jim Meyering  <meyering@lucent.com>
94746
94747         * lib/memchr.c: Update from libc.
94748         Adjust for portability:
94749         [HAVE_STDLIB_H]: Include stdlib.h.
94750         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94751         Undef __memchr, too.
94752         [!weak_alias]: Define __memchr to memchr.
94753
94754         * lib/regex.c: Update from libc.
94755         * lib/regex.h: Likewise.
94756         * lib/getopt1.c: Likewise.
94757         * lib/memcmp.c: Likewise.
94758
94759         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94760         Avoid using fseek, when possible -- it's broken by design.
94761         Patch by Ulrich Drepper.
94762
94763 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94764
94765         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94766         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94767         Giving in to popular pressure to shut up the compiler with casts.
94768
94769 2000-10-26  Jim Meyering  <meyering@lucent.com>
94770
94771         * lib/strftime.c: Update from libc.
94772
94773 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94774
94775         * regex.c: More `unsigned char' -> `re_char' changes.
94776         Also change several `int' into `re_wchar_t'.
94777         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94778         (PUSH_FAILURE_POINTER): Don't cast any more.
94779         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94780         We want GCC to complain, since this piece of code makes
94781         re_match non-reentrant, which *should* be fixed.
94782         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94783         (EXTEND_BUFFER): Use RETALLOC.
94784         (SET_LIST_BIT): Don't cast.
94785         (re_wchar_t): New type.
94786         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94787         that those two functions will always properly return.
94788         (IMMEDIATE_QUIT_CHECK): Cast to void.
94789         (analyse_first): Use recursion rather than an explicit stack.
94790         (re_compile_fastmap): Can't fail anymore.
94791         (re_search_2): Don't check re_compile_fastmap for failure.
94792         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94793         Now also sets the new value (passed in a new argument).
94794         (re_match_2_internal): Use it.
94795         Also, use a new var `reg' of type size_t when looping through regs
94796         rather than reuse the inappropriate `mcnt'.
94797
94798 2000-10-25  Jim Meyering  <meyering@lucent.com>
94799
94800         * lib/obstack.c: Update from libc.
94801
94802 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94803
94804         * regex.c (regex_compile): Change the way of handling a range from
94805         a char less than 256 to a char not less than 256.
94806
94807 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94808
94809         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94810         NT-Emacs only.
94811         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94812         so that re_search functions only quit when callers expect them to.
94813
94814 2000-10-23  Jim Meyering  <meyering@lucent.com>
94815
94816         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94817         wrong.  That set_locale call must not have any side effects.
94818         From Paul Eggert.
94819
94820 2000-10-22  Jim Meyering  <meyering@lucent.com>
94821
94822         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94823         [CYCLIC]: Remove now-unused definition.
94824
94825         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94826         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94827         Suggestion from Ulrich Drepper.
94828
94829 2000-10-21  Jim Meyering  <meyering@lucent.com>
94830
94831         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94832         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94833         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94834
94835 2000-10-21  Jim Meyering  <meyering@lucent.com>
94836
94837         * lib/dirname.c (memrchr): Declare if necessary.
94838         (dir_name): Remove the restriction that there be no
94839         trailing slashes.  Now, this code skips past them, effectively
94840         ignoring them.
94841         [TEST_DIRNAME] (main): New unit tests.
94842
94843         * lib/memrchr.c: New file from GNU libc.
94844         Undef __memrchr, too.
94845         [!weak_alias]: Define __memrchr to memrchr.
94846         Guard weak_alias use with `#ifdef weak_alias'.
94847
94848 2000-10-21  Jim Meyering  <meyering@lucent.com>
94849
94850         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94851         (dir_name): Use dir_name_r.
94852         * lib/dirname.h (dir_name_r): Declare it.
94853
94854 2000-10-17  Jim Meyering  <meyering@lucent.com>
94855
94856         * lib/quote.h (PARAMS): Define and use.
94857         Reported by Akim Demaille.
94858
94859         * lib/getopt.c: Update from libc.
94860
94861 2000-10-16  Jim Meyering  <meyering@lucent.com>
94862
94863         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94864         setlocale.
94865         From Jan Fedak.
94866
94867 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94868
94869         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94870
94871 2000-09-25  Jim Meyering  <meyering@lucent.com>
94872
94873         * lib/md5.h (rol): Define (from GnuPG).
94874
94875         * lib/sha.c: Give credit (GnuPG) where due.
94876         (M): Use rol rather than open-coding it.
94877         Add a FIXME comment.
94878
94879 2000-09-21  Jim Meyering  <meyering@lucent.com>
94880
94881         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94882         Reported by Michael Stone.
94883
94884 2000-09-20  Jim Meyering  <meyering@lucent.com>
94885
94886         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94887         (noinst_HEADERS): Add sha.h.
94888         Based on code from Scott G. Miller and from GnuPG.
94889
94890 2000-09-18  Jim Meyering  <meyering@lucent.com>
94891
94892         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94893         LIBS. Otherwise, everyone ends up linking with -lelf for some
94894         configurations.
94895         Reported by Mike Stone.
94896
94897 2000-09-15  Jim Meyering  <meyering@lucent.com>
94898
94899         * lib/regex.c: Update from libc.
94900
94901 2000-09-10  Jim Meyering  <meyering@lucent.com>
94902
94903         * lib/getopt.c (_getopt_internal): Update from glibc.
94904
94905 2000-09-09  Jim Meyering  <meyering@lucent.com>
94906
94907         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94908         think it should be used as a general replacement for isascii.
94909         * lib/fnmatch.c: Likewise.
94910         * lib/mbswidth.c: Likewise
94911         * lib/regex.c: Likewise.
94912
94913         Don't use atoi.
94914         * lib/userspec.c: Include sys/param.h and limits.h.
94915         Include xstrtol.h.
94916         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94917         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94918         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94919         UID, GID.  Check range.
94920
94921 2000-09-06  Jim Meyering  <meyering@lucent.com>
94922
94923         * lib/getopt.c (_getopt_internal): Update from glibc.
94924
94925 2000-08-30  Jim Meyering  <meyering@lucent.com>
94926
94927         * lib/strftime.c: Merge in changes from GNU libc.
94928
94929 2000-08-26  Jim Meyering  <meyering@lucent.com>
94930
94931         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94932         * m4/fpending.m4: New file.
94933
94934 2000-08-26  Jim Meyering  <meyering@lucent.com>
94935
94936         * lib/closeout.c: Include "__fpending.h".
94937         (close_stdout_status): Return right away if there's nothing to flush.
94938
94939         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94940         * lib/__fpending.c: New file.
94941         * lib/__fpending.h: New file.
94942
94943 2000-08-20  Jim Meyering  <meyering@lucent.com>
94944
94945         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94946         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94947         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94948
94949 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94950
94951         Improve fileutils installation on systems where running
94952         programs (like install) can't be unlinked.
94953         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94954         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94955
94956 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94957
94958         Standardize on "memory exhausted" instead of "Memory exhausted"
94959         or "virtual memory exhausted".
94960         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94961         "virtual memory exhausted".
94962         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94963         our own message.
94964         * lib/userspec.c (parse_user_spec): Likewise.
94965         * lib/bumpalloc.h: comment fix
94966         * lib/same.c, userspec.c: Include xalloc.h.
94967
94968         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94969         not char *const and pointing to a constant array.
94970         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94971         (xrealloc): Comment fix.
94972
94973         * lib/userspec.c (parse_user_spec):
94974         Don't translate a message until just before returning,
94975         to avoid unnecessary translation.
94976
94977 2000-08-07  Jim Meyering  <meyering@lucent.com>
94978
94979         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94980         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94981         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94982         getgroups.c, gethostname.c, getopt.h, group-member.c,
94983         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94984         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94985         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94986         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94987         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94988         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94989         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94990         yesno.c: Back out Copyright date changes for each file with no change
94991         this year.  This eases coordination with other programs using the same
94992         source code modules.  From Paul Eggert.
94993
94994 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94995
94996         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94997         not char, for compatibility with glibc 2.1.3 strftime.c.
94998
94999 2000-08-03  Greg McGary  <greg@mcgary.org>
95000
95001         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
95002         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
95003         (EXTEND_BUFFER): Use them.
95004
95005 2000-08-01  Jim Meyering  <meyering@lucent.com>
95006
95007         * lib/dirname.c (ISSLASH): Define.
95008         (BACKSLASH_IS_PATH_SEPARATOR): Define.
95009         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
95010         both `\' and `/' may be use as path separators.
95011         Based on a patch from Prashant TR.
95012
95013 2000-07-31  Paul Eggert  <eggert@twinsun.com>
95014
95015         * lib/quotearg.c (quotearg_n_options): Don't make the initial
95016         slot vector a constant, since it might get modified.
95017
95018 2000-07-31  Jim Meyering  <meyering@lucent.com>
95019
95020         * lib/xmalloc.c: Use `virtual memory exhausted', not
95021         `Memory exhausted'.
95022         * lib/obstack.c (print_and_abort): Likewise.
95023
95024 2000-07-30  Paul Eggert  <eggert@twinsun.com>
95025
95026         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
95027         buffer, so that the caller can always quote one small
95028         component of a "memory exhausted" message in slot 0.
95029         From a suggestion by Jim Meyering.
95030
95031 2000-07-30  Jim Meyering  <meyering@lucent.com>
95032
95033         * lib/makepath.c (make_path): Quote the other instance, too.
95034
95035         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
95036         (STATIC_BUF_SIZE): Define.
95037         (quotearg_n_options): Use only statically allocated storage when
95038         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
95039         than STATIC_BUF_SIZE.
95040
95041 2000-07-29  Jim Meyering  <meyering@lucent.com>
95042
95043         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
95044         * lib/dirname.c (dir_name): Likewise.
95045
95046         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
95047         `/'.
95048
95049         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
95050         (dir_name): Assert that there are no trailing slashes.
95051
95052 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
95053
95054         * lib/mbswidth.h (mbswidth): Add a flags argument.
95055         (mbswidth): New declaration.
95056         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
95057         * lib/mbswidth.c (mbswidth): Add a flags argument.
95058         (mbsnwidth): New function.
95059
95060 2000-07-24  Jim Meyering  <meyering@lucent.com>
95061
95062         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
95063
95064 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95065
95066         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
95067
95068 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95069
95070         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
95071         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
95072         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
95073         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
95074         invoke multibyte primitives.
95075
95076 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95077
95078         * lib/quotearg.c:
95079         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
95080         so that mbstate_t is always defined.
95081
95082         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
95083         be 1 in at least one GCC installation, and this configuration
95084         error is likely to be common.  Ignoring MB_LEN_MAX hurts
95085         performance on hosts that have mbrtowc but have only unibyte
95086         locales, but I assume these hosts are rare.
95087
95088 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95089
95090         * lib/mbswidth.c (_XOPEN_SOURCE):
95091         Don't define; this causes problems on Solaris 7.
95092         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
95093
95094 2000-07-23  Jim Meyering  <meyering@lucent.com>
95095
95096         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
95097         too: getgrgid, getpwuid, getuid.
95098
95099 2000-07-23  Jim Meyering  <meyering@lucent.com>
95100
95101         * lib/basename.c (base_name): Add an assertion.
95102
95103 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
95104
95105         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
95106         shadow its mbsinit function.
95107
95108 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95109
95110         * lib/mbswidth.h: New file.
95111         * lib/mbswidth.c: New file.
95112         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
95113         (noinst_HEADERS): Add mbswidth.h.
95114
95115 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95116
95117         * lib/config.charset: Add support for FreeBSD. Improve support for
95118         HP-UX and IRIX 6.
95119
95120 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
95121
95122         * m4/mbswidth.m4: New file.
95123         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
95124
95125 2000-07-15  Jim Meyering  <meyering@lucent.com>
95126
95127         * lib/makepath.c: Include quote.h.
95128         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
95129         corresponding argument in a `quote (...)' call.
95130         Give better diagnostics.
95131
95132         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95133         (noinst_HEADERS): Add quote.h.
95134
95135         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95136         from tar's src/misc.c.
95137         * lib/quote.h: New file.  Prototypes for same.
95138
95139 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95140
95141         From a suggestion by Bruno Haible.
95142         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95143         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95144         to decide whether to define the BeOS workaround macro;
95145         this adjusts to the change to AC_MBSTATE_T.
95146
95147 2000-07-14  Jim Meyering  <meyering@lucent.com>
95148
95149         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95150         jm_AC_TYPE_UINTMAX_T.
95151
95152 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95153
95154         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95155
95156         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95157         quotearg_buffer_restyled): Add support for
95158         clocale_quoting_style.  Undo previous change to
95159         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95160         and "{RIGHT QUOTATION MARK}" msgids.
95161
95162 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95163
95164         From a suggestion by Bruno Haible.
95165         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95166         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95167         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95168         and mbstate_t, to a single-part test that simply defines mbstate_t.
95169         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95170         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95171
95172 2000-07-10  Jim Meyering  <meyering@lucent.com>
95173
95174         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95175
95176         * m4/gnu-source.m4: Output to confdefs.h directly.
95177         Suggestion from Akim Demaille.
95178
95179 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95180
95181         The old behavior of quoting `like this' doesn't look good with
95182         newer, ISO-style fonts.  See:
95183         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95184
95185         Instead, quote "like this" by default.  Let the translator
95186         tailor the locale-specific quoting behavior by providing
95187         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95188
95189         * lib/quotearg.c (N_): New macro.
95190         (gettext_default): New function.
95191         (quotearg_buffer_restyled): Use
95192         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95193         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95194
95195 2000-07-09  Jim Meyering  <meyering@lucent.com>
95196
95197         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95198         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95199
95200         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95201         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95202
95203 2000-07-09  Jim Meyering  <meyering@lucent.com>
95204
95205         * lib/Most files: Update copyright dates to include 2000.
95206
95207 2000-07-08  Jim Meyering  <meyering@lucent.com>
95208
95209         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95210         if not defined.
95211         (xgethostname): Remove now-unnecessary #ifdef.
95212         Move declaration of `err' into loop where it's used.
95213
95214 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95215         and Bruno Haible  <haible@clisp.cons.org>
95216
95217         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95218         only if the test for an object-type mbstate_t fails.  This
95219         prevents us from mistakenly reporting that mbstate_t is a
95220         system object type after we "#define mbstate_t int" to work
95221         around its lack.
95222
95223 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95224         and Bruno Haible  <haible@clisp.cons.org>
95225
95226         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95227
95228 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95229
95230         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95231         to strerror_r.
95232         Include <ctype.h> for use of isalpha.
95233
95234 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95235
95236         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95237         by allocating a larger buffer. Test the gethostname return value for
95238         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95239         returns an error and ENAMETOOLONG isn't defined.
95240
95241 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95242
95243         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95244         dimension.
95245
95246 2000-07-04  Jim Meyering  <meyering@lucent.com>
95247
95248         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95249         of the deprecated AC_CHECKING.
95250
95251 2000-07-04  Jim Meyering  <meyering@lucent.com>
95252
95253         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95254         Reported by Bruno Haible.
95255
95256 2000-07-04  Jim Meyering  <meyering@lucent.com>
95257
95258         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95259         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95260         lacks mbrtowc.
95261
95262 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95263
95264         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95265         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95266
95267 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95268         and Bruno Haible  <haible@clisp.cons.org>
95269
95270         * lib/quotearg.c (mbrtowc):
95271         Assign to *pwc, and return 1 only if result is nonzero.
95272         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95273
95274 2000-07-03  Jim Meyering  <meyering@lucent.com>
95275
95276         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95277
95278 2000-07-03  Jim Meyering  <meyering@lucent.com>
95279
95280         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95281         This is necessary to get a definition of e.g., UTMP_FILE on
95282         HP-UX 10.20.
95283         From Bob Proulx.
95284
95285 2000-07-02  Jim Meyering  <meyering@lucent.com>
95286
95287         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95288
95289         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95290         AC_LIBOBJ(function_name).
95291         * m4/chown.m4: Likewise.
95292         * m4/fnmatch.m4: Likewise.
95293         * m4/ftruncate.m4: Likewise.
95294         * m4/getgroups.m4: Likewise.
95295         * m4/getline.m4: Likewise.
95296         * m4/group-member.m4: Likewise.
95297         * m4/jm-macros.m4: Likewise.
95298         * m4/lstat.m4: Likewise.
95299         * m4/malloc.m4: Likewise.
95300         * m4/memcmp.m4: Likewise.
95301         * m4/nanosleep.m4: Likewise.
95302         * m4/putenv.m4: Likewise.
95303         * m4/realloc.m4: Likewise.
95304         * m4/regex.m4: Likewise.
95305         * m4/stat.m4: Likewise.
95306         * m4/strftime.m4: Likewise.
95307
95308 2000-07-02  Jim Meyering  <meyering@lucent.com>
95309
95310         * lib/quotearg.c (mbstate_t): Don't define here.
95311
95312 2000-07-02  Jim Meyering  <meyering@lucent.com>
95313
95314         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95315
95316 2000-07-01  Jim Meyering  <meyering@lucent.com>
95317
95318         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95319
95320 2000-07-01  Jim Meyering  <meyering@lucent.com>
95321
95322         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95323         problem.
95324
95325 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95326
95327         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95328         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95329
95330 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95331
95332         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95333         per change in ../m4/ls-mntd-fs.m4.
95334         (read_filesystem_list): Ignore symbolic links.
95335
95336 2000-06-29  Jim Meyering  <meyering@lucent.com>
95337
95338         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95339         for declaration of strcmp.
95340
95341         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95342
95343         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95344         Avoid warning by casting result to `char *' to remove `const'.
95345
95346 2000-06-28  Jim Meyering  <meyering@lucent.com>
95347
95348         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95349         included by quotearg.c, for which we perform this test.  From
95350         Bruno Haible.
95351
95352 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95353
95354         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95355         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95356         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95357
95358 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95359
95360         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95361
95362 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95363
95364         savedir now sets errno on failure and invokes xmalloc to get memory.
95365         Fix a couple of other minor bugs while we're at it.
95366
95367         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95368         (NAMLEN): Remove macro.
95369         (malloc, realloc): Remove decls.
95370         (stpcpy): Likewise.
95371         ("xalloc.h"): Include.
95372         (NAME_SIZE_DEFAULT): New macro.
95373         (savedir): Use xmalloc / xrealloc to allocate memory.
95374         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95375         Skip "" directory entries.
95376         Use strlen to calculate directory entry length, since the old method
95377         is rarely used these days and isn't worth supporting.
95378         Don't use a pointer after freeing it.
95379         Check for integer overflow when calculating allocation size.
95380         Use memcpy to copy entries, instead of stpcpy.
95381         Set errno properly when returning NULL.
95382         Check for readdir error.
95383
95384 2000-06-26  Jim Meyering  <meyering@lucent.com>
95385
95386         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95387
95388 2000-06-25  Jim Meyering  <meyering@lucent.com>
95389
95390         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95391         Linux header bug when _XOPEN_SOURCE is defined to 500.
95392
95393 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95394
95395         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95396         deficiency.
95397
95398 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95399
95400         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95401         Include xalloc.h.
95402         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95403
95404 2000-06-24  Jim Meyering  <meyering@lucent.com>
95405
95406         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95407         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95408         for which strerror does return char*, but which lacks a conveniently
95409         accessible declaration of the function.  If the compile-test says
95410         strerror_r doesn't work, then resort to a `run'-test that works on
95411         BeOS and segfaults on DEC Unix.
95412
95413 2000-06-24  Jim Meyering  <meyering@lucent.com>
95414
95415         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95416
95417 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95418
95419         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95420         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95421
95422 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95423
95424         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95425         (mbrtowc, mbstate_t): Define substitutes if
95426         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95427         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95428         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95429
95430 2000-06-23  Jim Meyering  <meyering@lucent.com>
95431
95432         * m4/afs.m4: Add missing AC_MSG_RESULT.
95433         Reported by Bruno Haible.
95434
95435         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95436         Suggestion from Bruno Haible.
95437
95438 2000-06-23  Jim Meyering  <meyering@lucent.com>
95439
95440         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95441
95442 2000-06-21  Jim Meyering  <meyering@lucent.com>
95443
95444         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95445
95446 2000-06-21  Jim Meyering  <meyering@lucent.com>
95447
95448         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95449         (noinst_HEADERS): Add getstr.h.
95450
95451         * lib/getline.c (getstr): Move into a separate file.
95452         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95453         the following changes: new parameter, delim2; both delim[12]
95454         parameters have type `int', not `char'.  The latter would lose
95455         with 8-bit delimiters.
95456         * lib/getstr.h: New file.
95457
95458 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95459
95460         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95461         than 1024, return a memory chunk of least possible size, instead
95462         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95463         Use free/xmalloc instead of xrealloc to avoid copying for very long
95464         paths.
95465
95466 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95467
95468         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95469         the empty string.
95470
95471 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95472
95473         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95474         address, not strdup.  Include <stdlib.h> and don't declare free().
95475
95476 2000-06-19  Jim Meyering  <meyering@lucent.com>
95477
95478         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95479
95480 2000-06-18  Jim Meyering  <meyering@lucent.com>
95481
95482         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95483
95484         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95485         `checking whether...' message to be consistent with that of the
95486         lstat test.
95487
95488 2000-06-18  Jim Meyering  <meyering@lucent.com>
95489
95490         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95491         Besides, these days every porting target provides a mkdir function.
95492
95493         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95494         needed. (this snippet comes from src/system.h).
95495
95496 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95497
95498         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95499
95500 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95501
95502         * lib/human.c (adjust_value): New function.
95503         (human_readable_inexact): Apply rounding style even when
95504         printing approximate values.
95505
95506 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95507
95508         * lib/human.c (human_readable_inexact): Allow an input block
95509         size that is not a multiple of the output block size, and vice versa.
95510         Reported by Piergiorgio Sartor.
95511
95512 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95513
95514         * lib/getdate.y (get_date): Apply relative times after time
95515         zone indicator, not before.  Reported by Todd A. Jacobs.
95516
95517 2000-06-13  Jim Meyering  <meyering@lucent.com>
95518
95519         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95520
95521         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95522
95523 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95524
95525         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95526
95527 2000-06-12  Jim Meyering  <meyering@lucent.com>
95528
95529         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95530         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95531         optional argument.
95532         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95533         the optional argument, `lib'.
95534
95535 2000-06-08  Jim Meyering  <meyering@lucent.com>
95536
95537         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95538
95539 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95540
95541         Rewrite largefile configuration so that we don't need to run
95542         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95543         AC_CANONICAL_HOST in configure.in -- jmm]
95544
95545         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95546         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95547         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95548         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95549         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95550         All uses changed.
95551         Instead of inspecting the output of getconf, try to compile the
95552         test program without and with the macro definition.
95553         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95554         for getconf.  Instead, check for the needed flags by compiling
95555         test programs.
95556
95557 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95558
95559         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95560
95561 2000-06-04  Jim Meyering  <meyering@lucent.com>
95562
95563         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95564         SunOS 4.1.4 for which gid_t is an unsigned type.
95565
95566 2000-06-03  Jim Meyering  <meyering@lucent.com>
95567
95568         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95569         now that autoconf requires that.
95570
95571         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95572         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95573         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95574
95575 2000-06-03  Jim Meyering  <meyering@lucent.com>
95576
95577         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95578
95579 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95580
95581         * m4/glibc21.m4: New file.
95582         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95583
95584 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95585
95586         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95587         newer, don't install charset.alias.
95588         * lib/config.charset: Change the Linux/glibc rules so they become empty
95589         on glibc-2.1 or newer.
95590
95591 2000-06-02  Jim Meyering  <meyering@lucent.com>
95592
95593         * lib/mountlist.c: Back out last change.  Instead, do this...
95594         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95595         me_dummy member using the same `ignore'-testing code.
95596         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95597         fs_type strings.
95598         From Mark D. Roth.
95599
95600 2000-05-29  Jim Meyering  <meyering@lucent.com>
95601
95602         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95603         mounts with the `ignore' attribute.  Based on a patch from
95604         Mark D. Roth.
95605
95606 2000-05-28  Jim Meyering  <meyering@lucent.com>
95607
95608         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95609         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95610         * m4/stat.m4: Likewise.
95611         * m4/lstat.m4: Likewise.
95612         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95613
95614         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95615         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95616
95617 2000-05-26  Jim Meyering  <meyering@lucent.com>
95618
95619         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95620
95621 2000-05-24  Jim Meyering  <meyering@lucent.com>
95622
95623         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95624         autoconf requires that.
95625         * m4/lib-check.m4: Likewise.
95626         * m4/jm-macros.m4: Likewise.
95627         * m4/strftime.m4: Likewise.
95628
95629         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95630         AC_CHECK_DECLS, now that autoconf requires that.
95631
95632 2000-05-22  Jim Meyering  <meyering@lucent.com>
95633
95634         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95635         * m4/lstat.m4: Likewise.
95636
95637 2000-05-22  Jim Meyering  <meyering@lucent.com>
95638
95639         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95640
95641 2000-05-20  Jim Meyering  <meyering@lucent.com>
95642
95643         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95644         (jm_PREREQ): Use it.
95645
95646 2000-05-18  Jim Meyering  <meyering@lucent.com>
95647
95648         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95649         back, too, since it may have been modified by allocate_entry.
95650         (hash_delete): Rewrite to use neither the assignment operator
95651         nor the comma operator in an if-expression.
95652
95653 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95654
95655         * lib/closeout.c:
95656         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95657         Remove; no longer needed.
95658         "quotearg.h": Add include.
95659         (file_name): Do not bother to explicitly initialize to NULL; it's less
95660         efficient on some hosts.
95661         (close_stdout_status): Remove test as to whether stdout was already
95662         closed; it breaks for the case "echo x | sort >&-".
95663         Quote file name colons.
95664         Do not assume that _("write error") lacks format strings.
95665
95666 2000-05-15  Jim Meyering  <meyering@lucent.com>
95667
95668         * lib/version-etc.c (version_etc_copyright): Update the copyright
95669         string used in all --version output.
95670
95671 2000-05-14  Jim Meyering  <meyering@lucent.com>
95672
95673         * lib/closeout.c (close_stdout_set_file_name): New function.
95674         (close_stdout_status): Use new file-scoped global.
95675         Return right away if fstat says the stdout file descriptor is invalid.
95676         * lib/closeout.h (close_stdout_set_file_name): Declare.
95677
95678 2000-05-10  Jim Meyering  <meyering@lucent.com>
95679
95680         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95681         (close_stdout_set_status): New function.
95682         * lib/closeout.h (close_stdout_set_status): Declare.
95683
95684 2000-05-09  Jim Meyering  <meyering@lucent.com>
95685
95686         * m4/gettext.m4: Rename this...
95687         * m4/libintl.m4: ...to this.
95688
95689 2000-05-08  Jim Meyering  <meyering@lucent.com>
95690
95691         * lib/long-options.c: Don't include closeout.h.
95692         (parse_long_options): Don't call close_stdout for --version.
95693
95694 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95695
95696         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95697         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95698         2.1.3 bug.  This avoids a clash when files like regex.c define
95699         _GNU_SOURCE.
95700
95701 2000-05-06  Jim Meyering  <meyering@lucent.com>
95702
95703         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95704         (AC_REPLACE_FUNCS): Add strnlen.
95705
95706         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95707         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95708
95709         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95710         AC_SEARCH_LIBS call for nanosleep.
95711         (LIB_NANOSLEEP): Set and AC_SUBST.
95712
95713 2000-05-06  Jim Meyering  <meyering@lucent.com>
95714
95715         * lib/strnlen.c: Undefine __strnlen and strnlen.
95716         [!weak_alias]: Define __strnlen to strnlen.
95717
95718         * lib/atexit.c: New file, from libiberty.
95719
95720 2000-05-06  Jim Meyering  <meyering@lucent.com>
95721
95722         * lib/closeout.c (close_stdout_status): Also check for errors on the
95723         stderr stream.
95724
95725 2000-05-05  Jim Meyering  <meyering@lucent.com>
95726
95727         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95728         AC_SEARCH_LIBS call for clock_gettime.
95729         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95730
95731         * m4/search-libs.m4: Update from autoconf.
95732
95733         su doesn't work on Solaris 2.6.
95734         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95735         <shadow.h>.  Reported by Dragos Harabor.
95736
95737 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95738
95739         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95740         memcpy instead of xmalloc, xrealloc, path_concat.
95741         (locale_charset): Treat empty environment variables as absent.
95742         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95743
95744 2000-05-04  Jim Meyering  <meyering@lucent.com>
95745
95746         * lib/getopt.c: Update from glibc.
95747         * lib/obstack.c: Likewise.
95748         * lib/obstack.h: Likewise.
95749         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95750         file
95751
95752         * lib/regex.h: Likewise.
95753         * lib/strndup.c: Likewise.
95754         * lib/strnlen.c: New file, from glibc.
95755
95756 2000-05-03  Jim Meyering  <meyering@lucent.com>
95757
95758         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95759
95760 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95761
95762         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95763         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95764         compile-time test, rather than inspecting host and OS, to
95765         decide whether to define _LARGEFILE_SOURCE.
95766
95767 2000-05-01  Jim Meyering  <meyering@lucent.com>
95768
95769         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95770
95771         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95772         Based on a patch from Bruno Haible.
95773
95774 2000-05-01  Jim Meyering  <meyering@lucent.com>
95775
95776         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95777
95778 2000-04-29  Jim Meyering  <meyering@lucent.com>
95779
95780         * lib/path-concat.c: Declare strdup only if it's not defined.
95781         * lib/canon-host.c: Likewise.
95782
95783 2000-04-28  Jim Meyering  <meyering@lucent.com>
95784
95785         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95786         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95787         is included first, then limits.h is included by locale.h by libintl.h.
95788         From John David Anglin.
95789
95790 2000-04-25  Jim Meyering  <meyering@lucent.com>
95791
95792         * lib/makepath.c (S_IRWXUGO): Define.
95793         (make_path): Always perform explicit chmod if MODE specifies any
95794         of the `special' permission bits.  Prompted by a bug report against
95795         install from Mate Wierdl and Joost van Baal.
95796
95797 2000-04-18  Jim Meyering  <meyering@lucent.com>
95798
95799         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95800         (jm_PREREQ): Use it.
95801
95802 2000-04-18  Jim Meyering  <meyering@lucent.com>
95803
95804         * lib/README: New file.
95805
95806         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95807         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95808
95809 2000-04-17  Jim Meyering  <meyering@lucent.com>
95810
95811         Get it right :-)
95812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95813         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95814         Suggestion from Akim Demaille.
95815
95816 2000-04-17  Jim Meyering  <meyering@lucent.com>
95817
95818         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95819         the definition of it to rpl_strftime also defined-away the system's
95820         declaration.
95821
95822 2000-04-15  Jim Meyering  <meyering@lucent.com>
95823
95824         Use `C' to denote so-called `contiguous' files, the same way
95825         that tar does.
95826         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95827         (ftypelet): Use S_ISCTG.
95828         From Michael Deutschmann.
95829
95830 2000-04-14  Jim Meyering  <meyering@lucent.com>
95831
95832         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95833         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95834         clobbered.
95835
95836 2000-04-14  Jim Meyering  <meyering@lucent.com>
95837
95838         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95839
95840 2000-04-13  Jim Meyering  <meyering@lucent.com>
95841
95842         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95843         AH_VERBATIM to insert required #ifndef into config.h.in.
95844         Suggestion from Akim Demaille.
95845
95846 2000-04-12  Jim Meyering  <meyering@lucent.com>
95847
95848         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95849         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95850         Christian Krackowizer.
95851
95852         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95853         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95854         (AC_SYS_LARGEFILE): Require.
95855         (AM_C_PROTOTYPES): Require.
95856
95857 2000-04-08  Jim Meyering  <meyering@lucent.com>
95858
95859         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95860         names don't conflict.  Reported by Eli Zaretskii.
95861
95862 2000-04-07  Jim Meyering  <meyering@lucent.com>
95863
95864         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95865         sys/types.h, to work around system header problems on AIX 3.2.5.
95866         From Bruno Haible.
95867
95868 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95869
95870         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95871         bug.  Deal with the different error behavior of Irix iconv.
95872
95873 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95874
95875         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95876         IRIX if the installer said otherwise.
95877
95878 2000-04-05  Jim Meyering  <meyering@lucent.com>
95879
95880         Portability tweaks required for ultrix4.3.
95881         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95882         (jm_CHECK_DECLS): Add getutent to the list of functions.
95883         (_jm_DECL_HEADERS): Add utmpx.h.
95884         From John David Anglin.
95885
95886         * m4/strftime.m4: Back out the 2000-04-02 change.
95887         Instead of that change, simply undefine putenv in the test program.
95888
95889 2000-04-05  Jim Meyering  <meyering@lucent.com>
95890
95891         Portability tweaks required for ultrix4.3.
95892         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95893         getutent.
95894         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95895         * lib/canon-host.c: Declare strdup.
95896         * lib/path-concat.c: Likewise.
95897         From John David Anglin.
95898
95899 2000-04-04  Jim Meyering  <meyering@lucent.com>
95900
95901         Be more DOS 8.3-friendly.
95902         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95903         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95904         * lib/Makefile.am: Reflect renaming.
95905         Reported by Eli Zaretskii.
95906
95907         Use a temporary file name that won't clash with `charset.alias'
95908         in the DOS 8.3 name space.
95909         * lib/Makefile.am (charset_tmp): Define.
95910         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95911         (uninstall-local): Likewise.
95912         Reported by Eli Zaretskii.
95913
95914 2000-04-03  Jim Meyering  <meyering@lucent.com>
95915
95916         * m4/gettext.m4: Fix typo in comment.
95917
95918         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95919         textutils/configure.in).  Suggestion from Paul Eggert.
95920         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95921
95922 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95923
95924         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95925         variable in the shell rather than using putenv, which isn't
95926         portable.  This avoids the configure-time inter-test dependency
95927         on the potentially-renamed putenv function.
95928
95929 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95930
95931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95932         before checking struct stat.st_blksize, so that
95933         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95934
95935 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95936
95937         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95938         since strftime.c uses HAVE_STRFTIME to decide whether to use
95939         the underlying strftime.
95940
95941 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95942
95943         * lib/time/strftime.c (my_strftime): Make sure we call the system
95944         strftime, not ourselves, when invoking the underlying strftime.
95945
95946 2000-03-24  Jim Meyering  <meyering@lucent.com>
95947
95948         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95949         (charset_alias): Define.
95950         (install-exec-local): Factor out common code.
95951         (uninstall-local): Split lines longer than 80.
95952         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95953         (SUFFIXES): Define.
95954         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95955         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95956
95957 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95958
95959         * lib/config.charset: Output a line containing "Packages using this
95960         file".
95961         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95962         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95963         ref-del.sed): New rules.
95964
95965 2000-03-17  Jim Meyering  <meyering@lucent.com>
95966
95967         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95968         Otherwise, include <strings.h>
95969
95970 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95971
95972         * lib/unicodeio.c (utf8_wctomb): New function.
95973         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95974         format instead of in UCS-4 with platform dependent endianness.
95975
95976 2000-03-10  Jim Meyering  <meyering@lucent.com>
95977
95978         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95979         From Marco Franzen.
95980
95981 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95982
95983         * lib/savedir.c (savedir): Work even if directory size is
95984         negative; this can happen with some screwy NFS configurations.
95985
95986 2000-03-06  Jim Meyering  <meyering@lucent.com>
95987
95988         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95989         if it's NULL (because we ran out of memory).  From Bruno Haible.
95990
95991 2000-03-05  Jim Meyering  <meyering@lucent.com>
95992
95993         * lib/localcharset.c ("path-concat.h"): Include.
95994         (get_charset_aliases): Use path_concat instead of ANSI string
95995         concatenation.
95996
95997         * lib/unicodeio.h (PARAMS): Define.
95998         Use it to guard prototype.
95999
96000 2000-03-04  Jim Meyering  <meyering@lucent.com>
96001
96002         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
96003         for lib/localcharset.c.
96004
96005 2000-03-04  Jim Meyering  <meyering@lucent.com>
96006
96007         * lib/Makefile.am (install-exec-local): Create $(libdir) before
96008         installing into it.
96009         (uninstall-local): Uncomment this rule so `make distcheck' works
96010         once again.
96011
96012         * lib/unicodeio.c (<errno.h>): Include it.
96013         (errno): Declare if not defined.
96014
96015         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
96016
96017         * lib/config.charset: New version, incorporating remarks from a linux
96018         i18n mailing list.  From Bruno Haible.
96019
96020 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
96021
96022         * m4/codeset.m4: New file.
96023         * m4/iconv.m4: New file.
96024         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
96025
96026 2000-03-03  Jim Meyering  <meyering@lucent.com>
96027
96028         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
96029
96030 2000-03-02  Jim Meyering  <meyering@lucent.com>
96031
96032         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
96033         the messages come out on separate lines.
96034
96035         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
96036         rather than jm_CHECK_DECLARATIONS.
96037         * m4/decl.m4: Remove now-unused file.
96038
96039         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
96040         geteuid.
96041
96042 2000-03-02  Jim Meyering  <meyering@lucent.com>
96043
96044         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
96045
96046 2000-03-01  Jim Meyering  <meyering@lucent.com>
96047
96048         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
96049         * lib/unicodeio.c: Likewise.
96050
96051 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
96052
96053         * lib/config.charset: New file.
96054         * lib/localcharset.c: New file.
96055         * lib/unicodeio.h, lib/unicodeio.c: New files.
96056         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
96057         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
96058         (noinst_HEADERS): Add unicodeio.h.
96059         (all-local, install-exec-local, charset.alias): New targets.
96060
96061 2000-02-28  Paul Eggert  <eggert@twinsun.com>
96062
96063         * lib/quotearg.c (ALERT_CHAR): New macro.
96064         (quotearg_buffer_restyled): Use it.
96065
96066 2000-02-27  Jim Meyering  <meyering@lucent.com>
96067
96068         * m4/check-decl.m4: Add getenv to the list.
96069
96070 2000-02-27  Jim Meyering  <meyering@lucent.com>
96071
96072         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
96073         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
96074
96075         * lib/backupfile.c: Guard inclusion of stdlib.h with
96076         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
96077         Declare malloc if needed.
96078
96079         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
96080         `#ifndef HAVE_DECL..'
96081         now that autoconf always defines the HAVE_DECL_ symbols.
96082         * lib/human.c: Likewise.
96083         * lib/same.c: Likewise.
96084         * lib/strtoumax.c: Likewise.
96085
96086         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
96087         declaration check was not run.
96088         * lib/hash.c: Likewise.
96089         * lib/human.c: Likewise.
96090         * lib/same.c: Likewise.
96091         * lib/strtoumax.c: Likewise.
96092
96093         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
96094         `.', then first look up the entire `.'-containing string as a login
96095         name.
96096
96097 2000-02-23  Jim Meyering  <meyering@lucent.com>
96098
96099         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
96100         in place of my hack.
96101
96102 2000-02-18  Paul Eggert  <eggert@twinsun.com>
96103
96104         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
96105         (textint): New typedef.
96106         (parser_control): Member year changed from int to textint.
96107         All uses changed.
96108         (YYSTYPE): Removed; replaced by %union with int and textint members.
96109         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
96110         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
96111         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
96112         (tSNUMBER, tUNUMBER): Now of type <textintval>.
96113         (date, number, to_year): Use width of number in digits, not its value,
96114         to determine whether it's a 2-digit year, or a 2-digit time.
96115         (yylex): Store number of digits of numeric tokens.
96116         Reported by John Kendall.
96117
96118         (parser_control): Changed from struct parser_control to typedef (for
96119         consistency).  All uses changed.
96120
96121         (tID): Removed; not used.
96122         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
96123
96124 2000-02-14  Paul Eggert  <eggert@twinsun.com>
96125
96126         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
96127         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
96128
96129 2000-02-12  Jim Meyering  <meyering@lucent.com>
96130
96131         * lib/userspec.c (ISDIGIT): Define it.
96132         (isdigit): Remove definition.
96133         (is_number): Use ISDIGIT, not isdigit.
96134         <libintl.h>: Include.
96135         (_ and N_): Define.
96136         (parse_user_spec): Mark translatable strings.
96137
96138 2000-02-10  Jim Meyering  <meyering@lucent.com>
96139
96140         With these changes, nanosleep.[ch] are finally enough like the other
96141         lib/* replacement files to compile on a few more losing systems.
96142
96143         * lib/nanosleep.h: Don't include config.h.
96144         Remove prototype from declaration of nanosleep.
96145         (PARAMS): Remove now-unneeded definition.
96146         * lib/nanosleep.c: #undef nanosleep.
96147         (rpl_nanosleep): Rename from nanosleep.
96148
96149 2000-02-10  Jim Meyering  <meyering@lucent.com>
96150
96151         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96152         gnu_nanosleep to rpl_nanosleep.
96153
96154 2000-02-09  Jim Meyering  <meyering@lucent.com>
96155
96156         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96157         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96158
96159 2000-02-08  Akim Demaille  <akim@epita.fr>
96160
96161         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96162         `[' and `]' and remove uses of `changequote'.
96163         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96164         (AC_SYS_LARGEFILE): Likewise.
96165         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96166         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96167         of changequote.
96168         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96169         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96170         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96171         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96172
96173 2000-02-05  Jim Meyering  <meyering@lucent.com>
96174
96175         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96176         Remove explicit use of AC_HEADER_TIME.  It is required by
96177         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96178         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96179         in autoconf whereby the expansion of the latter ended up preceding
96180         the expansion of its prerequisite, AC_HEADER_TIME.
96181         Reported by Volker Borchert.
96182
96183 2000-02-03  Jim Meyering  <meyering@lucent.com>
96184
96185         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96186
96187 2000-02-03  Jim Meyering  <meyering@lucent.com>
96188
96189         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96190         rather than with `#if HAVE_UTMPNAME'.
96191
96192 2000-02-02  Jim Meyering  <meyering@lucent.com>
96193
96194         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96195         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96196         Reported by Eli Zaretskii.
96197
96198 2000-02-01  Jim Meyering  <meyering@lucent.com>
96199
96200         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96201
96202 2000-01-31  Jim Meyering  <meyering@lucent.com>
96203
96204         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96205         functions.  Add the time.h and sys/time.h headers along with the
96206         AC_REQUIRE'ment of AC_HEADER_TIME.
96207
96208 2000-01-31  Jim Meyering  <meyering@lucent.com>
96209
96210         * lib/nanosleep.h (nanosleep): Guard declaration with
96211         `#if ! HAVE_DECL_NANOSLEEP'.
96212         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96213         the declaration in that vendor's sys/timers.h.
96214         Reported by Christian Krackowizer.
96215
96216         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96217         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96218         (ISPRINT): Likewise.
96219         Reported by Tom Tromey.
96220
96221 2000-01-30  Jim Meyering  <meyering@lucent.com>
96222
96223         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96224
96225         * m4/prereq.m4 (utmp_includes): Define.
96226         Check for ut_user and ut_name members in both struct utmpx
96227         and struct utmp.
96228
96229 2000-01-30  Jim Meyering  <meyering@lucent.com>
96230
96231         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96232         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96233         header files where only utmpx.ut_user is declared.
96234
96235         * lib/readutmp.h (UT_USER): Define.
96236
96237 2000-01-29  Jim Meyering  <meyering@lucent.com>
96238
96239         * m4/lib-check.m4: New file containing library-related checks from
96240         fileutils and sh-utils (textutils had none).
96241
96242 2000-01-28  Jim Meyering  <meyering@lucent.com>
96243
96244         * m4/perl.m4: Change format of warning message to look more like that
96245         from the missing script.  Suggestion from François Pinard.
96246
96247 2000-01-25  Jim Meyering  <meyering@lucent.com>
96248
96249         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96250         well as time.h in the compile check.
96251         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96252         Fix typo in cross-compiling case: s/yes/no/.
96253
96254 2000-01-23  Jim Meyering  <meyering@lucent.com>
96255
96256         * m4/jm-macros.m4: Move df-related tests here from
96257         fileutils/configure.in
96258
96259         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96260         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96261
96262         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96263         s/space/ac_fsusage_space/.
96264         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96265
96266         * m4/ftruncate.m4: New file (derived from part of
96267         fileutils/configure.in).
96268         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96269         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96270
96271         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96272         AC_SUBST these here, rather than just in sh-util/configure.in, so
96273         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96274         all the same.
96275         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96276         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96277         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96278         (AC_SUBST(POW_LIBM)): Likewise.
96279         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96280
96281 2000-01-23  Jim Meyering  <meyering@lucent.com>
96282
96283         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96284         obstack.c.
96285
96286 2000-01-22  Jim Meyering  <meyering@lucent.com>
96287
96288         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96289
96290         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96291
96292         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96293         configure.in
96294         (AC_CHECK_HEADERS): Likewise for sh-utils.
96295         (AC_CHECK_HEADERS): Likewise for textutils.
96296         Merge the three lists of headers.
96297
96298         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96299         from fileutils' configure.in.
96300
96301         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96302         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96303         check-decl.m4.
96304
96305         * m4/check-decl.m4: Use #if rather than #ifdef.
96306         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96307         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96308         (_jm_DECL_HEADERS): Define new function.
96309         (jm_CHECK_DECLARATIONS): Require it.
96310
96311 2000-01-22  Jim Meyering  <meyering@lucent.com>
96312
96313         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96314         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96315         Required for some AIX systems.  Reported by Christian Krackowizer.
96316         [TESTING] (main): New function.
96317
96318         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96319         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96320         letters.
96321
96322         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96323         iswprint.
96324
96325         * lib/strverscmp.c (ISDIGIT): Define.
96326         (strverscmp): Use ISDIGIT, not isdigit.
96327
96328 2000-01-19  Jim Meyering  <meyering@lucent.com>
96329
96330         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96331         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96332         defines `struct timespec' in <sys/time.h>
96333
96334         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96335         Thanks to Akim for explaining.
96336
96337 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96338
96339         * lib/nanosleep.c (nanosleep):
96340         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96341         POSIX.1 doesn't require SA_INTERRUPT and some systems
96342         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96343         it's been part of POSIX.1 since day 1 (in 1988).
96344
96345 2000-01-17  Jim Meyering  <meyering@lucent.com>
96346
96347         * lib/interlock: Remove unused file.  Reported by François Pinard.
96348
96349 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96350
96351         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96352         alert, backslash, formfeed, and vertical tab unnecessarily in
96353         shell quoting style.
96354
96355 2000-01-16  Jim Meyering  <meyering@lucent.com>
96356
96357         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96358         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96359         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96360         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96361
96362 2000-01-16  Jim Meyering  <meyering@lucent.com>
96363
96364         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96365         because the latter didn't work.
96366
96367 2000-01-15  Jim Meyering  <meyering@lucent.com>
96368
96369         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96370         (AC_REPLACE_FUNCS): Add memcpy and memset.
96371         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96372         Add strpbrk.
96373         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96374
96375 2000-01-12  Jim Meyering  <meyering@lucent.com>
96376
96377         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96378         (jm_PREREQ): Use it.
96379         (jm_PREREQ_READUTMP): New macro.
96380         (jm_PREREQ): Use it.
96381
96382 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96383
96384         Quote multibyte characters correctly.
96385         * m4/c-bs-a.m4: New file.
96386         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96387         (jm_PREREQ): Use it.
96388
96389 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96390
96391         * m4/uintmax_t.m4: Port to autoconf 2.13.
96392
96393 2000-01-08  Jim Meyering  <meyering@ascend.com>
96394
96395         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96396         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96397
96398 2000-01-04  Jim Meyering  <meyering@ascend.com>
96399
96400         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96401         jm_STRUCT_DIRENT_D_TYPE.
96402         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96403         jm_STRUCT_DIRENT_D_INO.
96404         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96405         jm_STRUCT_UTIMBUF.
96406         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96407         renamings.
96408         * m4/utime.m4: Likewise.
96409
96410         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96411         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96412
96413 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96414
96415         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96416         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96417
96418 2000-01-02  Jim Meyering  <meyering@ascend.com>
96419
96420         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96421         remember if this is necessary.
96422
96423 1999-12-26  Jim Meyering  <meyering@ascend.com>
96424
96425         * m4/jm-macros.m4: Use it here.
96426         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96427
96428 1999-12-23  Jim Meyering  <meyering@ascend.com>
96429
96430         * m4/jm-macros.m4: Check for clock_gettime (moved from
96431         fileutils/configure.in)
96432         Check for gettimeofday.
96433
96434 1999-12-20  Jim Meyering  <meyering@ascend.com>
96435
96436         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96437         autoconf-2.14a-1999-12-20.
96438
96439 1999-12-19  Jim Meyering  <meyering@ascend.com>
96440
96441         * m4/lstat-slash.m4: New file.
96442         * m4/jm-macros.m4: Use the new macro:
96443         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96444
96445 1999-12-07  Jim Meyering  <meyering@ascend.com>
96446
96447         * m4/perl.m4: Require that File::Compare be available, too.
96448         Too many systems seem to lack it.
96449
96450         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96451         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96452
96453 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96454
96455         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96456         problem with the QNX 4.25 shell, which doesn't propagate exit
96457         status of failed commands inside shell assignments.
96458
96459 1999-11-17  Jim Meyering  <meyering@ascend.com>
96460
96461         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96462
96463 1999-11-07  Jim Meyering  <meyering@ascend.com>
96464
96465         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96466
96467 1999-11-06  Jim Meyering  <meyering@ascend.com>
96468
96469         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96470         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96471
96472 1999-11-05  Jim Meyering  <meyering@ascend.com>
96473
96474         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96475         configure.in of textutils, fileutils, and sh-utils into this one
96476         (shared between those packages) file.
96477         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96478         AC_STRUCT_ST_BLKSIZE.
96479
96480 1999-11-03  Jim Meyering  <meyering@ascend.com>
96481
96482         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96483         of AC_CHECK_TYPE checks includes unistd.h.
96484         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96485         Suggestion from Akim Demaille.
96486
96487 1999-10-30  Jim Meyering  <meyering@ascend.com>
96488
96489         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96490         m4-quoted string.
96491         * m4/ls-mntd-fs.m4: Likewise.
96492         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96493         * m4/jm-winsz1.m4: Likewise.
96494
96495         * m4/const.m4: Remove file, since the fix made it into the experimental
96496         version of autoconf.
96497         * m4/mktime.m4: Likewise.
96498
96499         * m4/check-type.m4: Remove file, now that the latest version of
96500         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96501
96502         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96503         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96504         AC_CHECK_TYPE.
96505
96506 1999-10-04  Jim Meyering  <meyering@ascend.com>
96507
96508         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96509
96510 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96511
96512         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96513         2.95.1 bug with HP-UX 10.20.
96514
96515 1999-09-17  Jim Meyering  <meyering@ascend.com>
96516
96517         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96518         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96519         due to missing strdup (against sh-utils-2.0).
96520
96521 1999-08-29  Jim Meyering  <meyering@ascend.com>
96522
96523         * m4/jm-macros.m4: Require jm_BISON.
96524         * m4/bison.m4: New file.
96525
96526 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96527
96528         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96529         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96530
96531 1999-08-05  Jim Meyering  <meyering@ascend.com>
96532
96533         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96534         to avoid conflicts with `conftest' on 8+3 filesystems.
96535         Suggestion from Eli Zaretskii.
96536
96537 1999-08-04  Jim Meyering  <meyering@ascend.com>
96538
96539         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96540         fileutils and sh-utils (textutils's getline test was inadequate).
96541         (AM_FUNC_GETLINE): Run this test.
96542         (AC_CHECK_FUNCS): Check for getdelim.
96543         Reported by Bob Proulx.
96544
96545 1999-08-02  Jim Meyering  <meyering@ascend.com>
96546
96547         * m4/jm-macros.m4: Add a comment.
96548
96549 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96550
96551         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96552         <inttypes.h> defines strtoumax as a macro (and not as a
96553         function).
96554
96555 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96556
96557         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96558         that we can shift, multiply and divide unsigned long long
96559         values; Ultrix cc can't do it.
96560
96561 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96562
96563         * m4/mktime.m4: New file, which is a preview of what should appear
96564         in the next public autoconf release.
96565
96566 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96567
96568         * m4/lfs.m4: Remove this file.
96569         * m4/largefile.m4: New file.  It contains the old contents of
96570         lfs.m4, except that all names with prefix AC_LFS have been
96571         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96572         compatible with future autoconf versions.  Also, some minor m4
96573         quoting problems have been fixed.
96574
96575 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96576
96577         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96578         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96579         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96580         and simplify the shell code.
96581
96582 1999-08-01  Jim Meyering  <meyering@ascend.com>
96583
96584         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96585         m4.
96586
96587 1999-07-20  Jim Meyering  <meyering@ascend.com>
96588
96589         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96590
96591 1999-07-15  Jim Meyering  <meyering@ascend.com>
96592
96593         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96594
96595 1999-05-22  Jim Meyering  <meyering@ascend.com>
96596
96597         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96598
96599 1999-05-20  Jim Meyering  <meyering@ascend.com>
96600
96601         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96602         Add a colon after each `then' in case $4 is empty.
96603
96604 1999-05-16  Jim Meyering  <meyering@ascend.com>
96605
96606         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96607
96608 1999-05-10  Jim Meyering  <meyering@ascend.com>
96609
96610         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96611
96612         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96613         AC_FUNC_MKTIME.
96614
96615 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96616
96617         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96618
96619 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96620
96621         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96622         not CPPFLAGS, so that linking works correctly in IRIX.
96623
96624 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96625
96626         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96627
96628 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96629
96630         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96631         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96632         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96633         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96634         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96635
96636         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96637
96638 1999-04-20  Jim Meyering  <meyering@ascend.com>
96639
96640         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96641         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96642         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96643
96644 1999-04-18  Jim Meyering  <meyering@ascend.com>
96645
96646         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96647         * m4/jm-macros.m4: Use it.
96648
96649 1999-04-06  Jim Meyering  <meyering@ascend.com>
96650
96651         * m4/strftime.m4: Remove test for %f.
96652
96653 1999-03-29  Jim Meyering  <meyering@ascend.com>
96654
96655         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96656         superset of the AC_TYPE_* checks in the textutils, fileutils,
96657         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96658         AC_TYPE_PID_T.
96659
96660 1999-03-28  Jim Meyering  <meyering@ascend.com>
96661
96662         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96663         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96664         replaced e.g., in the *.sh files of the sh-utils.
96665
96666 1999-03-20  Jim Meyering  <meyering@ascend.com>
96667
96668         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96669         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96670         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96671
96672 1999-03-19  Jim Meyering  <meyering@ascend.com>
96673
96674         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96675
96676 1999-03-12  Jim Meyering  <meyering@ascend.com>
96677
96678         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96679
96680 1999-03-07  Jim Meyering  <meyering@ascend.com>
96681
96682         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96683         declared.
96684
96685 1999-02-17  Jim Meyering  <meyering@ascend.com>
96686
96687         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96688         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96689
96690 1999-02-07  Jim Meyering  <meyering@ascend.com>
96691
96692         * m4/group-member.m4: New file -- extracted from sh-utils'
96693         configure.in.
96694
96695         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96696         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96697
96698 1999-02-06  Jim Meyering  <meyering@ascend.com>
96699
96700         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96701         * m4/fnmatch.m4: Likewise.
96702         * m4/getgroups.m4: Likewise.
96703         * m4/lstat.m4: Likewise.
96704         * m4/malloc.m4: Likewise.
96705         * m4/putenv.m4: Likewise.
96706         * m4/realloc.m4: Likewise.
96707         * m4/regex.m4: Likewise.
96708         * m4/stat.m4: Likewise.
96709         * m4/strftime.m4: Likewise.
96710         Suggestion from Alain Magloire.
96711
96712         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96713         * m4/fnmatch.m4: Likewise.
96714         * m4/getgroups.m4: Likewise.
96715         * m4/getline.m4: Likewise.
96716         * m4/lstat.m4: Likewise.
96717         * m4/malloc.m4: Likewise.
96718         * m4/memcmp.m4: Likewise.
96719         * m4/putenv.m4: Likewise.
96720         * m4/realloc.m4: Likewise.
96721         * m4/regex.m4: Likewise.
96722         * m4/stat.m4: Likewise.
96723         * m4/strftime.m4: Likewise.
96724         Suggestion from Alain Magloire.
96725
96726         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96727         an argument.
96728
96729         * m4/regex.m4: Add a run-time Test for proper operation of
96730         re_compile_pattern.
96731
96732 1999-01-31  Jim Meyering  <meyering@ascend.com>
96733
96734         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96735
96736 1999-01-30  Jim Meyering  <meyering@ascend.com>
96737
96738         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96739
96740         * m4/jm-mktime.m4: Make this a wrapper around the official
96741         AM_FUNC_MKTIME rather than my private copy, now that the official one
96742         is up to date.
96743         * m4/mktime.m4: Remove file.
96744
96745         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96746         * m4/uptime.m4: Likewise.
96747         * m4/uintmax_t.m4: Likewise.
96748
96749 1999-01-28  Jim Meyering  <meyering@ascend.com>
96750
96751         * m4/jm-macros.m4: Use jm_AFS.
96752         * m4/afs.m4: New file (from fileutils' configure.in).
96753
96754         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96755         * m4/chown.m4: Likewise.
96756         * m4/d-ino.m4: Likewise.
96757         * m4/d-type.m4: Likewise.
96758         * m4/fnmatch.m4: Likewise.
96759         * m4/getgroups.m4: Likewise.
96760         * m4/gettext.m4: Likewise.
96761         * m4/jm-mktime.m4: Likewise.
96762         * m4/jm-winsz2.m4: Likewise.
96763         * m4/lcmessage.m4: Likewise.
96764         * m4/ls-mntd-fs.m4: Likewise.
96765         * m4/malloc.m4: Likewise.
96766         * m4/memcmp.m4: Likewise.
96767         * m4/putenv.m4: Likewise.
96768         * m4/realloc.m4: Likewise.
96769         * m4/st_mtim.m4: Likewise.
96770         * m4/strftime.m4: Likewise.
96771
96772 1999-01-16  Jim Meyering  <meyering@ascend.com>
96773
96774         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96775         (ARGMATCH_DIE_DECL): Define.
96776
96777 1999-01-12  Jim Meyering  <meyering@ascend.com>
96778
96779         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96780         Reported by Lars Hecking.
96781
96782 1999-01-10  Jim Meyering  <meyering@ascend.com>
96783
96784         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96785         gross kludge.
96786         * m4/inttypes_h.m4: Likewise.
96787         * m4/lstat.m4: Likewise.
96788         * m4/malloc.m4: Likewise.
96789         * m4/readdir.m4: Likewise.
96790         * m4/realloc.m4: Likewise.
96791         * m4/st_dm_mode.m4: Likewise.
96792         * m4/stat.m4: Likewise.
96793         * m4/utimbuf.m4: Likewise.
96794         * m4/utimes.m4: Likewise.
96795
96796         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96797         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96798         comments in config.h.in are meaningful.
96799
96800         * m4/jm-macros.m4: Require autoconf-2.13 here.
96801
96802         * m4/regex.m4: By default, don't use the included regex.c on systems
96803         with glibc 2.  Suggestion from Uli Drepper.
96804
96805 1999-01-02  Jim Meyering  <meyering@ascend.com>
96806
96807         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96808
96809 1998-12-18  Jim Meyering  <meyering@ascend.com>
96810
96811         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96812         Based on a suggestion from Lars Hecking.
96813
96814 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96815
96816         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96817
96818 1998-11-16  Jim Meyering  <meyering@ascend.com>
96819
96820         * m4/lfs.m4: Double-quote the `uname...` expression.
96821
96822 1998-11-14  Jim Meyering  <meyering@ascend.com>
96823
96824         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96825         * m4/stat.m4: Likewise.
96826
96827 1998-11-03  Jim Meyering  <meyering@ascend.com>
96828
96829         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96830         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96831
96832 1998-10-18  Jim Meyering  <meyering@ascend.com>
96833
96834         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96835
96836 1998-10-17  Jim Meyering  <meyering@ascend.com>
96837
96838         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96839         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96840         calls for those previously hard-coded headers.  Instead, take a new
96841         parameter.
96842         (jm_CHECK_DECLARATIONS): Reflect interface change.
96843         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96844         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96845
96846         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96847
96848 1998-10-14  Jim Meyering  <meyering@ascend.com>
96849
96850         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96851         instead of "TZ=America/Vancouver".  From Paul Eggert.
96852
96853 1998-10-11  Jim Meyering  <meyering@ascend.com>
96854
96855         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96856         This adds a test for a recently added compatibility fix for mktime.c.
96857         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96858
96859 1998-09-27  Jim Meyering  <meyering@ascend.com>
96860
96861         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96862
96863         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96864         ../configure.in, including a change from Gordon Matzigkeit to allow
96865         cross-compiling for the Hurd.
96866
96867         * m4/glibc.m4: New file/macro to test for the GNU C Library
96868         versions 1 and 2.  From Gordon Matzigkeit.
96869         Indent.
96870
96871 1998-09-21  Jim Meyering  <meyering@ascend.com>
96872
96873         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96874
96875 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96876
96877         Port nanosecond-resolution times to UnixWare 2.1.2 and
96878         pedantic Solaris 2.6.
96879
96880         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96881         AC_STRUCT_ST_MTIM.
96882         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96883         Generate name of ns member, instead of just 1 or undef.
96884         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96885
96886 1998-08-15  Jim Meyering  <meyering@ascend.com>
96887
96888         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96889         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96890         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96891         instead of jm_TYPE_SSIZE_T.
96892
96893 1998-08-12  Jim Meyering  <meyering@ascend.com>
96894
96895         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96896
96897 1998-08-02  Jim Meyering  <meyering@ascend.com>
96898
96899         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96900         in acconfig.h manually.
96901
96902 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96903
96904         * m4/st_mtim.m4: New file.
96905
96906 1998-07-28  Jim Meyering  <meyering@ascend.com>
96907
96908         * m4/utimes.m4: Undef stat.
96909
96910 1998-07-25  Jim Meyering  <meyering@ascend.com>
96911
96912         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96913         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96914
96915 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96916
96917         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96918         uid and gid actually remain unchanged.
96919
96920 1998-07-07  Jim Meyering  <meyering@ascend.com>
96921
96922         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96923
96924 1998-07-04  Jim Meyering  <meyering@ascend.com>
96925
96926         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96927         to prove that this macro can be used in packages without regex.c.
96928
96929 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96930
96931         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96932         is to be used.
96933
96934 1998-07-03  Jim Meyering  <meyering@ascend.com>
96935
96936         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96937
96938         * m4/gettext.m4: New file -- from gettext-0.10.35.
96939         * m4/lcmessage.m4: Likewise.
96940         * m4/progtest.m4: Likewise.
96941
96942         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96943         * m4/jm-macros.m4: Require the new macro.
96944
96945 1998-06-29  Jim Meyering  <meyering@ascend.com>
96946
96947         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96948         for the definition of NGROUPS (used in a system header included
96949         by sys/mount.h).
96950
96951 1998-06-28  Jim Meyering  <meyering@ascend.com>
96952
96953         * m4/ls-mntd-fs.m4: New file.
96954         * m4/fstypename.m4: New file.
96955
96956         * m4/jm-macros.m4: Require the new macro.
96957         * m4/jm-glibc-io.m4: New file.
96958
96959 1998-05-19  Jim Meyering  <meyering@ascend.com>
96960
96961         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96962         * m4/lchown.m4: New file.
96963
96964         * m4/Makefile.am.in: New file.
96965         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96966
96967 1998-05-14  Jim Meyering  <meyering@ascend.com>
96968
96969         * m4/Makefile.am (EXTRA_DIST): Add them.
96970         * m4/jm-macros.m4: New file.
96971         * m4/utimbuf.m4: New file.
96972
96973 1998-05-12  Jim Meyering  <meyering@ascend.com>
96974
96975         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96976
96977 1998-05-11  Jim Meyering  <meyering@ascend.com>
96978
96979         * m4/isc-posix.m4: New file.
96980
96981 1998-05-10  Jim Meyering  <meyering@ascend.com>
96982
96983         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96984
96985 1998-05-09  Jim Meyering  <meyering@ascend.com>
96986
96987         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96988         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96989         with automake.
96990
96991         * m4/ssize_t.m4: New file.
96992         * m4/mktime.m4: Remove file -- the new automake has this now.
96993
96994 1998-04-26  Jim Meyering  <meyering@ascend.com>
96995
96996         * m4/assert.m4: New file.
96997         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96998
96999 1998-04-05  Jim Meyering  <meyering@ascend.com>
97000
97001         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
97002         (jm_PREREQ): Use it here.
97003
97004 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
97005
97006         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
97007         in acconfig.h.
97008
97009 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
97010
97011         * m4/prereq.m4: New file.
97012         * m4/error.m4: New file.
97013         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
97014
97015 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
97016
97017         * m4/getline.m4: Don't set am_cv_func_working_getline before the
97018         cache-check for the same variable -- that defeated the purpose of
97019         the test; the test program was never run.  This was a problem only
97020         on systems with losing getline functions -- HP-UX 10.20 is one.
97021         Reported by Bjorn Helgaas.
97022
97023 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
97024
97025         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
97026
97027 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
97028
97029         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
97030
97031         * m4/const.m4: New file.  Use an initializer in this declaration
97032         typedef int charset[2]; const charset x;
97033         Reported by Bob Glickstein.
97034
97035 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
97036
97037         * m4/chown.m4: Fix reversed types on -1 args to chown.
97038         From Kaveh Ghazi.
97039
97040 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
97041
97042         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
97043         Add lseek and memchr.
97044
97045         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
97046         T.E.Dickey <dickey@clark.net> said that some older preprocessors
97047         have a 20-character limit on names.
97048
97049 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
97050
97051         * m4/inttypes_h.m4: New file.
97052         * m4/uintmax_t.m4: New file.
97053         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
97054
97055
97056         -----
97057
97058         Local Variables:
97059         coding: utf-8
97060         End:
97061
97062         Copyright (C) 1997-2012 Free Software Foundation, Inc.
97063
97064         Copying and distribution of this file, with or without
97065         modification, are permitted provided the copyright notice
97066         and this notice are preserved.